@sentry/opentelemetry 8.0.0-alpha.8 → 8.0.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/opentelemetry",
3
- "version": "8.0.0-alpha.8",
3
+ "version": "8.0.0-beta.1",
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",
@@ -42,9 +42,9 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@sentry/core": "8.0.0-alpha.8",
46
- "@sentry/types": "8.0.0-alpha.8",
47
- "@sentry/utils": "8.0.0-alpha.8"
45
+ "@sentry/core": "8.0.0-beta.1",
46
+ "@sentry/types": "8.0.0-beta.1",
47
+ "@sentry/utils": "8.0.0-beta.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@opentelemetry/api": "^1.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,CAyGlE"}
1
+ {"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,CAyFlE"}
@@ -3,6 +3,7 @@ export declare const SENTRY_BAGGAGE_HEADER = "baggage";
3
3
  export declare const SENTRY_TRACE_STATE_DSC = "sentry.dsc";
4
4
  export declare const SENTRY_TRACE_STATE_PARENT_SPAN_ID = "sentry.parent_span_id";
5
5
  export declare const SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING = "sentry.sampled_not_recording";
6
+ export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
6
7
  export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;
7
8
  export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;
8
9
  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,iCAAiC,0BAA0B,CAAC;AACzE,eAAO,MAAM,wCAAwC,iCAAiC,CAAC;AAEvF,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,iCAAiC,0BAA0B,CAAC;AACzE,eAAO,MAAM,wCAAwC,iCAAiC,CAAC;AACvF,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD,eAAO,MAAM,yBAAyB,QAAoC,CAAC;AAE3E,eAAO,MAAM,uCAAuC,QAAkD,CAAC;AAEvG,eAAO,MAAM,iCAAiC,QAA4C,CAAC;AAE3F,eAAO,MAAM,2CAA2C,QAAsD,CAAC"}
package/types/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { getRequestSpanData } from './utils/getRequestSpanData';
1
+ export { getRequestSpanData } from './utils/getRequestSpanData';
2
2
  export type { OpenTelemetryClient } from './types';
3
3
  export { wrapClientClass } from './custom/client';
4
4
  export { getSpanKind } from './utils/getSpanKind';
5
- export { getSpanScopes } from './utils/spanData';
6
5
  export { getScopesFromContext } from './utils/contextData';
7
6
  export { spanHasAttributes, spanHasEvents, spanHasKind, spanHasName, spanHasParentId, spanHasStatus, } from './utils/spanTypes';
8
7
  export { getDynamicSamplingContextFromSpan } from './utils/dynamicSamplingContext';
9
8
  export { isSentryRequestSpan } from './utils/isSentryRequest';
10
9
  export { getActiveSpan } from './utils/getActiveSpan';
11
10
  export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace } from './trace';
11
+ export { suppressTracing } from './utils/suppressTracing';
12
12
  export { setupGlobalHub } from './custom/hub';
13
- export { getCurrentHub } from './custom/getCurrentHub';
13
+ export { getCurrentHubShim } from '@sentry/core';
14
14
  export { setupEventContextTrace } from './setupEventContextTrace';
15
15
  export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrategy';
16
16
  export { wrapContextManagerClass } from './contextManager';
@@ -19,12 +19,4 @@ export { SentrySpanProcessor } from './spanProcessor';
19
19
  export { SentrySampler } from './sampler';
20
20
  export { openTelemetrySetupCheck } from './utils/setupCheck';
21
21
  export { getClient } from '@sentry/core';
22
- /**
23
- * The following internal utils are not considered public API and are subject to change.
24
- * @hidden
25
- */
26
- declare const _INTERNAL: {
27
- readonly getRequestSpanData: typeof getRequestSpanData;
28
- };
29
- export { _INTERNAL };
30
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,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 -1,4 +1,5 @@
1
1
  import type { Context } from '@opentelemetry/api';
