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

feat(core): Deprecate scope.getSpan() & scope.setSpan() #10114

Merged
merged 1 commit into from Jan 9, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 9, 2024

These APIs are not compatible with OTEL tracing, and thus will not be public API anymore in v8.

In v8, we'll add new (?) methods to the scope that are "internal", as for non-node based SDKs we'll still need to keep the active span on the scope. But these should not be reflected publicly, and not in types' Scope.

Note that we'll also need to make sure to use types' Scope for all callbacks etc., which we currently don't do.

These APIs are not compatible with OTEL tracing, and thus will not be public API anymore in v8.

In v8, we'll add new (?) methods to the scope that are "internal", as for non-node based SDKs we'll still need to keep the active span on the scope. But these should not be reflected publicly, and not in types' Scope.

note that we'll also need to make sure to use types' `Scope` for all callbacks etc., which we currently don't do.
@mydea mydea self-assigned this Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 76.59 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 67.95 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 61.59 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.21 KB (+0.07% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.7 KB (+0.01% 🔺)
@sentry/browser - Webpack (gzipped) 22.07 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.2 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 65.82 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 31.99 KB (-0.03% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 23.73 KB (-0.13% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 206.81 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 96.66 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 70.92 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 34.96 KB (-0.02% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.33 KB (+0.04% 🔺)
@sentry/react - Webpack (gzipped) 22.1 KB (+0.01% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.05 KB (+0.03% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 49.41 KB (+0.04% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 16.74 KB (+0.01% 🔺)

@mydea mydea merged commit f70128d into develop Jan 9, 2024
95 checks passed
@mydea mydea deleted the fn/scope-span branch January 9, 2024 12:26
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