@sentry/node 10.54.0 → 10.56.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 (166) hide show
  1. package/build/cjs/integrations/node-fetch/vendored/undici.js +2 -3
  2. package/build/cjs/integrations/node-fetch/vendored/undici.js.map +1 -1
  3. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js +15 -0
  4. package/build/cjs/integrations/tracing/InstrumentationNodeModuleFile.js.map +1 -0
  5. package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js +9 -9
  6. package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
  7. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
  8. package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +1 -1
  9. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +3 -5
  10. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
  11. package/build/cjs/integrations/tracing/express.js +3 -5
  12. package/build/cjs/integrations/tracing/express.js.map +1 -1
  13. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +10 -11
  14. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
  15. package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js +3 -4
  16. package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
  17. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +2 -1
  18. package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -1
  19. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +2 -1
  20. package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +1 -1
  21. package/build/cjs/integrations/tracing/google-genai/instrumentation.js +2 -1
  22. package/build/cjs/integrations/tracing/google-genai/instrumentation.js.map +1 -1
  23. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +4 -3
  24. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  25. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +2 -5
  26. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
  27. package/build/cjs/integrations/tracing/hono/index.js.map +1 -1
  28. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +3 -2
  29. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  30. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +3 -4
  31. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
  32. package/build/cjs/integrations/tracing/langchain/instrumentation.js +3 -2
  33. package/build/cjs/integrations/tracing/langchain/instrumentation.js.map +1 -1
  34. package/build/cjs/integrations/tracing/langgraph/index.js.map +1 -1
  35. package/build/cjs/integrations/tracing/langgraph/instrumentation.js +7 -5
  36. package/build/cjs/integrations/tracing/langgraph/instrumentation.js.map +1 -1
  37. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +7 -6
  38. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +3 -2
  40. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  41. package/build/cjs/integrations/tracing/openai/index.js.map +1 -1
  42. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +5 -5
  43. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  44. package/build/cjs/integrations/tracing/postgresjs.js +2 -1
  45. package/build/cjs/integrations/tracing/postgresjs.js.map +1 -1
  46. package/build/cjs/integrations/tracing/redis/index.js +3 -2
  47. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  48. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +1 -1
  49. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  50. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +4 -3
  51. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  52. package/build/cjs/integrations/tracing/vercelai/instrumentation.js +6 -5
  53. package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  54. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +21 -0
  55. package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
  56. package/build/esm/integrations/node-fetch/vendored/undici.js +3 -4
  57. package/build/esm/integrations/node-fetch/vendored/undici.js.map +1 -1
  58. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js +13 -0
  59. package/build/esm/integrations/tracing/InstrumentationNodeModuleFile.js.map +1 -0
  60. package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js +7 -7
  61. package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
  62. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
  63. package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -1
  64. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +3 -5
  65. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
  66. package/build/esm/integrations/tracing/express.js +3 -5
  67. package/build/esm/integrations/tracing/express.js.map +1 -1
  68. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +3 -4
  69. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
  70. package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js +3 -4
  71. package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
  72. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +2 -1
  73. package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -1
  74. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +2 -1
  75. package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +1 -1
  76. package/build/esm/integrations/tracing/google-genai/instrumentation.js +2 -1
  77. package/build/esm/integrations/tracing/google-genai/instrumentation.js.map +1 -1
  78. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +2 -1
  79. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  80. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +2 -5
  81. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
  82. package/build/esm/integrations/tracing/hono/index.js.map +1 -1
  83. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +2 -1
  84. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  85. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +3 -4
  86. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
  87. package/build/esm/integrations/tracing/langchain/instrumentation.js +2 -1
  88. package/build/esm/integrations/tracing/langchain/instrumentation.js.map +1 -1
  89. package/build/esm/integrations/tracing/langgraph/index.js.map +1 -1
  90. package/build/esm/integrations/tracing/langgraph/instrumentation.js +5 -3
  91. package/build/esm/integrations/tracing/langgraph/instrumentation.js.map +1 -1
  92. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +2 -1
  93. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
  94. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +2 -1
  95. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  96. package/build/esm/integrations/tracing/openai/index.js.map +1 -1
  97. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +5 -5
  98. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  99. package/build/esm/integrations/tracing/postgresjs.js +2 -1
  100. package/build/esm/integrations/tracing/postgresjs.js.map +1 -1
  101. package/build/esm/integrations/tracing/redis/index.js +3 -2
  102. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  103. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +1 -1
  104. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  105. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +2 -1
  106. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  107. package/build/esm/integrations/tracing/vercelai/instrumentation.js +6 -5
  108. package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
  109. package/build/esm/package.json +1 -1
  110. package/build/esm/utils/setHttpServerSpanRouteAttribute.js +19 -0
  111. package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
  112. package/build/types/integrations/node-fetch/vendored/undici.d.ts.map +1 -1
  113. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts +9 -0
  114. package/build/types/integrations/tracing/InstrumentationNodeModuleFile.d.ts.map +1 -0
  115. package/build/types/integrations/tracing/amqplib/vendored/amqplib.d.ts.map +1 -1
  116. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +2 -2
  117. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +1 -1
  118. package/build/types/integrations/tracing/anthropic-ai/index.d.ts +7 -7
  119. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +1 -1
  120. package/build/types/integrations/tracing/express.d.ts.map +1 -1
  121. package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +1 -1
  122. package/build/types/integrations/tracing/fastify/vendored/instrumentation.d.ts.map +1 -1
  123. package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +1 -1
  124. package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +1 -1
  125. package/build/types/integrations/tracing/google-genai/instrumentation.d.ts.map +1 -1
  126. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +1 -1
  127. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +1 -1
  128. package/build/types/integrations/tracing/hono/index.d.ts +6 -0
  129. package/build/types/integrations/tracing/hono/index.d.ts.map +1 -1
  130. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +1 -1
  131. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +1 -1
  132. package/build/types/integrations/tracing/langchain/instrumentation.d.ts.map +1 -1
  133. package/build/types/integrations/tracing/langgraph/index.d.ts +7 -7
  134. package/build/types/integrations/tracing/langgraph/instrumentation.d.ts.map +1 -1
  135. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +1 -1
  136. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
  137. package/build/types/integrations/tracing/openai/index.d.ts +7 -7
  138. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +1 -1
  139. package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -1
  140. package/build/types/integrations/tracing/redis/index.d.ts +4 -1
  141. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  142. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +1 -1
  143. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts +2 -2
  144. package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
  145. package/build/types/integrations/tracing/vercelai/types.d.ts +6 -4
  146. package/build/types/integrations/tracing/vercelai/types.d.ts.map +1 -1
  147. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +9 -0
  148. package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +1 -0
  149. package/build/types-ts3.8/integrations/tracing/InstrumentationNodeModuleFile.d.ts +9 -0
  150. package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +2 -2
  151. package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +7 -7
  152. package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +6 -0
  153. package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +7 -7
  154. package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +7 -7
  155. package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +4 -1
  156. package/build/types-ts3.8/integrations/tracing/vercelai/instrumentation.d.ts +2 -2
  157. package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +6 -4
  158. package/build/types-ts3.8/utils/setHttpServerSpanRouteAttribute.d.ts +9 -0
  159. package/package.json +5 -4
  160. package/build/cjs/integrations/tracing/redis/redis-dc-subscriber.js +0 -151
  161. package/build/cjs/integrations/tracing/redis/redis-dc-subscriber.js.map +0 -1
  162. package/build/esm/integrations/tracing/redis/redis-dc-subscriber.js +0 -149
  163. package/build/esm/integrations/tracing/redis/redis-dc-subscriber.js.map +0 -1
  164. package/build/types/integrations/tracing/redis/redis-dc-subscriber.d.ts +0 -17
  165. package/build/types/integrations/tracing/redis/redis-dc-subscriber.d.ts.map +0 -1
  166. package/build/types-ts3.8/integrations/tracing/redis/redis-dc-subscriber.d.ts +0 -17
@@ -21,18 +21,18 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record input messages (default: respects `sendDefaultPii` client option)
25
- * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
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
30
+ * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
31
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
32
  *
33
33
  * @example
34
34
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
35
+ * // Always record inputs and outputs regardless of global dataCollection config
36
36
  * Sentry.init({
37
37
  * integrations: [
38
38
  * Sentry.langGraphIntegration({
@@ -42,9 +42,9 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
42
42
  * ],
43
43
  * });
44
44
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
45
+ * // Never record inputs/outputs regardless of global dataCollection config
46
46
  * Sentry.init({
47
- * sendDefaultPii: true,
47
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
48
  * integrations: [
49
49
  * Sentry.langGraphIntegration({
50
50
  * recordInputs: false,
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/langgraph/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EAGrC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKpE,KAAK,+BAA+B,GAAG,qBAAqB,GAAG,gBAAgB,CAAC;AAWhF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;gBACnF,MAAM,GAAE,+BAAoC;IAI/D;;OAEG;IACI,IAAI,IAAI,+BAA+B,EAAE;IAsDhD;;OAEG;IACH,OAAO,CAAC,MAAM;CA0Bf"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/langgraph/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EAErC,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAKpE,KAAK,+BAA+B,GAAG,qBAAqB,GAAG,gBAAgB,CAAC;AAWhF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;gBACnF,MAAM,GAAE,+BAAoC;IAI/D;;OAEG;IACI,IAAI,IAAI,+BAA+B,EAAE;IAsDhD;;OAEG;IACH,OAAO,CAAC,MAAM;CA2Bf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/instrumentation.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAMpC,MAAM,gCAAgC,CAAC;AAuBxC,OAAO,EAAE,4BAA4B,EAAiB,MAAM,SAAS,CAAC;AAsBtE,uDAAuD;AACvD,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,4BAA4B,CAAC;IAC3F,OAAO,CAAC,oBAAoB,CAAoB;IAChD,OAAO,CAAC,mBAAmB,CAAoB;IAC/C,QAAgB,iBAAiB,CAAgB;IACjD,QAAgB,SAAS,CAAS;gBAEtB,MAAM,GAAE,4BAAiC;IAMrD,OAAO,CAAC,2BAA2B;IAK1B,SAAS,CAAC,MAAM,GAAE,4BAAiC;IAInD,wBAAwB;IAOjC;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAIrB,IAAI;IAqDJ,OAAO,CAAC,uBAAuB;IA+C/B,OAAO,CAAC,qBAAqB;IA0B7B,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,2BAA2B;IAoBnC,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,oBAAoB;IAmC5B,OAAO,CAAC,uBAAuB;IA2B/B,0CAA0C;IAC1C,OAAO,CAAC,oBAAoB;IA+C5B,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB;IA4C1B,0CAA0C;IAC1C,OAAO,CAAC,0BAA0B;IAmClC,OAAO,CAAC,yBAAyB;IAsCjC,uCAAuC;IACvC,OAAO,CAAC,eAAe;IA0CvB,uCAAuC;IACvC,OAAO,CAAC,iBAAiB;IA2CzB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAgB9B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA2B5B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAiC5B,OAAO,CAAC,kBAAkB;IAuE1B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,8BAA8B;IAatC,OAAO,CAAC,6BAA6B;IAUrC;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAiB9B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAuCjB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,yBAAyB;CAKlC"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mongo/vendored/instrumentation.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAKpC,MAAM,gCAAgC,CAAC;AAwBxC,OAAO,EAAE,4BAA4B,EAAiB,MAAM,SAAS,CAAC;AAsBtE,uDAAuD;AACvD,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,4BAA4B,CAAC;IAC3F,OAAO,CAAC,oBAAoB,CAAoB;IAChD,OAAO,CAAC,mBAAmB,CAAoB;IAC/C,QAAgB,iBAAiB,CAAgB;IACjD,QAAgB,SAAS,CAAS;gBAEtB,MAAM,GAAE,4BAAiC;IAMrD,OAAO,CAAC,2BAA2B;IAK1B,SAAS,CAAC,MAAM,GAAE,4BAAiC;IAInD,wBAAwB;IAOjC;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAIrB,IAAI;IAqDJ,OAAO,CAAC,uBAAuB;IA+C/B,OAAO,CAAC,qBAAqB;IA0B7B,OAAO,CAAC,oBAAoB;IAqB5B,OAAO,CAAC,oBAAoB;IAa5B,OAAO,CAAC,2BAA2B;IAoBnC,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,oBAAoB;IAmC5B,OAAO,CAAC,uBAAuB;IA2B/B,0CAA0C;IAC1C,OAAO,CAAC,oBAAoB;IA+C5B,0CAA0C;IAC1C,OAAO,CAAC,kBAAkB;IA4C1B,0CAA0C;IAC1C,OAAO,CAAC,0BAA0B;IAmClC,OAAO,CAAC,yBAAyB;IAsCjC,uCAAuC;IACvC,OAAO,CAAC,eAAe;IA0CvB,uCAAuC;IACvC,OAAO,CAAC,iBAAiB;IA2CzB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAgB9B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA2B5B;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAiC5B,OAAO,CAAC,kBAAkB;IAuE1B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,8BAA8B;IAatC,OAAO,CAAC,6BAA6B;IAUrC;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;IAiB9B;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAuCjB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,yBAAyB;CAKlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAyBA,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAMpC,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAYtD,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,2BAA2B,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAAoB;IAChD,OAAO,CAAC,mBAAmB,CAAoB;gBAEnC,MAAM,GAAE,2BAAgC;IAKpD,OAAO,CAAC,2BAA2B;IAKnC,SAAS,CAAC,IAAI;IA2Dd,OAAO,CAAC,WAAW;IAsGnB,OAAO,CAAC,mBAAmB;CAQ5B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/mysql2/vendored/instrumentation.ts"],"names":[],"mappings":"AAyBA,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAKpC,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAYtD,qBAAa,qBAAsB,SAAQ,mBAAmB,CAAC,2BAA2B,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAAoB;IAChD,OAAO,CAAC,mBAAmB,CAAoB;gBAEnC,MAAM,GAAE,2BAAgC;IAKpD,OAAO,CAAC,2BAA2B;IAKnC,SAAS,CAAC,IAAI;IA2Dd,OAAO,CAAC,WAAW;IAsGnB,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -21,18 +21,18 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
21
21
  *
22
22
  * ## Options
23
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)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
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
30
+ * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
31
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
32
  *
33
33
  * @example
34
34
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
35
+ * // Always record inputs and outputs regardless of global dataCollection config
36
36
  * Sentry.init({
37
37
  * integrations: [
38
38
  * Sentry.openAIIntegration({
@@ -42,9 +42,9 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
42
42
  * ],
43
43
  * });
44
44
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
45
+ * // Never record inputs/outputs regardless of global dataCollection config
46
46
  * Sentry.init({
47
- * sendDefaultPii: true,
47
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
48
  * integrations: [
49
49
  * Sentry.openAIIntegration({
50
50
  * recordInputs: false,
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/postgres/vendored/instrumentation.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,mBAAmB,EACnB,mCAAmC,EAKpC,MAAM,gCAAgC,CAAC;AAsBxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA6BlD,qBAAa,iBAAkB,SAAQ,mBAAmB,CAAC,uBAAuB,CAAC;IACjF,QAAgB,kBAAkB,CAAY;IAC9C,QAAgB,iBAAiB,CAAgB;IACjD,QAAgB,0BAA0B,CAAgB;IAM1D,OAAO,CAAC,mBAAmB,CAIzB;IACF,OAAO,CAAC,iBAAiB,CAAmB;gBAEhC,MAAM,GAAE,uBAA4B;IAKvC,wBAAwB;IAyBjC,SAAS,CAAC,IAAI;IA0Dd,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,uBAAuB;IA0B/B,OAAO,CAAC,oBAAoB;IA8M5B,OAAO,CAAC,6BAA6B;IA8CrC,OAAO,CAAC,oBAAoB;CAwC7B"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/postgres/vendored/instrumentation.ts"],"names":[],"mappings":"AAuBA,OAAO,EAEL,mBAAmB,EACnB,mCAAmC,EAIpC,MAAM,gCAAgC,CAAC;AAsBxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AA4BlD,qBAAa,iBAAkB,SAAQ,mBAAmB,CAAC,uBAAuB,CAAC;IACjF,QAAgB,kBAAkB,CAAY;IAC9C,QAAgB,iBAAiB,CAAgB;IACjD,QAAgB,0BAA0B,CAAgB;IAM1D,OAAO,CAAC,mBAAmB,CAIzB;IACF,OAAO,CAAC,iBAAiB,CAAmB;gBAEhC,MAAM,GAAE,uBAA4B;IAKvC,wBAAwB;IAyBjC,SAAS,CAAC,IAAI;IA0Dd,OAAO,CAAC,cAAc;IAsBtB,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,sBAAsB;IAgC9B,OAAO,CAAC,uBAAuB;IA0B/B,OAAO,CAAC,oBAAoB;IA8M5B,OAAO,CAAC,6BAA6B;IA8CrC,OAAO,CAAC,oBAAoB;CAwC7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"postgresjs.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgresjs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAGpC,MAAM,gCAAgC,CAAC;AAQxC,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;AAiBxD,KAAK,yBAAyB,GAAG;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAMF,KAAK,+BAA+B,GAAG,qBAAqB,GAAG;IAC7D;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH,CAAC;AAEF,eAAO,MAAM,oBAAoB;;CAOhC,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;gBAC9E,MAAM,EAAE,+BAA+B;IAI1D;;;;;OAKG;IACI,IAAI,IAAI,mCAAmC;IA+BlD;;;OAGG;IACH,OAAO,CAAC,cAAc;IAqDtB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAWzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAkCzB;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAuH5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAc/B;AAWD;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,qBAAqB,+FAA4C,CAAC"}
1
+ {"version":3,"file":"postgresjs.d.ts","sourceRoot":"","sources":["../../../../src/integrations/tracing/postgresjs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EAEpC,MAAM,gCAAgC,CAAC;AASxC,OAAO,KAAK,EAAiB,IAAI,EAAE,MAAM,cAAc,CAAC;AAiBxD,KAAK,yBAAyB,GAAG;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAMF,KAAK,+BAA+B,GAAG,qBAAqB,GAAG;IAC7D;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;CACtH,CAAC;AAEF,eAAO,MAAM,oBAAoB;;CAOhC,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,+BAA+B,CAAC;gBAC9E,MAAM,EAAE,+BAA+B;IAI1D;;;;;OAKG;IACI,IAAI,IAAI,mCAAmC;IA+BlD;;;OAGG;IACH,OAAO,CAAC,cAAc;IAqDtB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAYzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAWzB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAkCzB;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;IAuH5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAc/B;AAWD;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,qBAAqB,+FAA4C,CAAC"}
@@ -17,7 +17,10 @@ interface RedisOptions {
17
17
  }
18
18
  export declare let _redisOptions: RedisOptions;
19
19
  export declare const cacheResponseHook: IORedisResponseCustomAttributeFunction;
20
- /** To be able to preload all Redis OTel instrumentations with just one ID ("Redis"), all the instrumentations are generated in this one function */
20
+ /**
21
+ * To be able to preload all Redis OTel instrumentations with just one ID
22
+ * ("Redis"), all the instrumentations are generated in this one function
23
+ */
21
24
  export declare const instrumentRedis: (() => void) & {
22
25
  id: string;
23
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAK/E,UAAU,YAAY;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD,eAAO,IAAI,aAAa,EAAE,YAAiB,CAAC;AAG5C,eAAO,MAAM,iBAAiB,EAAE,sCAoD/B,CAAC;AAcF,qJAAqJ;AACrJ,eAAO,MAAM,eAAe,SACtB,IAAI;;CAaT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,4EAAuC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/redis/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAC;AAI/E,UAAU,YAAY;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAKD,eAAO,IAAI,aAAa,EAAE,YAAiB,CAAC;AAG5C,eAAO,MAAM,iBAAiB,EAAE,sCAoD/B,CAAC;AAcF;;;GAGG;AACH,eAAO,MAAM,eAAe,SACtB,IAAI;;CAcT,CAAC;AAYF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,4EAAuC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EACL,mBAAmB,EAOpB,MAAM,gCAAgC,CAAC;AAmBxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAmnB1D,qBAAa,oBAAqB,SAAQ,mBAAmB,CAAC,0BAA0B,CAAC;IACvF,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,GAAE,0BAA+B;IAQ1C,SAAS,CAAC,MAAM,GAAE,0BAA+B,GAAG,IAAI;IAUjE,IAAI;IAEK,oBAAoB;IAIpB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IASvD,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAQzB"}
1
+ {"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAoB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE3E,OAAO,EACL,mBAAmB,EAMpB,MAAM,gCAAgC,CAAC;AAoBxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAmnB1D,qBAAa,oBAAqB,SAAQ,mBAAmB,CAAC,0BAA0B,CAAC;IACvF,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,GAAE,0BAA+B;IAQ1C,SAAS,CAAC,MAAM,GAAE,0BAA+B,GAAG,IAAI;IAUjE,IAAI;IAEK,oBAAoB;IAIpB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IASvD,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAQzB"}
@@ -22,9 +22,9 @@ export declare function cleanupToolCallSpanContexts(content: Array<object>): voi
22
22
  * 1. The vercel ai integration options
23
23
  * 2. The experimental_telemetry options in the vercel ai method calls
24
24
  * 3. When telemetry is explicitly enabled (isEnabled: true), default to recording
25
- * 4. Otherwise, use the sendDefaultPii option from client options
25
+ * 4. Otherwise, use the dataCollection.genAI settings from client options
26
26
  */
27
- export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultRecordingEnabled: boolean): {
27
+ export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultInputsEnabled: boolean, defaultOutputsEnabled: boolean): {
28
28
  recordInputs: boolean;
29
29
  recordOutputs: boolean;
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAuC,MAAM,gCAAgC,CAAC;AAsC1G,UAAU,gBAAgB;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA6BD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAY5D;AAgDD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,2BAA2B,EAAE,gBAAgB,GAAG,SAAS,EACzD,sBAAsB,EAAE,gBAAgB,EACxC,0BAA0B,EAAE,OAAO,GAAG,SAAS,EAC/C,uBAAuB,EAAE,OAAO,GAC/B;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,CAoBnD;AAED;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB;IACpE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAsB;gBAErB,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,+BAA+B;IAK9C;;;OAGG;IACI,eAAe,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,MAAM;CA6Ef"}
1
+ {"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/instrumentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAuC,MAAM,gCAAgC,CAAC;AAsC1G,UAAU,gBAAgB;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA6BD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAY5D;AAgDD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAWxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,2BAA2B,EAAE,gBAAgB,GAAG,SAAS,EACzD,sBAAsB,EAAE,gBAAgB,EACxC,0BAA0B,EAAE,OAAO,GAAG,SAAS,EAC/C,oBAAoB,EAAE,OAAO,EAC7B,qBAAqB,EAAE,OAAO,GAC7B;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,CAoBnD;AAED;;;;;GAKG;AACH,qBAAa,6BAA8B,SAAQ,mBAAmB;IACpE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAsB;gBAErB,MAAM,GAAE,qBAA0B;IAIrD;;OAEG;IACI,IAAI,IAAI,+BAA+B;IAK9C;;;OAGG;IACI,eAAe,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAQlD;;OAEG;IACH,OAAO,CAAC,MAAM;CA8Ef"}
@@ -38,13 +38,15 @@ export type TelemetrySettings = {
38
38
  export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
39
39
  export interface VercelAiOptions {
40
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
41
+ * Enable or disable input recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.inputs` is `true`
42
+ * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
43
+ * Integration-level options take precedence over global `dataCollection` config.
43
44
  */
44
45
  recordInputs?: boolean;
45
46
  /**
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
47
+ * Enable or disable output recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.outputs` is `true`
48
+ * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
49
+ * Integration-level options take precedence over global `dataCollection` config.
48
50
  */
49
51
  recordOutputs?: boolean;
50
52
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,MAAM,cAAc,GAC9B,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,OAAO,EAAE,eAAe,CAAC;CAC1B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/vercelai/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,MAAM,cAAc,GAC9B,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,GAChC,KAAK,CAAC,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,OAAO,EAAE,eAAe,CAAC;CAC1B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Set the `http.route` attribute on the root HTTP server span for the current trace.
3
+ *
4
+ * No-op when there is no active span, no root span, or the root span is not an
5
+ * `http.server` span — so framework instrumentations can call this unconditionally
6
+ * without risking attribute pollution on non-HTTP root spans.
7
+ */
8
+ export declare function setHttpServerSpanRouteAttribute(route: string): void;
9
+ //# sourceMappingURL=setHttpServerSpanRouteAttribute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setHttpServerSpanRouteAttribute.d.ts","sourceRoot":"","sources":["../../../src/utils/setHttpServerSpanRouteAttribute.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAanE"}
@@ -0,0 +1,9 @@
1
+ import { InstrumentationModuleFile } from '@opentelemetry/instrumentation';
2
+ export declare class InstrumentationNodeModuleFile implements InstrumentationModuleFile {
3
+ name: string;
4
+ supportedVersions: string[];
5
+ patch: (moduleExports: any, moduleVersion?: string) => any;
6
+ unpatch: (moduleExports?: any, moduleVersion?: string) => void;
7
+ constructor(name: string, supportedVersions: string[], patch: (moduleExports: any, moduleVersion?: string) => any, unpatch: (moduleExports?: any, moduleVersion?: string) => void);
8
+ }
9
+ //# sourceMappingURL=InstrumentationNodeModuleFile.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Context, HrTime, Span, Attributes } from '@opentelemetry/api';
1
+ import { Context, Span, Attributes } from '@opentelemetry/api';
2
2
  import { SemconvStability } from '@opentelemetry/instrumentation';
3
3
  import { Connection, Channel, ConfirmChannel, Options } from './amqplib-types';
4
4
  import { ConsumeMessage, Message } from './types';
@@ -16,7 +16,7 @@ export type InstrumentationConsumeChannel = Channel & {
16
16
  connection: InstrumentationConnection;
17
17
  [CHANNEL_SPANS_NOT_ENDED]?: {
18
18
  msg: ConsumeMessage;
19
- timeOfConsume: HrTime;
19
+ timeOfConsume: number;
20
20
  }[];
21
21
  [CHANNEL_CONSUME_TIMEOUT_TIMER]?: NodeJS.Timeout;
22
22
  };
@@ -21,18 +21,18 @@ export declare const instrumentAnthropicAi: ((options?: AnthropicAiOptions | und
21
21
  *
22
22
  * ## Options
23
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)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
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
30
+ * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
31
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
32
  *
33
33
  * @example
34
34
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
35
+ * // Always record inputs and outputs regardless of global dataCollection config
36
36
  * Sentry.init({
37
37
  * integrations: [
38
38
  * Sentry.anthropicAIIntegration({
@@ -42,9 +42,9 @@ export declare const instrumentAnthropicAi: ((options?: AnthropicAiOptions | und
42
42
  * ],
43
43
  * });
44
44
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
45
+ * // Never record inputs/outputs regardless of global dataCollection config
46
46
  * Sentry.init({
47
- * sendDefaultPii: true,
47
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
48
  * integrations: [
49
49
  * Sentry.anthropicAIIntegration({
50
50
  * recordInputs: false,
@@ -10,6 +10,9 @@ export declare const instrumentHono: ((options?: unknown) => HonoInstrumentation
10
10
  *
11
11
  * For more information, see the [hono documentation](https://docs.sentry.io/platforms/javascript/guides/hono/).
12
12
  *
13
+ * @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/node` handles
14
+ * tracing and error capturing automatically without needing this integration or `setupHonoErrorHandler`.
15
+ *
13
16
  * @example
14
17
  * ```javascript
15
18
  * const Sentry = require('@sentry/node');
@@ -33,6 +36,9 @@ interface HonoHandlerOptions {
33
36
  * @param app The Hono instances
34
37
  * @param options Configuration options for the handler
35
38
  *
39
+ * @deprecated Use the `@sentry/hono` package instead. The `sentry()` middleware from `@sentry/hono/node` handles
40
+ * error capturing automatically without needing this function or `honoIntegration`.
41
+ *
36
42
  * @example
37
43
  * ```javascript
38
44
  * const Sentry = require('@sentry/node');
@@ -21,18 +21,18 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
21
21
  *
22
22
  * ## Options
23
23
  *
24
- * - `recordInputs`: Whether to record input messages (default: respects `sendDefaultPii` client option)
25
- * - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
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
30
+ * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
31
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
32
  *
33
33
  * @example
34
34
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
35
+ * // Always record inputs and outputs regardless of global dataCollection config
36
36
  * Sentry.init({
37
37
  * integrations: [
38
38
  * Sentry.langGraphIntegration({
@@ -42,9 +42,9 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
42
42
  * ],
43
43
  * });
44
44
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
45
+ * // Never record inputs/outputs regardless of global dataCollection config
46
46
  * Sentry.init({
47
- * sendDefaultPii: true,
47
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
48
  * integrations: [
49
49
  * Sentry.langGraphIntegration({
50
50
  * recordInputs: false,
@@ -21,18 +21,18 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
21
21
  *
22
22
  * ## Options
23
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)
24
+ * - `recordInputs`: Whether to record prompt messages (default: follows `sendDefaultPii` or `dataCollection.genAI.inputs`)
25
+ * - `recordOutputs`: Whether to record response text (default: follows `sendDefaultPii` or `dataCollection.genAI.outputs`)
26
26
  *
27
27
  * ### Default Behavior
28
28
  *
29
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
30
+ * - Record inputs and outputs based on `sendDefaultPii` or `dataCollection.genAI` in your Sentry client options
31
+ * - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
32
32
  *
33
33
  * @example
34
34
  * ```javascript
35
- * // Record inputs and outputs when sendDefaultPii is false
35
+ * // Always record inputs and outputs regardless of global dataCollection config
36
36
  * Sentry.init({
37
37
  * integrations: [
38
38
  * Sentry.openAIIntegration({
@@ -42,9 +42,9 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
42
42
  * ],
43
43
  * });
44
44
  *
45
- * // Never record inputs/outputs regardless of sendDefaultPii
45
+ * // Never record inputs/outputs regardless of global dataCollection config
46
46
  * Sentry.init({
47
- * sendDefaultPii: true,
47
+ * dataCollection: { genAI: { inputs: true, outputs: true } },
48
48
  * integrations: [
49
49
  * Sentry.openAIIntegration({
50
50
  * recordInputs: false,
@@ -17,7 +17,10 @@ interface RedisOptions {
17
17
  }
18
18
  export declare let _redisOptions: RedisOptions;
19
19
  export declare const cacheResponseHook: IORedisResponseCustomAttributeFunction;
20
- /** To be able to preload all Redis OTel instrumentations with just one ID ("Redis"), all the instrumentations are generated in this one function */
20
+ /**
21
+ * To be able to preload all Redis OTel instrumentations with just one ID
22
+ * ("Redis"), all the instrumentations are generated in this one function
23
+ */
21
24
  export declare const instrumentRedis: (() => void) & {
22
25
  id: string;
23
26
  };
@@ -22,9 +22,9 @@ export declare function cleanupToolCallSpanContexts(content: Array<object>): voi
22
22
  * 1. The vercel ai integration options
23
23
  * 2. The experimental_telemetry options in the vercel ai method calls
24
24
  * 3. When telemetry is explicitly enabled (isEnabled: true), default to recording
25
- * 4. Otherwise, use the sendDefaultPii option from client options
25
+ * 4. Otherwise, use the dataCollection.genAI settings from client options
26
26
  */
27
- export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultRecordingEnabled: boolean): {
27
+ export declare function determineRecordingSettings(integrationRecordingOptions: RecordingOptions | undefined, methodTelemetryOptions: RecordingOptions, telemetryExplicitlyEnabled: boolean | undefined, defaultInputsEnabled: boolean, defaultOutputsEnabled: boolean): {
28
28
  recordInputs: boolean;
29
29
  recordOutputs: boolean;
30
30
  };
@@ -38,13 +38,15 @@ export type TelemetrySettings = {
38
38
  export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
39
39
  export interface VercelAiOptions {
40
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
41
+ * Enable or disable input recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.inputs` is `true`
42
+ * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
43
+ * Integration-level options take precedence over global `dataCollection` config.
43
44
  */
44
45
  recordInputs?: boolean;
45
46
  /**
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
47
+ * Enable or disable output recording. Enabled if `sendDefaultPii` or `dataCollection.genAI.outputs` is `true`
48
+ * or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
49
+ * Integration-level options take precedence over global `dataCollection` config.
48
50
  */
49
51
  recordOutputs?: boolean;
50
52
  /**
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Set the `http.route` attribute on the root HTTP server span for the current trace.
3
+ *
4
+ * No-op when there is no active span, no root span, or the root span is not an
5
+ * `http.server` span — so framework instrumentations can call this unconditionally
6
+ * without risking attribute pollution on non-HTTP root spans.
7
+ */
8
+ export declare function setHttpServerSpanRouteAttribute(route: string): void;
9
+ //# sourceMappingURL=setHttpServerSpanRouteAttribute.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node",
3
- "version": "10.54.0",
3
+ "version": "10.56.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",
@@ -70,9 +70,10 @@
70
70
  "@opentelemetry/instrumentation": "^0.214.0",
71
71
  "@opentelemetry/sdk-trace-base": "^2.6.1",
72
72
  "@opentelemetry/semantic-conventions": "^1.40.0",
73
- "@sentry/core": "10.54.0",
74
- "@sentry/node-core": "10.54.0",
75
- "@sentry/opentelemetry": "10.54.0",
73
+ "@sentry-internal/server-utils": "10.56.0",
74
+ "@sentry/core": "10.56.0",
75
+ "@sentry/node-core": "10.56.0",
76
+ "@sentry/opentelemetry": "10.56.0",
76
77
  "import-in-the-middle": "^3.0.0"
77
78
  },
78
79
  "devDependencies": {
@@ -1,151 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const core = require('@sentry/core');
4
- const tracingChannel = require('@sentry/opentelemetry/tracing-channel');
5
- const redisCommon = require('./vendored/redis-common.js');
6
- const semconv = require('./vendored/semconv.js');
7
-
8
- const CHANNEL_COMMAND = "node-redis:command";
9
- const CHANNEL_BATCH = "node-redis:batch";
10
- const CHANNEL_CONNECT = "node-redis:connect";
11
- const ORIGIN = "auto.db.redis.diagnostic_channel";
12
- const NOOP = () => {
13
- };
14
- let subscribed = false;
15
- let currentResponseHook;
16
- function subscribeRedisDiagnosticChannels(responseHook) {
17
- currentResponseHook = responseHook;
18
- if (subscribed) return;
19
- try {
20
- setupCommandChannel();
21
- setupBatchChannel();
22
- setupConnectChannel();
23
- subscribed = true;
24
- } catch {
25
- }
26
- }
27
- function setupCommandChannel() {
28
- const channel = tracingChannel.tracingChannel(CHANNEL_COMMAND, (data) => {
29
- const actualArgs = data.args.slice(1);
30
- const statement = safeSerialize(data.command, actualArgs);
31
- return core.startSpanManual(
32
- {
33
- name: `redis-${data.command}`,
34
- attributes: {
35
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
36
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db.redis",
37
- [semconv.ATTR_DB_SYSTEM]: semconv.DB_SYSTEM_VALUE_REDIS,
38
- ...statement != null ? { [semconv.ATTR_DB_STATEMENT]: statement } : {},
39
- ...data.serverAddress != null ? { [semconv.ATTR_NET_PEER_NAME]: data.serverAddress } : {},
40
- ...data.serverPort != null ? { [semconv.ATTR_NET_PEER_PORT]: data.serverPort } : {}
41
- }
42
- },
43
- (span) => span
44
- );
45
- });
46
- channel.subscribe({
47
- start: NOOP,
48
- asyncStart: NOOP,
49
- end: NOOP,
50
- asyncEnd: (data) => {
51
- const span = data._sentrySpan;
52
- if (!span || data.error) return;
53
- runResponseHook(span, data.command, data.args.slice(1), data.result);
54
- span.end();
55
- },
56
- error: (data) => {
57
- const span = data._sentrySpan;
58
- if (!span) return;
59
- if (data.error) {
60
- span.setStatus({ code: core.SPAN_STATUS_ERROR, message: data.error.message });
61
- }
62
- span.end();
63
- }
64
- });
65
- }
66
- function setupBatchChannel() {
67
- const channel = tracingChannel.tracingChannel(CHANNEL_BATCH, (data) => {
68
- const operationName = data.batchMode === "PIPELINE" ? "PIPELINE" : "MULTI";
69
- return core.startSpanManual(
70
- {
71
- name: operationName,
72
- attributes: {
73
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
74
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db.redis",
75
- [semconv.ATTR_DB_SYSTEM]: semconv.DB_SYSTEM_VALUE_REDIS,
76
- ...data.batchSize != null ? { "db.redis.batch_size": data.batchSize } : {},
77
- ...data.serverAddress != null ? { [semconv.ATTR_NET_PEER_NAME]: data.serverAddress } : {},
78
- ...data.serverPort != null ? { [semconv.ATTR_NET_PEER_PORT]: data.serverPort } : {}
79
- }
80
- },
81
- (span) => span
82
- );
83
- });
84
- channel.subscribe({
85
- start: NOOP,
86
- asyncStart: NOOP,
87
- end: NOOP,
88
- asyncEnd: (data) => {
89
- if (!data.error) data._sentrySpan?.end();
90
- },
91
- error: (data) => {
92
- const span = data._sentrySpan;
93
- if (!span) return;
94
- if (data.error) {
95
- span.setStatus({ code: core.SPAN_STATUS_ERROR, message: data.error.message });
96
- }
97
- span.end();
98
- }
99
- });
100
- }
101
- function setupConnectChannel() {
102
- const channel = tracingChannel.tracingChannel(CHANNEL_CONNECT, (data) => {
103
- return core.startSpanManual(
104
- {
105
- name: "redis-connect",
106
- attributes: {
107
- [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
108
- [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: "db.redis.connect",
109
- [semconv.ATTR_DB_SYSTEM]: semconv.DB_SYSTEM_VALUE_REDIS,
110
- ...data.serverAddress != null ? { [semconv.ATTR_NET_PEER_NAME]: data.serverAddress } : {},
111
- ...data.serverPort != null ? { [semconv.ATTR_NET_PEER_PORT]: data.serverPort } : {}
112
- }
113
- },
114
- (span) => span
115
- );
116
- });
117
- channel.subscribe({
118
- start: NOOP,
119
- asyncStart: NOOP,
120
- end: NOOP,
121
- asyncEnd: (data) => {
122
- if (!data.error) data._sentrySpan?.end();
123
- },
124
- error: (data) => {
125
- const span = data._sentrySpan;
126
- if (!span) return;
127
- if (data.error) {
128
- span.setStatus({ code: core.SPAN_STATUS_ERROR, message: data.error.message });
129
- }
130
- span.end();
131
- }
132
- });
133
- }
134
- function runResponseHook(span, command, args, result) {
135
- const hook = currentResponseHook;
136
- if (!hook) return;
137
- try {
138
- hook(span, command, args, result);
139
- } catch {
140
- }
141
- }
142
- function safeSerialize(command, args) {
143
- try {
144
- return redisCommon.defaultDbStatementSerializer(command, args);
145
- } catch {
146
- return void 0;
147
- }
148
- }
149
-
150
- exports.subscribeRedisDiagnosticChannels = subscribeRedisDiagnosticChannels;
151
- //# sourceMappingURL=redis-dc-subscriber.js.map