@sentry-internal/tracing
Advanced tools
Comparing version 7.91.0 to 7.92.0
@@ -238,3 +238,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, span.toTraceparent(), sentryBaggageHeader); | ||
setHeaderOnXhr(xhr, core.spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
@@ -241,0 +241,0 @@ const client = core.getClient(); |
@@ -112,3 +112,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const sentryTraceHeader = span ? span.toTraceparent() : utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const sentryTraceHeader = span ? core.spanToTraceHeader(span) : utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = transaction | ||
@@ -115,0 +115,0 @@ ? transaction.getDynamicSamplingContext() |
@@ -300,3 +300,5 @@ var { | ||
transaction.setName(...utils.extractPathForTransaction(req, { path: true, method: true, customRoute: finalRoute })); | ||
const [name, source] = utils.extractPathForTransaction(req, { path: true, method: true, customRoute: finalRoute }); | ||
transaction.updateName(name); | ||
transaction.setMetadata({ source }); | ||
} | ||
@@ -330,2 +332,3 @@ } | ||
// add d flag for getting indices from regexp result | ||
// eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- regexp comes from express.js | ||
const pathRegex = new RegExp(regexp, `${regexp.flags}d`); | ||
@@ -332,0 +335,0 @@ /** |
@@ -62,3 +62,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
return core.trace( | ||
return core.startSpan( | ||
{ | ||
@@ -65,0 +65,0 @@ name: model ? `${model} ${action}` : action, |
@@ -1,2 +0,2 @@ | ||
import { hasTracingEnabled, getCurrentScope, getClient, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { hasTracingEnabled, getCurrentScope, spanToTraceHeader, getClient, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { addFetchInstrumentationHandler, addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY, dynamicSamplingContextToSentryBaggageHeader, generateSentryTraceHeader, BAGGAGE_HEADER_NAME, browserPerformanceTimeOrigin, stringMatchesSomePattern } from '@sentry/utils'; | ||
@@ -236,3 +236,3 @@ import { instrumentFetchRequest } from '../common/fetch.js'; | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, span.toTraceparent(), sentryBaggageHeader); | ||
setHeaderOnXhr(xhr, spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
@@ -239,0 +239,0 @@ const client = getClient(); |
@@ -1,2 +0,2 @@ | ||
import { hasTracingEnabled, getCurrentScope, getClient, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { hasTracingEnabled, getCurrentScope, getClient, spanToTraceHeader, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, isInstanceOf, BAGGAGE_HEADER_NAME } from '@sentry/utils'; | ||
@@ -110,3 +110,3 @@ | ||
const sentryTraceHeader = span ? span.toTraceparent() : generateSentryTraceHeader(traceId, undefined, sampled); | ||
const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = transaction | ||
@@ -113,0 +113,0 @@ ? transaction.getDynamicSamplingContext() |
@@ -295,3 +295,5 @@ import { _optionalChain } from '@sentry/utils'; | ||
transaction.setName(...extractPathForTransaction(req, { path: true, method: true, customRoute: finalRoute })); | ||
const [name, source] = extractPathForTransaction(req, { path: true, method: true, customRoute: finalRoute }); | ||
transaction.updateName(name); | ||
transaction.setMetadata({ source }); | ||
} | ||
@@ -325,2 +327,3 @@ } | ||
// add d flag for getting indices from regexp result | ||
// eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- regexp comes from express.js | ||
const pathRegex = new RegExp(regexp, `${regexp.flags}d`); | ||
@@ -327,0 +330,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { trace, getCurrentHub } from '@sentry/core'; | ||
import { startSpan, getCurrentHub } from '@sentry/core'; | ||
import { addNonEnumerableProperty, logger } from '@sentry/utils'; | ||
@@ -60,3 +60,3 @@ import { DEBUG_BUILD } from '../../common/debug-build.js'; | ||
return trace( | ||
return startSpan( | ||
{ | ||
@@ -63,0 +63,0 @@ name: model ? `${model} ${action}` : action, |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "7.91.0", | ||
"version": "7.92.0", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -12,2 +12,8 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
}, | ||
"files": [ | ||
"cjs", | ||
"esm", | ||
"types", | ||
"types-ts3.8" | ||
], | ||
"main": "cjs/index.js", | ||
@@ -27,5 +33,5 @@ "module": "esm/index.js", | ||
"dependencies": { | ||
"@sentry/core": "7.91.0", | ||
"@sentry/types": "7.91.0", | ||
"@sentry/utils": "7.91.0" | ||
"@sentry/core": "7.92.0", | ||
"@sentry/types": "7.92.0", | ||
"@sentry/utils": "7.92.0" | ||
}, | ||
@@ -32,0 +38,0 @@ "devDependencies": { |
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
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
1051182
8963
+ Added@sentry/core@7.92.0(transitive)
+ Added@sentry/types@7.92.0(transitive)
+ Added@sentry/utils@7.92.0(transitive)
- Removed@sentry/core@7.91.0(transitive)
- Removed@sentry/types@7.91.0(transitive)
- Removed@sentry/utils@7.91.0(transitive)
Updated@sentry/core@7.92.0
Updated@sentry/types@7.92.0
Updated@sentry/utils@7.92.0