We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee6f6ac commit 8305b71Copy full SHA for 8305b71
packages/tracing/src/hubextensions.ts
@@ -153,8 +153,6 @@ function getDefaultSampleContext<T extends Transaction>(transaction: T): SampleC
153
const globalObject = getGlobalObject<WindowOrWorkerGlobalScope>();
154
155
if ('location' in globalObject) {
156
- // we take a copy of the location object rather than just a reference to it in case there's a navigation or
157
- // redirect in the instant between when the transaction starts and when the sampler is called
158
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
159
defaultSampleContext.location = { ...(globalObject as any).location };
160
}
0 commit comments