@sentry/node 10.12.0 → 10.14.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.
Files changed (58) hide show
  1. package/build/cjs/index.js +9 -7
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/http.js +24 -13
  4. package/build/cjs/integrations/http.js.map +1 -1
  5. package/build/cjs/integrations/tracing/anthropic-ai/index.js +2 -2
  6. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +1 -1
  7. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +6 -17
  8. package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -1
  9. package/build/cjs/integrations/tracing/google-genai/index.js +78 -0
  10. package/build/cjs/integrations/tracing/google-genai/index.js.map +1 -0
  11. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +94 -0
  12. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +1 -0
  13. package/build/cjs/integrations/tracing/index.js +3 -0
  14. package/build/cjs/integrations/tracing/index.js.map +1 -1
  15. package/build/cjs/integrations/tracing/openai/instrumentation.js +3 -3
  16. package/build/cjs/integrations/tracing/openai/instrumentation.js.map +1 -1
  17. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +44 -51
  18. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  19. package/build/esm/index.js +1 -0
  20. package/build/esm/index.js.map +1 -1
  21. package/build/esm/integrations/http.js +25 -14
  22. package/build/esm/integrations/http.js.map +1 -1
  23. package/build/esm/integrations/tracing/anthropic-ai/index.js +2 -2
  24. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -1
  25. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +7 -18
  26. package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -1
  27. package/build/esm/integrations/tracing/google-genai/index.js +75 -0
  28. package/build/esm/integrations/tracing/google-genai/index.js.map +1 -0
  29. package/build/esm/integrations/tracing/google-genai/instrumentation.js +92 -0
  30. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +1 -0
  31. package/build/esm/integrations/tracing/index.js +3 -0
  32. package/build/esm/integrations/tracing/index.js.map +1 -1
  33. package/build/esm/integrations/tracing/openai/instrumentation.js +4 -4
  34. package/build/esm/integrations/tracing/openai/instrumentation.js.map +1 -1
  35. package/build/esm/integrations/tracing/vercelai/instrumentation.js +45 -52
  36. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  37. package/build/esm/package.json +1 -1
  38. package/build/types/index.d.ts +1 -0
  39. package/build/types/index.d.ts.map +1 -1
  40. package/build/types/integrations/http.d.ts +2 -2
  41. package/build/types/integrations/http.d.ts.map +1 -1
  42. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +1 -2
  43. package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -1
  44. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +5 -6
  45. package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +1 -1
  46. package/build/types/integrations/tracing/google-genai/index.d.ts +59 -0
  47. package/build/types/integrations/tracing/google-genai/index.d.ts.map +1 -0
  48. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts +20 -0
  49. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +1 -0
  50. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  51. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
  52. package/build/types-ts3.8/index.d.ts +1 -0
  53. package/build/types-ts3.8/integrations/http.d.ts +2 -2
  54. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +1 -2
  55. package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +5 -6
  56. package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +59 -0
  57. package/build/types-ts3.8/integrations/tracing/google-genai/instrumentation.d.ts +20 -0
  58. package/package.json +4 -4
@@ -0,0 +1,59 @@
1
+ import { GoogleGenAIOptions } from '@sentry/core';
2
+ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | undefined) => import("@opentelemetry/instrumentation").Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>) & {
3
+ id: string;
4
+ };
5
+ /**
6
+ * Adds Sentry tracing instrumentation for the Google Generative AI SDK.
7
+ *
8
+ * This integration is enabled by default.
9
+ *
10
+ * When configured, this integration automatically instruments Google GenAI SDK client instances
11
+ * to capture telemetry data following OpenTelemetry Semantic Conventions for Generative AI.
12
+ *
13
+ * @example
14
+ * ```javascript
15
+ * import * as Sentry from '@sentry/node';
16
+ *
17
+ * Sentry.init({
18
+ * integrations: [Sentry.googleGenAiIntegration()],
19
+ * });
20
+ * ```
21
+ *
22
+ * ## Options
23
+ *
24
+ * - `recordInputs`: Whether to record prompt messages (default: respects `sendDefaultPii` client option)
25
+ * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
26
+ *
27
+ * ### Default Behavior
28
+ *
29
+ * By default, the integration will:
30
+ * - Record inputs and outputs ONLY if `sendDefaultPii` is set to `true` in your Sentry client options
31
+ * - Otherwise, inputs and outputs are NOT recorded unless explicitly enabled
32
+ *
33
+ * @example
34
+ * ```javascript
35
+ * // Record inputs and outputs when sendDefaultPii is false
36
+ * Sentry.init({
37
+ * integrations: [
38
+ * Sentry.googleGenAiIntegration({
39
+ * recordInputs: true,
40
+ * recordOutputs: true
41
+ * })
42
+ * ],
43
+ * });
44
+ *
45
+ * // Never record inputs/outputs regardless of sendDefaultPii
46
+ * Sentry.init({
47
+ * sendDefaultPii: true,
48
+ * integrations: [
49
+ * Sentry.googleGenAiIntegration({
50
+ * recordInputs: false,
51
+ * recordOutputs: false
52
+ * })
53
+ * ],
54
+ * });
55
+ * ```
56
+ *
57
+ */
58
+ export declare const googleGenAIIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration;
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
2
+ import { InstrumentationModuleDefinition, InstrumentationBase } from '@opentelemetry/instrumentation';
3
+ import { GoogleGenAIOptions } from '@sentry/core';
4
+ type GoogleGenAIInstrumentationOptions = GoogleGenAIOptions & InstrumentationConfig;
5
+ /**
6
+ * Sentry Google GenAI instrumentation using OpenTelemetry.
7
+ */
8
+ export declare class SentryGoogleGenAiInstrumentation extends InstrumentationBase<GoogleGenAIInstrumentationOptions> {
9
+ constructor(config?: GoogleGenAIInstrumentationOptions);
10
+ /**
11
+ * Initializes the instrumentation by defining the modules to be patched.
12
+ */
13
+ init(): InstrumentationModuleDefinition;
14
+ /**
15
+ * Core patch logic applying instrumentation to the Google GenAI client constructor.
16
+ */
17
+ private _patch;
18
+ }
19
+ export {};
20
+ //# sourceMappingURL=instrumentation.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "10.12.0",
3
+ "version": "10.14.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,9 +95,9 @@
95
95
  "@opentelemetry/sdk-trace-base": "^2.1.0",
96
96
  "@opentelemetry/semantic-conventions": "^1.37.0",
97
97
  "@prisma/instrumentation": "6.15.0",
98
- "@sentry/core": "10.12.0",
99
- "@sentry/node-core": "10.12.0",
100
- "@sentry/opentelemetry": "10.12.0",
98
+ "@sentry/core": "10.14.0",
99
+ "@sentry/node-core": "10.14.0",
100
+ "@sentry/opentelemetry": "10.14.0",
101
101
  "import-in-the-middle": "^1.14.2",
102
102
  "minimatch": "^9.0.0"
103
103
  },