@sentry/opentelemetry 8.0.0-alpha.9 → 8.0.0-beta.2
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/cjs/index.js +160 -223
- package/cjs/index.js.map +1 -1
- package/esm/index.js +166 -229
- package/esm/index.js.map +1 -1
- package/package.json +13 -14
- package/types/asyncContextStrategy.d.ts.map +1 -1
- package/types/constants.d.ts +1 -0
- package/types/constants.d.ts.map +1 -1
- package/types/index.d.ts +3 -11
- package/types/index.d.ts.map +1 -1
- package/types/propagator.d.ts.map +1 -1
- package/types/sampler.d.ts +2 -1
- package/types/sampler.d.ts.map +1 -1
- package/types/setupEventContextTrace.d.ts.map +1 -1
- package/types/spanExporter.d.ts.map +1 -1
- package/types/utils/contextData.d.ts.map +1 -1
- package/types/utils/mapStatus.d.ts.map +1 -1
- package/types/utils/parseSpanDescription.d.ts.map +1 -1
- package/types/utils/suppressTracing.d.ts +3 -0
- package/types/utils/suppressTracing.d.ts.map +1 -0
- package/types-ts3.8/constants.d.ts +1 -0
- package/types-ts3.8/index.d.ts +3 -11
- package/types-ts3.8/sampler.d.ts +2 -1
- package/types-ts3.8/utils/suppressTracing.d.ts +3 -0
- package/types/custom/getCurrentHub.d.ts +0 -7
- package/types/custom/getCurrentHub.d.ts.map +0 -1
- package/types/utils/spanData.d.ts +0 -17
- package/types/utils/spanData.d.ts.map +0 -1
- package/types-ts3.8/custom/getCurrentHub.d.ts +0 -7
- package/types-ts3.8/utils/spanData.d.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/opentelemetry",
|
|
3
|
-
"version": "8.0.0-
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
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,23 +42,22 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@sentry/core": "8.0.0-
|
|
46
|
-
"@sentry/types": "8.0.0-
|
|
47
|
-
"@sentry/utils": "8.0.0-
|
|
45
|
+
"@sentry/core": "8.0.0-beta.2",
|
|
46
|
+
"@sentry/types": "8.0.0-beta.2",
|
|
47
|
+
"@sentry/utils": "8.0.0-beta.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@opentelemetry/api": "^1.
|
|
51
|
-
"@opentelemetry/core": "^1.
|
|
52
|
-
"@opentelemetry/sdk-trace-base": "^1.
|
|
53
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
50
|
+
"@opentelemetry/api": "^1.8.0",
|
|
51
|
+
"@opentelemetry/core": "^1.23.0",
|
|
52
|
+
"@opentelemetry/sdk-trace-base": "^1.23.0",
|
|
53
|
+
"@opentelemetry/semantic-conventions": "^1.23.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@opentelemetry/api": "^1.
|
|
57
|
-
"@opentelemetry/context-async-hooks": "^1.
|
|
58
|
-
"@opentelemetry/core": "^1.
|
|
59
|
-
"@opentelemetry/sdk-trace-base": "^1.
|
|
60
|
-
"@opentelemetry/
|
|
61
|
-
"@opentelemetry/semantic-conventions": "^1.17.1"
|
|
56
|
+
"@opentelemetry/api": "^1.8.0",
|
|
57
|
+
"@opentelemetry/context-async-hooks": "^1.23.0",
|
|
58
|
+
"@opentelemetry/core": "^1.23.0",
|
|
59
|
+
"@opentelemetry/sdk-trace-base": "^1.23.0",
|
|
60
|
+
"@opentelemetry/semantic-conventions": "^1.23.0"
|
|
62
61
|
},
|
|
63
62
|
"sideEffects": false
|
|
64
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"asyncContextStrategy.d.ts","sourceRoot":"","sources":["../../src/asyncContextStrategy.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,wBAAgB,2CAA2C,IAAI,IAAI,CAyFlE"}
|
package/types/constants.d.ts
CHANGED
|
@@ -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;
|
package/types/constants.d.ts.map
CHANGED
|
@@ -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;
|
|
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
|
-
|
|
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 {
|
|
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
|
package/types/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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;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;AAE3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvG,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,2CAA2C,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propagator.d.ts","sourceRoot":"","sources":["../../src/propagator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,OAAO,EAAE,IAAI,EAAe,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG5G,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAuB,MAAM,qBAAqB,CAAC;AAE5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"propagator.d.ts","sourceRoot":"","sources":["../../src/propagator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,OAAO,EAAE,IAAI,EAAe,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG5G,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAuB,MAAM,qBAAqB,CAAC;AAE5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAKlD,OAAO,KAAK,EAAE,sBAAsB,EAAW,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA2BzF,8DAA8D;AAC9D,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,kBAAkB,CAuB5E;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,8FAA8F;IAC9F,OAAO,CAAC,qBAAqB,CAA0B;;IAUvD;;OAEG;IACI,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI;IAuD9E;;OAEG;IACI,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO;IA0BlF;;OAEG;IACI,MAAM,IAAI,MAAM,EAAE;IAIzB,uDAAuD;IACvD,OAAO,CAAC,sBAAsB;CAc/B;AAED,0BAA0B;AAC1B,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,GAAG,EACH,OAAO,GACR,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,UAAU,GAAG,SAAS,CAiBzB;AAkFD;;;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/types/sampler.d.ts
CHANGED
|
@@ -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,
|
|
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
|
}
|
package/types/sampler.d.ts.map
CHANGED
|
@@ -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;
|
|
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;IA6EjB,4EAA4E;IACrE,QAAQ,IAAI,MAAM;CAG1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupEventContextTrace.d.ts","sourceRoot":"","sources":["../../src/setupEventContextTrace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"setupEventContextTrace.d.ts","sourceRoot":"","sources":["../../src/setupEventContextTrace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAO5C,uDAAuD;AACvD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAgC3D"}
|
|
@@ -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;
|
|
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;
|
|
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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseSpanDescription.d.ts","sourceRoot":"","sources":["../../../src/utils/parseSpanDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"parseSpanDescription.d.ts","sourceRoot":"","sources":["../../../src/utils/parseSpanDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAY9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe,CA2CxE;AAWD,+BAA+B;AAC/B,wBAAgB,wBAAwB,CACtC,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,EACpF,UAAU,EAAE,cAAc,GACzB,eAAe,CA0CjB;AAED,8BAA8B;AAC9B,wBAAgB,eAAe,CAC7B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,GACb;IACD,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,CA+BA"}
|
|
@@ -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;
|
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
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 {
|
|
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
|
package/types-ts3.8/sampler.d.ts
CHANGED
|
@@ -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,
|
|
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,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
|