@sentry/core
Advanced tools
Comparing version 7.103.0 to 7.104.0
@@ -5,3 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const idletransaction = require('./tracing/idletransaction.js'); | ||
const span = require('./tracing/span.js'); | ||
const span$1 = require('./tracing/span.js'); | ||
const transaction = require('./tracing/transaction.js'); | ||
@@ -13,2 +13,3 @@ const utils = require('./tracing/utils.js'); | ||
const measurement = require('./tracing/measurement.js'); | ||
const sampling = require('./tracing/sampling.js'); | ||
const semanticAttributes = require('./semanticAttributes.js'); | ||
@@ -34,2 +35,3 @@ const envelope = require('./envelope.js'); | ||
const checkin = require('./checkin.js'); | ||
const span = require('./span.js'); | ||
const hasTracingEnabled = require('./utils/hasTracingEnabled.js'); | ||
@@ -58,3 +60,3 @@ const isSentryRequestUrl = require('./utils/isSentryRequestUrl.js'); | ||
exports.TRACING_DEFAULTS = idletransaction.TRACING_DEFAULTS; | ||
exports.Span = span.Span; | ||
exports.Span = span$1.Span; | ||
exports.Transaction = transaction.Transaction; | ||
@@ -80,2 +82,4 @@ exports.extractTraceparentData = utils.extractTraceparentData; | ||
exports.setMeasurement = measurement.setMeasurement; | ||
exports.isValidSampleRate = sampling.isValidSampleRate; | ||
exports.SEMANTIC_ATTRIBUTE_PROFILE_ID = semanticAttributes.SEMANTIC_ATTRIBUTE_PROFILE_ID; | ||
exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_OP; | ||
@@ -151,2 +155,3 @@ exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = semanticAttributes.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; | ||
exports.createCheckInEnvelope = checkin.createCheckInEnvelope; | ||
exports.createSpanEnvelope = span.createSpanEnvelope; | ||
exports.hasTracingEnabled = hasTracingEnabled.hasTracingEnabled; | ||
@@ -153,0 +158,0 @@ exports.isSentryRequestUrl = isSentryRequestUrl.isSentryRequestUrl; |
@@ -25,2 +25,8 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
* The id of the profile that this span occured in. | ||
*/ | ||
const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'profile_id'; | ||
exports.SEMANTIC_ATTRIBUTE_PROFILE_ID = SEMANTIC_ATTRIBUTE_PROFILE_ID; | ||
exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = SEMANTIC_ATTRIBUTE_SENTRY_OP; | ||
@@ -27,0 +33,0 @@ exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; |
@@ -127,3 +127,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.isValidSampleRate = isValidSampleRate; | ||
exports.sampleTransaction = sampleTransaction; | ||
//# sourceMappingURL=sampling.js.map |
@@ -123,2 +123,6 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
} | ||
if (spanContext.exclusiveTime) { | ||
this._exclusiveTime = spanContext.exclusiveTime; | ||
} | ||
this._measurements = spanContext.measurements ? { ...spanContext.measurements } : {}; | ||
} | ||
@@ -591,2 +595,5 @@ | ||
_metrics_summary: metricSummary.getMetricSummaryJsonForSpan(this), | ||
profile_id: this._attributes[semanticAttributes.SEMANTIC_ATTRIBUTE_PROFILE_ID] , | ||
exclusive_time: this._exclusiveTime, | ||
measurements: Object.keys(this._measurements).length > 0 ? this._measurements : undefined, | ||
}); | ||
@@ -593,0 +600,0 @@ } |
@@ -32,3 +32,2 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
super(transactionContext); | ||
this._measurements = {}; | ||
this._contexts = {}; | ||
@@ -239,2 +238,12 @@ | ||
/** | ||
* Get the profile id of the transaction. | ||
*/ | ||
getProfileId() { | ||
if (this._contexts !== undefined && this._contexts['profile'] !== undefined) { | ||
return this._contexts['profile'].profile_id ; | ||
} | ||
return undefined; | ||
} | ||
/** | ||
* Finish the transaction & prepare the event to send to Sentry. | ||
@@ -241,0 +250,0 @@ */ |
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const SDK_VERSION = '7.103.0'; | ||
const SDK_VERSION = '7.104.0'; | ||
exports.SDK_VERSION = SDK_VERSION; | ||
//# sourceMappingURL=version.js.map |
@@ -10,3 +10,4 @@ export { addTracingExtensions, startIdleTransaction } from './tracing/hubextensions.js'; | ||
export { setMeasurement } from './tracing/measurement.js'; | ||
export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from './semanticAttributes.js'; | ||
export { isValidSampleRate } from './tracing/sampling.js'; | ||
export { SEMANTIC_ATTRIBUTE_PROFILE_ID, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from './semanticAttributes.js'; | ||
export { createEventEnvelope, createSessionEnvelope } from './envelope.js'; | ||
@@ -31,2 +32,3 @@ export { addBreadcrumb, captureCheckIn, captureEvent, captureException, captureMessage, captureSession, close, configureScope, endSession, flush, getClient, getCurrentScope, isInitialized, lastEventId, setContext, setExtra, setExtras, setTag, setTags, setUser, startSession, startTransaction, withActiveSpan, withIsolationScope, withMonitor, withScope } from './exports.js'; | ||
export { createCheckInEnvelope } from './checkin.js'; | ||
export { createSpanEnvelope } from './span.js'; | ||
export { hasTracingEnabled } from './utils/hasTracingEnabled.js'; | ||
@@ -33,0 +35,0 @@ export { isSentryRequestUrl } from './utils/isSentryRequestUrl.js'; |
@@ -23,3 +23,8 @@ /** | ||
export { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE }; | ||
/** | ||
* The id of the profile that this span occured in. | ||
*/ | ||
const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'profile_id'; | ||
export { SEMANTIC_ATTRIBUTE_PROFILE_ID, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE }; | ||
//# sourceMappingURL=semanticAttributes.js.map |
@@ -1,2 +0,2 @@ | ||
import { logger, isNaN } from '@sentry/utils'; | ||
import { isNaN, logger } from '@sentry/utils'; | ||
import { DEBUG_BUILD } from '../debug-build.js'; | ||
@@ -125,3 +125,3 @@ import { SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE } from '../semanticAttributes.js'; | ||
export { sampleTransaction }; | ||
export { isValidSampleRate, sampleTransaction }; | ||
//# sourceMappingURL=sampling.js.map |
import { uuid4, timestampInSeconds, logger, dropUndefinedKeys } from '@sentry/utils'; | ||
import { DEBUG_BUILD } from '../debug-build.js'; | ||
import { getMetricSummaryJsonForSpan } from '../metrics/metric-summary.js'; | ||
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_OP } from '../semanticAttributes.js'; | ||
import { SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_PROFILE_ID } from '../semanticAttributes.js'; | ||
import { getRootSpan } from '../utils/getRootSpan.js'; | ||
@@ -121,2 +121,6 @@ import { TRACE_FLAG_SAMPLED, TRACE_FLAG_NONE, spanToJSON, spanTimeInputToSeconds, spanToTraceHeader, spanToTraceContext } from '../utils/spanUtils.js'; | ||
} | ||
if (spanContext.exclusiveTime) { | ||
this._exclusiveTime = spanContext.exclusiveTime; | ||
} | ||
this._measurements = spanContext.measurements ? { ...spanContext.measurements } : {}; | ||
} | ||
@@ -589,2 +593,5 @@ | ||
_metrics_summary: getMetricSummaryJsonForSpan(this), | ||
profile_id: this._attributes[SEMANTIC_ATTRIBUTE_PROFILE_ID] , | ||
exclusive_time: this._exclusiveTime, | ||
measurements: Object.keys(this._measurements).length > 0 ? this._measurements : undefined, | ||
}); | ||
@@ -591,0 +598,0 @@ } |
@@ -30,3 +30,2 @@ import { dropUndefinedKeys, logger } from '@sentry/utils'; | ||
super(transactionContext); | ||
this._measurements = {}; | ||
this._contexts = {}; | ||
@@ -237,2 +236,12 @@ | ||
/** | ||
* Get the profile id of the transaction. | ||
*/ | ||
getProfileId() { | ||
if (this._contexts !== undefined && this._contexts['profile'] !== undefined) { | ||
return this._contexts['profile'].profile_id ; | ||
} | ||
return undefined; | ||
} | ||
/** | ||
* Finish the transaction & prepare the event to send to Sentry. | ||
@@ -239,0 +248,0 @@ */ |
@@ -1,4 +0,4 @@ | ||
const SDK_VERSION = '7.103.0'; | ||
const SDK_VERSION = '7.104.0'; | ||
export { SDK_VERSION }; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@sentry/core", | ||
"version": "7.103.0", | ||
"version": "7.104.0", | ||
"description": "Base implementation for all Sentry JavaScript SDKs", | ||
@@ -32,4 +32,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "7.103.0", | ||
"@sentry/utils": "7.103.0" | ||
"@sentry/types": "7.104.0", | ||
"@sentry/utils": "7.104.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "madge": { |
@@ -28,2 +28,3 @@ export { ClientClass } from './sdk'; | ||
export { createCheckInEnvelope } from './checkin'; | ||
export { createSpanEnvelope } from './span'; | ||
export { hasTracingEnabled } from './utils/hasTracingEnabled'; | ||
@@ -30,0 +31,0 @@ export { isSentryRequestUrl } from './utils/isSentryRequestUrl'; |
@@ -19,2 +19,6 @@ /** | ||
export declare const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = "sentry.origin"; | ||
/** | ||
* The id of the profile that this span occured in. | ||
*/ | ||
export declare const SEMANTIC_ATTRIBUTE_PROFILE_ID = "profile_id"; | ||
//# sourceMappingURL=semanticAttributes.d.ts.map |
@@ -13,2 +13,3 @@ export { startIdleTransaction, addTracingExtensions } from './hubextensions'; | ||
export { setMeasurement } from './measurement'; | ||
export { isValidSampleRate } from './sampling'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,2 +13,6 @@ import { Options, SamplingContext } from '@sentry/types'; | ||
export declare function sampleTransaction<T extends Transaction>(transaction: T, options: Pick<Options, 'tracesSampleRate' | 'tracesSampler' | 'enableTracing'>, samplingContext: SamplingContext): T; | ||
/** | ||
* Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1). | ||
*/ | ||
export declare function isValidSampleRate(rate: unknown): boolean; | ||
//# sourceMappingURL=sampling.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { Instrumenter, Primitive, Span as SpanInterface, SpanAttributeValue, SpanAttributes, SpanContext, SpanContextData, SpanJSON, SpanOrigin, SpanTimeInput, TraceContext, Transaction } from '@sentry/types'; | ||
import { Instrumenter, Measurements, Primitive, Span as SpanInterface, SpanAttributeValue, SpanAttributes, SpanContext, SpanContextData, SpanJSON, SpanOrigin, SpanTimeInput, TraceContext, Transaction } from '@sentry/types'; | ||
import { SpanStatusType } from './spanstatus'; | ||
@@ -72,2 +72,4 @@ /** | ||
protected _status?: SpanStatusType | string | undefined; | ||
protected _exclusiveTime?: number; | ||
protected _measurements: Measurements; | ||
private _logMessage?; | ||
@@ -74,0 +76,0 @@ /** |
@@ -11,3 +11,2 @@ import { Context, DynamicSamplingContext, MeasurementUnit, SpanTimeInput, Transaction as TransactionInterface, TransactionContext, TransactionEvent, TransactionMetadata } from '@sentry/types'; | ||
protected _name: string; | ||
private _measurements; | ||
private _contexts; | ||
@@ -102,2 +101,6 @@ private _trimEnd?; | ||
/** | ||
* Get the profile id of the transaction. | ||
*/ | ||
getProfileId(): string | undefined; | ||
/** | ||
* Finish the transaction & prepare the event to send to Sentry. | ||
@@ -104,0 +107,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "7.103.0"; | ||
export declare const SDK_VERSION = "7.104.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -28,2 +28,3 @@ export type { ClientClass } from './sdk'; | ||
export { createCheckInEnvelope } from './checkin'; | ||
export { createSpanEnvelope } from './span'; | ||
export { hasTracingEnabled } from './utils/hasTracingEnabled'; | ||
@@ -30,0 +31,0 @@ export { isSentryRequestUrl } from './utils/isSentryRequestUrl'; |
@@ -19,2 +19,6 @@ /** | ||
export declare const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = "sentry.origin"; | ||
/** | ||
* The id of the profile that this span occured in. | ||
*/ | ||
export declare const SEMANTIC_ATTRIBUTE_PROFILE_ID = "profile_id"; | ||
//# sourceMappingURL=semanticAttributes.d.ts.map |
@@ -13,2 +13,3 @@ export { startIdleTransaction, addTracingExtensions } from './hubextensions'; | ||
export { setMeasurement } from './measurement'; | ||
export { isValidSampleRate } from './sampling'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,2 +13,6 @@ import type { Options, SamplingContext } from '@sentry/types'; | ||
export declare function sampleTransaction<T extends Transaction>(transaction: T, options: Pick<Options, 'tracesSampleRate' | 'tracesSampler' | 'enableTracing'>, samplingContext: SamplingContext): T; | ||
/** | ||
* Checks the given sample rate to make sure it is valid type and value (a boolean, or a number between 0 and 1). | ||
*/ | ||
export declare function isValidSampleRate(rate: unknown): boolean; | ||
//# sourceMappingURL=sampling.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import type { Instrumenter, Primitive, Span as SpanInterface, SpanAttributeValue, SpanAttributes, SpanContext, SpanContextData, SpanJSON, SpanOrigin, SpanTimeInput, TraceContext, Transaction } from '@sentry/types'; | ||
import type { Instrumenter, Measurements, Primitive, Span as SpanInterface, SpanAttributeValue, SpanAttributes, SpanContext, SpanContextData, SpanJSON, SpanOrigin, SpanTimeInput, TraceContext, Transaction } from '@sentry/types'; | ||
import type { SpanStatusType } from './spanstatus'; | ||
@@ -72,2 +72,4 @@ /** | ||
protected _status?: SpanStatusType | string | undefined; | ||
protected _exclusiveTime?: number; | ||
protected _measurements: Measurements; | ||
private _logMessage?; | ||
@@ -74,0 +76,0 @@ /** |
@@ -11,3 +11,2 @@ import type { Context, DynamicSamplingContext, MeasurementUnit, SpanTimeInput, Transaction as TransactionInterface, TransactionContext, TransactionEvent, TransactionMetadata } from '@sentry/types'; | ||
protected _name: string; | ||
private _measurements; | ||
private _contexts; | ||
@@ -104,2 +103,6 @@ private _trimEnd?; | ||
/** | ||
* Get the profile id of the transaction. | ||
*/ | ||
getProfileId(): string | undefined; | ||
/** | ||
* Finish the transaction & prepare the event to send to Sentry. | ||
@@ -106,0 +109,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "7.103.0"; | ||
export declare const SDK_VERSION = "7.104.0"; | ||
//# sourceMappingURL=version.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
1899309
415
0
21849
16
2
115
+ Added@sentry/types@7.104.0(transitive)
+ Added@sentry/utils@7.104.0(transitive)
- Removed@sentry/types@7.103.0(transitive)
- Removed@sentry/utils@7.103.0(transitive)
Updated@sentry/types@7.104.0
Updated@sentry/utils@7.104.0