Skip to content

Instantly share code, notes, and snippets.

@stympy
Last active June 16, 2025 14:55
Show Gist options
  • Save stympy/c987835324a78d648677db0d6997b696 to your computer and use it in GitHub Desktop.
Save stympy/c987835324a78d648677db0d6997b696 to your computer and use it in GitHub Desktop.
Adding context to events the hard way
# config/initializers/honeybadger.rb
Honeybadger.configure do |config|
config.before_event do |event|
event.payload.update(Honeybadger.get_context.slice(:user_id, :tenant_id))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment