@sentry/node 9.20.0 → 9.22.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/integrations/anr/index.js +1 -1
- package/build/cjs/integrations/http/SentryHttpInstrumentation.js +63 -68
- package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
- package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js +29 -10
- package/build/cjs/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js +489 -0
- package/build/cjs/integrations/tracing/fastify/fastify-otel/index.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/index.js +2 -2
- package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
- package/build/esm/integrations/anr/index.js +1 -1
- package/build/esm/integrations/anr/worker-script.js +2 -2
- package/build/esm/integrations/http/SentryHttpInstrumentation.js +64 -69
- package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
- package/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/build/esm/integrations/local-variables/worker-script.js +2 -2
- package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js +30 -11
- package/build/esm/integrations/node-fetch/SentryNodeFetchInstrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/fastify-otel/index.js +487 -0
- package/build/esm/integrations/tracing/fastify/fastify-otel/index.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/index.js +1 -1
- package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +5 -0
- package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +5 -0
- package/build/types/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
- package/build/types-ts3.8/integrations/http/SentryHttpInstrumentation.d.ts +5 -0
- package/build/types-ts3.8/integrations/node-fetch/SentryNodeFetchInstrumentation.d.ts +5 -0
- package/package.json +5 -5
|
@@ -29,6 +29,7 @@ export type SentryNodeFetchInstrumentationOptions = InstrumentationConfig & {
|
|
|
29
29
|
export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNodeFetchInstrumentationOptions> {
|
|
30
30
|
private _channelSubs;
|
|
31
31
|
private _propagationDecisionMap;
|
|
32
|
+
private _ignoreOutgoingRequestsMap;
|
|
32
33
|
constructor(config?: SentryNodeFetchInstrumentationOptions);
|
|
33
34
|
/** No need to instrument files/modules. */
|
|
34
35
|
init(): void;
|
|
@@ -47,5 +48,9 @@ export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<
|
|
|
47
48
|
private _onResponseHeaders;
|
|
48
49
|
/** Subscribe to a diagnostics channel. */
|
|
49
50
|
private _subscribeToChannel;
|
|
51
|
+
/**
|
|
52
|
+
* Check if the given outgoing request should be ignored.
|
|
53
|
+
*/
|
|
54
|
+
private _shouldIgnoreOutgoingRequest;
|
|
50
55
|
}
|
|
51
56
|
//# sourceMappingURL=SentryNodeFetchInstrumentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentryNodeFetchInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/node-fetch/SentryNodeFetchInstrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SentryNodeFetchInstrumentation.d.ts","sourceRoot":"","sources":["../../../../src/integrations/node-fetch/SentryNodeFetchInstrumentation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAuBrE,MAAM,MAAM,qCAAqC,GAAG,qBAAqB,GAAG;IAC1E;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACnD,CAAC;AAOF;;;;;;;;;GASG;AACH,qBAAa,8BAA+B,SAAQ,mBAAmB,CAAC,qCAAqC,CAAC;IAG5G,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,uBAAuB,CAA0B;IACzD,OAAO,CAAC,0BAA0B,CAAkC;gBAEjD,MAAM,GAAE,qCAA0C;IAOrE,2CAA2C;IACpC,IAAI,IAAI,IAAI;IAInB,mCAAmC;IAC5B,OAAO,IAAI,IAAI;IAMtB,kCAAkC;IAC3B,MAAM,IAAI,IAAI;IAyBrB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA2EzB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAkB1B,0CAA0C;IAC1C,OAAO,CAAC,mBAAmB;IAwB3B;;OAEG;IACH,OAAO,CAAC,4BAA4B;CAerC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/fastify/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/fastify/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAe7F,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,UAAU,qBAAqB;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC;CAC5F;AAKD,eAAO,MAAM,mBAAmB;;CAAoF,CAAC;AAErH,eAAO,MAAM,iBAAiB;;CAuB5B,CAAC;AAYH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC;AAazE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAqBjH"}
|
|
@@ -89,6 +89,7 @@ export type SentryHttpInstrumentationOptions = InstrumentationConfig & {
|
|
|
89
89
|
*/
|
|
90
90
|
export declare class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpInstrumentationOptions> {
|
|
91
91
|
private _propagationDecisionMap;
|
|
92
|
+
private _ignoreOutgoingRequestsMap;
|
|
92
93
|
constructor(config?: SentryHttpInstrumentationOptions);
|
|
93
94
|
/** @inheritdoc */
|
|
94
95
|
init(): [
|
|
@@ -110,6 +111,10 @@ export declare class SentryHttpInstrumentation extends InstrumentationBase<Sentr
|
|
|
110
111
|
* This will only patch the emit function if it was not already patched.
|
|
111
112
|
*/
|
|
112
113
|
private _patchServerEmitOnce;
|
|
114
|
+
/**
|
|
115
|
+
* Check if the given outgoing request should be ignored.
|
|
116
|
+
*/
|
|
117
|
+
private _shouldIgnoreOutgoingRequest;
|
|
113
118
|
}
|
|
114
119
|
/**
|
|
115
120
|
* Starts a session and tracks it in the context of a given isolation scope.
|
|
@@ -29,6 +29,7 @@ export type SentryNodeFetchInstrumentationOptions = InstrumentationConfig & {
|
|
|
29
29
|
export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNodeFetchInstrumentationOptions> {
|
|
30
30
|
private _channelSubs;
|
|
31
31
|
private _propagationDecisionMap;
|
|
32
|
+
private _ignoreOutgoingRequestsMap;
|
|
32
33
|
constructor(config?: SentryNodeFetchInstrumentationOptions);
|
|
33
34
|
/** No need to instrument files/modules. */
|
|
34
35
|
init(): void;
|
|
@@ -47,5 +48,9 @@ export declare class SentryNodeFetchInstrumentation extends InstrumentationBase<
|
|
|
47
48
|
private _onResponseHeaders;
|
|
48
49
|
/** Subscribe to a diagnostics channel. */
|
|
49
50
|
private _subscribeToChannel;
|
|
51
|
+
/**
|
|
52
|
+
* Check if the given outgoing request should be ignored.
|
|
53
|
+
*/
|
|
54
|
+
private _shouldIgnoreOutgoingRequest;
|
|
50
55
|
}
|
|
51
56
|
//# sourceMappingURL=SentryNodeFetchInstrumentation.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.22.0",
|
|
4
4
|
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@fastify/otel": "https://codeload.github.com/getsentry/fastify-otel/tar.gz/ae3088d65e286bdc94ac5d722573537d6a6671bb",
|
|
69
68
|
"@opentelemetry/api": "^1.9.0",
|
|
70
69
|
"@opentelemetry/context-async-hooks": "^1.30.1",
|
|
71
70
|
"@opentelemetry/core": "^1.30.1",
|
|
@@ -96,9 +95,10 @@
|
|
|
96
95
|
"@opentelemetry/sdk-trace-base": "^1.30.1",
|
|
97
96
|
"@opentelemetry/semantic-conventions": "^1.30.0",
|
|
98
97
|
"@prisma/instrumentation": "6.7.0",
|
|
99
|
-
"@sentry/core": "9.
|
|
100
|
-
"@sentry/opentelemetry": "9.
|
|
101
|
-
"import-in-the-middle": "^1.13.1"
|
|
98
|
+
"@sentry/core": "9.22.0",
|
|
99
|
+
"@sentry/opentelemetry": "9.22.0",
|
|
100
|
+
"import-in-the-middle": "^1.13.1",
|
|
101
|
+
"minimatch": "^9.0.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/node": "^18.19.1"
|