Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Zerolog integration for automatic linking of errors to routes #276

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

andrew-werdna
Copy link
Contributor

@andrew-werdna andrew-werdna commented May 23, 2022

  • update zerolog integration to check for a couple special fields, and if present, move them from Notice.Params to Notice.Context
  • deferring to @chimanjain to assert correctness and complete

@chimanjain I learned recently that if you put route, and httpMethod keys on the Notice.Context then the Airbrake dashboard will automatically link reported errors to the route/method combination in one of the performance dashboards. Basically, we realized that as part of our integrations, we have been sending the route and httpMethod keys on the Notice.Params by mistake. By moving these two key/values over to the Notice.Context we get the added benefit described above.

Copy link
Contributor

@Penthious Penthious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only nitpick would be maybe add the gitignore values to your global gitignore, but is fine either way.

…if present, move them from Notice.Params to Notice.Context

type assert to string for both moved fields

remove in-repo .gitignore in favor of putting these files in global .gitignore
@andrew-werdna andrew-werdna merged commit 07f20eb into master Jul 19, 2022
@andrew-werdna andrew-werdna deleted the zerolog-update branch July 19, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants