@sentry-internal/tracing
Advanced tools
Comparing version 7.99.0 to 7.100.0
@@ -33,2 +33,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
* any routing library. This integration uses {@see IdleTransaction} to create transactions. | ||
* | ||
* @deprecated Use `browserTracingIntegration()` instead. | ||
*/ | ||
@@ -179,10 +181,12 @@ class BrowserTracing { | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = utils.tracingContextFromHeaders(sentryTrace, baggage); | ||
const { traceId, dsc, parentSpanId, sampled } = utils.propagationContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
traceId, | ||
parentSpanId, | ||
parentSampled: sampled, | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
dynamicSamplingContext: dsc, | ||
}, | ||
@@ -193,4 +197,4 @@ trimEnd: true, | ||
expandedContext = { | ||
trimEnd: true, | ||
...context, | ||
trimEnd: true, | ||
}; | ||
@@ -197,0 +201,0 @@ } |
@@ -83,10 +83,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = utils.tracingContextFromHeaders(sentryTrace, baggage); | ||
const { traceId, dsc, parentSpanId, sampled } = utils.propagationContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
traceId, | ||
parentSpanId, | ||
parentSampled: sampled, | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
dynamicSamplingContext: dsc, | ||
}, | ||
@@ -97,4 +99,4 @@ trimEnd: true, | ||
expandedContext = { | ||
trimEnd: true, | ||
...context, | ||
trimEnd: true, | ||
}; | ||
@@ -216,3 +218,5 @@ } | ||
origin: 'auto.pageload.browser', | ||
metadata: { source: 'url' }, | ||
attributes: { | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
}, | ||
}; | ||
@@ -244,3 +248,5 @@ startBrowserTracingPageLoadSpan(client, context); | ||
origin: 'auto.navigation.browser', | ||
metadata: { source: 'url' }, | ||
attributes: { | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
}, | ||
}; | ||
@@ -247,0 +253,0 @@ |
import { TRACING_DEFAULTS, addTracingExtensions, startIdleTransaction, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getActiveTransaction } from '@sentry/core'; | ||
import { logger, tracingContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
import { logger, propagationContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
import { DEBUG_BUILD } from '../common/debug-build.js'; | ||
@@ -31,2 +31,4 @@ import { registerBackgroundTabDetection } from './backgroundtab.js'; | ||
* any routing library. This integration uses {@see IdleTransaction} to create transactions. | ||
* | ||
* @deprecated Use `browserTracingIntegration()` instead. | ||
*/ | ||
@@ -177,10 +179,12 @@ class BrowserTracing { | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = tracingContextFromHeaders(sentryTrace, baggage); | ||
const { traceId, dsc, parentSpanId, sampled } = propagationContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
traceId, | ||
parentSpanId, | ||
parentSampled: sampled, | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
dynamicSamplingContext: dsc, | ||
}, | ||
@@ -191,4 +195,4 @@ trimEnd: true, | ||
expandedContext = { | ||
trimEnd: true, | ||
...context, | ||
trimEnd: true, | ||
}; | ||
@@ -195,0 +199,0 @@ } |
@@ -1,3 +0,3 @@ | ||
import { TRACING_DEFAULTS, addTracingExtensions, spanToJSON, getCurrentHub, startIdleTransaction, getActiveTransaction, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core'; | ||
import { logger, browserPerformanceTimeOrigin, addHistoryInstrumentationHandler, tracingContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
import { TRACING_DEFAULTS, addTracingExtensions, spanToJSON, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getCurrentHub, startIdleTransaction, getActiveTransaction } from '@sentry/core'; | ||
import { logger, browserPerformanceTimeOrigin, addHistoryInstrumentationHandler, propagationContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
import { DEBUG_BUILD } from '../common/debug-build.js'; | ||
@@ -81,10 +81,12 @@ import { registerBackgroundTabDetection } from './backgroundtab.js'; | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = tracingContextFromHeaders(sentryTrace, baggage); | ||
const { traceId, dsc, parentSpanId, sampled } = propagationContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
traceId, | ||
parentSpanId, | ||
parentSampled: sampled, | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
dynamicSamplingContext: dsc, | ||
}, | ||
@@ -95,4 +97,4 @@ trimEnd: true, | ||
expandedContext = { | ||
trimEnd: true, | ||
...context, | ||
trimEnd: true, | ||
}; | ||
@@ -214,3 +216,5 @@ } | ||
origin: 'auto.pageload.browser', | ||
metadata: { source: 'url' }, | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
}, | ||
}; | ||
@@ -242,3 +246,5 @@ startBrowserTracingPageLoadSpan(client, context); | ||
origin: 'auto.navigation.browser', | ||
metadata: { source: 'url' }, | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
}, | ||
}; | ||
@@ -245,0 +251,0 @@ |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "7.99.0", | ||
"version": "7.100.0", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.99.0", | ||
"@sentry/types": "7.99.0", | ||
"@sentry/utils": "7.99.0" | ||
"@sentry/core": "7.100.0", | ||
"@sentry/types": "7.100.0", | ||
"@sentry/utils": "7.100.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -109,2 +109,4 @@ import { Hub } from '@sentry/core'; | ||
* any routing library. This integration uses {@see IdleTransaction} to create transactions. | ||
* | ||
* @deprecated Use `browserTracingIntegration()` instead. | ||
*/ | ||
@@ -111,0 +113,0 @@ export declare class BrowserTracing implements Integration { |
export * from '../exports'; | ||
export { RequestInstrumentationOptions } from './request'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID } from './browsertracing'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID, } from './browsertracing'; | ||
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration'; | ||
@@ -5,0 +5,0 @@ export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request'; |
@@ -109,2 +109,4 @@ import type { Hub } from '@sentry/core'; | ||
* any routing library. This integration uses {@see IdleTransaction} to create transactions. | ||
* | ||
* @deprecated Use `browserTracingIntegration()` instead. | ||
*/ | ||
@@ -111,0 +113,0 @@ export declare class BrowserTracing implements Integration { |
export * from '../exports'; | ||
export type { RequestInstrumentationOptions } from './request'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID } from './browsertracing'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID, } from './browsertracing'; | ||
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration'; | ||
@@ -5,0 +5,0 @@ export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1201741
10221
+ Added@sentry/core@7.100.0(transitive)
+ Added@sentry/types@7.100.0(transitive)
+ Added@sentry/utils@7.100.0(transitive)
- Removed@sentry/core@7.99.0(transitive)
- Removed@sentry/types@7.99.0(transitive)
- Removed@sentry/utils@7.99.0(transitive)
Updated@sentry/core@7.100.0
Updated@sentry/types@7.100.0
Updated@sentry/utils@7.100.0