@sentry/core
Advanced tools
Comparing version 8.41.0 to 8.42.0
@@ -6,7 +6,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const is = require('../utils-hoist/is.js'); | ||
require('../utils-hoist/version.js'); | ||
require('../utils-hoist/debug-build.js'); | ||
require('../utils-hoist/logger.js'); | ||
require('../utils-hoist/time.js'); | ||
require('../utils-hoist/syncpromise.js'); | ||
const carrier = require('../carrier.js'); | ||
@@ -13,0 +8,0 @@ |
@@ -219,3 +219,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* @see SdkMetadata in @sentry/types | ||
* @see SdkMetadata | ||
* | ||
@@ -222,0 +222,0 @@ * @return The metadata of the SDK |
@@ -113,2 +113,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// TODO(v9): Use generateSpanId() instead of spanId | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { traceId, spanId, parentSpanId } = propagationContext; | ||
@@ -115,0 +117,0 @@ |
@@ -430,2 +430,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.generatePropagationContext = propagationContext.generatePropagationContext; | ||
exports.generateSpanId = propagationContext.generateSpanId; | ||
exports.generateTraceId = propagationContext.generateTraceId; | ||
exports.vercelWaitUntil = vercelWaitUntil.vercelWaitUntil; | ||
@@ -432,0 +434,0 @@ exports.SDK_VERSION = version.SDK_VERSION; |
@@ -20,3 +20,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
integrations.forEach(currentInstance => { | ||
integrations.forEach((currentInstance) => { | ||
const { name } = currentInstance; | ||
@@ -44,3 +44,3 @@ | ||
// We flag default instances, so that later we can tell them apart from any user-created instances of the same class | ||
defaultIntegrations.forEach(integration => { | ||
defaultIntegrations.forEach((integration) => { | ||
integration.isDefaultInstance = true; | ||
@@ -47,0 +47,0 @@ }); |
@@ -21,4 +21,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// Cast to any so that it can use Node.js timeout | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
// We adjust the type here to add the `unref()` part, as setInterval can technically return a number of a NodeJS.Timer. | ||
@@ -39,7 +38,4 @@ // SDKs are required to shift the flush interval by random() * rollup_in_seconds. | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this._interval = setInterval(() => this._flush(), constants.DEFAULT_FLUSH_INTERVAL) ; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
this._interval = setInterval(() => this._flush(), constants.DEFAULT_FLUSH_INTERVAL); | ||
if (this._interval.unref) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
this._interval.unref(); | ||
@@ -46,0 +42,0 @@ } |
@@ -12,4 +12,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const trace = require('../tracing/trace.js'); | ||
require('../utils-hoist/syncpromise.js'); | ||
require('../utils-hoist/version.js'); | ||
const handleCallbackErrors = require('../utils/handleCallbackErrors.js'); | ||
@@ -16,0 +14,0 @@ const constants = require('./constants.js'); |
@@ -78,3 +78,6 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
this._sdkProcessingMetadata = {}; | ||
this._propagationContext = propagationContext.generatePropagationContext(); | ||
this._propagationContext = { | ||
traceId: propagationContext.generateTraceId(), | ||
spanId: propagationContext.generateSpanId(), | ||
}; | ||
} | ||
@@ -362,3 +365,3 @@ | ||
this._attachments = []; | ||
this._propagationContext = propagationContext.generatePropagationContext(); | ||
this.setPropagationContext({ traceId: propagationContext.generateTraceId() }); | ||
@@ -456,4 +459,10 @@ this._notifyScopeListeners(); | ||
*/ | ||
setPropagationContext(context) { | ||
this._propagationContext = context; | ||
setPropagationContext( | ||
context, | ||
) { | ||
this._propagationContext = { | ||
// eslint-disable-next-line deprecation/deprecation | ||
spanId: propagationContext.generateSpanId(), | ||
...context, | ||
}; | ||
return this; | ||
@@ -557,6 +566,2 @@ } | ||
// NOTE: By exporting this here as const & type, instead of doing `export class`, | ||
// We can get the correct class when importing from `@sentry/core`, but the original type (from `@sentry/types`) | ||
// This is helpful for interop, e.g. when doing `import type { Scope } from '@sentry/node';` (which re-exports this) | ||
/** | ||
@@ -563,0 +568,0 @@ * Holds additional event information. |
@@ -5,7 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const semanticAttributes = require('../semanticAttributes.js'); | ||
require('../utils-hoist/version.js'); | ||
require('../utils-hoist/debug-build.js'); | ||
const logger = require('../utils-hoist/logger.js'); | ||
require('../utils-hoist/time.js'); | ||
require('../utils-hoist/syncpromise.js'); | ||
const spanUtils = require('../utils/spanUtils.js'); | ||
@@ -12,0 +8,0 @@ |
@@ -258,3 +258,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
return currentScopes.withScope(scope => { | ||
scope.setPropagationContext(propagationContext.generatePropagationContext()); | ||
scope.setPropagationContext({ traceId: propagationContext.generateTraceId() }); | ||
debugBuild.DEBUG_BUILD && logger.logger.info(`Starting a new trace with id ${scope.getPropagationContext().traceId}`); | ||
@@ -261,0 +261,0 @@ return withActiveSpan(null, callback); |
@@ -48,3 +48,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const filteredEnvelope = envelope.createEnvelope(envelope$1[0], filteredEnvelopeItems ); | ||
@@ -51,0 +50,0 @@ |
@@ -16,6 +16,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function isElectronNodeRenderer() { | ||
return ( | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any | ||
(worldwide.GLOBAL_OBJ ).process !== undefined && ((worldwide.GLOBAL_OBJ ).process ).type === 'renderer' | ||
); | ||
const process = (worldwide.GLOBAL_OBJ ).process; | ||
return !!process && process.type === 'renderer'; | ||
} | ||
@@ -22,0 +20,0 @@ |
@@ -195,4 +195,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function checkOrSetAlreadyCaught(exception) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
if (exception && (exception ).__sentry_captured__) { | ||
if (isAlreadyCaptured(exception)) { | ||
return true; | ||
@@ -212,2 +211,8 @@ } | ||
function isAlreadyCaptured(exception) { | ||
try { | ||
return (exception ).__sentry_captured__; | ||
} catch (e) {} // eslint-disable-line no-empty | ||
} | ||
/** | ||
@@ -214,0 +219,0 @@ * Checks whether the given input is already an array, and if it isn't, wraps it in one. |
@@ -29,2 +29,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
* @param request The module path to resolve | ||
* @deprecated This function will be removed in the next major version. | ||
*/ | ||
@@ -54,2 +55,3 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
try { | ||
// eslint-disable-next-line deprecation/deprecation | ||
mod = dynamicRequire(module, moduleName); | ||
@@ -62,3 +64,5 @@ } catch (e) { | ||
try { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { cwd } = dynamicRequire(module, 'process'); | ||
// eslint-disable-next-line deprecation/deprecation | ||
mod = dynamicRequire(module, `${cwd()}/node_modules/${moduleName}`) ; | ||
@@ -65,0 +69,0 @@ } catch (e) { |
@@ -83,2 +83,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
function getOriginalFunction(func) { | ||
@@ -282,3 +283,4 @@ return func.__sentry_original__; | ||
switch (true) { | ||
case wat === undefined || wat === null: | ||
// this will catch both undefined and null | ||
case wat == undefined: | ||
objectified = new String(wat); | ||
@@ -285,0 +287,0 @@ break; |
@@ -6,12 +6,30 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* Returns a new minimal propagation context | ||
* Returns a new minimal propagation context. | ||
* | ||
* @deprecated Use `generateTraceId` and `generateSpanId` instead. | ||
*/ | ||
function generatePropagationContext() { | ||
return { | ||
traceId: misc.uuid4(), | ||
spanId: misc.uuid4().substring(16), | ||
traceId: generateTraceId(), | ||
spanId: generateSpanId(), | ||
}; | ||
} | ||
/** | ||
* Generate a random, valid trace ID. | ||
*/ | ||
function generateTraceId() { | ||
return misc.uuid4(); | ||
} | ||
/** | ||
* Generate a random, valid span ID. | ||
*/ | ||
function generateSpanId() { | ||
return misc.uuid4().substring(16); | ||
} | ||
exports.generatePropagationContext = generatePropagationContext; | ||
exports.generateSpanId = generateSpanId; | ||
exports.generateTraceId = generateTraceId; | ||
//# sourceMappingURL=propagationContext.js.map |
@@ -65,2 +65,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only. | ||
* | ||
* @deprecated This variable will be removed in the next major version. | ||
*/ | ||
@@ -80,2 +82,3 @@ exports._browserPerformanceTimeOriginMode = void 0; | ||
if (!performance || !performance.now) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
exports._browserPerformanceTimeOriginMode = 'none'; | ||
@@ -110,5 +113,7 @@ return undefined; | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
exports._browserPerformanceTimeOriginMode = 'timeOrigin'; | ||
return performance.timeOrigin; | ||
} else { | ||
// eslint-disable-next-line deprecation/deprecation | ||
exports._browserPerformanceTimeOriginMode = 'navigationStart'; | ||
@@ -120,2 +125,3 @@ return navigationStart; | ||
// Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date. | ||
// eslint-disable-next-line deprecation/deprecation | ||
exports._browserPerformanceTimeOriginMode = 'dateNow'; | ||
@@ -122,0 +128,0 @@ return dateNow; |
@@ -59,3 +59,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (!traceparentData || !traceparentData.traceId) { | ||
return propagationContext.generatePropagationContext(); | ||
return { traceId: propagationContext.generateTraceId(), spanId: propagationContext.generateSpanId() }; | ||
} | ||
@@ -65,3 +65,3 @@ | ||
const virtualSpanId = misc.uuid4().substring(16); | ||
const virtualSpanId = propagationContext.generateSpanId(); | ||
@@ -68,0 +68,0 @@ return { |
@@ -5,5 +5,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const SDK_VERSION = "8.41.0" ; | ||
const SDK_VERSION = "8.42.0" ; | ||
exports.SDK_VERSION = SDK_VERSION; | ||
//# sourceMappingURL=version.js.map |
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const dynamicSamplingContext = require('../tracing/dynamicSamplingContext.js'); | ||
require('../utils-hoist/version.js'); | ||
require('../utils-hoist/debug-build.js'); | ||
require('../utils-hoist/logger.js'); | ||
const object = require('../utils-hoist/object.js'); | ||
require('../utils-hoist/time.js'); | ||
require('../utils-hoist/syncpromise.js'); | ||
const merge = require('./merge.js'); | ||
@@ -11,0 +6,0 @@ const spanUtils = require('./spanUtils.js'); |
@@ -16,3 +16,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const dynamicSamplingContext = require('../tracing/dynamicSamplingContext.js'); | ||
require('../utils-hoist/syncpromise.js'); | ||
const baggage = require('../utils-hoist/baggage.js'); | ||
@@ -65,2 +64,4 @@ | ||
function scopeToTraceHeader(scope) { | ||
// TODO(v9): Use generateSpanId() instead of spanId | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { traceId, sampled, spanId } = scope.getPropagationContext(); | ||
@@ -67,0 +68,0 @@ return tracing.generateSentryTraceHeader(traceId, spanId, sampled); |
import { getDefaultCurrentScope, getDefaultIsolationScope } from '../defaultScopes.js'; | ||
import { Scope } from '../scope.js'; | ||
import { isThenable } from '../utils-hoist/is.js'; | ||
import '../utils-hoist/version.js'; | ||
import '../utils-hoist/debug-build.js'; | ||
import '../utils-hoist/logger.js'; | ||
import '../utils-hoist/time.js'; | ||
import '../utils-hoist/syncpromise.js'; | ||
import { getMainCarrier, getSentryCarrier } from '../carrier.js'; | ||
@@ -10,0 +5,0 @@ |
@@ -217,3 +217,3 @@ import { getEnvelopeEndpointWithUrlEncodedAuth } from './api.js'; | ||
/** | ||
* @see SdkMetadata in @sentry/types | ||
* @see SdkMetadata | ||
* | ||
@@ -220,0 +220,0 @@ * @return The metadata of the SDK |
@@ -111,2 +111,4 @@ import { getAsyncContextStrategy } from './asyncContext/index.js'; | ||
// TODO(v9): Use generateSpanId() instead of spanId | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { traceId, spanId, parentSpanId } = propagationContext; | ||
@@ -113,0 +115,0 @@ |
@@ -109,3 +109,3 @@ export { registerSpanErrorInstrumentation } from './tracing/errors.js'; | ||
export { LRUMap } from './utils-hoist/lru.js'; | ||
export { generatePropagationContext } from './utils-hoist/propagationContext.js'; | ||
export { generatePropagationContext, generateSpanId, generateTraceId } from './utils-hoist/propagationContext.js'; | ||
export { vercelWaitUntil } from './utils-hoist/vercelWaitUntil.js'; | ||
@@ -112,0 +112,0 @@ export { SDK_VERSION } from './utils-hoist/version.js'; |
@@ -18,3 +18,3 @@ import { getClient } from './currentScopes.js'; | ||
integrations.forEach(currentInstance => { | ||
integrations.forEach((currentInstance) => { | ||
const { name } = currentInstance; | ||
@@ -42,3 +42,3 @@ | ||
// We flag default instances, so that later we can tell them apart from any user-created instances of the same class | ||
defaultIntegrations.forEach(integration => { | ||
defaultIntegrations.forEach((integration) => { | ||
integration.isDefaultInstance = true; | ||
@@ -45,0 +45,0 @@ }); |
@@ -19,4 +19,3 @@ import { timestampInSeconds } from '../utils-hoist/time.js'; | ||
// Cast to any so that it can use Node.js timeout | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
// We adjust the type here to add the `unref()` part, as setInterval can technically return a number of a NodeJS.Timer. | ||
@@ -37,7 +36,4 @@ // SDKs are required to shift the flush interval by random() * rollup_in_seconds. | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this._interval = setInterval(() => this._flush(), DEFAULT_FLUSH_INTERVAL) ; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
this._interval = setInterval(() => this._flush(), DEFAULT_FLUSH_INTERVAL); | ||
if (this._interval.unref) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
this._interval.unref(); | ||
@@ -44,0 +40,0 @@ } |
@@ -10,4 +10,2 @@ import { getClient } from '../currentScopes.js'; | ||
import { startSpanManual } from '../tracing/trace.js'; | ||
import '../utils-hoist/syncpromise.js'; | ||
import '../utils-hoist/version.js'; | ||
import { handleCallbackErrors } from '../utils/handleCallbackErrors.js'; | ||
@@ -14,0 +12,0 @@ import { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, SET_METRIC_TYPE, GAUGE_METRIC_TYPE } from './constants.js'; |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"8.41.0","sideEffects":false} | ||
{"type":"module","version":"8.42.0","sideEffects":false} |
@@ -5,3 +5,3 @@ import { updateSession } from './session.js'; | ||
import { uuid4 } from './utils-hoist/misc.js'; | ||
import { generatePropagationContext } from './utils-hoist/propagationContext.js'; | ||
import { generateTraceId, generateSpanId } from './utils-hoist/propagationContext.js'; | ||
import { dateTimestampInSeconds } from './utils-hoist/time.js'; | ||
@@ -77,3 +77,6 @@ import { merge } from './utils/merge.js'; | ||
this._sdkProcessingMetadata = {}; | ||
this._propagationContext = generatePropagationContext(); | ||
this._propagationContext = { | ||
traceId: generateTraceId(), | ||
spanId: generateSpanId(), | ||
}; | ||
} | ||
@@ -361,3 +364,3 @@ | ||
this._attachments = []; | ||
this._propagationContext = generatePropagationContext(); | ||
this.setPropagationContext({ traceId: generateTraceId() }); | ||
@@ -455,4 +458,10 @@ this._notifyScopeListeners(); | ||
*/ | ||
setPropagationContext(context) { | ||
this._propagationContext = context; | ||
setPropagationContext( | ||
context, | ||
) { | ||
this._propagationContext = { | ||
// eslint-disable-next-line deprecation/deprecation | ||
spanId: generateSpanId(), | ||
...context, | ||
}; | ||
return this; | ||
@@ -556,6 +565,2 @@ } | ||
// NOTE: By exporting this here as const & type, instead of doing `export class`, | ||
// We can get the correct class when importing from `@sentry/core`, but the original type (from `@sentry/types`) | ||
// This is helpful for interop, e.g. when doing `import type { Scope } from '@sentry/node';` (which re-exports this) | ||
/** | ||
@@ -562,0 +567,0 @@ * Holds additional event information. |
import { DEBUG_BUILD } from '../debug-build.js'; | ||
import { SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT } from '../semanticAttributes.js'; | ||
import '../utils-hoist/version.js'; | ||
import '../utils-hoist/debug-build.js'; | ||
import { logger } from '../utils-hoist/logger.js'; | ||
import '../utils-hoist/time.js'; | ||
import '../utils-hoist/syncpromise.js'; | ||
import { getRootSpan, getActiveSpan } from '../utils/spanUtils.js'; | ||
@@ -9,0 +5,0 @@ |
@@ -7,3 +7,3 @@ import { getMainCarrier } from '../carrier.js'; | ||
import { logger } from '../utils-hoist/logger.js'; | ||
import { generatePropagationContext } from '../utils-hoist/propagationContext.js'; | ||
import { generateTraceId } from '../utils-hoist/propagationContext.js'; | ||
import { propagationContextFromHeaders } from '../utils-hoist/tracing.js'; | ||
@@ -257,3 +257,3 @@ import { handleCallbackErrors } from '../utils/handleCallbackErrors.js'; | ||
return withScope(scope => { | ||
scope.setPropagationContext(generatePropagationContext()); | ||
scope.setPropagationContext({ traceId: generateTraceId() }); | ||
DEBUG_BUILD && logger.info(`Starting a new trace with id ${scope.getPropagationContext().traceId}`); | ||
@@ -260,0 +260,0 @@ return withActiveSpan(null, callback); |
@@ -46,3 +46,2 @@ import { DEBUG_BUILD } from '../debug-build.js'; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const filteredEnvelope = createEnvelope(envelope[0], filteredEnvelopeItems ); | ||
@@ -49,0 +48,0 @@ |
@@ -14,6 +14,4 @@ import { isNodeEnv } from './node.js'; | ||
function isElectronNodeRenderer() { | ||
return ( | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any | ||
(GLOBAL_OBJ ).process !== undefined && ((GLOBAL_OBJ ).process ).type === 'renderer' | ||
); | ||
const process = (GLOBAL_OBJ ).process; | ||
return !!process && process.type === 'renderer'; | ||
} | ||
@@ -20,0 +18,0 @@ |
@@ -193,4 +193,3 @@ import { addNonEnumerableProperty } from './object.js'; | ||
function checkOrSetAlreadyCaught(exception) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
if (exception && (exception ).__sentry_captured__) { | ||
if (isAlreadyCaptured(exception)) { | ||
return true; | ||
@@ -210,2 +209,8 @@ } | ||
function isAlreadyCaptured(exception) { | ||
try { | ||
return (exception ).__sentry_captured__; | ||
} catch (e) {} // eslint-disable-line no-empty | ||
} | ||
/** | ||
@@ -212,0 +217,0 @@ * Checks whether the given input is already an array, and if it isn't, wraps it in one. |
@@ -27,2 +27,3 @@ import { isBrowserBundle } from './env.js'; | ||
* @param request The module path to resolve | ||
* @deprecated This function will be removed in the next major version. | ||
*/ | ||
@@ -52,2 +53,3 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
try { | ||
// eslint-disable-next-line deprecation/deprecation | ||
mod = dynamicRequire(module, moduleName); | ||
@@ -60,3 +62,5 @@ } catch (e) { | ||
try { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { cwd } = dynamicRequire(module, 'process'); | ||
// eslint-disable-next-line deprecation/deprecation | ||
mod = dynamicRequire(module, `${cwd()}/node_modules/${moduleName}`) ; | ||
@@ -63,0 +67,0 @@ } catch (e) { |
@@ -81,2 +81,3 @@ import { htmlTreeAsString } from './browser.js'; | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
function getOriginalFunction(func) { | ||
@@ -280,3 +281,4 @@ return func.__sentry_original__; | ||
switch (true) { | ||
case wat === undefined || wat === null: | ||
// this will catch both undefined and null | ||
case wat == undefined: | ||
objectified = new String(wat); | ||
@@ -283,0 +285,0 @@ break; |
import { uuid4 } from './misc.js'; | ||
/** | ||
* Returns a new minimal propagation context | ||
* Returns a new minimal propagation context. | ||
* | ||
* @deprecated Use `generateTraceId` and `generateSpanId` instead. | ||
*/ | ||
function generatePropagationContext() { | ||
return { | ||
traceId: uuid4(), | ||
spanId: uuid4().substring(16), | ||
traceId: generateTraceId(), | ||
spanId: generateSpanId(), | ||
}; | ||
} | ||
export { generatePropagationContext }; | ||
/** | ||
* Generate a random, valid trace ID. | ||
*/ | ||
function generateTraceId() { | ||
return uuid4(); | ||
} | ||
/** | ||
* Generate a random, valid span ID. | ||
*/ | ||
function generateSpanId() { | ||
return uuid4().substring(16); | ||
} | ||
export { generatePropagationContext, generateSpanId, generateTraceId }; | ||
//# sourceMappingURL=propagationContext.js.map |
@@ -63,2 +63,4 @@ import { GLOBAL_OBJ } from './worldwide.js'; | ||
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only. | ||
* | ||
* @deprecated This variable will be removed in the next major version. | ||
*/ | ||
@@ -78,2 +80,3 @@ let _browserPerformanceTimeOriginMode; | ||
if (!performance || !performance.now) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
_browserPerformanceTimeOriginMode = 'none'; | ||
@@ -108,5 +111,7 @@ return undefined; | ||
if (timeOriginDelta <= navigationStartDelta) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
_browserPerformanceTimeOriginMode = 'timeOrigin'; | ||
return performance.timeOrigin; | ||
} else { | ||
// eslint-disable-next-line deprecation/deprecation | ||
_browserPerformanceTimeOriginMode = 'navigationStart'; | ||
@@ -118,2 +123,3 @@ return navigationStart; | ||
// Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date. | ||
// eslint-disable-next-line deprecation/deprecation | ||
_browserPerformanceTimeOriginMode = 'dateNow'; | ||
@@ -120,0 +126,0 @@ return dateNow; |
import { baggageHeaderToDynamicSamplingContext } from './baggage.js'; | ||
import { uuid4 } from './misc.js'; | ||
import { generatePropagationContext } from './propagationContext.js'; | ||
import { generateTraceId, generateSpanId } from './propagationContext.js'; | ||
@@ -57,3 +57,3 @@ // eslint-disable-next-line @sentry-internal/sdk/no-regexp-constructor -- RegExp is used for readability here | ||
if (!traceparentData || !traceparentData.traceId) { | ||
return generatePropagationContext(); | ||
return { traceId: generateTraceId(), spanId: generateSpanId() }; | ||
} | ||
@@ -63,3 +63,3 @@ | ||
const virtualSpanId = uuid4().substring(16); | ||
const virtualSpanId = generateSpanId(); | ||
@@ -66,0 +66,0 @@ return { |
// This is a magic string replaced by rollup | ||
const SDK_VERSION = "8.41.0" ; | ||
const SDK_VERSION = "8.42.0" ; | ||
export { SDK_VERSION }; | ||
//# sourceMappingURL=version.js.map |
import { getDynamicSamplingContextFromSpan } from '../tracing/dynamicSamplingContext.js'; | ||
import '../utils-hoist/version.js'; | ||
import '../utils-hoist/debug-build.js'; | ||
import '../utils-hoist/logger.js'; | ||
import { dropUndefinedKeys } from '../utils-hoist/object.js'; | ||
import '../utils-hoist/time.js'; | ||
import '../utils-hoist/syncpromise.js'; | ||
import { merge } from './merge.js'; | ||
@@ -9,0 +4,0 @@ import { spanToTraceContext, getRootSpan, spanToJSON } from './spanUtils.js'; |
@@ -14,3 +14,2 @@ import { getAsyncContextStrategy } from '../asyncContext/index.js'; | ||
import { getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromScope } from '../tracing/dynamicSamplingContext.js'; | ||
import '../utils-hoist/syncpromise.js'; | ||
import { dynamicSamplingContextToSentryBaggageHeader } from '../utils-hoist/baggage.js'; | ||
@@ -63,2 +62,4 @@ | ||
function scopeToTraceHeader(scope) { | ||
// TODO(v9): Use generateSpanId() instead of spanId | ||
// eslint-disable-next-line deprecation/deprecation | ||
const { traceId, sampled, spanId } = scope.getPropagationContext(); | ||
@@ -65,0 +66,0 @@ return generateSentryTraceHeader(traceId, spanId, sampled); |
@@ -1,2 +0,2 @@ | ||
import { DsnComponents, DsnLike, SdkInfo } from '@sentry/types'; | ||
import { DsnComponents, DsnLike, SdkInfo } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns the envelope endpoint URL with auth in the query string. |
@@ -1,2 +0,2 @@ | ||
import { Client, Scope as ScopeInterface } from '@sentry/types'; | ||
import { Client, Scope as ScopeInterface } from '../types-hoist'; | ||
import { AsyncContextStrategy } from './types'; | ||
@@ -3,0 +3,0 @@ interface Layer { |
@@ -1,2 +0,2 @@ | ||
import { Scope } from '@sentry/types'; | ||
import { Scope } from '../types-hoist'; | ||
import { getTraceData } from '../utils/traceData'; | ||
@@ -3,0 +3,0 @@ import { startInactiveSpan, startSpan, startSpanManual, suppressTracing, withActiveSpan } from './../tracing/trace'; |
@@ -1,2 +0,2 @@ | ||
import { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from '@sentry/types'; | ||
import { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from './types-hoist'; | ||
import { IntegrationIndex } from './integration'; | ||
@@ -80,3 +80,3 @@ import { Scope } from './scope'; | ||
/** | ||
* @see SdkMetadata in @sentry/types | ||
* @see SdkMetadata | ||
* | ||
@@ -246,3 +246,3 @@ * @return The metadata of the SDK | ||
*/ | ||
protected _prepareEvent(event: Event, hint: EventHint, currentScope?: import("@sentry/types").Scope, isolationScope?: import("@sentry/types").Scope): PromiseLike<Event | null>; | ||
protected _prepareEvent(event: Event, hint: EventHint, currentScope?: import("./types-hoist").Scope, isolationScope?: import("./types-hoist").Scope): PromiseLike<Event | null>; | ||
/** | ||
@@ -249,0 +249,0 @@ * Processes the event and logs an error in case of rejection |
@@ -1,2 +0,2 @@ | ||
import { Breadcrumb, BreadcrumbHint } from '@sentry/types'; | ||
import { Breadcrumb, BreadcrumbHint } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Records a new breadcrumb which will be attached to future events. |
@@ -1,4 +0,4 @@ | ||
import { Client, Integration, MetricsAggregator, Scope } from '@sentry/types'; | ||
import { AsyncContextStack } from './asyncContext/stackStrategy'; | ||
import { AsyncContextStrategy } from './asyncContext/types'; | ||
import { Client, Integration, MetricsAggregator, Scope } from './types-hoist'; | ||
/** | ||
@@ -5,0 +5,0 @@ * An object that contains globally accessible properties and maintains a scope stack. |
@@ -1,2 +0,2 @@ | ||
import { CheckInEnvelope, DsnComponents, DynamicSamplingContext, SdkMetadata, SerializedCheckIn } from '@sentry/types'; | ||
import { CheckInEnvelope, DsnComponents, DynamicSamplingContext, SdkMetadata, SerializedCheckIn } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Create envelope from check in item. |
@@ -1,3 +0,2 @@ | ||
import { Scope, TraceContext } from '@sentry/types'; | ||
import { Client } from '@sentry/types'; | ||
import { Client, Scope, TraceContext } from './types-hoist'; | ||
/** | ||
@@ -4,0 +3,0 @@ * Get the currently active scope. |
@@ -1,2 +0,2 @@ | ||
import { Scope } from '@sentry/types'; | ||
import { Scope } from './types-hoist'; | ||
/** Get the default current scope. */ | ||
@@ -3,0 +3,0 @@ export declare function getDefaultCurrentScope(): Scope; |
@@ -1,3 +0,3 @@ | ||
import { Client, DsnComponents, Event, EventEnvelope, SdkMetadata, Session, SessionAggregates, SessionEnvelope, SpanEnvelope } from '@sentry/types'; | ||
import { SentrySpan } from './tracing/sentrySpan'; | ||
import { Client, DsnComponents, Event, EventEnvelope, SdkMetadata, Session, SessionAggregates, SessionEnvelope, SpanEnvelope } from './types-hoist'; | ||
/** Creates an envelope from a Session */ | ||
@@ -4,0 +4,0 @@ export declare function createSessionEnvelope(session: Session | SessionAggregates, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): SessionEnvelope; |
@@ -1,2 +0,2 @@ | ||
import { Event, EventHint, EventProcessor } from '@sentry/types'; | ||
import { Event, EventHint, EventProcessor } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Process an array of event processors, returning the processed event (or `null` if the event was dropped). |
@@ -1,2 +0,2 @@ | ||
import { CaptureContext, CheckIn, Event, EventHint, EventProcessor, Extra, Extras, MonitorConfig, Primitive, Session, SessionContext, SeverityLevel, User } from '@sentry/types'; | ||
import { CaptureContext, CheckIn, Event, EventHint, EventProcessor, Extra, Extras, MonitorConfig, Primitive, Session, SessionContext, SeverityLevel, User } from './types-hoist'; | ||
import { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { EventHint, SendFeedbackParams } from '@sentry/types'; | ||
import { EventHint, SendFeedbackParams } from './types-hoist'; | ||
/** | ||
@@ -7,3 +7,3 @@ * Send user feedback to Sentry. | ||
includeReplay?: boolean; | ||
}, scope?: import("@sentry/types").Scope): string; | ||
}, scope?: import("./types-hoist").Scope): string; | ||
//# sourceMappingURL=feedback.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types'; | ||
import { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from './types-hoist'; | ||
type PolymorphicRequestHeaders = Record<string, string | undefined> | Array<[ | ||
@@ -3,0 +3,0 @@ string, |
@@ -1,2 +0,2 @@ | ||
import { Hub } from '@sentry/types'; | ||
import { Hub } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This is for legacy reasons, and returns a proxy object instead of a hub to be used. |
@@ -57,3 +57,2 @@ export { ClientClass as SentryCoreCurrentScopes } from './sdk'; | ||
export { profiler } from './profiling'; | ||
export { MetricData } from '@sentry/types'; | ||
export { metricsDefault } from './metrics/exports-default'; | ||
@@ -67,2 +66,3 @@ export { BrowserMetricsAggregator } from './metrics/browser-aggregator'; | ||
export * from './utils-hoist/index'; | ||
export * from './types-hoist/index'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,7 +0,2 @@ | ||
import { Client, Integration, IntegrationFn, Options } from '@sentry/types'; | ||
declare module '@sentry/types' { | ||
interface Integration { | ||
isDefaultInstance?: boolean; | ||
} | ||
} | ||
import { Client, Integration, IntegrationFn, Options } from './types-hoist'; | ||
export declare const installedIntegrations: string[]; | ||
@@ -8,0 +3,0 @@ /** Map of integrations assigned to a client */ |
@@ -7,4 +7,4 @@ interface CaptureConsoleOptions { | ||
*/ | ||
export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=captureconsole.d.ts.map |
@@ -14,4 +14,4 @@ interface DebugOptions { | ||
*/ | ||
export declare const debugIntegration: (options?: DebugOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const debugIntegration: (options?: DebugOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=debug.d.ts.map |
@@ -1,8 +0,8 @@ | ||
import { Event } from '@sentry/types'; | ||
import { Event } from '../types-hoist'; | ||
/** | ||
* Deduplication filter. | ||
*/ | ||
export declare const dedupeIntegration: () => import("@sentry/types").Integration; | ||
export declare const dedupeIntegration: () => import("../types-hoist").Integration; | ||
/** only exported for tests. */ | ||
export declare function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean; | ||
//# sourceMappingURL=dedupe.d.ts.map |
@@ -13,4 +13,4 @@ interface ExtraErrorDataOptions { | ||
} | ||
export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("@sentry/types").Integration; | ||
export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=extraerrordata.d.ts.map |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export declare const functionToStringIntegration: () => import("@sentry/types").Integration; | ||
export declare const functionToStringIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=functiontostring.d.ts.map |
@@ -10,3 +10,3 @@ /** Options for the InboundFilters integration */ | ||
} | ||
export declare const inboundFiltersIntegration: (options?: Partial<InboundFiltersOptions> | undefined) => import("@sentry/types").Integration; | ||
export declare const inboundFiltersIntegration: (options?: Partial<InboundFiltersOptions> | undefined) => import("../types-hoist").Integration; | ||
//# sourceMappingURL=inboundfilters.d.ts.map |
@@ -5,4 +5,4 @@ interface LinkedErrorsOptions { | ||
} | ||
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=linkederrors.d.ts.map |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare const moduleMetadataIntegration: () => import("@sentry/types").Integration; | ||
export declare const moduleMetadataIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=metadata.d.ts.map |
@@ -28,3 +28,3 @@ export type RequestDataIntegrationOptions = { | ||
*/ | ||
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("../types-hoist").Integration; | ||
//# sourceMappingURL=requestdata.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { StackFrame } from '@sentry/types'; | ||
import { StackFrame } from '../types-hoist'; | ||
type StackFrameIteratee = (frame: StackFrame) => StackFrame; | ||
@@ -43,3 +43,3 @@ interface RewriteFramesOptions { | ||
*/ | ||
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("../types-hoist").Integration; | ||
/** | ||
@@ -46,0 +46,0 @@ * Exported only for tests. |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare const sessionTimingIntegration: () => import("@sentry/types").Integration; | ||
export declare const sessionTimingIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=sessiontiming.d.ts.map |
@@ -27,4 +27,4 @@ interface Options { | ||
*/ | ||
export declare const thirdPartyErrorFilterIntegration: (options: Options) => import("@sentry/types").Integration; | ||
export declare const thirdPartyErrorFilterIntegration: (options: Options) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=third-party-errors-filter.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Event, EventHint } from '@sentry/types'; | ||
import { Event, EventHint } from '../types-hoist'; | ||
interface ZodErrorsOptions { | ||
@@ -10,4 +10,4 @@ key?: string; | ||
export declare function applyZodErrorsToEvent(limit: number, event: Event, hint?: EventHint): Event; | ||
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=zoderrors.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Event, StackParser } from '@sentry/types'; | ||
import { Event, StackParser } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Retrieve metadata for a specific JavaScript file URL. |
@@ -1,2 +0,2 @@ | ||
import { Client, MeasurementUnit, MetricsAggregator as MetricsAggregatorBase, Primitive } from '@sentry/types'; | ||
import { Client, MeasurementUnit, MetricsAggregator as MetricsAggregatorBase, Primitive } from '../types-hoist'; | ||
import { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Client, MeasurementUnit, MetricsAggregator, Primitive } from '@sentry/types'; | ||
import { Client, MeasurementUnit, MetricsAggregator, Primitive } from '../types-hoist'; | ||
import { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { Client, DsnComponents, MetricBucketItem, SdkMetadata, StatsdEnvelope } from '@sentry/types'; | ||
import { Client, DsnComponents, MetricBucketItem, SdkMetadata, StatsdEnvelope } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Captures aggregated metrics to the supplied client. |
@@ -1,2 +0,2 @@ | ||
import { Client, Metrics, MetricsAggregator as MetricsAggregatorInterface } from '@sentry/types'; | ||
import { Client, Metrics, MetricsAggregator as MetricsAggregatorInterface } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns the metrics aggregator for a given client. |
@@ -1,2 +0,2 @@ | ||
import { Client, DurationUnit, MetricData, MetricsAggregator as MetricsAggregatorInterface } from '@sentry/types'; | ||
import { Client, DurationUnit, MetricData, MetricsAggregator as MetricsAggregatorInterface } from '../types-hoist'; | ||
type MetricsAggregatorConstructor = { | ||
@@ -3,0 +3,0 @@ new (client: Client): MetricsAggregatorInterface; |
@@ -1,2 +0,2 @@ | ||
import { MetricInstance } from '@sentry/types'; | ||
import { MetricInstance } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A metric instance representing a counter. |
@@ -1,4 +0,4 @@ | ||
import { MeasurementUnit, Span } from '@sentry/types'; | ||
import { MetricSummary } from '@sentry/types'; | ||
import { Primitive } from '@sentry/types'; | ||
import { MeasurementUnit, Span } from '../types-hoist'; | ||
import { MetricSummary } from '../types-hoist'; | ||
import { Primitive } from '../types-hoist'; | ||
import { MetricType } from './types'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { MetricBucketItem } from '@sentry/types'; | ||
import { MetricBucketItem } from '../types-hoist'; | ||
import { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, GAUGE_METRIC_TYPE, SET_METRIC_TYPE } from './constants'; | ||
@@ -3,0 +3,0 @@ export type MetricType = typeof COUNTER_METRIC_TYPE | typeof GAUGE_METRIC_TYPE | typeof SET_METRIC_TYPE | typeof DISTRIBUTION_METRIC_TYPE; |
@@ -1,2 +0,2 @@ | ||
import { MeasurementUnit, MetricBucketItem, Primitive } from '@sentry/types'; | ||
import { MeasurementUnit, MetricBucketItem, Primitive } from '../types-hoist'; | ||
import { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Profiler } from '@sentry/types'; | ||
import { Profiler } from './types-hoist'; | ||
export declare const profiler: Profiler; | ||
//# sourceMappingURL=profiling.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Attachment, Breadcrumb, CaptureContext, Client, Context, Contexts, Event, EventHint, EventProcessor, Extra, Extras, Primitive, PropagationContext, RequestSession, Scope as ScopeInterface, ScopeData, Session, SeverityLevel, User } from '@sentry/types'; | ||
import { Attachment, Breadcrumb, CaptureContext, Client, Context, Contexts, Event, EventHint, EventProcessor, Extra, Extras, Primitive, PropagationContext, RequestSession, Scope as ScopeInterface, ScopeData, Session, SeverityLevel, User } from './types-hoist'; | ||
/** | ||
@@ -180,3 +180,3 @@ * Holds additional event information. | ||
*/ | ||
setPropagationContext(context: PropagationContext): this; | ||
setPropagationContext(context: Pick<PropagationContext, Exclude<keyof PropagationContext, 'spanId'>> & Partial<Pick<PropagationContext, 'spanId'>>): this; | ||
/** | ||
@@ -183,0 +183,0 @@ * @inheritDoc |
@@ -1,2 +0,2 @@ | ||
import { Client, ClientOptions } from '@sentry/types'; | ||
import { Client, ClientOptions } from './types-hoist'; | ||
/** A class object that can instantiate Client objects. */ | ||
@@ -3,0 +3,0 @@ export type ClientClass<F extends Client, O extends ClientOptions> = new (options: O) => F; |
@@ -1,2 +0,2 @@ | ||
import { BaseTransportOptions, CheckIn, ClientOptions, DynamicSamplingContext, Event, EventHint, MonitorConfig, ParameterizedString, SeverityLevel, TraceContext } from '@sentry/types'; | ||
import { BaseTransportOptions, CheckIn, ClientOptions, DynamicSamplingContext, Event, EventHint, MonitorConfig, ParameterizedString, SeverityLevel, TraceContext } from './types-hoist'; | ||
import { BaseClient } from './baseclient'; | ||
@@ -3,0 +3,0 @@ import { Scope } from './scope'; |
@@ -1,2 +0,2 @@ | ||
import { Session, SessionContext, SessionStatus } from '@sentry/types'; | ||
import { Session, SessionContext, SessionStatus } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates a new `Session` object by setting certain default parameters. If optional @param context |
@@ -1,2 +0,2 @@ | ||
import { Client, SessionAggregates, SessionFlusherLike } from '@sentry/types'; | ||
import { Client, SessionAggregates, SessionFlusherLike } from './types-hoist'; | ||
type ReleaseHealthAttributes = { | ||
@@ -3,0 +3,0 @@ environment?: string; |
@@ -1,2 +0,2 @@ | ||
import { Client, DynamicSamplingContext, Scope, Span } from '@sentry/types'; | ||
import { Client, DynamicSamplingContext, Scope, Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Freeze the given DSC on the given span. |
@@ -1,2 +0,2 @@ | ||
import { Span, StartSpanOptions } from '@sentry/types'; | ||
import { Span, StartSpanOptions } from '../types-hoist'; | ||
export declare const TRACING_DEFAULTS: { | ||
@@ -3,0 +3,0 @@ idleTimeout: number; |
@@ -1,2 +0,2 @@ | ||
import { Span } from '@sentry/types'; | ||
import { Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Print a log message for a started span. |
@@ -1,2 +0,2 @@ | ||
import { MeasurementUnit, Measurements, TimedEvent } from '@sentry/types'; | ||
import { MeasurementUnit, Measurements, TimedEvent } from '../types-hoist'; | ||
/** | ||
@@ -6,3 +6,3 @@ * Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span | ||
*/ | ||
export declare function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan?: import("@sentry/types").Span | undefined): void; | ||
export declare function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan?: import("../types-hoist").Span | undefined): void; | ||
/** | ||
@@ -9,0 +9,0 @@ * Convert timed events to measurements. |
@@ -1,2 +0,2 @@ | ||
import { Options, SamplingContext } from '@sentry/types'; | ||
import { Options, SamplingContext } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Makes a sampling decision for the given options. |
@@ -1,2 +0,2 @@ | ||
import { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '@sentry/types'; | ||
import { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A Sentry Span that is non-recording, meaning it will not be sent to Sentry. |
@@ -1,2 +0,2 @@ | ||
import { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanJSON, SpanStatus, SpanTimeInput, TimedEvent } from '@sentry/types'; | ||
import { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanJSON, SpanStatus, SpanTimeInput, TimedEvent } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Span contains all data about a span |
@@ -1,2 +0,2 @@ | ||
import { Span, SpanStatus } from '@sentry/types'; | ||
import { Span, SpanStatus } from '../types-hoist'; | ||
export declare const SPAN_STATUS_UNSET = 0; | ||
@@ -3,0 +3,0 @@ export declare const SPAN_STATUS_OK = 1; |
@@ -1,2 +0,2 @@ | ||
import { Scope, Span, StartSpanOptions } from '@sentry/types'; | ||
import { Scope, Span, StartSpanOptions } from '../types-hoist'; | ||
import { propagationContextFromHeaders } from '../utils-hoist/tracing'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { Span } from '@sentry/types'; | ||
import { Scope } from '@sentry/types'; | ||
import { Span } from '../types-hoist'; | ||
import { Scope } from '../types-hoist'; | ||
/** Store the scope & isolation scope for a span, which can the be used when it is finished. */ | ||
@@ -4,0 +4,0 @@ export declare function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void; |
@@ -1,2 +0,2 @@ | ||
import { InternalBaseTransportOptions, Transport, TransportMakeRequestResponse, TransportRequestExecutor } from '@sentry/types'; | ||
import { InternalBaseTransportOptions, Transport, TransportMakeRequestResponse, TransportRequestExecutor } from '../types-hoist'; | ||
import { PromiseBuffer } from '../utils-hoist/promisebuffer'; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_TRANSPORT_BUFFER_SIZE = 64; |
@@ -1,2 +0,2 @@ | ||
import { BaseTransportOptions, Envelope, EnvelopeItemType, Event, Transport } from '@sentry/types'; | ||
import { BaseTransportOptions, Envelope, EnvelopeItemType, Event, Transport } from '../types-hoist'; | ||
interface MatchParam { | ||
@@ -3,0 +3,0 @@ /** The envelope to be sent */ |
@@ -1,2 +0,2 @@ | ||
import { Envelope, InternalBaseTransportOptions, Transport } from '@sentry/types'; | ||
import { Envelope, InternalBaseTransportOptions, Transport } from '../types-hoist'; | ||
export declare const MIN_DELAY = 100; | ||
@@ -3,0 +3,0 @@ export declare const START_DELAY = 5000; |
@@ -1,2 +0,2 @@ | ||
import { Event, EventHint, Exception, StackParser } from '@sentry/types'; | ||
import { Event, EventHint, Exception, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter. |
@@ -1,2 +0,2 @@ | ||
import { StackFrame } from '@sentry/types'; | ||
import { StackFrame } from '../types-hoist'; | ||
type WatchdogReturn = { | ||
@@ -3,0 +3,0 @@ /** Resets the watchdog timer */ |
@@ -1,2 +0,2 @@ | ||
import { DynamicSamplingContext } from '@sentry/types'; | ||
import { DynamicSamplingContext } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * @deprecated Use a `"baggage"` string directly |
@@ -1,2 +0,2 @@ | ||
import { SeverityLevel } from '@sentry/types'; | ||
import { SeverityLevel } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Determine a breadcrumb's log level (only `warning` or `error`) based on an HTTP status code. |
@@ -1,2 +0,2 @@ | ||
import { Primitive } from '@sentry/types'; | ||
import { Primitive } from '../../types-hoist'; | ||
export type GenericObject = { | ||
@@ -3,0 +3,0 @@ [key: string]: Value; |
@@ -1,2 +0,2 @@ | ||
import { ClientReport, ClientReportEnvelope } from '@sentry/types'; | ||
import { ClientReport, ClientReportEnvelope } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates client report envelope |
@@ -1,2 +0,2 @@ | ||
import { DebugImage, StackParser } from '@sentry/types'; | ||
import { DebugImage, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns a map of filenames to debug identifiers. |
@@ -1,2 +0,2 @@ | ||
import { DsnComponents, DsnLike } from '@sentry/types'; | ||
import { DsnComponents, DsnLike } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Renders the string representation of this Dsn. |
@@ -1,2 +0,2 @@ | ||
import { Attachment, AttachmentItem, DataCategory, DsnComponents, Envelope, EnvelopeItemType, Event, EventEnvelopeHeaders, SdkInfo, SdkMetadata, SpanItem, SpanJSON } from '@sentry/types'; | ||
import { Attachment, AttachmentItem, DataCategory, DsnComponents, Envelope, EnvelopeItemType, Event, EventEnvelopeHeaders, SdkInfo, SdkMetadata, SpanItem, SpanJSON } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates an envelope. |
@@ -1,2 +0,2 @@ | ||
import { ConsoleLevel } from '@sentry/types'; | ||
import { ConsoleLevel } from '../types-hoist'; | ||
/** An error emitted by Sentry SDKs and related utilities. */ | ||
@@ -3,0 +3,0 @@ export declare class SentryError extends Error { |
@@ -1,2 +0,2 @@ | ||
import { Client, Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackFrame, StackParser } from '@sentry/types'; | ||
import { Client, Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackFrame, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts stack frames from the error.stack string |
@@ -47,3 +47,3 @@ export { applyAggregateErrorsToEvent } from './aggregate-errors'; | ||
export { LRUMap } from './lru'; | ||
export { generatePropagationContext } from './propagationContext'; | ||
export { generatePropagationContext, generateTraceId, generateSpanId, } from './propagationContext'; | ||
export { vercelWaitUntil } from './vercelWaitUntil'; | ||
@@ -50,0 +50,0 @@ export { SDK_VERSION } from './version'; |
@@ -1,2 +0,2 @@ | ||
import { HandlerDataConsole } from '@sentry/types'; | ||
import { HandlerDataConsole } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when a console.xxx method is called. |
@@ -1,2 +0,2 @@ | ||
import { HandlerDataFetch } from '@sentry/types'; | ||
import { HandlerDataFetch } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when a fetch request happens. |
@@ -1,2 +0,2 @@ | ||
import { HandlerDataError } from '@sentry/types'; | ||
import { HandlerDataError } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when an error is captured by the global error handler. |
@@ -1,2 +0,2 @@ | ||
import { HandlerDataUnhandledRejection } from '@sentry/types'; | ||
import { HandlerDataUnhandledRejection } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when an unhandled promise rejection is captured. |
@@ -1,2 +0,2 @@ | ||
import { ParameterizedString, PolymorphicEvent, Primitive } from '@sentry/types'; | ||
import { ParameterizedString, PolymorphicEvent, Primitive } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Checks whether given value's type is one of a few Error or Error-like |
@@ -1,2 +0,2 @@ | ||
import { ConsoleLevel } from '@sentry/types'; | ||
import { ConsoleLevel } from '../types-hoist'; | ||
export declare const CONSOLE_LEVELS: readonly ConsoleLevel[]; | ||
@@ -3,0 +3,0 @@ type LoggerMethod = (...args: unknown[]) => void; |
@@ -1,2 +0,2 @@ | ||
import { Event, Mechanism, StackFrame } from '@sentry/types'; | ||
import { Event, Mechanism, StackFrame } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * UUID4 generator |
@@ -1,2 +0,2 @@ | ||
import { StackLineParser, StackLineParserFn } from '@sentry/types'; | ||
import { StackLineParser, StackLineParserFn } from '../types-hoist'; | ||
export type GetModuleFn = (filename: string | undefined) => string | undefined; | ||
@@ -3,0 +3,0 @@ /** |
@@ -15,2 +15,3 @@ /** | ||
* @param request The module path to resolve | ||
* @deprecated This function will be removed in the next major version. | ||
*/ | ||
@@ -17,0 +18,0 @@ export declare function dynamicRequire(mod: any, request: string): any; |
@@ -1,2 +0,2 @@ | ||
import { WrappedFunction } from '@sentry/types'; | ||
import { WrappedFunction } from '../types-hoist'; | ||
/** | ||
@@ -39,3 +39,3 @@ * Replace a method in an object with a wrapped version of itself. | ||
*/ | ||
export declare function getOriginalFunction(func: WrappedFunction): WrappedFunction | undefined; | ||
export declare function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined; | ||
/** | ||
@@ -42,0 +42,0 @@ * Encodes given object into url-friendly format |
@@ -1,6 +0,16 @@ | ||
import { PropagationContext } from '@sentry/types'; | ||
import { PropagationContext } from '../types-hoist'; | ||
/** | ||
* Returns a new minimal propagation context | ||
* Returns a new minimal propagation context. | ||
* | ||
* @deprecated Use `generateTraceId` and `generateSpanId` instead. | ||
*/ | ||
export declare function generatePropagationContext(): PropagationContext; | ||
/** | ||
* Generate a random, valid trace ID. | ||
*/ | ||
export declare function generateTraceId(): string; | ||
/** | ||
* Generate a random, valid span ID. | ||
*/ | ||
export declare function generateSpanId(): string; | ||
//# sourceMappingURL=propagationContext.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { DataCategory, TransportMakeRequestResponse } from '@sentry/types'; | ||
import { DataCategory, TransportMakeRequestResponse } from '../types-hoist'; | ||
export type RateLimits = Record<string, number>; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_RETRY_AFTER: number; |
@@ -1,2 +0,2 @@ | ||
import { Event, ExtractedNodeRequestData, PolymorphicRequest, RequestEventData, TransactionSource, WebFetchHeaders, WebFetchRequest } from '@sentry/types'; | ||
import { Event, ExtractedNodeRequestData, PolymorphicRequest, RequestEventData, TransactionSource, WebFetchHeaders, WebFetchRequest } from '../types-hoist'; | ||
declare const DEFAULT_REQUEST_INCLUDES: string[]; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_USER_INCLUDES: string[]; |
@@ -1,2 +0,2 @@ | ||
import { SeverityLevel } from '@sentry/types'; | ||
import { SeverityLevel } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * @deprecated This variable has been deprecated and will be removed in the next major version. |
@@ -1,2 +0,2 @@ | ||
import { Event, StackFrame, StackLineParser, StackParser } from '@sentry/types'; | ||
import { Event, StackFrame, StackLineParser, StackParser } from '../types-hoist'; | ||
export declare const UNKNOWN_FUNCTION = "?"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -19,2 +19,4 @@ /** | ||
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only. | ||
* | ||
* @deprecated This variable will be removed in the next major version. | ||
*/ | ||
@@ -21,0 +23,0 @@ export declare let _browserPerformanceTimeOriginMode: string; |
@@ -1,2 +0,2 @@ | ||
import { PropagationContext, TraceparentData } from '@sentry/types'; | ||
import { PropagationContext, TraceparentData } from '../types-hoist'; | ||
export declare const TRACEPARENT_REGEXP: RegExp; | ||
@@ -3,0 +3,0 @@ /** |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import { Client, MetricsAggregator, Scope } from '@sentry/types'; | ||
import { Client, MetricsAggregator, Scope } from '../types-hoist'; | ||
import { SdkSource } from './env'; | ||
@@ -15,0 +15,0 @@ import { logger } from './logger'; |
@@ -1,2 +0,2 @@ | ||
import { Event, ScopeData } from '@sentry/types'; | ||
import { Event, ScopeData } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Applies data from the scope to the event and runs all event processors on it. |
@@ -1,2 +0,2 @@ | ||
import { Options } from '@sentry/types'; | ||
import { Options } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Determines if tracing is currently enabled. |
@@ -1,2 +0,2 @@ | ||
import { Client } from '@sentry/types'; | ||
import { Client } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Checks whether given url points to Sentry server |
@@ -1,2 +0,2 @@ | ||
import { ParameterizedString } from '@sentry/types'; | ||
import { ParameterizedString } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Tagged template function which returns parameterized representation of the message |
@@ -1,2 +0,2 @@ | ||
import { CaptureContext, Client, ClientOptions, Event, EventHint, Scope as ScopeInterface, ScopeContext, StackParser } from '@sentry/types'; | ||
import { CaptureContext, Client, ClientOptions, Event, EventHint, Scope as ScopeInterface, ScopeContext, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This type makes sure that we get either a CaptureContext, OR an EventHint. |
@@ -1,2 +0,2 @@ | ||
import { Options } from '@sentry/types'; | ||
import { Options } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A builder for the SDK metadata in the options for the SDK initialization. |
@@ -1,2 +0,2 @@ | ||
import { Scope, Span } from '@sentry/types'; | ||
import { Scope, Span } from '../types-hoist'; | ||
declare const SCOPE_SPAN_FIELD = "_sentrySpan"; | ||
@@ -3,0 +3,0 @@ type ScopeWithMaybeSpan = Scope & { |
@@ -1,3 +0,3 @@ | ||
import { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '@sentry/types'; | ||
import { MetricType } from '../metrics/types'; | ||
import { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '../types-hoist'; | ||
export declare const TRACE_FLAG_NONE = 0; | ||
@@ -4,0 +4,0 @@ export declare const TRACE_FLAG_SAMPLED = 1; |
@@ -1,2 +0,2 @@ | ||
import { SerializedTraceData, Span } from '@sentry/types'; | ||
import { SerializedTraceData, Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation |
@@ -1,2 +0,2 @@ | ||
import type { DsnComponents, DsnLike, SdkInfo } from '@sentry/types'; | ||
import type { DsnComponents, DsnLike, SdkInfo } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns the envelope endpoint URL with auth in the query string. |
@@ -1,2 +0,2 @@ | ||
import type { Client, Scope as ScopeInterface } from '@sentry/types'; | ||
import type { Client, Scope as ScopeInterface } from '../types-hoist'; | ||
import type { AsyncContextStrategy } from './types'; | ||
@@ -3,0 +3,0 @@ interface Layer { |
@@ -1,2 +0,2 @@ | ||
import type { Scope } from '@sentry/types'; | ||
import type { Scope } from '../types-hoist'; | ||
import type { getTraceData } from '../utils/traceData'; | ||
@@ -3,0 +3,0 @@ import type { startInactiveSpan, startSpan, startSpanManual, suppressTracing, withActiveSpan } from './../tracing/trace'; |
@@ -1,2 +0,2 @@ | ||
import type { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from '@sentry/types'; | ||
import type { Breadcrumb, BreadcrumbHint, Client, ClientOptions, DataCategory, DsnComponents, DynamicSamplingContext, Envelope, Event, EventDropReason, EventHint, EventProcessor, FeedbackEvent, Integration, Outcome, ParameterizedString, SdkMetadata, Session, SessionAggregates, SeverityLevel, Span, SpanAttributes, SpanContextData, StartSpanOptions, Transport, TransportMakeRequestResponse } from './types-hoist'; | ||
import type { IntegrationIndex } from './integration'; | ||
@@ -80,3 +80,3 @@ import type { Scope } from './scope'; | ||
/** | ||
* @see SdkMetadata in @sentry/types | ||
* @see SdkMetadata | ||
* | ||
@@ -246,3 +246,3 @@ * @return The metadata of the SDK | ||
*/ | ||
protected _prepareEvent(event: Event, hint: EventHint, currentScope?: import("@sentry/types").Scope, isolationScope?: import("@sentry/types").Scope): PromiseLike<Event | null>; | ||
protected _prepareEvent(event: Event, hint: EventHint, currentScope?: import("./types-hoist").Scope, isolationScope?: import("./types-hoist").Scope): PromiseLike<Event | null>; | ||
/** | ||
@@ -249,0 +249,0 @@ * Processes the event and logs an error in case of rejection |
@@ -1,2 +0,2 @@ | ||
import type { Breadcrumb, BreadcrumbHint } from '@sentry/types'; | ||
import type { Breadcrumb, BreadcrumbHint } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Records a new breadcrumb which will be attached to future events. |
@@ -1,4 +0,4 @@ | ||
import type { Client, Integration, MetricsAggregator, Scope } from '@sentry/types'; | ||
import type { AsyncContextStack } from './asyncContext/stackStrategy'; | ||
import type { AsyncContextStrategy } from './asyncContext/types'; | ||
import type { Client, Integration, MetricsAggregator, Scope } from './types-hoist'; | ||
/** | ||
@@ -5,0 +5,0 @@ * An object that contains globally accessible properties and maintains a scope stack. |
@@ -1,2 +0,2 @@ | ||
import type { CheckInEnvelope, DsnComponents, DynamicSamplingContext, SdkMetadata, SerializedCheckIn } from '@sentry/types'; | ||
import type { CheckInEnvelope, DsnComponents, DynamicSamplingContext, SdkMetadata, SerializedCheckIn } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Create envelope from check in item. |
@@ -1,3 +0,2 @@ | ||
import type { Scope, TraceContext } from '@sentry/types'; | ||
import type { Client } from '@sentry/types'; | ||
import type { Client, Scope, TraceContext } from './types-hoist'; | ||
/** | ||
@@ -4,0 +3,0 @@ * Get the currently active scope. |
@@ -1,2 +0,2 @@ | ||
import type { Scope } from '@sentry/types'; | ||
import type { Scope } from './types-hoist'; | ||
/** Get the default current scope. */ | ||
@@ -3,0 +3,0 @@ export declare function getDefaultCurrentScope(): Scope; |
@@ -1,3 +0,3 @@ | ||
import type { Client, DsnComponents, Event, EventEnvelope, SdkMetadata, Session, SessionAggregates, SessionEnvelope, SpanEnvelope } from '@sentry/types'; | ||
import type { SentrySpan } from './tracing/sentrySpan'; | ||
import type { Client, DsnComponents, Event, EventEnvelope, SdkMetadata, Session, SessionAggregates, SessionEnvelope, SpanEnvelope } from './types-hoist'; | ||
/** Creates an envelope from a Session */ | ||
@@ -4,0 +4,0 @@ export declare function createSessionEnvelope(session: Session | SessionAggregates, dsn?: DsnComponents, metadata?: SdkMetadata, tunnel?: string): SessionEnvelope; |
@@ -1,2 +0,2 @@ | ||
import type { Event, EventHint, EventProcessor } from '@sentry/types'; | ||
import type { Event, EventHint, EventProcessor } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Process an array of event processors, returning the processed event (or `null` if the event was dropped). |
@@ -1,2 +0,2 @@ | ||
import type { CaptureContext, CheckIn, Event, EventHint, EventProcessor, Extra, Extras, MonitorConfig, Primitive, Session, SessionContext, SeverityLevel, User } from '@sentry/types'; | ||
import type { CaptureContext, CheckIn, Event, EventHint, EventProcessor, Extra, Extras, MonitorConfig, Primitive, Session, SessionContext, SeverityLevel, User } from './types-hoist'; | ||
import type { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { EventHint, SendFeedbackParams } from '@sentry/types'; | ||
import type { EventHint, SendFeedbackParams } from './types-hoist'; | ||
/** | ||
@@ -7,3 +7,3 @@ * Send user feedback to Sentry. | ||
includeReplay?: boolean; | ||
}, scope?: import("@sentry/types").Scope): string; | ||
}, scope?: import("./types-hoist").Scope): string; | ||
//# sourceMappingURL=feedback.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from '@sentry/types'; | ||
import type { Client, HandlerDataFetch, Scope, Span, SpanOrigin } from './types-hoist'; | ||
type PolymorphicRequestHeaders = Record<string, string | undefined> | Array<[string, string]> | { | ||
@@ -3,0 +3,0 @@ [key: string]: any; |
@@ -1,2 +0,2 @@ | ||
import type { Hub } from '@sentry/types'; | ||
import type { Hub } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This is for legacy reasons, and returns a proxy object instead of a hub to be used. |
@@ -57,3 +57,2 @@ export type { ClientClass as SentryCoreCurrentScopes } from './sdk'; | ||
export { profiler } from './profiling'; | ||
export type { MetricData } from '@sentry/types'; | ||
export { metricsDefault } from './metrics/exports-default'; | ||
@@ -67,2 +66,3 @@ export { BrowserMetricsAggregator } from './metrics/browser-aggregator'; | ||
export * from './utils-hoist/index'; | ||
export * from './types-hoist/index'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,7 +0,2 @@ | ||
import type { Client, Integration, IntegrationFn, Options } from '@sentry/types'; | ||
declare module '@sentry/types' { | ||
interface Integration { | ||
isDefaultInstance?: boolean; | ||
} | ||
} | ||
import type { Client, Integration, IntegrationFn, Options } from './types-hoist'; | ||
export declare const installedIntegrations: string[]; | ||
@@ -8,0 +3,0 @@ /** Map of integrations assigned to a client */ |
@@ -7,4 +7,4 @@ interface CaptureConsoleOptions { | ||
*/ | ||
export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const captureConsoleIntegration: (options?: CaptureConsoleOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=captureconsole.d.ts.map |
@@ -14,4 +14,4 @@ interface DebugOptions { | ||
*/ | ||
export declare const debugIntegration: (options?: DebugOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const debugIntegration: (options?: DebugOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=debug.d.ts.map |
@@ -1,8 +0,8 @@ | ||
import type { Event } from '@sentry/types'; | ||
import type { Event } from '../types-hoist'; | ||
/** | ||
* Deduplication filter. | ||
*/ | ||
export declare const dedupeIntegration: () => import("@sentry/types").Integration; | ||
export declare const dedupeIntegration: () => import("../types-hoist").Integration; | ||
/** only exported for tests. */ | ||
export declare function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean; | ||
//# sourceMappingURL=dedupe.d.ts.map |
@@ -13,4 +13,4 @@ interface ExtraErrorDataOptions { | ||
} | ||
export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("@sentry/types").Integration; | ||
export declare const extraErrorDataIntegration: (options?: Partial<ExtraErrorDataOptions> | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=extraerrordata.d.ts.map |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export declare const functionToStringIntegration: () => import("@sentry/types").Integration; | ||
export declare const functionToStringIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=functiontostring.d.ts.map |
@@ -10,3 +10,3 @@ /** Options for the InboundFilters integration */ | ||
} | ||
export declare const inboundFiltersIntegration: (options?: Partial<InboundFiltersOptions> | undefined) => import("@sentry/types").Integration; | ||
export declare const inboundFiltersIntegration: (options?: Partial<InboundFiltersOptions> | undefined) => import("../types-hoist").Integration; | ||
//# sourceMappingURL=inboundfilters.d.ts.map |
@@ -5,4 +5,4 @@ interface LinkedErrorsOptions { | ||
} | ||
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const linkedErrorsIntegration: (options?: LinkedErrorsOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=linkederrors.d.ts.map |
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare const moduleMetadataIntegration: () => import("@sentry/types").Integration; | ||
export declare const moduleMetadataIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=metadata.d.ts.map |
@@ -28,3 +28,3 @@ export type RequestDataIntegrationOptions = { | ||
*/ | ||
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const requestDataIntegration: (options?: RequestDataIntegrationOptions | undefined) => import("../types-hoist").Integration; | ||
//# sourceMappingURL=requestdata.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { StackFrame } from '@sentry/types'; | ||
import type { StackFrame } from '../types-hoist'; | ||
type StackFrameIteratee = (frame: StackFrame) => StackFrame; | ||
@@ -43,3 +43,3 @@ interface RewriteFramesOptions { | ||
*/ | ||
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const rewriteFramesIntegration: (options?: RewriteFramesOptions | undefined) => import("../types-hoist").Integration; | ||
/** | ||
@@ -46,0 +46,0 @@ * Exported only for tests. |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare const sessionTimingIntegration: () => import("@sentry/types").Integration; | ||
export declare const sessionTimingIntegration: () => import("../types-hoist").Integration; | ||
//# sourceMappingURL=sessiontiming.d.ts.map |
@@ -27,4 +27,4 @@ interface Options { | ||
*/ | ||
export declare const thirdPartyErrorFilterIntegration: (options: Options) => import("@sentry/types").Integration; | ||
export declare const thirdPartyErrorFilterIntegration: (options: Options) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=third-party-errors-filter.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Event, EventHint } from '@sentry/types'; | ||
import type { Event, EventHint } from '../types-hoist'; | ||
interface ZodErrorsOptions { | ||
@@ -10,4 +10,4 @@ key?: string; | ||
export declare function applyZodErrorsToEvent(limit: number, event: Event, hint?: EventHint): Event; | ||
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("@sentry/types").Integration; | ||
export declare const zodErrorsIntegration: (options?: ZodErrorsOptions | undefined) => import("../types-hoist").Integration; | ||
export {}; | ||
//# sourceMappingURL=zoderrors.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Event, StackParser } from '@sentry/types'; | ||
import type { Event, StackParser } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Retrieve metadata for a specific JavaScript file URL. |
@@ -1,2 +0,2 @@ | ||
import type { Client, MeasurementUnit, MetricsAggregator as MetricsAggregatorBase, Primitive } from '@sentry/types'; | ||
import type { Client, MeasurementUnit, MetricsAggregator as MetricsAggregatorBase, Primitive } from '../types-hoist'; | ||
import type { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { Client, MeasurementUnit, MetricsAggregator, Primitive } from '@sentry/types'; | ||
import type { Client, MeasurementUnit, MetricsAggregator, Primitive } from '../types-hoist'; | ||
import type { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { Client, DsnComponents, MetricBucketItem, SdkMetadata, StatsdEnvelope } from '@sentry/types'; | ||
import type { Client, DsnComponents, MetricBucketItem, SdkMetadata, StatsdEnvelope } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Captures aggregated metrics to the supplied client. |
@@ -1,2 +0,2 @@ | ||
import type { Client, Metrics, MetricsAggregator as MetricsAggregatorInterface } from '@sentry/types'; | ||
import type { Client, Metrics, MetricsAggregator as MetricsAggregatorInterface } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns the metrics aggregator for a given client. |
@@ -1,2 +0,2 @@ | ||
import type { Client, DurationUnit, MetricData, MetricsAggregator as MetricsAggregatorInterface } from '@sentry/types'; | ||
import type { Client, DurationUnit, MetricData, MetricsAggregator as MetricsAggregatorInterface } from '../types-hoist'; | ||
type MetricsAggregatorConstructor = { | ||
@@ -3,0 +3,0 @@ new (client: Client): MetricsAggregatorInterface; |
@@ -1,2 +0,2 @@ | ||
import type { MetricInstance } from '@sentry/types'; | ||
import type { MetricInstance } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A metric instance representing a counter. |
@@ -1,4 +0,4 @@ | ||
import type { MeasurementUnit, Span } from '@sentry/types'; | ||
import type { MetricSummary } from '@sentry/types'; | ||
import type { Primitive } from '@sentry/types'; | ||
import type { MeasurementUnit, Span } from '../types-hoist'; | ||
import type { MetricSummary } from '../types-hoist'; | ||
import type { Primitive } from '../types-hoist'; | ||
import type { MetricType } from './types'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { MetricBucketItem } from '@sentry/types'; | ||
import type { MetricBucketItem } from '../types-hoist'; | ||
import type { COUNTER_METRIC_TYPE, DISTRIBUTION_METRIC_TYPE, GAUGE_METRIC_TYPE, SET_METRIC_TYPE } from './constants'; | ||
@@ -3,0 +3,0 @@ export type MetricType = typeof COUNTER_METRIC_TYPE | typeof GAUGE_METRIC_TYPE | typeof SET_METRIC_TYPE | typeof DISTRIBUTION_METRIC_TYPE; |
@@ -1,2 +0,2 @@ | ||
import type { MeasurementUnit, MetricBucketItem, Primitive } from '@sentry/types'; | ||
import type { MeasurementUnit, MetricBucketItem, Primitive } from '../types-hoist'; | ||
import type { MetricType } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import type { Profiler } from '@sentry/types'; | ||
import type { Profiler } from './types-hoist'; | ||
export declare const profiler: Profiler; | ||
//# sourceMappingURL=profiling.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Attachment, Breadcrumb, CaptureContext, Client, Context, Contexts, Event, EventHint, EventProcessor, Extra, Extras, Primitive, PropagationContext, RequestSession, Scope as ScopeInterface, ScopeData, Session, SeverityLevel, User } from '@sentry/types'; | ||
import type { Attachment, Breadcrumb, CaptureContext, Client, Context, Contexts, Event, EventHint, EventProcessor, Extra, Extras, Primitive, PropagationContext, RequestSession, Scope as ScopeInterface, ScopeData, Session, SeverityLevel, User } from './types-hoist'; | ||
/** | ||
@@ -180,3 +180,3 @@ * Holds additional event information. | ||
*/ | ||
setPropagationContext(context: PropagationContext): this; | ||
setPropagationContext(context: Omit<PropagationContext, 'spanId'> & Partial<Pick<PropagationContext, 'spanId'>>): this; | ||
/** | ||
@@ -183,0 +183,0 @@ * @inheritDoc |
@@ -1,2 +0,2 @@ | ||
import type { Client, ClientOptions } from '@sentry/types'; | ||
import type { Client, ClientOptions } from './types-hoist'; | ||
/** A class object that can instantiate Client objects. */ | ||
@@ -3,0 +3,0 @@ export type ClientClass<F extends Client, O extends ClientOptions> = new (options: O) => F; |
@@ -1,2 +0,2 @@ | ||
import type { BaseTransportOptions, CheckIn, ClientOptions, DynamicSamplingContext, Event, EventHint, MonitorConfig, ParameterizedString, SeverityLevel, TraceContext } from '@sentry/types'; | ||
import type { BaseTransportOptions, CheckIn, ClientOptions, DynamicSamplingContext, Event, EventHint, MonitorConfig, ParameterizedString, SeverityLevel, TraceContext } from './types-hoist'; | ||
import { BaseClient } from './baseclient'; | ||
@@ -3,0 +3,0 @@ import type { Scope } from './scope'; |
@@ -1,2 +0,2 @@ | ||
import type { Session, SessionContext, SessionStatus } from '@sentry/types'; | ||
import type { Session, SessionContext, SessionStatus } from './types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates a new `Session` object by setting certain default parameters. If optional @param context |
@@ -1,2 +0,2 @@ | ||
import type { Client, SessionAggregates, SessionFlusherLike } from '@sentry/types'; | ||
import type { Client, SessionAggregates, SessionFlusherLike } from './types-hoist'; | ||
type ReleaseHealthAttributes = { | ||
@@ -3,0 +3,0 @@ environment?: string; |
@@ -1,2 +0,2 @@ | ||
import type { Client, DynamicSamplingContext, Scope, Span } from '@sentry/types'; | ||
import type { Client, DynamicSamplingContext, Scope, Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Freeze the given DSC on the given span. |
@@ -1,2 +0,2 @@ | ||
import type { Span, StartSpanOptions } from '@sentry/types'; | ||
import type { Span, StartSpanOptions } from '../types-hoist'; | ||
export declare const TRACING_DEFAULTS: { | ||
@@ -3,0 +3,0 @@ idleTimeout: number; |
@@ -1,2 +0,2 @@ | ||
import type { Span } from '@sentry/types'; | ||
import type { Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Print a log message for a started span. |
@@ -1,2 +0,2 @@ | ||
import type { MeasurementUnit, Measurements, TimedEvent } from '@sentry/types'; | ||
import type { MeasurementUnit, Measurements, TimedEvent } from '../types-hoist'; | ||
/** | ||
@@ -6,3 +6,3 @@ * Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span | ||
*/ | ||
export declare function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan?: import("@sentry/types").Span | undefined): void; | ||
export declare function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan?: import("../types-hoist").Span | undefined): void; | ||
/** | ||
@@ -9,0 +9,0 @@ * Convert timed events to measurements. |
@@ -1,2 +0,2 @@ | ||
import type { Options, SamplingContext } from '@sentry/types'; | ||
import type { Options, SamplingContext } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Makes a sampling decision for the given options. |
@@ -1,2 +0,2 @@ | ||
import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '@sentry/types'; | ||
import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanStatus, SpanTimeInput } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A Sentry Span that is non-recording, meaning it will not be sent to Sentry. |
@@ -1,2 +0,2 @@ | ||
import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanJSON, SpanStatus, SpanTimeInput, TimedEvent } from '@sentry/types'; | ||
import type { SentrySpanArguments, Span, SpanAttributeValue, SpanAttributes, SpanContextData, SpanJSON, SpanStatus, SpanTimeInput, TimedEvent } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Span contains all data about a span |
@@ -1,2 +0,2 @@ | ||
import type { Span, SpanStatus } from '@sentry/types'; | ||
import type { Span, SpanStatus } from '../types-hoist'; | ||
export declare const SPAN_STATUS_UNSET = 0; | ||
@@ -3,0 +3,0 @@ export declare const SPAN_STATUS_OK = 1; |
@@ -1,2 +0,2 @@ | ||
import type { Scope, Span, StartSpanOptions } from '@sentry/types'; | ||
import type { Scope, Span, StartSpanOptions } from '../types-hoist'; | ||
import { propagationContextFromHeaders } from '../utils-hoist/tracing'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import type { Span } from '@sentry/types'; | ||
import type { Scope } from '@sentry/types'; | ||
import type { Span } from '../types-hoist'; | ||
import type { Scope } from '../types-hoist'; | ||
/** Store the scope & isolation scope for a span, which can the be used when it is finished. */ | ||
@@ -4,0 +4,0 @@ export declare function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void; |
@@ -1,2 +0,2 @@ | ||
import type { InternalBaseTransportOptions, Transport, TransportMakeRequestResponse, TransportRequestExecutor } from '@sentry/types'; | ||
import type { InternalBaseTransportOptions, Transport, TransportMakeRequestResponse, TransportRequestExecutor } from '../types-hoist'; | ||
import { type PromiseBuffer } from '../utils-hoist/promisebuffer'; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_TRANSPORT_BUFFER_SIZE = 64; |
@@ -1,2 +0,2 @@ | ||
import type { BaseTransportOptions, Envelope, EnvelopeItemType, Event, Transport } from '@sentry/types'; | ||
import type { BaseTransportOptions, Envelope, EnvelopeItemType, Event, Transport } from '../types-hoist'; | ||
interface MatchParam { | ||
@@ -3,0 +3,0 @@ /** The envelope to be sent */ |
@@ -1,2 +0,2 @@ | ||
import type { Envelope, InternalBaseTransportOptions, Transport } from '@sentry/types'; | ||
import type { Envelope, InternalBaseTransportOptions, Transport } from '../types-hoist'; | ||
export declare const MIN_DELAY = 100; | ||
@@ -3,0 +3,0 @@ export declare const START_DELAY = 5000; |
@@ -1,2 +0,2 @@ | ||
import type { Event, EventHint, Exception, StackParser } from '@sentry/types'; | ||
import type { Event, EventHint, Exception, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter. |
@@ -1,2 +0,2 @@ | ||
import type { StackFrame } from '@sentry/types'; | ||
import type { StackFrame } from '../types-hoist'; | ||
type WatchdogReturn = { | ||
@@ -3,0 +3,0 @@ /** Resets the watchdog timer */ |
@@ -1,2 +0,2 @@ | ||
import type { DynamicSamplingContext } from '@sentry/types'; | ||
import type { DynamicSamplingContext } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * @deprecated Use a `"baggage"` string directly |
@@ -1,2 +0,2 @@ | ||
import type { SeverityLevel } from '@sentry/types'; | ||
import type { SeverityLevel } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Determine a breadcrumb's log level (only `warning` or `error`) based on an HTTP status code. |
@@ -1,2 +0,2 @@ | ||
import type { Primitive } from '@sentry/types'; | ||
import type { Primitive } from '../../types-hoist'; | ||
export type GenericObject = { | ||
@@ -3,0 +3,0 @@ [key: string]: Value; |
@@ -1,2 +0,2 @@ | ||
import type { ClientReport, ClientReportEnvelope } from '@sentry/types'; | ||
import type { ClientReport, ClientReportEnvelope } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates client report envelope |
@@ -1,2 +0,2 @@ | ||
import type { DebugImage, StackParser } from '@sentry/types'; | ||
import type { DebugImage, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Returns a map of filenames to debug identifiers. |
@@ -1,2 +0,2 @@ | ||
import type { DsnComponents, DsnLike } from '@sentry/types'; | ||
import type { DsnComponents, DsnLike } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Renders the string representation of this Dsn. |
@@ -1,2 +0,2 @@ | ||
import type { Attachment, AttachmentItem, DataCategory, DsnComponents, Envelope, EnvelopeItemType, Event, EventEnvelopeHeaders, SdkInfo, SdkMetadata, SpanItem, SpanJSON } from '@sentry/types'; | ||
import type { Attachment, AttachmentItem, DataCategory, DsnComponents, Envelope, EnvelopeItemType, Event, EventEnvelopeHeaders, SdkInfo, SdkMetadata, SpanItem, SpanJSON } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates an envelope. |
@@ -1,2 +0,2 @@ | ||
import type { ConsoleLevel } from '@sentry/types'; | ||
import type { ConsoleLevel } from '../types-hoist'; | ||
/** An error emitted by Sentry SDKs and related utilities. */ | ||
@@ -3,0 +3,0 @@ export declare class SentryError extends Error { |
@@ -1,2 +0,2 @@ | ||
import type { Client, Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackFrame, StackParser } from '@sentry/types'; | ||
import type { Client, Event, EventHint, Exception, ParameterizedString, SeverityLevel, StackFrame, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts stack frames from the error.stack string |
@@ -47,3 +47,3 @@ export { applyAggregateErrorsToEvent } from './aggregate-errors'; | ||
export { LRUMap } from './lru'; | ||
export { generatePropagationContext } from './propagationContext'; | ||
export { generatePropagationContext, generateTraceId, generateSpanId, } from './propagationContext'; | ||
export { vercelWaitUntil } from './vercelWaitUntil'; | ||
@@ -50,0 +50,0 @@ export { SDK_VERSION } from './version'; |
@@ -1,2 +0,2 @@ | ||
import type { HandlerDataConsole } from '@sentry/types'; | ||
import type { HandlerDataConsole } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when a console.xxx method is called. |
@@ -1,2 +0,2 @@ | ||
import type { HandlerDataFetch } from '@sentry/types'; | ||
import type { HandlerDataFetch } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when a fetch request happens. |
@@ -1,2 +0,2 @@ | ||
import type { HandlerDataError } from '@sentry/types'; | ||
import type { HandlerDataError } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when an error is captured by the global error handler. |
@@ -1,2 +0,2 @@ | ||
import type { HandlerDataUnhandledRejection } from '@sentry/types'; | ||
import type { HandlerDataUnhandledRejection } from '../../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Add an instrumentation handler for when an unhandled promise rejection is captured. |
@@ -1,2 +0,2 @@ | ||
import type { ParameterizedString, PolymorphicEvent, Primitive } from '@sentry/types'; | ||
import type { ParameterizedString, PolymorphicEvent, Primitive } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Checks whether given value's type is one of a few Error or Error-like |
@@ -1,2 +0,2 @@ | ||
import type { ConsoleLevel } from '@sentry/types'; | ||
import type { ConsoleLevel } from '../types-hoist'; | ||
export declare const CONSOLE_LEVELS: readonly ConsoleLevel[]; | ||
@@ -3,0 +3,0 @@ type LoggerMethod = (...args: unknown[]) => void; |
@@ -1,2 +0,2 @@ | ||
import type { Event, Mechanism, StackFrame } from '@sentry/types'; | ||
import type { Event, Mechanism, StackFrame } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * UUID4 generator |
@@ -1,2 +0,2 @@ | ||
import type { StackLineParser, StackLineParserFn } from '@sentry/types'; | ||
import type { StackLineParser, StackLineParserFn } from '../types-hoist'; | ||
export type GetModuleFn = (filename: string | undefined) => string | undefined; | ||
@@ -3,0 +3,0 @@ /** |
@@ -15,2 +15,3 @@ /** | ||
* @param request The module path to resolve | ||
* @deprecated This function will be removed in the next major version. | ||
*/ | ||
@@ -17,0 +18,0 @@ export declare function dynamicRequire(mod: any, request: string): any; |
@@ -1,2 +0,2 @@ | ||
import type { WrappedFunction } from '@sentry/types'; | ||
import type { WrappedFunction } from '../types-hoist'; | ||
/** | ||
@@ -39,3 +39,3 @@ * Replace a method in an object with a wrapped version of itself. | ||
*/ | ||
export declare function getOriginalFunction(func: WrappedFunction): WrappedFunction | undefined; | ||
export declare function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined; | ||
/** | ||
@@ -42,0 +42,0 @@ * Encodes given object into url-friendly format |
@@ -1,6 +0,16 @@ | ||
import type { PropagationContext } from '@sentry/types'; | ||
import type { PropagationContext } from '../types-hoist'; | ||
/** | ||
* Returns a new minimal propagation context | ||
* Returns a new minimal propagation context. | ||
* | ||
* @deprecated Use `generateTraceId` and `generateSpanId` instead. | ||
*/ | ||
export declare function generatePropagationContext(): PropagationContext; | ||
/** | ||
* Generate a random, valid trace ID. | ||
*/ | ||
export declare function generateTraceId(): string; | ||
/** | ||
* Generate a random, valid span ID. | ||
*/ | ||
export declare function generateSpanId(): string; | ||
//# sourceMappingURL=propagationContext.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { DataCategory, TransportMakeRequestResponse } from '@sentry/types'; | ||
import type { DataCategory, TransportMakeRequestResponse } from '../types-hoist'; | ||
export type RateLimits = Record<string, number>; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_RETRY_AFTER: number; |
@@ -1,2 +0,2 @@ | ||
import type { Event, ExtractedNodeRequestData, PolymorphicRequest, RequestEventData, TransactionSource, WebFetchHeaders, WebFetchRequest } from '@sentry/types'; | ||
import type { Event, ExtractedNodeRequestData, PolymorphicRequest, RequestEventData, TransactionSource, WebFetchHeaders, WebFetchRequest } from '../types-hoist'; | ||
declare const DEFAULT_REQUEST_INCLUDES: string[]; | ||
@@ -3,0 +3,0 @@ export declare const DEFAULT_USER_INCLUDES: string[]; |
@@ -1,2 +0,2 @@ | ||
import type { SeverityLevel } from '@sentry/types'; | ||
import type { SeverityLevel } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * @deprecated This variable has been deprecated and will be removed in the next major version. |
@@ -1,2 +0,2 @@ | ||
import type { Event, StackFrame, StackLineParser, StackParser } from '@sentry/types'; | ||
import type { Event, StackFrame, StackLineParser, StackParser } from '../types-hoist'; | ||
export declare const UNKNOWN_FUNCTION = "?"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -19,2 +19,4 @@ /** | ||
* Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only. | ||
* | ||
* @deprecated This variable will be removed in the next major version. | ||
*/ | ||
@@ -21,0 +23,0 @@ export declare let _browserPerformanceTimeOriginMode: string; |
@@ -1,2 +0,2 @@ | ||
import type { PropagationContext, TraceparentData } from '@sentry/types'; | ||
import type { PropagationContext, TraceparentData } from '../types-hoist'; | ||
export declare const TRACEPARENT_REGEXP: RegExp; | ||
@@ -3,0 +3,0 @@ /** |
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
import type { Client, MetricsAggregator, Scope } from '@sentry/types'; | ||
import type { Client, MetricsAggregator, Scope } from '../types-hoist'; | ||
import type { SdkSource } from './env'; | ||
@@ -15,0 +15,0 @@ import type { logger } from './logger'; |
@@ -1,2 +0,2 @@ | ||
import type { Event, ScopeData } from '@sentry/types'; | ||
import type { Event, ScopeData } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Applies data from the scope to the event and runs all event processors on it. |
@@ -1,2 +0,2 @@ | ||
import type { Options } from '@sentry/types'; | ||
import type { Options } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Determines if tracing is currently enabled. |
@@ -1,2 +0,2 @@ | ||
import type { Client } from '@sentry/types'; | ||
import type { Client } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Checks whether given url points to Sentry server |
@@ -1,2 +0,2 @@ | ||
import type { ParameterizedString } from '@sentry/types'; | ||
import type { ParameterizedString } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Tagged template function which returns parameterized representation of the message |
@@ -1,2 +0,2 @@ | ||
import type { CaptureContext, Client, ClientOptions, Event, EventHint, Scope as ScopeInterface, ScopeContext, StackParser } from '@sentry/types'; | ||
import type { CaptureContext, Client, ClientOptions, Event, EventHint, Scope as ScopeInterface, ScopeContext, StackParser } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This type makes sure that we get either a CaptureContext, OR an EventHint. |
@@ -1,2 +0,2 @@ | ||
import type { Options } from '@sentry/types'; | ||
import type { Options } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A builder for the SDK metadata in the options for the SDK initialization. |
@@ -1,2 +0,2 @@ | ||
import type { Scope, Span } from '@sentry/types'; | ||
import type { Scope, Span } from '../types-hoist'; | ||
declare const SCOPE_SPAN_FIELD = "_sentrySpan"; | ||
@@ -3,0 +3,0 @@ type ScopeWithMaybeSpan = Scope & { |
@@ -1,3 +0,3 @@ | ||
import type { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '@sentry/types'; | ||
import type { MetricType } from '../metrics/types'; | ||
import type { MeasurementUnit, Primitive, Span, SpanAttributes, SpanJSON, SpanStatus, SpanTimeInput, TraceContext } from '../types-hoist'; | ||
export declare const TRACE_FLAG_NONE = 0; | ||
@@ -4,0 +4,0 @@ export declare const TRACE_FLAG_SAMPLED = 1; |
@@ -1,2 +0,2 @@ | ||
import type { SerializedTraceData, Span } from '@sentry/types'; | ||
import type { SerializedTraceData, Span } from '../types-hoist'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation |
{ | ||
"name": "@sentry/core", | ||
"version": "8.41.0", | ||
"version": "8.42.0", | ||
"description": "Base implementation for all Sentry JavaScript SDKs", | ||
@@ -41,5 +41,2 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
}, | ||
"dependencies": { | ||
"@sentry/types": "8.41.0" | ||
}, | ||
"TODO(v9):": "Remove these dependencies", | ||
@@ -46,0 +43,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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
3530126
0
1134
42433
- Removed@sentry/types@8.41.0
- Removed@sentry/types@8.41.0(transitive)