@sentry/opentelemetry 10.46.0 → 10.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +203 -55
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +204 -57
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/asyncContextStrategy.d.ts.map +1 -1
- package/build/types/constants.d.ts +12 -0
- package/build/types/constants.d.ts.map +1 -1
- package/build/types/contextManager.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/propagator.d.ts.map +1 -1
- package/build/types/sampler.d.ts +4 -1
- package/build/types/sampler.d.ts.map +1 -1
- package/build/types/spanProcessor.d.ts.map +1 -1
- package/build/types/trace.d.ts +9 -0
- package/build/types/trace.d.ts.map +1 -1
- package/build/types-ts3.8/constants.d.ts +12 -0
- package/build/types-ts3.8/index.d.ts +1 -0
- package/build/types-ts3.8/sampler.d.ts +4 -1
- package/build/types-ts3.8/trace.d.ts +9 -0
- package/package.json +6 -6
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.48.0","sideEffects":false}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAeA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,CA4FlE"}
|
|
@@ -5,6 +5,18 @@ export declare const SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING = "sentry.sampled_
|
|
|
5
5
|
export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
|
|
6
6
|
export declare const SENTRY_TRACE_STATE_SAMPLE_RAND = "sentry.sample_rand";
|
|
7
7
|
export declare const SENTRY_TRACE_STATE_SAMPLE_RATE = "sentry.sample_rate";
|
|
8
|
+
/**
|
|
9
|
+
* A flag marking a context as ignored because the span associated with the context
|
|
10
|
+
* is ignored (`ignoreSpans` filter).
|
|
11
|
+
*/
|
|
12
|
+
export declare const SENTRY_TRACE_STATE_CHILD_IGNORED = "sentry.ignored";
|
|
13
|
+
/**
|
|
14
|
+
* A flag marking a segment span as ignored because it matched the `ignoreSpans` filter.
|
|
15
|
+
* Unlike `SENTRY_TRACE_STATE_CHILD_IGNORED` (used for child spans), this flag is NOT consumed
|
|
16
|
+
* by the context manager for re-parenting. Instead, it propagates to child spans so they
|
|
17
|
+
* can record the correct client report outcome (`ignored` instead of `sample_rate`).
|
|
18
|
+
*/
|
|
19
|
+
export declare const SENTRY_TRACE_STATE_SEGMENT_IGNORED = "sentry.segment_ignored";
|
|
8
20
|
export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;
|
|
9
21
|
export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;
|
|
10
22
|
export declare const SENTRY_FORK_SET_SCOPE_CONTEXT_KEY: symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,wCAAwC,iCAAiC,CAAC;AACvF,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AACnE,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE,eAAO,MAAM,yBAAyB,QAAoC,CAAC;AAE3E,eAAO,MAAM,uCAAuC,QAAkD,CAAC;AAEvG,eAAO,MAAM,iCAAiC,QAA4C,CAAC;AAE3F,eAAO,MAAM,2CAA2C,QAAsD,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAE/C,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,wCAAwC,iCAAiC,CAAC;AACvF,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AACnE,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,mBAAmB,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,2BAA2B,CAAC;AAE3E,eAAO,MAAM,yBAAyB,QAAoC,CAAC;AAE3E,eAAO,MAAM,uCAAuC,QAAkD,CAAC;AAEvG,eAAO,MAAM,iCAAiC,QAA4C,CAAC;AAE3F,eAAO,MAAM,2CAA2C,QAAsD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextManager.d.ts","sourceRoot":"","sources":["../../src/contextManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAW,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"contextManager.d.ts","sourceRoot":"","sources":["../../src/contextManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAW,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAclE,MAAM,MAAM,uBAAuB,GAAG;IACpC,iBAAiB,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,8BAA8B,CAAC,sBAAsB,SAAS,cAAc,IAAI,KACnF,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,sBAAsB,GAAG;IAC5B,0BAA0B,IAAI,uBAAuB,CAAC;CACvD,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,sBAAsB,SAAS,cAAc,EACnF,mBAAmB,EAAE,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,sBAAsB,GACtE,8BAA8B,CAAC,sBAAsB,CAAC,CAgFxD"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export { SentryPropagator, shouldPropagateTraceForUrl } from './propagator';
|
|
|
19
19
|
export { SentrySpanProcessor } from './spanProcessor';
|
|
20
20
|
export { SentrySampler, wrapSamplingDecision } from './sampler';
|
|
21
21
|
export { openTelemetrySetupCheck } from './utils/setupCheck';
|
|
22
|
+
export { withStreamedSpan } from '@sentry/core';
|
|
22
23
|
export { getClient } from '@sentry/core';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC;AAG3B,O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,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC;IACpE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B,CA2CA;AA6BD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,EAC5C,QAAQ,EAAE,MAAM,CAAC,GAChB,CAAC,CAIH"}
|
package/build/types/sampler.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type { Client, SpanAttributes } from '@sentry/core';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class SentrySampler implements Sampler {
|
|
10
10
|
private _client;
|
|
11
|
+
private _isSpanStreaming;
|
|
11
12
|
constructor(client: Client);
|
|
12
13
|
/** @inheritDoc */
|
|
13
14
|
shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
|
|
@@ -19,11 +20,13 @@ export declare class SentrySampler implements Sampler {
|
|
|
19
20
|
* If you pass `decision: undefined`, it will be treated as `NOT_RECORDING`, but in contrast to passing `NOT_RECORDING`
|
|
20
21
|
* it will not propagate this decision to downstream Sentry SDKs.
|
|
21
22
|
*/
|
|
22
|
-
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, }: {
|
|
23
|
+
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, ignoredChildSpan, ignoredSegmentSpan, }: {
|
|
23
24
|
decision: SamplingDecision | undefined;
|
|
24
25
|
context: Context;
|
|
25
26
|
spanAttributes: SpanAttributes;
|
|
26
27
|
sampleRand?: number;
|
|
27
28
|
downstreamTraceSampleRate?: number;
|
|
29
|
+
ignoredChildSpan?: boolean;
|
|
30
|
+
ignoredSegmentSpan?: boolean;
|
|
28
31
|
}): SamplingResult;
|
|
29
32
|
//# sourceMappingURL=sampler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampler.d.ts","sourceRoot":"","sources":["../../src/sampler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAA2C,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAsB,QAAQ,EAAS,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"sampler.d.ts","sourceRoot":"","sources":["../../src/sampler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAA2C,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAsB,QAAQ,EAAS,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA4B3D;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,gBAAgB,CAAU;gBAEf,MAAM,EAAE,MAAM;IAMjC,kBAAkB;IACX,YAAY,CACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,OAAO,GACd,cAAc;IAwKjB,4EAA4E;IACrE,QAAQ,IAAI,MAAM;CAG1B;AAuBD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,cAAc,EACd,UAAU,EACV,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,cAAc,CAkCjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spanProcessor.d.ts","sourceRoot":"","sources":["../../src/spanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"spanProcessor.d.ts","sourceRoot":"","sources":["../../src/spanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAejH;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,sBAAsB;IAChE,OAAO,CAAC,SAAS,CAAqB;gBAEnB,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;IAKjD;;OAEG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACI,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,GAAG,IAAI;IAoCxD,kBAAkB;IACX,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,GAAG,IAAI;CAY9C"}
|
package/build/types/trace.d.ts
CHANGED
|
@@ -55,6 +55,15 @@ export declare function withActiveSpan<T>(span: Span | null, callback: (scope: S
|
|
|
55
55
|
* It propagates the trace as a remote span, in addition to setting it on the propagation context.
|
|
56
56
|
*/
|
|
57
57
|
export declare function continueTrace<T>(options: Parameters<typeof baseContinueTrace>[0], callback: () => T): T;
|
|
58
|
+
/**
|
|
59
|
+
* Start a new trace with a unique traceId, ensuring all spans created within the callback
|
|
60
|
+
* share the same traceId.
|
|
61
|
+
*
|
|
62
|
+
* This is a custom version of `startNewTrace` for OTEL-powered environments.
|
|
63
|
+
* It injects the new traceId as a remote span context into the OTEL context, so that
|
|
64
|
+
* `startInactiveSpan` and `startSpan` pick it up correctly.
|
|
65
|
+
*/
|
|
66
|
+
export declare function startNewTrace<T>(callback: () => T): T;
|
|
58
67
|
/**
|
|
59
68
|
* Get the trace context for a given scope.
|
|
60
69
|
* We have a custom implementation here because we need an OTEL-specific way to get the span from a scope.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAA+C,MAAM,oBAAoB,CAAC;AAGrG,OAAO,KAAK,EACV,MAAM,EACN,aAAa,IAAI,iBAAiB,EAClC,sBAAsB,EACtB,KAAK,EAEL,YAAY,EACb,MAAM,cAAc,CAAC;AAmBtB,OAAO,KAAK,EAAuB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA0E7E;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,CAE9F;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,OAAO,EAAE,wBAAwB,EACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,CAAC,GAC9C,CAAC,CAEH;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAuBzE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,CAGrF;AAqGD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAEvG;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAoBrD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,GACX,CAAC,sBAAsB,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAUvF"}
|
|
@@ -5,6 +5,18 @@ export declare const SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING = "sentry.sampled_
|
|
|
5
5
|
export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
|
|
6
6
|
export declare const SENTRY_TRACE_STATE_SAMPLE_RAND = "sentry.sample_rand";
|
|
7
7
|
export declare const SENTRY_TRACE_STATE_SAMPLE_RATE = "sentry.sample_rate";
|
|
8
|
+
/**
|
|
9
|
+
* A flag marking a context as ignored because the span associated with the context
|
|
10
|
+
* is ignored (`ignoreSpans` filter).
|
|
11
|
+
*/
|
|
12
|
+
export declare const SENTRY_TRACE_STATE_CHILD_IGNORED = "sentry.ignored";
|
|
13
|
+
/**
|
|
14
|
+
* A flag marking a segment span as ignored because it matched the `ignoreSpans` filter.
|
|
15
|
+
* Unlike `SENTRY_TRACE_STATE_CHILD_IGNORED` (used for child spans), this flag is NOT consumed
|
|
16
|
+
* by the context manager for re-parenting. Instead, it propagates to child spans so they
|
|
17
|
+
* can record the correct client report outcome (`ignored` instead of `sample_rate`).
|
|
18
|
+
*/
|
|
19
|
+
export declare const SENTRY_TRACE_STATE_SEGMENT_IGNORED = "sentry.segment_ignored";
|
|
8
20
|
export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;
|
|
9
21
|
export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;
|
|
10
22
|
export declare const SENTRY_FORK_SET_SCOPE_CONTEXT_KEY: symbol;
|
|
@@ -19,5 +19,6 @@ export { SentryPropagator, shouldPropagateTraceForUrl } from './propagator';
|
|
|
19
19
|
export { SentrySpanProcessor } from './spanProcessor';
|
|
20
20
|
export { SentrySampler, wrapSamplingDecision } from './sampler';
|
|
21
21
|
export { openTelemetrySetupCheck } from './utils/setupCheck';
|
|
22
|
+
export { withStreamedSpan } from '@sentry/core';
|
|
22
23
|
export { getClient } from '@sentry/core';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,6 +8,7 @@ import { Client, SpanAttributes } from '@sentry/core';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class SentrySampler implements Sampler {
|
|
10
10
|
private _client;
|
|
11
|
+
private _isSpanStreaming;
|
|
11
12
|
constructor(client: Client);
|
|
12
13
|
/** @inheritDoc */
|
|
13
14
|
shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
|
|
@@ -19,11 +20,13 @@ export declare class SentrySampler implements Sampler {
|
|
|
19
20
|
* If you pass `decision: undefined`, it will be treated as `NOT_RECORDING`, but in contrast to passing `NOT_RECORDING`
|
|
20
21
|
* it will not propagate this decision to downstream Sentry SDKs.
|
|
21
22
|
*/
|
|
22
|
-
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, }: {
|
|
23
|
+
export declare function wrapSamplingDecision({ decision, context, spanAttributes, sampleRand, downstreamTraceSampleRate, ignoredChildSpan, ignoredSegmentSpan, }: {
|
|
23
24
|
decision: SamplingDecision | undefined;
|
|
24
25
|
context: Context;
|
|
25
26
|
spanAttributes: SpanAttributes;
|
|
26
27
|
sampleRand?: number;
|
|
27
28
|
downstreamTraceSampleRate?: number;
|
|
29
|
+
ignoredChildSpan?: boolean;
|
|
30
|
+
ignoredSegmentSpan?: boolean;
|
|
28
31
|
}): SamplingResult;
|
|
29
32
|
//# sourceMappingURL=sampler.d.ts.map
|
|
@@ -55,6 +55,15 @@ export declare function withActiveSpan<T>(span: Span | null, callback: (scope: S
|
|
|
55
55
|
* It propagates the trace as a remote span, in addition to setting it on the propagation context.
|
|
56
56
|
*/
|
|
57
57
|
export declare function continueTrace<T>(options: Parameters<typeof baseContinueTrace>[0], callback: () => T): T;
|
|
58
|
+
/**
|
|
59
|
+
* Start a new trace with a unique traceId, ensuring all spans created within the callback
|
|
60
|
+
* share the same traceId.
|
|
61
|
+
*
|
|
62
|
+
* This is a custom version of `startNewTrace` for OTEL-powered environments.
|
|
63
|
+
* It injects the new traceId as a remote span context into the OTEL context, so that
|
|
64
|
+
* `startInactiveSpan` and `startSpan` pick it up correctly.
|
|
65
|
+
*/
|
|
66
|
+
export declare function startNewTrace<T>(callback: () => T): T;
|
|
58
67
|
/**
|
|
59
68
|
* Get the trace context for a given scope.
|
|
60
69
|
* We have a custom implementation here because we need an OTEL-specific way to get the span from a scope.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/opentelemetry",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.48.0",
|
|
4
4
|
"description": "Official Sentry utilities for OpenTelemetry",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/opentelemetry",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sentry/core": "10.
|
|
42
|
+
"@sentry/core": "10.48.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@opentelemetry/semantic-conventions": "^1.39.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@opentelemetry/api": "^1.9.
|
|
53
|
-
"@opentelemetry/context-async-hooks": "^2.6.
|
|
54
|
-
"@opentelemetry/core": "^2.6.
|
|
55
|
-
"@opentelemetry/sdk-trace-base": "^2.6.
|
|
52
|
+
"@opentelemetry/api": "^1.9.1",
|
|
53
|
+
"@opentelemetry/context-async-hooks": "^2.6.1",
|
|
54
|
+
"@opentelemetry/core": "^2.6.1",
|
|
55
|
+
"@opentelemetry/sdk-trace-base": "^2.6.1",
|
|
56
56
|
"@opentelemetry/semantic-conventions": "^1.40.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|