-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(tracing-internal): Deprecate
tracePropagationTargets
in `Browse…
…rTracing` (#8874) This PR deprecates `BrowserTracing`'s `tracePropagationTargets` option in favour of the top-level Sentry.init option. When introducing Tracing without Performance, we opted to [promote `tracePropagationTargets` to a top-level option](#8395). We deprecated the integration-level option in Node's `Http` integration but not in `BrowserTracing`. This patch fixes that.
- Loading branch information
Showing
4 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,9 +109,7 @@ describe('Sentry client SDK', () => { | |
it('Merges a user-provided BrowserTracing integration with the automatically added one', () => { | ||
init({ | ||
dsn: 'https://[email protected]/1337', | ||
integrations: [ | ||
new BrowserTracing({ tracePropagationTargets: ['myDomain.com'], startTransactionOnLocationChange: false }), | ||
], | ||
integrations: [new BrowserTracing({ finalTimeout: 10, startTransactionOnLocationChange: false })], | ||
enableTracing: true, | ||
}); | ||
|
||
|
@@ -126,8 +124,7 @@ describe('Sentry client SDK', () => { | |
expect(browserTracing).toBeDefined(); | ||
|
||
// This shows that the user-configured options are still here | ||
expect(options.tracePropagationTargets).toEqual(['myDomain.com']); | ||
expect(options.startTransactionOnLocationChange).toBe(false); | ||
expect(options.finalTimeout).toEqual(10); | ||
|
||
// But we force the routing instrumentation to be ours | ||
expect(options.routingInstrumentation).toEqual(svelteKitRoutingInstrumentation); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters