@sentry/node 9.25.1 → 9.27.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 +2 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/anr/index.js +1 -1
- package/build/cjs/integrations/http/SentryHttpInstrumentation.js +22 -3
- 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/tracing/vercelai/attributes.js +94 -0
- package/build/cjs/integrations/tracing/vercelai/attributes.js.map +1 -0
- package/build/cjs/integrations/tracing/vercelai/constants.js +6 -0
- package/build/cjs/integrations/tracing/vercelai/constants.js.map +1 -0
- package/build/cjs/integrations/tracing/vercelai/index.js +27 -22
- package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js +56 -10
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/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 +23 -4
- 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/tracing/vercelai/attributes.js +85 -0
- package/build/esm/integrations/tracing/vercelai/attributes.js.map +1 -0
- package/build/esm/integrations/tracing/vercelai/constants.js +4 -0
- package/build/esm/integrations/tracing/vercelai/constants.js.map +1 -0
- package/build/esm/integrations/tracing/vercelai/index.js +22 -17
- package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
- package/build/esm/integrations/tracing/vercelai/instrumentation.js +57 -12
- package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/http/SentryHttpInstrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/attributes.d.ts +669 -0
- package/build/types/integrations/tracing/vercelai/attributes.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/constants.d.ts +2 -0
- package/build/types/integrations/tracing/vercelai/constants.d.ts.map +1 -0
- package/build/types/integrations/tracing/vercelai/index.d.ts +2 -1
- package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +18 -0
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/types.d.ts +16 -0
- package/build/types/integrations/tracing/vercelai/types.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +1 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/attributes.d.ts +669 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +2 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +2 -1
- package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +18 -0
- package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +16 -0
- package/package.json +3 -3
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { InstrumentationConfig, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
2
|
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
3
|
+
interface RecordingOptions {
|
|
4
|
+
recordInputs?: boolean;
|
|
5
|
+
recordOutputs?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Determines whether to record inputs and outputs for Vercel AI telemetry based on the configuration hierarchy.
|
|
9
|
+
*
|
|
10
|
+
* The order of precedence is:
|
|
11
|
+
* 1. The vercel ai integration options
|
|
12
|
+
* 2. The experimental_telemetry options in the vercel ai method calls
|
|
13
|
+
* 3. When telemetry is explicitly enabled (isEnabled: true), default to recording
|
|
14
|
+
* 4. Otherwise, use the sendDefaultPii option from client options
|
|
15
|
+
*/
|
|
16
|
+
export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultRecordingEnabled: boolean): {
|
|
17
|
+
recordInputs: boolean;
|
|
18
|
+
recordOutputs: boolean;
|
|
19
|
+
};
|
|
3
20
|
/**
|
|
4
21
|
* This detects is added by the Sentry Vercel AI Integration to detect if the integration should
|
|
5
22
|
* be enabled.
|
|
@@ -24,4 +41,5 @@ export declare class SentryVercelAiInstrumentation extends InstrumentationBase {
|
|
|
24
41
|
*/
|
|
25
42
|
private _patch;
|
|
26
43
|
}
|
|
44
|
+
export {};
|
|
27
45
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Integration } from '@sentry/core';
|
|
1
2
|
/**
|
|
2
3
|
* Telemetry configuration.
|
|
3
4
|
*/
|
|
@@ -35,4 +36,19 @@ export type TelemetrySettings = {
|
|
|
35
36
|
* null or undefined attribute values are invalid and will result in undefined behavior.
|
|
36
37
|
*/
|
|
37
38
|
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
39
|
+
export interface VercelAiOptions {
|
|
40
|
+
/**
|
|
41
|
+
* Enable or disable input recording. Enabled if `sendDefaultPii` is `true`
|
|
42
|
+
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings
|
|
43
|
+
*/
|
|
44
|
+
recordInputs?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Enable or disable output recording. Enabled if `sendDefaultPii` is `true`
|
|
47
|
+
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings
|
|
48
|
+
*/
|
|
49
|
+
recordOutputs?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface VercelAiIntegration extends Integration {
|
|
52
|
+
options: VercelAiOptions;
|
|
53
|
+
}
|
|
38
54
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.27.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",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"@opentelemetry/sdk-trace-base": "^1.30.1",
|
|
96
96
|
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
97
97
|
"@prisma/instrumentation": "6.8.2",
|
|
98
|
-
"@sentry/core": "9.
|
|
99
|
-
"@sentry/opentelemetry": "9.
|
|
98
|
+
"@sentry/core": "9.27.0",
|
|
99
|
+
"@sentry/opentelemetry": "9.27.0",
|
|
100
100
|
"import-in-the-middle": "^1.13.1",
|
|
101
101
|
"minimatch": "^9.0.0"
|
|
102
102
|
},
|