Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

chore(logging): updates for sentry #230

Merged
merged 3 commits into from
Nov 7, 2018
Merged

chore(logging): updates for sentry #230

merged 3 commits into from
Nov 7, 2018

Conversation

philbooth
Copy link
Contributor

@philbooth philbooth commented Nov 7, 2018

Fixes #222.

  • In 4636112, I update the Sentry dependency to the latest version.

  • In bfeb745, I move the point at which we capture errors for Sentry, so that we now catch every error rather than just those which are logged.

  • In 5faef07, I turn on debug symbols in the release build, so that Sentry errors contain richer information.

@mozilla/fxa-devs r?

@philbooth philbooth self-assigned this Nov 7, 2018
@philbooth philbooth requested a review from a team November 7, 2018 12:55
Copy link
Contributor

@vladikoff vladikoff left a comment

Choose a reason for hiding this comment

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

awesome, i am happy to see sentry updates

@@ -11,6 +11,10 @@ path = "src/bin/service.rs"
name = "fxa_email_queues"
path = "src/bin/queues.rs"

[profile.release]
# Include debug symbols to make Sentry errors richer
debug = true
Copy link
Contributor

@vladikoff vladikoff Nov 7, 2018

Choose a reason for hiding this comment

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

nice! I thought it set this automatically 👍

We were sending errors to Sentry at the point where they are logged,
but there are a number of paths where an error is raised without being
logged. Instead, this change captures them at the point of creation,
which should mean we now capture every error.
@philbooth
Copy link
Contributor Author

In 5faef07, I turn on debug symbols in the release build, so that Sentry errors contain richer information.

Just noting that this had the desired effect, we now get line numbers in the stack traces.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants