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

Add http breadcrumb level based on response code #11083

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

cleptric
Copy link
Member

Copy link

vercel bot commented Aug 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 1:19am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 14, 2024 1:19am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
sentry-docs ⬜️ Ignored (Inspect) Visit Preview Aug 14, 2024 1:19am

Comment on lines +272 to +273
- `warning` - response status code 4XX
- `error` - response status code 5XX
Copy link
Member

Choose a reason for hiding this comment

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

I am not totally sold on 4xx being a warning. 4xx is equally as bad from the client perspective as 5xx. (if not worse, because you are actually on the client)

Copy link
Contributor

@vivianyentran vivianyentran left a comment

Choose a reason for hiding this comment

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

LGTM, just pending whether 4xx should be considered warning or error

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

@cleptric
Copy link
Member Author

cleptric commented Sep 2, 2024

This is in-line with https://develop.sentry.dev/sdk/features/#http-client-errors, if you feel strongly about this, we can make this configurable in certain SDKs.

@cleptric cleptric enabled auto-merge (squash) September 2, 2024 14:42
@lforst
Copy link
Member

lforst commented Sep 2, 2024

@cleptric you're probably right, we can do warnings

@cleptric cleptric merged commit 4aef59c into master Sep 2, 2024
9 checks passed
@cleptric cleptric deleted the http-breadcrumb-level branch September 2, 2024 15:18
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants