@sentry/opentelemetry 8.9.2 → 8.11.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/cjs/index.js +173 -159
- package/cjs/index.js.map +1 -1
- package/esm/index.js +172 -159
- package/esm/index.js.map +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/propagator.d.ts.map +1 -1
- package/types/setupEventContextTrace.d.ts.map +1 -1
- package/types/trace.d.ts.map +1 -1
- package/types/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +7 -0
- package/types/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts.map +1 -0
- package/types/utils/mapStatus.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +2 -1
- package/types-ts3.8/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +7 -0
- package/types/utils/dynamicSamplingContext.d.ts +0 -11
- package/types/utils/dynamicSamplingContext.d.ts.map +0 -1
- package/types-ts3.8/utils/dynamicSamplingContext.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/opentelemetry",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.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",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@sentry/core": "8.
|
|
46
|
-
"@sentry/types": "8.
|
|
47
|
-
"@sentry/utils": "8.
|
|
45
|
+
"@sentry/core": "8.11.0",
|
|
46
|
+
"@sentry/types": "8.11.0",
|
|
47
|
+
"@sentry/utils": "8.11.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@opentelemetry/api": "^1.9.0",
|
package/types/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ export { wrapClientClass } from './custom/client';
|
|
|
4
4
|
export { getSpanKind } from './utils/getSpanKind';
|
|
5
5
|
export { getScopesFromContext } from './utils/contextData';
|
|
6
6
|
export { spanHasAttributes, spanHasEvents, spanHasKind, spanHasName, spanHasParentId, spanHasStatus, } from './utils/spanTypes';
|
|
7
|
-
export { getDynamicSamplingContextFromSpan } from '
|
|
7
|
+
export { getDynamicSamplingContextFromSpan } from '@sentry/core';
|
|
8
8
|
export { isSentryRequestSpan } from './utils/isSentryRequest';
|
|
9
|
+
export { enhanceDscWithOpenTelemetryRootSpanName } from './utils/enhanceDscWithOpenTelemetryRootSpanName';
|
|
9
10
|
export { getActiveSpan } from './utils/getActiveSpan';
|
|
10
11
|
export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace } from './trace';
|
|
11
12
|
export { suppressTracing } from './utils/suppressTracing';
|
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;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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAA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-
{"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;AAI5G,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;AAI5G,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAuB,MAAM,qBAAqB,CAAC;AAE5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAWlD,OAAO,KAAK,EAAE,sBAAsB,EAAW,kBAAkB,EAAE,MAAM,eAAe,CAAC;AA0BzF,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,CAeb;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupEventContextTrace.d.ts","sourceRoot":"","sources":["../../src/setupEventContextTrace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setupEventContextTrace.d.ts","sourceRoot":"","sources":["../../src/setupEventContextTrace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,uDAAuD;AACvD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAwC3D"}
|
package/types/trace.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAoC,MAAM,oBAAoB,CAAC;AAG1F,OAAO,EAGL,aAAa,IAAI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,IAAI,EAAoC,MAAM,oBAAoB,CAAC;AAG1F,OAAO,EAGL,aAAa,IAAI,iBAAiB,EAOnC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAU,KAAK,EAAsB,MAAM,eAAe,CAAC;AAGvE,OAAO,KAAK,EAAuB,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAI7E;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,CAAC,CA8B9F;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,CA6BH;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI,CAqBzE;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;AAwHD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAIvG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Client } from '@sentry/types';
|
|
2
|
+
/**
|
|
3
|
+
* Setup a DSC handler on the passed client,
|
|
4
|
+
* ensuring that the transaction name is inferred from the span correctly.
|
|
5
|
+
*/
|
|
6
|
+
export declare function enhanceDscWithOpenTelemetryRootSpanName(client: Client): void;
|
|
7
|
+
//# sourceMappingURL=enhanceDscWithOpenTelemetryRootSpanName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enhanceDscWithOpenTelemetryRootSpanName.d.ts","sourceRoot":"","sources":["../../../src/utils/enhanceDscWithOpenTelemetryRootSpanName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C;;;GAGG;AACH,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"mapStatus.d.ts","sourceRoot":"","sources":["../../../src/utils/mapStatus.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA2B7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAsCxD"}
|
package/types-ts3.8/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ export { wrapClientClass } from './custom/client';
|
|
|
4
4
|
export { getSpanKind } from './utils/getSpanKind';
|
|
5
5
|
export { getScopesFromContext } from './utils/contextData';
|
|
6
6
|
export { spanHasAttributes, spanHasEvents, spanHasKind, spanHasName, spanHasParentId, spanHasStatus, } from './utils/spanTypes';
|
|
7
|
-
export { getDynamicSamplingContextFromSpan } from '
|
|
7
|
+
export { getDynamicSamplingContextFromSpan } from '@sentry/core';
|
|
8
8
|
export { isSentryRequestSpan } from './utils/isSentryRequest';
|
|
9
|
+
export { enhanceDscWithOpenTelemetryRootSpanName } from './utils/enhanceDscWithOpenTelemetryRootSpanName';
|
|
9
10
|
export { getActiveSpan } from './utils/getActiveSpan';
|
|
10
11
|
export { startSpan, startSpanManual, startInactiveSpan, withActiveSpan, continueTrace } from './trace';
|
|
11
12
|
export { suppressTracing } from './utils/suppressTracing';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Client } from '@sentry/types';
|
|
2
|
+
/**
|
|
3
|
+
* Setup a DSC handler on the passed client,
|
|
4
|
+
* ensuring that the transaction name is inferred from the span correctly.
|
|
5
|
+
*/
|
|
6
|
+
export declare function enhanceDscWithOpenTelemetryRootSpanName(client: Client): void;
|
|
7
|
+
//# sourceMappingURL=enhanceDscWithOpenTelemetryRootSpanName.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DynamicSamplingContext } from '@sentry/types';
|
|
2
|
-
import type { AbstractSpan } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a dynamic sampling context from a span (and client and scope)
|
|
5
|
-
*
|
|
6
|
-
* @param span the span from which a few values like the root span name and sample rate are extracted.
|
|
7
|
-
*
|
|
8
|
-
* @returns a dynamic sampling context
|
|
9
|
-
*/
|
|
10
|
-
export declare function getDynamicSamplingContextFromSpan(span: AbstractSpan): Readonly<Partial<DynamicSamplingContext>>;
|
|
11
|
-
//# sourceMappingURL=dynamicSamplingContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicSamplingContext.d.ts","sourceRoot":"","sources":["../../../src/utils/dynamicSamplingContext.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAK7C;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CA2C/G"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DynamicSamplingContext } from '@sentry/types';
|
|
2
|
-
import { AbstractSpan } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Creates a dynamic sampling context from a span (and client and scope)
|
|
5
|
-
*
|
|
6
|
-
* @param span the span from which a few values like the root span name and sample rate are extracted.
|
|
7
|
-
*
|
|
8
|
-
* @returns a dynamic sampling context
|
|
9
|
-
*/
|
|
10
|
-
export declare function getDynamicSamplingContextFromSpan(span: AbstractSpan): Readonly<Partial<DynamicSamplingContext>>;
|
|
11
|
-
//# sourceMappingURL=dynamicSamplingContext.d.ts.map
|