-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(core)!: Remove backwards compatible SentryCarrier type #14697
base: v9
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
import { SDK_VERSION } from './version'; | ||
|
||
interface SentryCarrier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this type was basically duplicated here - this comes from the days of core vs utils separation, I believe 😬
export function getGlobalSingleton<T>(name: keyof SentryCarrier, creator: () => T, obj?: unknown): T { | ||
const gbl = (obj || GLOBAL_OBJ) as InternalGlobal; | ||
const __SENTRY__ = (gbl.__SENTRY__ = gbl.__SENTRY__ || {}); | ||
export function getGlobalSingleton<Prop extends keyof SentryCarrier>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this more type safe and actually inferring types correctly for passed in stuff!
In order for us to have size-limit comparison etc, we need to ensure CI runs on v8 & v9 branches too.
With this PR, the default value for the `spans` option in the `httpIntegration` is changed to `false`, if `skipOpenTelemetrySetup: true` is configured. This is what you'd expect as a user, you do not want Sentry to register any OTEL instrumentation and emit any spans in this scenario. Closes #14675
I do not really think this is breaking or has any impact on any user code, but to be on the safe side, we can remove this in v9.
95a71c1
to
30d32a5
Compare
❌ 12 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
I do not really think this is breaking or has any impact on any user code, but to be on the safe side, we can remove this in v9.
The one actual breaking thing is to also move the
encodePolyfill
/decodePolyfill
code to the versioned carrier - this was before still on the global, making this a bit harder than necessary. In v9, this will have to be set on the versioned carrier the same as other things - cc @krystofwoldrich