Document Sentry fingerprinting for timeout grouping#227
Open
nertzy wants to merge 1 commit into
Open
Conversation
rack-timeout raises at whatever line is executing when the request clock expires, so similar timeouts get distinct stacktraces and Sentry fragments one slow route into many issues. Add doc/sentry.md (mirroring doc/rollbar.md) showing a before_send hook that groups timeouts by transaction and leads the issue title with the route, and link it from the README.
Author
|
(I used AI to build this but it was human-reviewed as well) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because rack-timeout raises at whatever line is executing when the request clock expires, similar timeouts get distinct stack traces and Sentry groups them as many separate issues — the same problem the existing Rollbar guide addresses.
This adds
doc/sentry.md(mirroringdoc/rollbar.md) showing abefore_sendhook that:controller#action) via a custom fingerprint instead of by stack trace,RequestTimeoutExceptionand theRack::Timeout::Errorbase (soRequestTimeoutErrorandRequestExpiryErrorare covered regardless of where Sentry's capture middleware sits in the stack),Also links the new page from the README's doc list, alongside the Rollbar entry.