2
+ import { SpanKind } from '@opentelemetry/api';
2
3
  import type { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base';
3
4
  import type { Client, SpanAttributes } from '@sentry/types';
4
5
  /**
@@ -8,7 +9,7 @@ export declare class SentrySampler implements Sampler {
8
9
  private _client;
9
10
  constructor(client: Client);
10
11
  /** @inheritDoc */
11
- shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
12
+ shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
12
13
  /** Returns the sampler name or short description with the configuration. */
13
14
  toString(): string;
14
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sampler.d.ts","sourceRoot":"","sources":["../../src/sampler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,OAAO,EAAQ,MAAM,oBAAoB,CAAC;AAGpE,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG7E,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAU5D;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C,OAAO,CAAC,OAAO,CAAS;gBAEL,MAAM,EAAE,MAAM;IAKjC,kBAAkB;IACX,YAAY,CACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,OAAO,EAClB,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,OAAO,GACd,cAAc;IAgEjB,4EAA4E;IACrE,QAAQ,IAAI,MAAM;CAG1B"}
1
+ {"version":3,"file":"sampler.d.ts","sourceRoot":"","sources":["../../src/sampler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,OAAO,EAAQ,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG7E,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAU5D;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C,OAAO,CAAC,OAAO,CAAS;gBAEL,MAAM,EAAE,MAAM;IAKjC,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;IAkFjB,4EAA4E;IACrE,QAAQ,IAAI,MAAM;CAG1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"spanExporter.d.ts","sourceRoot":"","sources":["../../src/spanExporter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA2BlE;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,aAAa,CAA4C;IACjE,OAAO,CAAC,cAAc,CAAiB;;IAMvC,4BAA4B;IACrB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAoBvC,kDAAkD;IAC3C,KAAK,IAAI,IAAI;IAgBpB,0BAA0B;IACnB,KAAK,IAAI,IAAI;IAKpB,+BAA+B;IAC/B,OAAO,CAAC,aAAa;IAOrB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAazB"}
1
+ {"version":3,"file":"spanExporter.d.ts","sourceRoot":"","sources":["../../src/spanExporter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AA+BlE;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,aAAa,CAA4C;IACjE,OAAO,CAAC,cAAc,CAAiB;;IAMvC,4BAA4B;IACrB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAoBvC,kDAAkD;IAC3C,KAAK,IAAI,IAAI;IAgBpB,0BAA0B;IACnB,KAAK,IAAI,IAAI;IAKpB,+BAA+B;IAC/B,OAAO,CAAC,aAAa;IAOrB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAazB"}
@@ -1 +1 @@
1
- {"version":3,"file":"contextData.d.ts","sourceRoot":"","sources":["../../../src/utils/contextData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAEhF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAEnF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAEtE;AAED;;;KAGK;AACL,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,CAErE"}
1
+ {"version":3,"file":"contextData.d.ts","sourceRoot":"","sources":["../../../src/utils/contextData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAI3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAEhF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAEnF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAEtE;AAED;;;KAGK;AACL,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,CAErE"}
@@ -1 +1 @@
1
- {"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAuB7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAwCxD"}
1
+ {"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA2B7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CA4CxD"}
@@ -0,0 +1,3 @@
1
+ /** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */
2
+ export declare function suppressTracing<T>(callback: () => T): T;
3
+ //# sourceMappingURL=suppressTracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suppressTracing.d.ts","sourceRoot":"","sources":["../../../src/utils/suppressTracing.ts"],"names":[],"mappings":"AAGA,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAGvD"}
@@ -3,6 +3,7 @@ export declare const SENTRY_BAGGAGE_HEADER = "baggage";
3
3
  export declare const SENTRY_TRACE_STATE_DSC = "sentry.dsc";
4
4
  export declare const SENTRY_TRACE_STATE_PARENT_SPAN_ID = "sentry.parent_span_id";
5
5
  export declare const SENTRY_TRACE_STATE_SAMPLED_NOT_RECORDING = "sentry.sampled_not_recording";
6
+ export declare const SENTRY_TRACE_STATE_URL = "sentry.url";
6
7
  export declare const SENTRY_SCOPES_CONTEXT_KEY: symbol;
7
8
  export declare const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY: symbol;
8
9
  export declare const SENTRY_FORK_SET_SCOPE_CONTEXT_KEY: symbol;
@@ -1,16 +1,16 @@
1
- import { getRequestSpanData } from './utils/getRequestSpanData';
1
+ export { getRequestSpanData } from './utils/getRequestSpanData';
2
2
  export { OpenTelemetryClient } from './types';
3
3
  export { wrapClientClass } from './custom/client';
4
4
  export { getSpanKind } from './utils/getSpanKind';
5
- export { getSpanScopes } from './utils/spanData';
6
5
  export { getScopesFromContext } from './utils/contextData';
7
6
  export { spanHasAttributes, spanHasEvents, spanHasKind, spanHasName, spanHasParentId, spanHasStatus, } from './utils/spanTypes';
8
7
  export { getDynamicSamplingContextFromSpan } from './utils/dynamicSamplingContext';
9
8
  export { isSentryRequestSpan } from './utils/isSentryRequest';
10
9
  export { getActiveSpan } from './utils/getActiveSpan';
11
10
  export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace } from './trace';
11
+ export { suppressTracing } from './utils/suppressTracing';
12
12
  export { setupGlobalHub } from './custom/hub';
13
- export { getCurrentHub } from './custom/getCurrentHub';
13
+ export { getCurrentHubShim } from '@sentry/core';
14
14
  export { setupEventContextTrace } from './setupEventContextTrace';
15
15
  export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrategy';
16
16
  export { wrapContextManagerClass } from './contextManager';
@@ -19,12 +19,4 @@ export { SentrySpanProcessor } from './spanProcessor';
19
19
  export { SentrySampler } from './sampler';
20
20
  export { openTelemetrySetupCheck } from './utils/setupCheck';
21
21
  export { getClient } from '@sentry/core';
22
- /**
23
- * The following internal utils are not considered public API and are subject to change.
24
- * @hidden
25
- */
26
- declare const _INTERNAL: {
27
- readonly getRequestSpanData: typeof getRequestSpanData;
28
- };
29
- export { _INTERNAL };
30
22
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { Context } from '@opentelemetry/api';
2
+ import { SpanKind } from '@opentelemetry/api';
2
3
  import { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base';
3
4
  import { Client, SpanAttributes } from '@sentry/types';
4
5
  /**
@@ -8,7 +9,7 @@ export declare class SentrySampler implements Sampler {
8
9
  private _client;
9
10
  constructor(client: Client);
10
11
  /** @inheritDoc */
11
- shouldSample(context: Context, traceId: string, spanName: string, _spanKind: unknown, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
12
+ shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, spanAttributes: SpanAttributes, _links: unknown): SamplingResult;
12
13
  /** Returns the sampler name or short description with the configuration. */
13
14
  toString(): string;
14
15
  }
@@ -0,0 +1,3 @@
1
+ /** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */
2
+ export declare function suppressTracing<T>(callback: () => T): T;
3
+ //# sourceMappingURL=suppressTracing.d.ts.map
@@ -1,7 +0,0 @@
1
- import type { Hub } from '@sentry/types';
2
- /**
3
- * This is for legacy reasons, and returns a proxy object instead of a hub to be used.
4
- * @deprecated Use the methods directly.
5
- */
6
- export declare function getCurrentHub(): Hub;
7
- //# sourceMappingURL=getCurrentHub.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentHub.d.ts","sourceRoot":"","sources":["../../../src/custom/getCurrentHub.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,GAAG,EAAgD,MAAM,eAAe,CAAC;AAmB1G;;;GAGG;AACH,wBAAgB,aAAa,IAAI,GAAG,CA6CnC"}
@@ -1,17 +0,0 @@
1
- import type { Scope } from '@sentry/types';
2
- import type { AbstractSpan } from '../types';
3
- /**
4
- * Set the Sentry scope to be used for finishing a given OTEL span.
5
- * This is different from `setCapturedScopesOnSpan`, as that works on _sentry_ spans,
6
- * while here we are basically "caching" this on the otel spans.
7
- */
8
- export declare function setSpanScopes(span: AbstractSpan, scopes: {
9
- scope: Scope;
10
- isolationScope: Scope;
11
- }): void;
12
- /** Get the Sentry scopes to use for finishing an OTEL span. */
13
- export declare function getSpanScopes(span: AbstractSpan): {
14
- scope: Scope;
15
- isolationScope: Scope;
16
- } | undefined;
17
- //# sourceMappingURL=spanData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spanData.d.ts","sourceRoot":"","sources":["../../../src/utils/spanData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAa7C;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE;IACN,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,KAAK,CAAC;CACvB,GACA,IAAI,CAEN;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAC5C;IACE,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,KAAK,CAAC;CACvB,GACD,SAAS,CAEZ"}
@@ -1,7 +0,0 @@
1
- import { Hub } from '@sentry/types';
2
- /**
3
- * This is for legacy reasons, and returns a proxy object instead of a hub to be used.
4
- * @deprecated Use the methods directly.
5
- */
6
- export declare function getCurrentHub(): Hub;
7
- //# sourceMappingURL=getCurrentHub.d.ts.map
@@ -1,17 +0,0 @@
1
- import { Scope } from '@sentry/types';
2
- import { AbstractSpan } from '../types';
3
- /**
4
- * Set the Sentry scope to be used for finishing a given OTEL span.
5
- * This is different from `setCapturedScopesOnSpan`, as that works on _sentry_ spans,
6
- * while here we are basically "caching" this on the otel spans.
7
- */
8
- export declare function setSpanScopes(span: AbstractSpan, scopes: {
9
- scope: Scope;
10
- isolationScope: Scope;
11
- }): void;
12
- /** Get the Sentry scopes to use for finishing an OTEL span. */
13
- export declare function getSpanScopes(span: AbstractSpan): {
14
- scope: Scope;
15
- isolationScope: Scope;
16
- } | undefined;
17
- //# sourceMappingURL=spanData.d.ts.map