Last active
June 16, 2025 14:55
-
-
Save stympy/c987835324a78d648677db0d6997b696 to your computer and use it in GitHub Desktop.
Adding context to events the hard way
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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