Skip to content

fix(otel): Account for number status code #6345

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

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Conversation

AbhiPrasad
Copy link
Member

http status code is defined in the spec as a number: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#common-attributes

Let's add special casing for both possibilities (status code is either a string or a number).

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 30, 2022 14:01
@AbhiPrasad AbhiPrasad force-pushed the abhi-otel-span-status branch from df6a4fc to 00218a8 Compare November 30, 2022 14:36
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.57 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.59 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.36 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 54.15 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.12 KB (0%)
@sentry/browser - Webpack (minified) 65.75 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.14 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.99 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.45 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.88 KB (+0.02% 🔺)
@sentry/replay index.js 62.08 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 62.08 KB (0%)
@sentry/replay - Webpack (minified) 199.84 KB (0%)

@AbhiPrasad AbhiPrasad merged commit cbf8e4d into master Nov 30, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-otel-span-status branch November 30, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants