@sentry-internal/tracing
Advanced tools
Comparing version
@@ -174,20 +174,24 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : ''; | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : ''; | ||
const { traceparentData, dynamicSamplingContext, propagationContext } = utils.tracingContextFromHeaders( | ||
sentryTrace, | ||
baggage, | ||
); | ||
let expandedContext; | ||
if (isPageloadTransaction) { | ||
const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : ''; | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = utils.tracingContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
}, | ||
trimEnd: true, | ||
}; | ||
} else { | ||
expandedContext = { | ||
...context, | ||
trimEnd: true, | ||
}; | ||
} | ||
const expandedContext = { | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
}, | ||
trimEnd: true, | ||
}; | ||
const modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext; | ||
@@ -209,11 +213,5 @@ | ||
this._latestRouteName = finalContext.name; | ||
this._latestRouteSource = getSource(finalContext); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromData = context.data && context.data[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromMetadata = finalContext.metadata && finalContext.metadata.source; | ||
this._latestRouteSource = sourceFromData || sourceFromMetadata; | ||
// eslint-disable-next-line deprecation/deprecation | ||
if (finalContext.sampled === false) { | ||
@@ -250,20 +248,2 @@ debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const scope = hub.getScope(); | ||
// If it's a pageload and there is a meta tag set | ||
// use the traceparentData as the propagation context | ||
if (isPageloadTransaction && traceparentData) { | ||
scope.setPropagationContext(propagationContext); | ||
} else { | ||
// Navigation transactions should set a new propagation context based on the | ||
// created idle transaction. | ||
scope.setPropagationContext({ | ||
traceId: idleTransaction.spanContext().traceId, | ||
spanId: idleTransaction.spanContext().spanId, | ||
parentSpanId: core.spanToJSON(idleTransaction).parent_span_id, | ||
sampled: core.spanIsSampled(idleTransaction), | ||
}); | ||
} | ||
idleTransaction.registerBeforeFinishCallback(transaction => { | ||
@@ -349,2 +329,12 @@ this._collectWebVitals(); | ||
function getSource(context) { | ||
const sourceFromAttributes = context.attributes && context.attributes[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromData = context.data && context.data[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromMetadata = context.metadata && context.metadata.source; | ||
return sourceFromAttributes || sourceFromData || sourceFromMetadata; | ||
} | ||
exports.BROWSER_TRACING_INTEGRATION_ID = BROWSER_TRACING_INTEGRATION_ID; | ||
@@ -351,0 +341,0 @@ exports.BrowserTracing = BrowserTracing; |
@@ -202,3 +202,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (span && sentryXhrData.status_code !== undefined) { | ||
span.setHttpStatus(sentryXhrData.status_code); | ||
core.setHttpStatus(span, sentryXhrData.status_code); | ||
span.end(); | ||
@@ -213,5 +213,8 @@ | ||
const scope = core.getCurrentScope(); | ||
const isolationScope = core.getIsolationScope(); | ||
const span = shouldCreateSpanResult | ||
? core.startInactiveSpan({ | ||
name: `${sentryXhrData.method} ${sentryXhrData.url}`, | ||
onlyIfParent: true, | ||
attributes: { | ||
@@ -221,6 +224,5 @@ type: 'xhr', | ||
url: sentryXhrData.url, | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser', | ||
}, | ||
name: `${sentryXhrData.method} ${sentryXhrData.url}`, | ||
op: 'http.client', | ||
origin: 'auto.http.browser', | ||
}) | ||
@@ -234,17 +236,18 @@ : undefined; | ||
if (xhr.setRequestHeader && shouldAttachHeaders(sentryXhrData.url)) { | ||
if (span) { | ||
const transaction = span && core.getRootSpan(span); | ||
const dynamicSamplingContext = transaction && core.getDynamicSamplingContextFromSpan(transaction); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, core.spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
const client = core.getClient(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTraceHeader = utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = | ||
dsc || (client ? core.getDynamicSamplingContextFromClient(traceId, client, scope) : undefined); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
const client = core.getClient(); | ||
if (xhr.setRequestHeader && shouldAttachHeaders(sentryXhrData.url) && client) { | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = span ? core.spanToTraceHeader(span) : utils.generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span ? core.getDynamicSamplingContextFromSpan(span) : core.getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
setHeaderOnXhr(xhr, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
@@ -251,0 +254,0 @@ |
@@ -31,3 +31,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (handlerData.response) { | ||
span.setHttpStatus(handlerData.response.status); | ||
core.setHttpStatus(span, handlerData.response.status); | ||
@@ -61,2 +61,4 @@ const contentLength = | ||
? core.startInactiveSpan({ | ||
name: `${method} ${url}`, | ||
onlyIfParent: true, | ||
attributes: { | ||
@@ -66,6 +68,5 @@ url, | ||
'http.method': method, | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin, | ||
}, | ||
name: `${method} ${url}`, | ||
op: 'http.client', | ||
origin: spanOrigin, | ||
}) | ||
@@ -110,14 +111,15 @@ : undefined; | ||
const transaction = span && core.getRootSpan(span); | ||
const isolationScope = core.getIsolationScope(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = span ? core.spanToTraceHeader(span) : utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = transaction | ||
? core.getDynamicSamplingContextFromSpan(transaction) | ||
: dsc | ||
? dsc | ||
: core.getDynamicSamplingContextFromClient(traceId, client, scope); | ||
const sentryTraceHeader = span ? core.spanToTraceHeader(span) : utils.generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span ? core.getDynamicSamplingContextFromSpan(span) : core.getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
@@ -124,0 +126,0 @@ const headers = |
@@ -14,2 +14,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const browsertracing = require('./browser/browsertracing.js'); | ||
const browserTracingIntegration = require('./browser/browserTracingIntegration.js'); | ||
const request = require('./browser/request.js'); | ||
@@ -43,2 +44,5 @@ const instrument = require('./browser/instrument.js'); | ||
exports.BrowserTracing = browsertracing.BrowserTracing; | ||
exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration; | ||
exports.startBrowserTracingNavigationSpan = browserTracingIntegration.startBrowserTracingNavigationSpan; | ||
exports.startBrowserTracingPageLoadSpan = browserTracingIntegration.startBrowserTracingPageLoadSpan; | ||
exports.defaultRequestInstrumentationOptions = request.defaultRequestInstrumentationOptions; | ||
@@ -45,0 +49,0 @@ exports.instrumentOutgoingRequests = request.instrumentOutgoingRequests; |
@@ -66,4 +66,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
name: model ? `${model} ${action}` : action, | ||
onlyIfParent: true, | ||
op: 'db.prisma', | ||
origin: 'auto.db.prisma', | ||
attributes: { | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.prisma', | ||
}, | ||
data: { ...clientData, 'db.operation': action }, | ||
@@ -70,0 +73,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { TRACING_DEFAULTS, addTracingExtensions, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, startIdleTransaction, spanToJSON, spanIsSampled, getActiveTransaction } from '@sentry/core'; | ||
import { TRACING_DEFAULTS, addTracingExtensions, startIdleTransaction, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getActiveTransaction } from '@sentry/core'; | ||
import { logger, tracingContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
@@ -172,20 +172,24 @@ import { DEBUG_BUILD } from '../common/debug-build.js'; | ||
const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : ''; | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : ''; | ||
const { traceparentData, dynamicSamplingContext, propagationContext } = tracingContextFromHeaders( | ||
sentryTrace, | ||
baggage, | ||
); | ||
let expandedContext; | ||
if (isPageloadTransaction) { | ||
const sentryTrace = isPageloadTransaction ? getMetaContent('sentry-trace') : ''; | ||
const baggage = isPageloadTransaction ? getMetaContent('baggage') : undefined; | ||
const { traceparentData, dynamicSamplingContext } = tracingContextFromHeaders(sentryTrace, baggage); | ||
expandedContext = { | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
}, | ||
trimEnd: true, | ||
}; | ||
} else { | ||
expandedContext = { | ||
...context, | ||
trimEnd: true, | ||
}; | ||
} | ||
const expandedContext = { | ||
...context, | ||
...traceparentData, | ||
metadata: { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...context.metadata, | ||
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext, | ||
}, | ||
trimEnd: true, | ||
}; | ||
const modifiedContext = typeof beforeNavigate === 'function' ? beforeNavigate(expandedContext) : expandedContext; | ||
@@ -207,11 +211,5 @@ | ||
this._latestRouteName = finalContext.name; | ||
this._latestRouteSource = getSource(finalContext); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromData = context.data && context.data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromMetadata = finalContext.metadata && finalContext.metadata.source; | ||
this._latestRouteSource = sourceFromData || sourceFromMetadata; | ||
// eslint-disable-next-line deprecation/deprecation | ||
if (finalContext.sampled === false) { | ||
@@ -248,20 +246,2 @@ DEBUG_BUILD && logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const scope = hub.getScope(); | ||
// If it's a pageload and there is a meta tag set | ||
// use the traceparentData as the propagation context | ||
if (isPageloadTransaction && traceparentData) { | ||
scope.setPropagationContext(propagationContext); | ||
} else { | ||
// Navigation transactions should set a new propagation context based on the | ||
// created idle transaction. | ||
scope.setPropagationContext({ | ||
traceId: idleTransaction.spanContext().traceId, | ||
spanId: idleTransaction.spanContext().spanId, | ||
parentSpanId: spanToJSON(idleTransaction).parent_span_id, | ||
sampled: spanIsSampled(idleTransaction), | ||
}); | ||
} | ||
idleTransaction.registerBeforeFinishCallback(transaction => { | ||
@@ -347,3 +327,13 @@ this._collectWebVitals(); | ||
function getSource(context) { | ||
const sourceFromAttributes = context.attributes && context.attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromData = context.data && context.data[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const sourceFromMetadata = context.metadata && context.metadata.source; | ||
return sourceFromAttributes || sourceFromData || sourceFromMetadata; | ||
} | ||
export { BROWSER_TRACING_INTEGRATION_ID, BrowserTracing, getMetaContent }; | ||
//# sourceMappingURL=browsertracing.js.map |
@@ -1,3 +0,3 @@ | ||
import { spanToJSON, hasTracingEnabled, getCurrentScope, startInactiveSpan, getRootSpan, getDynamicSamplingContextFromSpan, spanToTraceHeader, getClient, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { addFetchInstrumentationHandler, addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY, dynamicSamplingContextToSentryBaggageHeader, generateSentryTraceHeader, BAGGAGE_HEADER_NAME, browserPerformanceTimeOrigin, stringMatchesSomePattern } from '@sentry/utils'; | ||
import { spanToJSON, hasTracingEnabled, setHttpStatus, getCurrentScope, getIsolationScope, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getClient, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { addFetchInstrumentationHandler, addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY, generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, BAGGAGE_HEADER_NAME, browserPerformanceTimeOrigin, stringMatchesSomePattern } from '@sentry/utils'; | ||
import { instrumentFetchRequest } from '../common/fetch.js'; | ||
@@ -200,3 +200,3 @@ import { addPerformanceInstrumentationHandler } from './instrument.js'; | ||
if (span && sentryXhrData.status_code !== undefined) { | ||
span.setHttpStatus(sentryXhrData.status_code); | ||
setHttpStatus(span, sentryXhrData.status_code); | ||
span.end(); | ||
@@ -211,5 +211,8 @@ | ||
const scope = getCurrentScope(); | ||
const isolationScope = getIsolationScope(); | ||
const span = shouldCreateSpanResult | ||
? startInactiveSpan({ | ||
name: `${sentryXhrData.method} ${sentryXhrData.url}`, | ||
onlyIfParent: true, | ||
attributes: { | ||
@@ -219,6 +222,5 @@ type: 'xhr', | ||
url: sentryXhrData.url, | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser', | ||
}, | ||
name: `${sentryXhrData.method} ${sentryXhrData.url}`, | ||
op: 'http.client', | ||
origin: 'auto.http.browser', | ||
}) | ||
@@ -232,17 +234,18 @@ : undefined; | ||
if (xhr.setRequestHeader && shouldAttachHeaders(sentryXhrData.url)) { | ||
if (span) { | ||
const transaction = span && getRootSpan(span); | ||
const dynamicSamplingContext = transaction && getDynamicSamplingContextFromSpan(transaction); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
const client = getClient(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTraceHeader = generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = | ||
dsc || (client ? getDynamicSamplingContextFromClient(traceId, client, scope) : undefined); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeaderOnXhr(xhr, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
const client = getClient(); | ||
if (xhr.setRequestHeader && shouldAttachHeaders(sentryXhrData.url) && client) { | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
setHeaderOnXhr(xhr, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
@@ -249,0 +252,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { hasTracingEnabled, getCurrentScope, getClient, startInactiveSpan, getRootSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { hasTracingEnabled, setHttpStatus, getCurrentScope, getClient, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getIsolationScope, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, isInstanceOf, BAGGAGE_HEADER_NAME } from '@sentry/utils'; | ||
@@ -29,3 +29,3 @@ | ||
if (handlerData.response) { | ||
span.setHttpStatus(handlerData.response.status); | ||
setHttpStatus(span, handlerData.response.status); | ||
@@ -59,2 +59,4 @@ const contentLength = | ||
? startInactiveSpan({ | ||
name: `${method} ${url}`, | ||
onlyIfParent: true, | ||
attributes: { | ||
@@ -64,6 +66,5 @@ url, | ||
'http.method': method, | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin, | ||
}, | ||
name: `${method} ${url}`, | ||
op: 'http.client', | ||
origin: spanOrigin, | ||
}) | ||
@@ -108,14 +109,15 @@ : undefined; | ||
const transaction = span && getRootSpan(span); | ||
const isolationScope = getIsolationScope(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = transaction | ||
? getDynamicSamplingContextFromSpan(transaction) | ||
: dsc | ||
? dsc | ||
: getDynamicSamplingContextFromClient(traceId, client, scope); | ||
const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
@@ -122,0 +124,0 @@ const headers = |
@@ -12,2 +12,3 @@ export { IdleTransaction, Span, SpanStatus, Transaction, extractTraceparentData, getActiveTransaction, hasTracingEnabled, spanStatusfromHttpCode, startIdleTransaction } from '@sentry/core'; | ||
export { BROWSER_TRACING_INTEGRATION_ID, BrowserTracing } from './browser/browsertracing.js'; | ||
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan } from './browser/browserTracingIntegration.js'; | ||
export { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './browser/request.js'; | ||
@@ -14,0 +15,0 @@ export { addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, addPerformanceInstrumentationHandler } from './browser/instrument.js'; |
@@ -1,2 +0,2 @@ | ||
import { startSpan, getCurrentHub } from '@sentry/core'; | ||
import { startSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getCurrentHub } from '@sentry/core'; | ||
import { addNonEnumerableProperty, logger } from '@sentry/utils'; | ||
@@ -64,4 +64,7 @@ import { DEBUG_BUILD } from '../../common/debug-build.js'; | ||
name: model ? `${model} ${action}` : action, | ||
onlyIfParent: true, | ||
op: 'db.prisma', | ||
origin: 'auto.db.prisma', | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.prisma', | ||
}, | ||
data: { ...clientData, 'db.operation': action }, | ||
@@ -68,0 +71,0 @@ }, |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "7.98.0", | ||
"version": "7.99.0", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.98.0", | ||
"@sentry/types": "7.98.0", | ||
"@sentry/utils": "7.98.0" | ||
"@sentry/core": "7.99.0", | ||
"@sentry/types": "7.99.0", | ||
"@sentry/utils": "7.99.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
export * from '../exports'; | ||
export { RequestInstrumentationOptions } from './request'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID } from './browsertracing'; | ||
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration'; | ||
export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request'; | ||
export { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './instrument'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './exports'; | ||
export { Apollo, Express, GraphQL, Mongo, Mysql, Postgres, Prisma, lazyLoadedNodePerformanceMonitoringIntegrations, } from './node'; | ||
export { LazyLoadedIntegration } from './node'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser'; | ||
export { BrowserTracing, browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser'; | ||
export { addTracingHeadersToFetchRequest, instrumentFetchRequest } from './common/fetch'; | ||
@@ -6,0 +6,0 @@ export { RequestInstrumentationOptions } from './browser'; |
export * from '../exports'; | ||
export type { RequestInstrumentationOptions } from './request'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID } from './browsertracing'; | ||
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration'; | ||
export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request'; | ||
export { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './instrument'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './exports'; | ||
export { Apollo, Express, GraphQL, Mongo, Mysql, Postgres, Prisma, lazyLoadedNodePerformanceMonitoringIntegrations, } from './node'; | ||
export type { LazyLoadedIntegration } from './node'; | ||
export { BrowserTracing, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser'; | ||
export { BrowserTracing, browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser'; | ||
export { addTracingHeadersToFetchRequest, instrumentFetchRequest } from './common/fetch'; | ||
@@ -6,0 +6,0 @@ export type { RequestInstrumentationOptions } from './browser'; |
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
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1200890
8.57%273
2.63%10197
9.98%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated