@sentry/node 9.11.0 → 9.12.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 +6 -2
- package/build/cjs/integrations/http/SentryHttpInstrumentation.js.map +1 -1
- package/build/cjs/integrations/http/index.js.map +1 -1
- package/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/build/cjs/log.js +1 -1
- package/build/cjs/log.js.map +1 -1
- package/build/cjs/sdk/client.js +23 -1
- package/build/cjs/sdk/client.js.map +1 -1
- package/build/cjs/sdk/index.js +1 -0
- package/build/cjs/sdk/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 +6 -2
- package/build/esm/integrations/http/SentryHttpInstrumentation.js.map +1 -1
- package/build/esm/integrations/http/index.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/log.js +1 -1
- package/build/esm/log.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/client.js +24 -2
- package/build/esm/sdk/client.js.map +1 -1
- package/build/esm/sdk/index.js +1 -0
- package/build/esm/sdk/index.js.map +1 -1
- package/build/types/integrations/http/SentryHttpInstrumentation.d.ts +8 -0
- package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
- package/build/types/integrations/http/index.d.ts +8 -0
- package/build/types/integrations/http/index.d.ts.map +1 -1
- package/build/types/sdk/client.d.ts +1 -0
- package/build/types/sdk/client.d.ts.map +1 -1
- package/build/types-ts3.8/integrations/http/SentryHttpInstrumentation.d.ts +8 -0
- package/build/types-ts3.8/integrations/http/index.d.ts +8 -0
- package/build/types-ts3.8/sdk/client.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
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AM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE3E;;;;;;;;;OASG;IACH,sBAAsB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC;IAEhF;;;;;;OAMG;IACH,yBAAyB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC;IAE9E;;;OAGG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE;QAChB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,gCAAgC,KAAK,IAAI,CAAC;QAC1F,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,gCAAgC,GAAG,cAAc,KAAK,IAAI,CAAC;QACjG,2BAA2B,CAAC,EAAE,CAC5B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,GAAG,gCAAgC,EACzD,QAAQ,EAAE,gCAAgC,GAAG,cAAc,KACxD,IAAI,CAAC;QAEV;;;WAGG;QACH,mBAAmB,CAAC,EAAE,qBAAqB,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5E,CAAC;CACH;AAaD,eAAO,MAAM,kBAAkB;;CAe7B,CAAC;AAEH,+BAA+B;AAC/B,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,GAAE,OAAO,CAAC,iBAAiB,CAAM,GAAG,OAAO,CAIpH;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,2EAiC1B,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
|
|
|
9
9
|
private _tracer;
|
|
10
10
|
private _clientReportInterval;
|
|
11
11
|
private _clientReportOnExitFlushListener;
|
|
12
|
+
private _logOnExitFlushListener;
|
|
12
13
|
constructor(options: NodeClientOptions);
|
|
13
14
|
/** Get the OTEL tracer. */
|
|
14
15
|
get tracer(): Tracer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAA8B,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5G,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/sdk/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,KAAK,EAA8B,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5G,OAAO,EAA0C,mBAAmB,EAA4B,MAAM,cAAc,CAAC;AAIrH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIlD,2DAA2D;AAC3D,qBAAa,UAAW,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;IAC7D,aAAa,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACtD,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,qBAAqB,CAA6B;IAC1D,OAAO,CAAC,gCAAgC,CAA2B;IACnE,OAAO,CAAC,uBAAuB,CAA2B;gBAEvC,OAAO,EAAE,iBAAiB;IAyC7C,2BAA2B;IAC3B,IAAW,MAAM,IAAI,MAAM,CAW1B;IAIY,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAiB/C,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC;IAgBhE;;;;;;OAMG;IASI,yBAAyB,IAAI,IAAI;IAkBxC,2EAA2E;IAC3E,SAAS,CAAC,sBAAsB,CAC9B,KAAK,EAAE,KAAK,GAAG,SAAS,GACvB,CAAC,sBAAsB,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAAG,SAAS,EAAE,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;CAOjH"}
|
|
@@ -29,6 +29,14 @@ export type SentryHttpInstrumentationOptions = InstrumentationConfig & {
|
|
|
29
29
|
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
|
|
30
30
|
*/
|
|
31
31
|
ignoreOutgoingRequests?: (url: string, request: RequestOptions) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
|
|
34
|
+
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
|
|
35
|
+
*
|
|
36
|
+
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
|
|
37
|
+
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
|
|
38
|
+
*/
|
|
39
|
+
ignoreIncomingRequestBody?: (url: string, request: RequestOptions) => boolean;
|
|
32
40
|
/**
|
|
33
41
|
* Whether the integration should create [Sessions](https://docs.sentry.io/product/releases/health/#sessions) for incoming requests to track the health and crash-free rate of your releases in Sentry.
|
|
34
42
|
* Read more about Release Health: https://docs.sentry.io/product/releases/health/
|
|
@@ -54,6 +54,14 @@ interface HttpOptions {
|
|
|
54
54
|
* You can use it to filter on additional properties like method, headers, etc.
|
|
55
55
|
*/
|
|
56
56
|
ignoreIncomingRequests?: (urlPath: string, request: IncomingMessage) => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
|
|
59
|
+
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
|
|
60
|
+
*
|
|
61
|
+
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
|
|
62
|
+
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
|
|
63
|
+
*/
|
|
64
|
+
ignoreIncomingRequestBody?: (url: string, request: RequestOptions) => boolean;
|
|
57
65
|
/**
|
|
58
66
|
* If true, do not generate spans for incoming requests at all.
|
|
59
67
|
* This is used by Remix to avoid generating spans for incoming requests, as it generates its own spans.
|
|
@@ -9,6 +9,7 @@ export declare class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
|
|
|
9
9
|
private _tracer;
|
|
10
10
|
private _clientReportInterval;
|
|
11
11
|
private _clientReportOnExitFlushListener;
|
|
12
|
+
private _logOnExitFlushListener;
|
|
12
13
|
constructor(options: NodeClientOptions);
|
|
13
14
|
/*Get the OTEL tracer. */
|
|
14
15
|
readonly tracer: Tracer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.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",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"@opentelemetry/sdk-trace-base": "^1.30.1",
|
|
97
97
|
"@opentelemetry/semantic-conventions": "^1.30.0",
|
|
98
98
|
"@prisma/instrumentation": "6.5.0",
|
|
99
|
-
"@sentry/core": "9.
|
|
100
|
-
"@sentry/opentelemetry": "9.
|
|
99
|
+
"@sentry/core": "9.12.0",
|
|
100
|
+
"@sentry/opentelemetry": "9.12.0",
|
|
101
101
|
"import-in-the-middle": "^1.13.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|