@sentry/opentelemetry 10.45.0 → 10.47.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 +65 -3
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +66 -4
- 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/propagator.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/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.47.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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propagator.d.ts","sourceRoot":"","sources":["../../src/propagator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,OAAO,EAAqB,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhF,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AA0BzF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,8FAA8F;IAC9F,OAAO,CAAC,qBAAqB,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;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/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"}
|
|
@@ -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.47.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.47.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": {
|