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

Sentry logging breadcrumb fixes #493

Merged
merged 1 commit into from Dec 11, 2019
Merged

Conversation

bloodearnest
Copy link
Contributor

Ensure that there is an active sentry context by activating it before
each request. Previously, there was no active context for the very first
request a worker served.

Also improves logging breadcrumbs:

  • remove duplicated information
  • condense file/lineno/funcName into one item
  • stringify keys so breadcrumb displays properly

Cleans up the depreacted use of LogRecord._structured

Copy link
Contributor

@tonysimpson tonysimpson left a comment

Choose a reason for hiding this comment

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

Looks good, one comment but nothing significant

talisker/sentry.py Outdated Show resolved Hide resolved
Ensure that there is an active sentry context by activating it before
each request. Previously, there was no active context for the very first
request a worker served.

Also improves logging breadcrumbs:
 - remove duplicated information
 - condense file/lineno/funcName into one item
 - stringify keys so breadcrumb displays properly

Cleans up the depreacted use of LogRecord._structured
@bloodearnest bloodearnest merged commit 5939b80 into master Dec 11, 2019
@bloodearnest bloodearnest deleted the better-sentry-reports branch December 11, 2019 16:32
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.

None yet

2 participants