@sentry/opentelemetry 10.69.0 → 11.0.0-alpha.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/README.md +2 -15
- package/build/cjs/index.js +844 -95
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +837 -58
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/applyOtelSpanData.d.ts +1 -4
- package/build/types/applyOtelSpanData.d.ts.map +1 -1
- package/build/types/asyncContextStrategy.d.ts +2 -4
- package/build/types/asyncContextStrategy.d.ts.map +1 -1
- package/build/types/asyncLocalStorageContextManager.d.ts +16 -4
- package/build/types/asyncLocalStorageContextManager.d.ts.map +1 -1
- package/build/types/constants.d.ts +0 -10
- package/build/types/constants.d.ts.map +1 -1
- package/build/types/index.d.ts +8 -4
- package/build/types/index.d.ts.map +1 -1
- package/build/types/propagator.d.ts +12 -33
- package/build/types/propagator.d.ts.map +1 -1
- package/build/types/trace.d.ts +1 -27
- package/build/types/trace.d.ts.map +1 -1
- package/build/types/tracer.d.ts.map +1 -1
- package/build/types/tracerProvider.d.ts +0 -9
- package/build/types/tracerProvider.d.ts.map +1 -1
- package/build/types/types.d.ts +2 -21
- package/build/types/types.d.ts.map +1 -1
- package/build/types/utils/TraceState.d.ts.map +1 -1
- package/build/types/utils/backfillStreamedSpanData.d.ts +1 -3
- package/build/types/utils/backfillStreamedSpanData.d.ts.map +1 -1
- package/build/types/utils/mapStatus.d.ts +0 -6
- package/build/types/utils/mapStatus.d.ts.map +1 -1
- package/build/types/utils/parseSpanDescription.d.ts +6 -30
- package/build/types/utils/parseSpanDescription.d.ts.map +1 -1
- package/build/types/utils/reconcileDscSampled.d.ts +14 -0
- package/build/types/utils/reconcileDscSampled.d.ts.map +1 -0
- package/build/types/utils/suppressTracing.d.ts +5 -4
- package/build/types/utils/suppressTracing.d.ts.map +1 -1
- package/package.json +10 -37
- package/build/cjs/asyncContextStrategy-volGaYqZ.js +0 -1892
- package/build/cjs/asyncContextStrategy-volGaYqZ.js.map +0 -1
- package/build/cjs/index.browser.js +0 -53
- package/build/cjs/index.browser.js.map +0 -1
- package/build/esm/asyncContextStrategy-jD8YWNDU.js +0 -1857
- package/build/esm/asyncContextStrategy-jD8YWNDU.js.map +0 -1
- package/build/esm/index.browser.js +0 -14
- package/build/esm/index.browser.js.map +0 -1
- package/build/types/contextManager.d.ts +0 -22
- package/build/types/contextManager.d.ts.map +0 -1
- package/build/types/custom/client.d.ts +0 -12
- package/build/types/custom/client.d.ts.map +0 -1
- package/build/types/exports.d.ts +0 -27
- package/build/types/exports.d.ts.map +0 -1
- package/build/types/index.browser.d.ts +0 -10
- package/build/types/index.browser.d.ts.map +0 -1
- package/build/types/nodeAsyncContextStrategy.d.ts +0 -4
- package/build/types/nodeAsyncContextStrategy.d.ts.map +0 -1
- package/build/types/resource.d.ts +0 -26
- package/build/types/resource.d.ts.map +0 -1
- package/build/types/sampler.d.ts +0 -32
- package/build/types/sampler.d.ts.map +0 -1
- package/build/types/semanticAttributes.d.ts +0 -4
- package/build/types/semanticAttributes.d.ts.map +0 -1
- package/build/types/spanExporter.d.ts +0 -50
- package/build/types/spanExporter.d.ts.map +0 -1
- package/build/types/spanProcessor.d.ts +0 -31
- package/build/types/spanProcessor.d.ts.map +0 -1
- package/build/types/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +0 -7
- package/build/types/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts.map +0 -1
- package/build/types/utils/getParentSpanId.d.ts +0 -8
- package/build/types/utils/getParentSpanId.d.ts.map +0 -1
- package/build/types/utils/getRequestSpanData.d.ts +0 -8
- package/build/types/utils/getRequestSpanData.d.ts.map +0 -1
- package/build/types/utils/getSpanKind.d.ts +0 -10
- package/build/types/utils/getSpanKind.d.ts.map +0 -1
- package/build/types/utils/getTraceData.d.ts +0 -12
- package/build/types/utils/getTraceData.d.ts.map +0 -1
- package/build/types/utils/groupSpansWithParents.d.ts +0 -17
- package/build/types/utils/groupSpansWithParents.d.ts.map +0 -1
- package/build/types/utils/isSentryRequest.d.ts +0 -8
- package/build/types/utils/isSentryRequest.d.ts.map +0 -1
- package/build/types/utils/setupCheck.d.ts +0 -9
- package/build/types/utils/setupCheck.d.ts.map +0 -1
- package/build/types/utils/spanTypes.d.ts +0 -52
- package/build/types/utils/spanTypes.d.ts.map +0 -1
- package/build/types-ts3.8/applyOtelSpanData.d.ts +0 -18
- package/build/types-ts3.8/asyncContextStrategy.d.ts +0 -9
- package/build/types-ts3.8/asyncLocalStorageContextManager.d.ts +0 -31
- package/build/types-ts3.8/constants.d.ts +0 -24
- package/build/types-ts3.8/contextManager.d.ts +0 -22
- package/build/types-ts3.8/custom/client.d.ts +0 -12
- package/build/types-ts3.8/debug-build.d.ts +0 -7
- package/build/types-ts3.8/exports.d.ts +0 -27
- package/build/types-ts3.8/index.browser.d.ts +0 -10
- package/build/types-ts3.8/index.d.ts +0 -5
- package/build/types-ts3.8/nodeAsyncContextStrategy.d.ts +0 -4
- package/build/types-ts3.8/propagator.d.ts +0 -43
- package/build/types-ts3.8/resource.d.ts +0 -29
- package/build/types-ts3.8/sampler.d.ts +0 -32
- package/build/types-ts3.8/semanticAttributes.d.ts +0 -4
- package/build/types-ts3.8/setupEventContextTrace.d.ts +0 -4
- package/build/types-ts3.8/spanExporter.d.ts +0 -50
- package/build/types-ts3.8/spanProcessor.d.ts +0 -31
- package/build/types-ts3.8/trace.d.ts +0 -75
- package/build/types-ts3.8/tracer.d.ts +0 -13
- package/build/types-ts3.8/tracerProvider.d.ts +0 -23
- package/build/types-ts3.8/types.d.ts +0 -29
- package/build/types-ts3.8/utils/TraceState.d.ts +0 -21
- package/build/types-ts3.8/utils/backfillStreamedSpanData.d.ts +0 -16
- package/build/types-ts3.8/utils/buildContextWithSentryScopes.d.ts +0 -12
- package/build/types-ts3.8/utils/contextData.d.ts +0 -30
- package/build/types-ts3.8/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +0 -7
- package/build/types-ts3.8/utils/getActiveSpan.d.ts +0 -6
- package/build/types-ts3.8/utils/getParentSpanId.d.ts +0 -8
- package/build/types-ts3.8/utils/getRequestSpanData.d.ts +0 -8
- package/build/types-ts3.8/utils/getSamplingDecision.d.ts +0 -27
- package/build/types-ts3.8/utils/getSpanKind.d.ts +0 -10
- package/build/types-ts3.8/utils/getTraceData.d.ts +0 -12
- package/build/types-ts3.8/utils/groupSpansWithParents.d.ts +0 -17
- package/build/types-ts3.8/utils/isSentryRequest.d.ts +0 -8
- package/build/types-ts3.8/utils/makeTraceState.d.ts +0 -10
- package/build/types-ts3.8/utils/mapStatus.d.ts +0 -9
- package/build/types-ts3.8/utils/parseSpanDescription.d.ts +0 -56
- package/build/types-ts3.8/utils/setupCheck.d.ts +0 -9
- package/build/types-ts3.8/utils/spanTypes.d.ts +0 -52
- package/build/types-ts3.8/utils/suppressTracing.d.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracerProvider.d.ts","sourceRoot":"","sources":["../../src/tracerProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"tracerProvider.d.ts","sourceRoot":"","sources":["../../src/tracerProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGhF;;GAEG;AACH,qBAAa,oBAAqB,YAAW,cAAc;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmC;IAE5D,kBAAkB;IACX,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAUhF;IAED,+CAA+C;IACxC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAEjC;IAED,+CAA+C;IACxC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAE/B;CACF"}
|
package/build/types/types.d.ts
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { Scope, Span, StartSpanOptions } from '@sentry/core';
|
|
4
|
-
export interface OpenTelemetryTracerProvider extends TracerProvider {
|
|
5
|
-
forceFlush(): Promise<void>;
|
|
6
|
-
shutdown(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export interface OpenTelemetryClient {
|
|
9
|
-
tracer: Tracer;
|
|
10
|
-
traceProvider: BasicTracerProvider | OpenTelemetryTracerProvider | undefined;
|
|
11
|
-
}
|
|
1
|
+
import type { SpanKind } from '@opentelemetry/api';
|
|
2
|
+
import type { Scope, StartSpanOptions } from '@sentry/core';
|
|
12
3
|
export interface OpenTelemetrySpanContext extends StartSpanOptions {
|
|
13
4
|
kind?: SpanKind;
|
|
14
5
|
}
|
|
15
|
-
/**
|
|
16
|
-
* The base `Span` type is basically a `WriteableSpan`.
|
|
17
|
-
* There are places where we basically want to allow passing _any_ span,
|
|
18
|
-
* so in these cases we type this as `AbstractSpan` which could be either a regular `Span` or a `ReadableSpan`.
|
|
19
|
-
* You'll have to make sure to check relevant fields before accessing them.
|
|
20
|
-
*
|
|
21
|
-
* Note that technically, the `Span` exported from `@opentelemetry/sdk-trace-base` matches this,
|
|
22
|
-
* but we cannot be 100% sure that we are actually getting such a span, so this type is more defensive.
|
|
23
|
-
*/
|
|
24
|
-
export type AbstractSpan = WriteableSpan | ReadableSpan | Span;
|
|
25
6
|
export interface CurrentScopes {
|
|
26
7
|
scope: Scope;
|
|
27
8
|
isolationScope: Scope;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAEhE,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,KAAK,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraceState.d.ts","sourceRoot":"","sources":["../../../src/utils/TraceState.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5E;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,mBAAmB;IACpD,OAAO,CAAC,cAAc,CAAkC;IAExD,kBAAkB;IACX,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU;
|
|
1
|
+
{"version":3,"file":"TraceState.d.ts","sourceRoot":"","sources":["../../../src/utils/TraceState.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5E;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,mBAAmB;IACpD,OAAO,CAAC,cAAc,CAAkC;IAExD,kBAAkB;IACX,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAOjD;IAED,kBAAkB;IACX,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAIpC;IAED,kBAAkB;IACX,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE1C;IAED,kBAAkB;IACX,SAAS,IAAI,MAAM,CAKzB;IAED,OAAO,CAAC,MAAM;CAKf"}
|
|
@@ -10,7 +10,5 @@ import type { StreamedSpanJSON } from '@sentry/core';
|
|
|
10
10
|
* child spans, which `applyOtelSpanData` only sets on segment roots). `inferSpanData` is deterministic
|
|
11
11
|
* on the same attributes, so re-running it here is a no-op for already-inferred fields.
|
|
12
12
|
*/
|
|
13
|
-
export declare function backfillStreamedSpanDataFromOtel(spanJSON: StreamedSpanJSON
|
|
14
|
-
spanKind?: number;
|
|
15
|
-
}): void;
|
|
13
|
+
export declare function backfillStreamedSpanDataFromOtel(spanJSON: StreamedSpanJSON): void;
|
|
16
14
|
//# sourceMappingURL=backfillStreamedSpanData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backfillStreamedSpanData.d.ts","sourceRoot":"","sources":["../../../src/utils/backfillStreamedSpanData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"backfillStreamedSpanData.d.ts","sourceRoot":"","sources":["../../../src/utils/backfillStreamedSpanData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKrE;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAcjF"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { SpanAttributes, SpanStatus } from '@sentry/core';
|
|
2
|
-
import type { AbstractSpan } from '../types';
|
|
3
|
-
export declare const isStatusErrorMessageValid: (message: string) => boolean;
|
|
4
|
-
/**
|
|
5
|
-
* Get a Sentry span status from an otel span.
|
|
6
|
-
*/
|
|
7
|
-
export declare function mapStatus(span: AbstractSpan): SpanStatus;
|
|
8
2
|
export declare function inferStatusFromAttributes(attributes: SpanAttributes): SpanStatus | undefined;
|
|
9
3
|
//# sourceMappingURL=mapStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAuB/D,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,cAAc,GAAG,UAAU,GAAG,SAAS,CAwB5F"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import type { Attributes
|
|
2
|
-
import {
|
|
3
|
-
import type { SpanAttributes, TransactionSource } from '@sentry/core';
|
|
4
|
-
import type { AbstractSpan } from '../types';
|
|
1
|
+
import type { Attributes } from '@opentelemetry/api';
|
|
2
|
+
import type { Span, SpanAttributes } from '@sentry/core';
|
|
5
3
|
interface SpanDescription {
|
|
6
4
|
op: string | undefined;
|
|
7
|
-
description: string;
|
|
8
|
-
source: TransactionSource;
|
|
9
5
|
data?: Record<string, string | undefined>;
|
|
10
6
|
}
|
|
11
7
|
/**
|
|
12
8
|
* Infer the op & description for a set of name, attributes and kind of a span.
|
|
13
9
|
*/
|
|
14
|
-
export declare function inferSpanData(
|
|
10
|
+
export declare function inferSpanData(attributes: SpanAttributes): SpanDescription;
|
|
15
11
|
/**
|
|
16
12
|
* Extract better op/description from an otel span.
|
|
17
13
|
*
|
|
@@ -21,36 +17,16 @@ export declare function inferSpanData(spanName: string, attributes: SpanAttribut
|
|
|
21
17
|
*
|
|
22
18
|
* Based on https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/7422ce2a06337f68a59b552b8c5a2ac125d6bae5/exporter/sentryexporter/sentry_exporter.go#L306
|
|
23
19
|
*/
|
|
24
|
-
export declare function parseSpanDescription(span:
|
|
20
|
+
export declare function parseSpanDescription(span: Span): SpanDescription;
|
|
25
21
|
/** Only exported for tests. */
|
|
26
|
-
export declare function descriptionForHttpMethod(
|
|
27
|
-
name: string;
|
|
28
|
-
attributes: Attributes;
|
|
29
|
-
kind: SpanKind;
|
|
30
|
-
}, httpMethod: AttributeValue): SpanDescription;
|
|
22
|
+
export declare function descriptionForHttpMethod(attributes: Attributes): SpanDescription;
|
|
31
23
|
/** Exported for tests only */
|
|
32
|
-
export declare function getSanitizedUrl(attributes: Attributes
|
|
24
|
+
export declare function getSanitizedUrl(attributes: Attributes): {
|
|
33
25
|
url: string | undefined;
|
|
34
26
|
urlPath: string | undefined;
|
|
35
27
|
query: string | undefined;
|
|
36
28
|
fragment: string | undefined;
|
|
37
29
|
hasRoute: boolean;
|
|
38
30
|
};
|
|
39
|
-
/**
|
|
40
|
-
* Because Otel instrumentation sometimes mutates span names via `span.updateName`, the only way
|
|
41
|
-
* to ensure that a user-set span name is preserved is to store it as a tmp attribute on the span.
|
|
42
|
-
* We delete this attribute once we're done with it when preparing the event envelope.
|
|
43
|
-
*
|
|
44
|
-
* This temp attribute always takes precedence over the original name.
|
|
45
|
-
*
|
|
46
|
-
* We also need to take care of setting the correct source. Users can always update the source
|
|
47
|
-
* after updating the name, so we need to respect that.
|
|
48
|
-
*
|
|
49
|
-
* @internal exported only for testing
|
|
50
|
-
*/
|
|
51
|
-
export declare function getUserUpdatedNameAndSource(originalName: string, attributes: Attributes, fallbackSource?: TransactionSource): {
|
|
52
|
-
description: string;
|
|
53
|
-
source: TransactionSource;
|
|
54
|
-
};
|
|
55
31
|
export {};
|
|
56
32
|
//# sourceMappingURL=parseSpanDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseSpanDescription.d.ts","sourceRoot":"","sources":["../../../src/utils/parseSpanDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"parseSpanDescription.d.ts","sourceRoot":"","sources":["../../../src/utils/parseSpanDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA2BrD,OAAO,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAezD,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,eAAe,CA+CzE;AAqCD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,eAAe,CAKhE;AAmBD,+BAA+B;AAC/B,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,UAAU,GAAG,eAAe,CAkChF;AAED,8BAA8B;AAC9B,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,GAAG;IACvD,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;CACnB,CAkCA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DynamicSamplingContext } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* Reconcile a freshly-derived DSC's `sampled` flag with the OTel sampling decision.
|
|
4
|
+
*
|
|
5
|
+
* Only applies to a DSC that core generated from the span's (binary) trace flags — never to a frozen
|
|
6
|
+
* incoming DSC from the trace state, which the caller leaves untouched per the propagation spec.
|
|
7
|
+
* Trace flags cannot tell a *deferred* decision (an incoming remote span whose decision lives in the
|
|
8
|
+
* trace state) apart from a definitive *unsampled* one — both read as `traceFlags: NONE`.
|
|
9
|
+
* `getSamplingDecision` resolves this via the OTel trace state, so we let it win here: drop `sampled`
|
|
10
|
+
* when the decision is deferred (`undefined`), and — matching the OTel SDK, whose unsampled spans are
|
|
11
|
+
* nameless non-recording spans — drop the transaction name when the trace is definitively unsampled.
|
|
12
|
+
*/
|
|
13
|
+
export declare function reconcileDscSampled(dsc: Partial<DynamicSamplingContext>, sampled: boolean | undefined): Partial<DynamicSamplingContext>;
|
|
14
|
+
//# sourceMappingURL=reconcileDscSampled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcileDscSampled.d.ts","sourceRoot":"","sources":["../../../src/utils/reconcileDscSampled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,OAAO,CAAC,sBAAsB,CAAC,EACpC,OAAO,EAAE,OAAO,GAAG,SAAS,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAajC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
export declare function suppressTracing
|
|
4
|
-
|
|
1
|
+
import type { Context } from '@opentelemetry/api';
|
|
2
|
+
/** Returns a new context with tracing suppressed, so no spans are created within it. */
|
|
3
|
+
export declare function suppressTracing(context: Context): Context;
|
|
4
|
+
/** Whether tracing is suppressed in the given context. */
|
|
5
|
+
export declare function isTracingSuppressed(context: Context): boolean;
|
|
5
6
|
//# sourceMappingURL=suppressTracing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suppressTracing.d.ts","sourceRoot":"","sources":["../../../src/utils/suppressTracing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"suppressTracing.d.ts","sourceRoot":"","sources":["../../../src/utils/suppressTracing.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKlD,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEzD;AAED,0DAA0D;AAC1D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAE7D"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/opentelemetry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.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",
|
|
7
7
|
"author": "Sentry",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"/build"
|
|
@@ -19,29 +19,8 @@
|
|
|
19
19
|
"./package.json": "./package.json",
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./build/types/index.d.ts",
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"require": "./build/cjs/index.js"
|
|
25
|
-
},
|
|
26
|
-
"worker": {
|
|
27
|
-
"import": "./build/esm/index.js",
|
|
28
|
-
"require": "./build/cjs/index.js"
|
|
29
|
-
},
|
|
30
|
-
"browser": {
|
|
31
|
-
"import": "./build/esm/index.browser.js",
|
|
32
|
-
"require": "./build/cjs/index.browser.js"
|
|
33
|
-
},
|
|
34
|
-
"default": {
|
|
35
|
-
"import": "./build/esm/index.js",
|
|
36
|
-
"require": "./build/cjs/index.js"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"typesVersions": {
|
|
41
|
-
"<5.0": {
|
|
42
|
-
"build/types/index.d.ts": [
|
|
43
|
-
"build/types-ts3.8/index.d.ts"
|
|
44
|
-
]
|
|
22
|
+
"import": "./build/esm/index.js",
|
|
23
|
+
"require": "./build/cjs/index.js"
|
|
45
24
|
}
|
|
46
25
|
},
|
|
47
26
|
"publishConfig": {
|
|
@@ -49,33 +28,27 @@
|
|
|
49
28
|
},
|
|
50
29
|
"dependencies": {
|
|
51
30
|
"@sentry/conventions": "^0.16.0",
|
|
52
|
-
"@sentry/core": "
|
|
31
|
+
"@sentry/core": "11.0.0-alpha.0"
|
|
53
32
|
},
|
|
54
33
|
"peerDependencies": {
|
|
55
|
-
"@opentelemetry/api": "^1.9.0"
|
|
56
|
-
"@opentelemetry/core": "^1.30.1 || ^2.1.0",
|
|
57
|
-
"@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0"
|
|
34
|
+
"@opentelemetry/api": "^1.9.0"
|
|
58
35
|
},
|
|
59
36
|
"devDependencies": {
|
|
60
|
-
"@opentelemetry/api": "^1.9.1"
|
|
61
|
-
"@opentelemetry/core": "^2.9.0",
|
|
62
|
-
"@opentelemetry/sdk-trace-base": "^2.9.0"
|
|
37
|
+
"@opentelemetry/api": "^1.9.1"
|
|
63
38
|
},
|
|
64
39
|
"scripts": {
|
|
65
40
|
"build": "run-p build:transpile build:types",
|
|
66
41
|
"build:dev": "yarn build",
|
|
67
42
|
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
68
|
-
"build:types": "
|
|
69
|
-
"build:types:core": "tsc -p tsconfig.types.json",
|
|
70
|
-
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
|
|
43
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
71
44
|
"build:watch": "run-p build:transpile:watch",
|
|
72
45
|
"build:dev:watch": "yarn build:watch",
|
|
73
46
|
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
|
|
74
47
|
"build:tarball": "npm pack",
|
|
75
48
|
"circularDepCheck": "madge --circular src/index.ts",
|
|
76
49
|
"clean": "rimraf build coverage sentry-opentelemetry-*.tgz",
|
|
77
|
-
"lint:fix": "
|
|
78
|
-
"lint": "
|
|
50
|
+
"lint:fix": "oxlint . --fix --type-aware",
|
|
51
|
+
"lint": "oxlint . --type-aware",
|
|
79
52
|
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
|
|
80
53
|
"test": "yarn test:unit",
|
|
81
54
|
"test:unit": "vitest run",
|