@sentry-internal/tracing
Advanced tools
Comparing version 8.0.0-alpha.1 to 8.0.0-alpha.2
@@ -37,3 +37,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (!status) { | ||
rootSpan.setStatus(cancelledStatus); | ||
rootSpan.setStatus({ code: core.SPAN_STATUS_ERROR, message: cancelledStatus }); | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -178,6 +178,6 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// pageload should always start at timeOrigin (and needs to be in s, not ms) | ||
startTimestamp: utils.browserPerformanceTimeOrigin ? utils.browserPerformanceTimeOrigin / 1000 : undefined, | ||
origin: 'auto.pageload.browser', | ||
startTime: utils.browserPerformanceTimeOrigin ? utils.browserPerformanceTimeOrigin / 1000 : undefined, | ||
attributes: { | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.browser', | ||
}, | ||
@@ -208,5 +208,5 @@ }; | ||
name: types.WINDOW.location.pathname, | ||
origin: 'auto.navigation.browser', | ||
attributes: { | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.navigation.browser', | ||
}, | ||
@@ -213,0 +213,0 @@ }; |
@@ -43,3 +43,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
} else if (handlerData.error) { | ||
span.setStatus('internal_error'); | ||
span.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'internal_error' }); | ||
} | ||
@@ -46,0 +46,0 @@ span.end(); |
@@ -22,3 +22,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.IdleTransaction = core.IdleTransaction; | ||
exports.SpanStatus = core.SpanStatus; | ||
exports.Transaction = core.Transaction; | ||
@@ -25,0 +24,0 @@ exports.getActiveTransaction = core.getActiveTransaction; |
@@ -64,4 +64,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
[core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.prisma', | ||
...clientData, | ||
'db.operation': action, | ||
}, | ||
data: { ...clientData, 'db.operation': action }, | ||
}, | ||
@@ -68,0 +69,0 @@ () => next(params), |
@@ -1,2 +0,2 @@ | ||
import { getActiveSpan, getRootSpan, spanToJSON } from '@sentry/core'; | ||
import { getActiveSpan, getRootSpan, spanToJSON, SPAN_STATUS_ERROR } from '@sentry/core'; | ||
import { logger } from '@sentry/utils'; | ||
@@ -35,3 +35,3 @@ import { DEBUG_BUILD } from '../common/debug-build.js'; | ||
if (!status) { | ||
rootSpan.setStatus(cancelledStatus); | ||
rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: cancelledStatus }); | ||
} | ||
@@ -38,0 +38,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { TRACING_DEFAULTS, addTracingExtensions, spanToJSON, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getActiveSpan, getCurrentHub, startIdleTransaction, getActiveTransaction } from '@sentry/core'; | ||
import { TRACING_DEFAULTS, addTracingExtensions, spanToJSON, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getActiveSpan, getCurrentHub, startIdleTransaction, getActiveTransaction } from '@sentry/core'; | ||
import { logger, browserPerformanceTimeOrigin, addHistoryInstrumentationHandler, propagationContextFromHeaders, getDomElement } from '@sentry/utils'; | ||
@@ -176,6 +176,6 @@ import { DEBUG_BUILD } from '../common/debug-build.js'; | ||
// pageload should always start at timeOrigin (and needs to be in s, not ms) | ||
startTimestamp: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined, | ||
origin: 'auto.pageload.browser', | ||
startTime: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined, | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.browser', | ||
}, | ||
@@ -206,5 +206,5 @@ }; | ||
name: WINDOW.location.pathname, | ||
origin: 'auto.navigation.browser', | ||
attributes: { | ||
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url', | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.navigation.browser', | ||
}, | ||
@@ -211,0 +211,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { hasTracingEnabled, setHttpStatus, getCurrentScope, getClient, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getIsolationScope, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { hasTracingEnabled, setHttpStatus, SPAN_STATUS_ERROR, getCurrentScope, getClient, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getIsolationScope, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient } from '@sentry/core'; | ||
import { generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, isInstanceOf, BAGGAGE_HEADER_NAME } from '@sentry/utils'; | ||
@@ -41,3 +41,3 @@ | ||
} else if (handlerData.error) { | ||
span.setStatus('internal_error'); | ||
span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' }); | ||
} | ||
@@ -44,0 +44,0 @@ span.end(); |
@@ -1,2 +0,2 @@ | ||
export { IdleTransaction, SpanStatus, Transaction, getActiveTransaction, hasTracingEnabled, startIdleTransaction } from '@sentry/core'; | ||
export { IdleTransaction, Transaction, getActiveTransaction, hasTracingEnabled, startIdleTransaction } from '@sentry/core'; | ||
export { TRACEPARENT_REGEXP, stripUrlQueryAndFragment } from '@sentry/utils'; | ||
@@ -3,0 +3,0 @@ export { Express } from './node/integrations/express.js'; |
@@ -62,4 +62,5 @@ import { startSpan, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core'; | ||
[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.db.prisma', | ||
...clientData, | ||
'db.operation': action, | ||
}, | ||
data: { ...clientData, 'db.operation': action }, | ||
}, | ||
@@ -66,0 +67,0 @@ () => next(params), |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "8.0.0-alpha.1", | ||
"version": "8.0.0-alpha.2", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "8.0.0-alpha.1", | ||
"@sentry/types": "8.0.0-alpha.1", | ||
"@sentry/utils": "8.0.0-alpha.1" | ||
"@sentry/core": "8.0.0-alpha.2", | ||
"@sentry/types": "8.0.0-alpha.2", | ||
"@sentry/utils": "8.0.0-alpha.2" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -1,4 +0,3 @@ | ||
export { getActiveTransaction, hasTracingEnabled, IdleTransaction, SpanStatus, startIdleTransaction, Transaction, } from '@sentry/core'; | ||
export { SpanStatusType } from '@sentry/core'; | ||
export { getActiveTransaction, hasTracingEnabled, IdleTransaction, startIdleTransaction, Transaction, } from '@sentry/core'; | ||
export { stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from '@sentry/utils'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,4 +0,3 @@ | ||
export { getActiveTransaction, hasTracingEnabled, IdleTransaction, SpanStatus, startIdleTransaction, Transaction, } from '@sentry/core'; | ||
export type { SpanStatusType } from '@sentry/core'; | ||
export { getActiveTransaction, hasTracingEnabled, IdleTransaction, startIdleTransaction, Transaction, } from '@sentry/core'; | ||
export { stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from '@sentry/utils'; | ||
//# sourceMappingURL=index.d.ts.map |
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
1121947
+ Added@sentry/core@8.0.0-alpha.2(transitive)
+ Added@sentry/types@8.0.0-alpha.2(transitive)
+ Added@sentry/utils@8.0.0-alpha.2(transitive)
- Removed@sentry/core@8.0.0-alpha.1(transitive)
- Removed@sentry/types@8.0.0-alpha.1(transitive)
- Removed@sentry/utils@8.0.0-alpha.1(transitive)
Updated@sentry/core@8.0.0-alpha.2
Updated@sentry/types@8.0.0-alpha.2
Updated@sentry/utils@8.0.0-alpha.2