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

fix(node): Ensure status is correct for http server span errors #12477

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 12, 2024

I noticed that we were not correctly setting a status message based on http status for errored http.server span.
The problem was in our logic, where we already had the status set to { code: 2, message: undefined }, and whenever the code was not 0 (unset), we'd never look at the attributes to infer the proper status message.

Now, if we have code: 2 but not message, we try to infer the message from the attributes, if possible.

@mydea mydea self-assigned this Jun 12, 2024
Copy link
Contributor

github-actions bot commented Jun 12, 2024

size-limit report 📦

Path Size
@sentry/browser 22.04 KB (0%)
@sentry/browser (incl. Tracing) 33.23 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.95 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 62.27 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 73.02 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 85.14 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 86.98 KB (0%)
@sentry/browser (incl. metrics) 26.23 KB (+0.01% 🔺)
@sentry/browser (incl. Feedback) 38.21 KB (0%)
@sentry/browser (incl. sendFeedback) 26.63 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.18 KB (0%)
@sentry/react 24.81 KB (0%)
@sentry/react (incl. Tracing) 36.27 KB (0%)
@sentry/vue 26.05 KB (0%)
@sentry/vue (incl. Tracing) 35.08 KB (0%)
@sentry/svelte 22.17 KB (0%)
CDN Bundle 23.39 KB (0%)
CDN Bundle (incl. Tracing) 34.91 KB (0%)
CDN Bundle (incl. Tracing, Replay) 69.02 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 74.15 KB (+0.01% 🔺)
CDN Bundle - uncompressed 68.71 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 103.3 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 213.75 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 226.21 KB (0%)
@sentry/nextjs (client) 35.63 KB (0%)
@sentry/sveltekit (client) 33.86 KB (0%)
@sentry/node 111.96 KB (+0.03% 🔺)
@sentry/node - without tracing 89.43 KB (+0.03% 🔺)
@sentry/aws-serverless 98.49 KB (+0.03% 🔺)

@mydea mydea merged commit f032f3f into develop Jun 12, 2024
79 checks passed
@mydea mydea deleted the fn/fix-status-error branch June 12, 2024 14:52
mydea pushed a commit that referenced this pull request Jun 13, 2024
Updates the expected status message for 404 span reflecting the updates
in #12477
mydea added a commit that referenced this pull request Jun 13, 2024
Ensure we run node-integration, remix, nextjs tests for changes in
opentelemetry package.

You can see how this PR:
#12477 did not
trigger node-integration tests 😬
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