@sentry/server-utils 10.64.0 → 10.65.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 (279) hide show
  1. package/build/cjs/graphql/graphql-dc-subscriber.js +125 -0
  2. package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -0
  3. package/build/cjs/graphql/index.js +23 -0
  4. package/build/cjs/graphql/index.js.map +1 -0
  5. package/build/cjs/graphql/utils.js +86 -0
  6. package/build/cjs/graphql/utils.js.map +1 -0
  7. package/build/cjs/index.js +10 -11
  8. package/build/cjs/index.js.map +1 -1
  9. package/build/cjs/integrations/tracing-channel/amqplib.js +420 -0
  10. package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -0
  11. package/build/cjs/integrations/tracing-channel/express/index.js +24 -0
  12. package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -0
  13. package/build/cjs/integrations/tracing-channel/express/instrumentation.js +173 -0
  14. package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -0
  15. package/build/cjs/integrations/tracing-channel/express/route.js +76 -0
  16. package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -0
  17. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +1 -1
  18. package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  19. package/build/cjs/integrations/tracing-channel/google-genai.js +96 -0
  20. package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -0
  21. package/build/cjs/integrations/tracing-channel/graphql/constants.js +26 -0
  22. package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -0
  23. package/build/cjs/integrations/tracing-channel/graphql/index.js +66 -0
  24. package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -0
  25. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js +168 -0
  26. package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  27. package/build/cjs/integrations/tracing-channel/graphql/spans.js +102 -0
  28. package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -0
  29. package/build/cjs/integrations/tracing-channel/ioredis.js +14 -14
  30. package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
  31. package/build/cjs/integrations/tracing-channel/mysql.js +1 -1
  32. package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
  33. package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
  34. package/build/cjs/integrations/tracing-channel/postgres-js.js +191 -0
  35. package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -0
  36. package/build/cjs/integrations/tracing-channel/postgres.js +5 -5
  37. package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
  38. package/build/cjs/integrations/tracing-channel/redis.js +227 -0
  39. package/build/cjs/integrations/tracing-channel/redis.js.map +1 -0
  40. package/build/cjs/integrations/tracing-channel/vercel-ai.js +2 -2
  41. package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
  42. package/build/cjs/mongoose/mongoose-dc-subscriber.js +1 -1
  43. package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
  44. package/build/cjs/mysql2/index.js +23 -0
  45. package/build/cjs/mysql2/index.js.map +1 -0
  46. package/build/cjs/mysql2/mysql2-dc-subscriber.js +68 -0
  47. package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -0
  48. package/build/cjs/orchestrion/channels.js +13 -1
  49. package/build/cjs/orchestrion/channels.js.map +1 -1
  50. package/build/cjs/orchestrion/config/amqplib.js +81 -0
  51. package/build/cjs/orchestrion/config/amqplib.js.map +1 -0
  52. package/build/cjs/orchestrion/config/express.js +76 -0
  53. package/build/cjs/orchestrion/config/express.js.map +1 -0
  54. package/build/cjs/orchestrion/config/google-genai.js +38 -0
  55. package/build/cjs/orchestrion/config/google-genai.js.map +1 -0
  56. package/build/cjs/orchestrion/config/graphql.js +28 -0
  57. package/build/cjs/orchestrion/config/graphql.js.map +1 -0
  58. package/build/cjs/orchestrion/config/index.js +15 -2
  59. package/build/cjs/orchestrion/config/index.js.map +1 -1
  60. package/build/cjs/orchestrion/config/postgres.js +50 -0
  61. package/build/cjs/orchestrion/config/postgres.js.map +1 -0
  62. package/build/cjs/orchestrion/config/redis.js +76 -0
  63. package/build/cjs/orchestrion/config/redis.js.map +1 -0
  64. package/build/cjs/orchestrion/config/vercel-ai.js +18 -14
  65. package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
  66. package/build/cjs/orchestrion/index.js +18 -1
  67. package/build/cjs/orchestrion/index.js.map +1 -1
  68. package/build/cjs/redis/index.js +23 -0
  69. package/build/cjs/redis/index.js.map +1 -0
  70. package/build/cjs/redis/redis-dc-subscriber.js +23 -35
  71. package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
  72. package/build/cjs/tracing-channel.js +7 -6
  73. package/build/cjs/tracing-channel.js.map +1 -1
  74. package/build/cjs/vercel-ai/util.js +123 -0
  75. package/build/cjs/vercel-ai/util.js.map +1 -0
  76. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +138 -74
  77. package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  78. package/build/cjs/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
  79. package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  80. package/build/esm/graphql/graphql-dc-subscriber.js +118 -0
  81. package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -0
  82. package/build/esm/graphql/index.js +21 -0
  83. package/build/esm/graphql/index.js.map +1 -0
  84. package/build/esm/graphql/utils.js +81 -0
  85. package/build/esm/graphql/utils.js.map +1 -0
  86. package/build/esm/index.js +3 -1
  87. package/build/esm/index.js.map +1 -1
  88. package/build/esm/integrations/tracing-channel/amqplib.js +418 -0
  89. package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -0
  90. package/build/esm/integrations/tracing-channel/anthropic.js +1 -1
  91. package/build/esm/integrations/tracing-channel/express/index.js +22 -0
  92. package/build/esm/integrations/tracing-channel/express/index.js.map +1 -0
  93. package/build/esm/integrations/tracing-channel/express/instrumentation.js +171 -0
  94. package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -0
  95. package/build/esm/integrations/tracing-channel/express/route.js +68 -0
  96. package/build/esm/integrations/tracing-channel/express/route.js.map +1 -0
  97. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +2 -2
  98. package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
  99. package/build/esm/integrations/tracing-channel/google-genai.js +94 -0
  100. package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -0
  101. package/build/esm/integrations/tracing-channel/graphql/constants.js +14 -0
  102. package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -0
  103. package/build/esm/integrations/tracing-channel/graphql/index.js +63 -0
  104. package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -0
  105. package/build/esm/integrations/tracing-channel/graphql/resolvers.js +164 -0
  106. package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -0
  107. package/build/esm/integrations/tracing-channel/graphql/spans.js +96 -0
  108. package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -0
  109. package/build/esm/integrations/tracing-channel/ioredis.js +15 -15
  110. package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
  111. package/build/esm/integrations/tracing-channel/mysql.js +2 -2
  112. package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
  113. package/build/esm/integrations/tracing-channel/openai.js +1 -1
  114. package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
  115. package/build/esm/integrations/tracing-channel/postgres-js.js +189 -0
  116. package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -0
  117. package/build/esm/integrations/tracing-channel/postgres.js +6 -6
  118. package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
  119. package/build/esm/integrations/tracing-channel/redis.js +225 -0
  120. package/build/esm/integrations/tracing-channel/redis.js.map +1 -0
  121. package/build/esm/integrations/tracing-channel/vercel-ai.js +1 -1
  122. package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
  123. package/build/esm/mongoose/mongoose-dc-subscriber.js +2 -2
  124. package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
  125. package/build/esm/mysql2/index.js +21 -0
  126. package/build/esm/mysql2/index.js.map +1 -0
  127. package/build/esm/mysql2/mysql2-dc-subscriber.js +62 -0
  128. package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -0
  129. package/build/esm/orchestrion/channels.js +13 -1
  130. package/build/esm/orchestrion/channels.js.map +1 -1
  131. package/build/esm/orchestrion/config/amqplib.js +78 -0
  132. package/build/esm/orchestrion/config/amqplib.js.map +1 -0
  133. package/build/esm/orchestrion/config/express.js +73 -0
  134. package/build/esm/orchestrion/config/express.js.map +1 -0
  135. package/build/esm/orchestrion/config/google-genai.js +35 -0
  136. package/build/esm/orchestrion/config/google-genai.js.map +1 -0
  137. package/build/esm/orchestrion/config/graphql.js +25 -0
  138. package/build/esm/orchestrion/config/graphql.js.map +1 -0
  139. package/build/esm/orchestrion/config/index.js +15 -2
  140. package/build/esm/orchestrion/config/index.js.map +1 -1
  141. package/build/esm/orchestrion/config/postgres.js +47 -0
  142. package/build/esm/orchestrion/config/postgres.js.map +1 -0
  143. package/build/esm/orchestrion/config/redis.js +73 -0
  144. package/build/esm/orchestrion/config/redis.js.map +1 -0
  145. package/build/esm/orchestrion/config/vercel-ai.js +18 -14
  146. package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
  147. package/build/esm/orchestrion/index.js +14 -2
  148. package/build/esm/orchestrion/index.js.map +1 -1
  149. package/build/esm/package.json +1 -1
  150. package/build/esm/redis/index.js +21 -0
  151. package/build/esm/redis/index.js.map +1 -0
  152. package/build/esm/redis/redis-dc-subscriber.js +24 -36
  153. package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
  154. package/build/esm/tracing-channel.js +8 -7
  155. package/build/esm/tracing-channel.js.map +1 -1
  156. package/build/esm/vercel-ai/util.js +116 -0
  157. package/build/esm/vercel-ai/util.js.map +1 -0
  158. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +112 -50
  159. package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  160. package/build/esm/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.js → vercel-ai-orchestrion-subscriber.js} +153 -23
  161. package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -0
  162. package/build/types/graphql/graphql-dc-subscriber.d.ts +94 -0
  163. package/build/types/graphql/graphql-dc-subscriber.d.ts.map +1 -0
  164. package/build/types/graphql/index.d.ts +12 -0
  165. package/build/types/graphql/index.d.ts.map +1 -0
  166. package/build/types/graphql/utils.d.ts +40 -0
  167. package/build/types/graphql/utils.d.ts.map +1 -0
  168. package/build/types/index.d.ts +4 -2
  169. package/build/types/index.d.ts.map +1 -1
  170. package/build/types/integrations/tracing-channel/amqplib.d.ts +11 -0
  171. package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -0
  172. package/build/types/integrations/tracing-channel/express/index.d.ts +18 -0
  173. package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -0
  174. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  175. package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -0
  176. package/build/types/integrations/tracing-channel/express/route.d.ts +28 -0
  177. package/build/types/integrations/tracing-channel/express/route.d.ts.map +1 -0
  178. package/build/types/integrations/tracing-channel/express/types.d.ts +64 -0
  179. package/build/types/integrations/tracing-channel/express/types.d.ts.map +1 -0
  180. package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
  181. package/build/types/integrations/tracing-channel/google-genai.d.ts +12 -0
  182. package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -0
  183. package/build/types/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  184. package/build/types/integrations/tracing-channel/graphql/constants.d.ts.map +1 -0
  185. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  186. package/build/types/integrations/tracing-channel/graphql/graphql-types.d.ts.map +1 -0
  187. package/build/types/integrations/tracing-channel/graphql/index.d.ts +28 -0
  188. package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -0
  189. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  190. package/build/types/integrations/tracing-channel/graphql/resolvers.d.ts.map +1 -0
  191. package/build/types/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  192. package/build/types/integrations/tracing-channel/graphql/spans.d.ts.map +1 -0
  193. package/build/types/integrations/tracing-channel/graphql/types.d.ts +25 -0
  194. package/build/types/integrations/tracing-channel/graphql/types.d.ts.map +1 -0
  195. package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
  196. package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
  197. package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
  198. package/build/types/integrations/tracing-channel/postgres-js.d.ts +26 -0
  199. package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -0
  200. package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -1
  201. package/build/types/integrations/tracing-channel/redis.d.ts +16 -0
  202. package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -0
  203. package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -1
  204. package/build/types/mongoose/mongoose-dc-subscriber.d.ts.map +1 -1
  205. package/build/types/mysql2/index.d.ts +11 -0
  206. package/build/types/mysql2/index.d.ts.map +1 -0
  207. package/build/types/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  208. package/build/types/mysql2/mysql2-dc-subscriber.d.ts.map +1 -0
  209. package/build/types/orchestrion/channels.d.ts +34 -0
  210. package/build/types/orchestrion/channels.d.ts.map +1 -1
  211. package/build/types/orchestrion/config/amqplib.d.ts +66 -0
  212. package/build/types/orchestrion/config/amqplib.d.ts.map +1 -0
  213. package/build/types/orchestrion/config/express.d.ts +32 -0
  214. package/build/types/orchestrion/config/express.d.ts.map +1 -0
  215. package/build/types/orchestrion/config/google-genai.d.ts +30 -0
  216. package/build/types/orchestrion/config/google-genai.d.ts.map +1 -0
  217. package/build/types/orchestrion/config/graphql.d.ts +29 -0
  218. package/build/types/orchestrion/config/graphql.d.ts.map +1 -0
  219. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  220. package/build/types/orchestrion/config/postgres.d.ts +9 -0
  221. package/build/types/orchestrion/config/postgres.d.ts.map +1 -0
  222. package/build/types/orchestrion/config/redis.d.ts +37 -0
  223. package/build/types/orchestrion/config/redis.d.ts.map +1 -0
  224. package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
  225. package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
  226. package/build/types/orchestrion/index.d.ts +31 -4
  227. package/build/types/orchestrion/index.d.ts.map +1 -1
  228. package/build/types/redis/index.d.ts +18 -0
  229. package/build/types/redis/index.d.ts.map +1 -0
  230. package/build/types/redis/redis-dc-subscriber.d.ts +0 -5
  231. package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
  232. package/build/types/tracing-channel.d.ts +5 -0
  233. package/build/types/tracing-channel.d.ts.map +1 -1
  234. package/build/types/vercel-ai/util.d.ts +32 -0
  235. package/build/types/vercel-ai/util.d.ts.map +1 -0
  236. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
  237. package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  238. package/build/types/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
  239. package/build/types/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -0
  240. package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +94 -0
  241. package/build/types-ts3.8/graphql/index.d.ts +12 -0
  242. package/build/types-ts3.8/graphql/utils.d.ts +40 -0
  243. package/build/types-ts3.8/index.d.ts +4 -2
  244. package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +11 -0
  245. package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +18 -0
  246. package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +4 -0
  247. package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +28 -0
  248. package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +64 -0
  249. package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +12 -0
  250. package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +12 -0
  251. package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +135 -0
  252. package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +30 -0
  253. package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +13 -0
  254. package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +17 -0
  255. package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +25 -0
  256. package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +26 -0
  257. package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +16 -0
  258. package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +1 -1
  259. package/build/types-ts3.8/mysql2/index.d.ts +11 -0
  260. package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +59 -0
  261. package/build/types-ts3.8/orchestrion/channels.d.ts +34 -0
  262. package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +66 -0
  263. package/build/types-ts3.8/orchestrion/config/express.d.ts +32 -0
  264. package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +30 -0
  265. package/build/types-ts3.8/orchestrion/config/graphql.d.ts +29 -0
  266. package/build/types-ts3.8/orchestrion/config/postgres.d.ts +9 -0
  267. package/build/types-ts3.8/orchestrion/config/redis.d.ts +37 -0
  268. package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +1 -0
  269. package/build/types-ts3.8/orchestrion/index.d.ts +33 -4
  270. package/build/types-ts3.8/redis/index.d.ts +18 -0
  271. package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -5
  272. package/build/types-ts3.8/tracing-channel.d.ts +5 -0
  273. package/build/types-ts3.8/vercel-ai/util.d.ts +32 -0
  274. package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -2
  275. package/build/types-ts3.8/vercel-ai/{vercel-ai-orchestrion-v6-subscriber.d.ts → vercel-ai-orchestrion-subscriber.d.ts} +1 -1
  276. package/package.json +2 -2
  277. package/build/cjs/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
  278. package/build/esm/vercel-ai/vercel-ai-orchestrion-v6-subscriber.js.map +0 -1
  279. package/build/types/vercel-ai/vercel-ai-orchestrion-v6-subscriber.d.ts.map +0 -1
@@ -0,0 +1,125 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const attributes = require('@sentry/conventions/attributes');
4
+ const op = require('@sentry/conventions/op');
5
+ const core = require('@sentry/core');
6
+ const tracingChannel = require('../tracing-channel.js');
7
+ const utils = require('./utils.js');
8
+
9
+ const GRAPHQL_DC_CHANNEL_PARSE = "graphql:parse";
10
+ const GRAPHQL_DC_CHANNEL_VALIDATE = "graphql:validate";
11
+ const GRAPHQL_DC_CHANNEL_EXECUTE = "graphql:execute";
12
+ const GRAPHQL_DC_CHANNEL_SUBSCRIBE = "graphql:subscribe";
13
+ const GRAPHQL_DC_CHANNEL_RESOLVE = "graphql:resolve";
14
+ const ORIGIN = "auto.graphql.diagnostic_channel";
15
+ const SPAN_NAME_PARSE = "graphql.parse";
16
+ const SPAN_NAME_VALIDATE = "graphql.validate";
17
+ const SPAN_NAME_EXECUTE = "graphql.execute";
18
+ const SPAN_NAME_SUBSCRIBE = "graphql.subscribe";
19
+ const SPAN_NAME_RESOLVE = "graphql.resolve";
20
+ const GRAPHQL_FIELD_NAME = "graphql.field.name";
21
+ const GRAPHQL_FIELD_PATH = "graphql.field.path";
22
+ const GRAPHQL_FIELD_TYPE = "graphql.field.type";
23
+ const GRAPHQL_PARENT_NAME = "graphql.parent.name";
24
+ function subscribeGraphqlDiagnosticChannels(tracingChannel, options = {}) {
25
+ const ignoreResolveSpans = options.ignoreResolveSpans !== false;
26
+ const ignoreTrivialResolveSpans = options.ignoreTrivialResolveSpans !== false;
27
+ const useOperationNameForRootSpan = options.useOperationNameForRootSpan !== false;
28
+ setupParseChannel(tracingChannel);
29
+ setupValidateChannel(tracingChannel);
30
+ setupOperationChannel(tracingChannel, GRAPHQL_DC_CHANNEL_EXECUTE, SPAN_NAME_EXECUTE, useOperationNameForRootSpan);
31
+ setupOperationChannel(tracingChannel, GRAPHQL_DC_CHANNEL_SUBSCRIBE, SPAN_NAME_SUBSCRIBE, useOperationNameForRootSpan);
32
+ if (!ignoreResolveSpans) {
33
+ setupResolveChannel(tracingChannel, ignoreTrivialResolveSpans);
34
+ }
35
+ }
36
+ function setupParseChannel(tracingChannel$1) {
37
+ tracingChannel.bindTracingChannelToSpan(
38
+ tracingChannel$1(GRAPHQL_DC_CHANNEL_PARSE),
39
+ () => core.startInactiveSpan({
40
+ name: SPAN_NAME_PARSE,
41
+ attributes: {
42
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
43
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: op.WEB_SERVER_GRAPHQL_SPAN_OP
44
+ }
45
+ })
46
+ );
47
+ }
48
+ function setupValidateChannel(tracingChannel$1) {
49
+ tracingChannel.bindTracingChannelToSpan(
50
+ tracingChannel$1(GRAPHQL_DC_CHANNEL_VALIDATE),
51
+ (data) => {
52
+ const document = utils.redactGraphqlDocument(data.document);
53
+ return core.startInactiveSpan({
54
+ name: SPAN_NAME_VALIDATE,
55
+ attributes: {
56
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
57
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: op.WEB_SERVER_GRAPHQL_SPAN_OP,
58
+ [attributes.GRAPHQL_DOCUMENT]: document
59
+ }
60
+ });
61
+ },
62
+ {
63
+ beforeSpanEnd: (span, data) => {
64
+ if (Array.isArray(data.result) && data.result.length > 0) {
65
+ span.setStatus({ code: core.SPAN_STATUS_ERROR, message: "invalid_argument" });
66
+ }
67
+ }
68
+ }
69
+ );
70
+ }
71
+ function setupOperationChannel(tracingChannel$1, channelName, fallbackName, useOperationNameForRootSpan) {
72
+ tracingChannel.bindTracingChannelToSpan(
73
+ tracingChannel$1(channelName),
74
+ (data) => {
75
+ const document = utils.redactGraphqlDocument(data.document);
76
+ const span = core.startInactiveSpan({
77
+ name: utils.getOperationSpanName(data.operationType, data.operationName, fallbackName),
78
+ attributes: {
79
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
80
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: op.WEB_SERVER_GRAPHQL_SPAN_OP,
81
+ [attributes.GRAPHQL_OPERATION_TYPE]: data.operationType,
82
+ [attributes.GRAPHQL_OPERATION_NAME]: data.operationName || void 0,
83
+ [attributes.GRAPHQL_DOCUMENT]: document
84
+ }
85
+ });
86
+ if (useOperationNameForRootSpan && data.operationType) {
87
+ utils.renameRootSpanWithOperation(span, data.operationType, data.operationName);
88
+ }
89
+ return span;
90
+ },
91
+ {
92
+ beforeSpanEnd: (span, data) => {
93
+ if (utils.hasResultErrors(data.result)) {
94
+ span.setStatus({ code: core.SPAN_STATUS_ERROR, message: "internal_error" });
95
+ }
96
+ }
97
+ }
98
+ );
99
+ }
100
+ function setupResolveChannel(tracingChannel$1, ignoreTrivialResolveSpans) {
101
+ tracingChannel.bindTracingChannelToSpan(tracingChannel$1(GRAPHQL_DC_CHANNEL_RESOLVE), (data) => {
102
+ if (ignoreTrivialResolveSpans && data.isDefaultResolver) {
103
+ return void 0;
104
+ }
105
+ return core.startInactiveSpan({
106
+ name: `${SPAN_NAME_RESOLVE} ${data.fieldPath}`,
107
+ attributes: {
108
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,
109
+ [core.SEMANTIC_ATTRIBUTE_SENTRY_OP]: op.WEB_SERVER_GRAPHQL_SPAN_OP,
110
+ [GRAPHQL_FIELD_NAME]: data.fieldName,
111
+ [GRAPHQL_FIELD_PATH]: data.fieldPath,
112
+ [GRAPHQL_FIELD_TYPE]: data.fieldType,
113
+ [GRAPHQL_PARENT_NAME]: data.parentType
114
+ }
115
+ });
116
+ });
117
+ }
118
+
119
+ exports.GRAPHQL_DC_CHANNEL_EXECUTE = GRAPHQL_DC_CHANNEL_EXECUTE;
120
+ exports.GRAPHQL_DC_CHANNEL_PARSE = GRAPHQL_DC_CHANNEL_PARSE;
121
+ exports.GRAPHQL_DC_CHANNEL_RESOLVE = GRAPHQL_DC_CHANNEL_RESOLVE;
122
+ exports.GRAPHQL_DC_CHANNEL_SUBSCRIBE = GRAPHQL_DC_CHANNEL_SUBSCRIBE;
123
+ exports.GRAPHQL_DC_CHANNEL_VALIDATE = GRAPHQL_DC_CHANNEL_VALIDATE;
124
+ exports.subscribeGraphqlDiagnosticChannels = subscribeGraphqlDiagnosticChannels;
125
+ //# sourceMappingURL=graphql-dc-subscriber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-dc-subscriber.js","sources":["../../../src/graphql/graphql-dc-subscriber.ts"],"sourcesContent":["import type { TracingChannel } from 'node:diagnostics_channel';\nimport { GRAPHQL_DOCUMENT, GRAPHQL_OPERATION_NAME, GRAPHQL_OPERATION_TYPE } from '@sentry/conventions/attributes';\nimport { WEB_SERVER_GRAPHQL_SPAN_OP } from '@sentry/conventions/op';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SPAN_STATUS_ERROR,\n startInactiveSpan,\n} from '@sentry/core';\nimport { bindTracingChannelToSpan } from '../tracing-channel';\nimport type { GraphqlDocumentNode } from './utils';\nimport { getOperationSpanName, hasResultErrors, redactGraphqlDocument, renameRootSpanWithOperation } from './utils';\n\n// Channel names published by graphql >= 17.0.0 (see graphql-js `src/diagnostics.ts`).\n// Hardcoded so the subscriber does not have to import graphql — the channels just\n// have to be subscribed to before the user's graphql code publishes.\nexport const GRAPHQL_DC_CHANNEL_PARSE = 'graphql:parse';\nexport const GRAPHQL_DC_CHANNEL_VALIDATE = 'graphql:validate';\nexport const GRAPHQL_DC_CHANNEL_EXECUTE = 'graphql:execute';\nexport const GRAPHQL_DC_CHANNEL_SUBSCRIBE = 'graphql:subscribe';\nexport const GRAPHQL_DC_CHANNEL_RESOLVE = 'graphql:resolve';\n\nconst ORIGIN = 'auto.graphql.diagnostic_channel';\n\nconst SPAN_NAME_PARSE = 'graphql.parse';\nconst SPAN_NAME_VALIDATE = 'graphql.validate';\nconst SPAN_NAME_EXECUTE = 'graphql.execute';\nconst SPAN_NAME_SUBSCRIBE = 'graphql.subscribe';\nconst SPAN_NAME_RESOLVE = 'graphql.resolve';\n\n// Field-level attributes for resolver spans. Not in `@sentry/conventions`; these match the keys the\n// vendored OTel instrumentation emits so there is no drift between the two paths.\nconst GRAPHQL_FIELD_NAME = 'graphql.field.name';\nconst GRAPHQL_FIELD_PATH = 'graphql.field.path';\nconst GRAPHQL_FIELD_TYPE = 'graphql.field.type';\nconst GRAPHQL_PARENT_NAME = 'graphql.parent.name';\n\n/** Context published on the sync-only `graphql:parse` channel. */\nexport interface GraphqlParseData {\n source: string | { body?: string };\n result?: GraphqlDocumentNode;\n error?: unknown;\n}\n\n/** Context published on the sync-only `graphql:validate` channel. */\nexport interface GraphqlValidateData {\n document: GraphqlDocumentNode;\n /** Validation errors returned by validation; an empty array means the document is valid. */\n result?: ReadonlyArray<unknown>;\n error?: unknown;\n}\n\n/**\n * Context published on the `graphql:execute` and `graphql:subscribe` channels.\n *\n * `result` carries an `ExecutionResult` (or, for subscriptions, an async generator); GraphQL errors\n * collected during execution surface on `result.errors` rather than as the channel's `error`\n * lifecycle event, which only fires on an abrupt throw.\n */\nexport interface GraphqlOperationData {\n document: GraphqlDocumentNode;\n operationName?: string;\n operationType?: string;\n result?: unknown;\n error?: unknown;\n}\n\n/**\n * Context published on the per-field `graphql:resolve` channel.\n *\n * A resolver throw or rejection publishes the `error` lifecycle event here; the same failure also\n * surfaces in the enclosing execution result.\n */\nexport interface GraphqlResolveData {\n fieldName: string;\n parentType: string;\n fieldType: string;\n fieldPath: string;\n /** Whether the field is handled by graphql's default property resolver (vs. a user resolver). */\n isDefaultResolver: boolean;\n alias?: string;\n args?: unknown;\n result?: unknown;\n error?: unknown;\n}\n\n/** Options controlling which graphql channels the subscriber emits spans for. */\nexport interface GraphqlDiagnosticChannelsOptions {\n /**\n * Do not create spans for resolvers. Resolver spans are per-field and can be very high volume.\n * Defaults to `true`.\n */\n ignoreResolveSpans?: boolean;\n\n /**\n * When resolver spans are enabled, do not create them for graphql's default property resolver\n * (fields without a user-defined resolver), which are rarely interesting. Defaults to `true`.\n */\n ignoreTrivialResolveSpans?: boolean;\n\n /**\n * Rename the enclosing root span to include the operation name(s), e.g.\n * `GET /graphql` -> `GET /graphql (query GetUser)`. Defaults to `true`.\n */\n useOperationNameForRootSpan?: boolean;\n}\n\n/**\n * Platform-provided factory that creates a native tracing channel for the given name. The\n * subscriber binds the span and its lifecycle onto the channel via `bindTracingChannelToSpan`,\n * which propagates the active span through the runtime's async context.\n *\n * Node passes `node:diagnostics_channel`'s `tracingChannel` directly.\n */\nexport type GraphqlTracingChannelFactory = <T extends object>(name: string) => TracingChannel<T, T>;\n\n/**\n * Subscribe Sentry span handlers to graphql's diagnostics-channel events\n * (`graphql:parse`, `:validate`, `:execute`, `:subscribe`), published by graphql >= 17.0.0.\n *\n * On older graphql versions the channels are never published to, so the subscribers are inert —\n * there is no double-instrumentation against the vendored OTel patcher, which is gated to `< 17`.\n *\n * The per-field `graphql:resolve` channel is only subscribed when `ignoreResolveSpans` is `false`:\n * resolver spans are per-field and can be extremely high-volume, so they are off by default (matching\n * the legacy OTel path). When enabled, `ignoreTrivialResolveSpans` (default `true`) additionally skips\n * graphql's default property resolver.\n */\nexport function subscribeGraphqlDiagnosticChannels(\n tracingChannel: GraphqlTracingChannelFactory,\n options: GraphqlDiagnosticChannelsOptions = {},\n): void {\n const ignoreResolveSpans = options.ignoreResolveSpans !== false;\n const ignoreTrivialResolveSpans = options.ignoreTrivialResolveSpans !== false;\n const useOperationNameForRootSpan = options.useOperationNameForRootSpan !== false;\n\n setupParseChannel(tracingChannel);\n setupValidateChannel(tracingChannel);\n setupOperationChannel(tracingChannel, GRAPHQL_DC_CHANNEL_EXECUTE, SPAN_NAME_EXECUTE, useOperationNameForRootSpan);\n setupOperationChannel(tracingChannel, GRAPHQL_DC_CHANNEL_SUBSCRIBE, SPAN_NAME_SUBSCRIBE, useOperationNameForRootSpan);\n\n if (!ignoreResolveSpans) {\n setupResolveChannel(tracingChannel, ignoreTrivialResolveSpans);\n }\n}\n\nfunction setupParseChannel(tracingChannel: GraphqlTracingChannelFactory): void {\n bindTracingChannelToSpan(tracingChannel<GraphqlParseData>(GRAPHQL_DC_CHANNEL_PARSE), () =>\n startInactiveSpan({\n name: SPAN_NAME_PARSE,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: WEB_SERVER_GRAPHQL_SPAN_OP,\n },\n }),\n );\n}\n\nfunction setupValidateChannel(tracingChannel: GraphqlTracingChannelFactory): void {\n bindTracingChannelToSpan(\n tracingChannel<GraphqlValidateData>(GRAPHQL_DC_CHANNEL_VALIDATE),\n data => {\n const document = redactGraphqlDocument(data.document);\n\n return startInactiveSpan({\n name: SPAN_NAME_VALIDATE,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: WEB_SERVER_GRAPHQL_SPAN_OP,\n [GRAPHQL_DOCUMENT]: document,\n },\n });\n },\n {\n beforeSpanEnd: (span, data) => {\n // Validation completes normally even when it returns errors, so flag the span here.\n if (Array.isArray(data.result) && data.result.length > 0) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'invalid_argument' });\n }\n },\n },\n );\n}\n\nfunction setupOperationChannel(\n tracingChannel: GraphqlTracingChannelFactory,\n channelName: string,\n fallbackName: string,\n useOperationNameForRootSpan: boolean,\n): void {\n bindTracingChannelToSpan(\n tracingChannel<GraphqlOperationData>(channelName),\n data => {\n const document = redactGraphqlDocument(data.document);\n\n const span = startInactiveSpan({\n name: getOperationSpanName(data.operationType, data.operationName, fallbackName),\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: WEB_SERVER_GRAPHQL_SPAN_OP,\n [GRAPHQL_OPERATION_TYPE]: data.operationType,\n [GRAPHQL_OPERATION_NAME]: data.operationName || undefined,\n [GRAPHQL_DOCUMENT]: document,\n },\n });\n\n if (useOperationNameForRootSpan && data.operationType) {\n renameRootSpanWithOperation(span, data.operationType, data.operationName);\n }\n\n return span;\n },\n {\n beforeSpanEnd: (span, data) => {\n // GraphQL errors are returned on `result.errors`, not as a thrown error, so flag the span here.\n if (hasResultErrors(data.result)) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n }\n },\n },\n );\n}\n\nfunction setupResolveChannel(tracingChannel: GraphqlTracingChannelFactory, ignoreTrivialResolveSpans: boolean): void {\n bindTracingChannelToSpan(tracingChannel<GraphqlResolveData>(GRAPHQL_DC_CHANNEL_RESOLVE), data => {\n // Returning `undefined` opts this field out: no span is created and the active context is left\n // untouched, so the field still resolves under its parent span.\n if (ignoreTrivialResolveSpans && data.isDefaultResolver) {\n return undefined;\n }\n\n return startInactiveSpan({\n name: `${SPAN_NAME_RESOLVE} ${data.fieldPath}`,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: ORIGIN,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: WEB_SERVER_GRAPHQL_SPAN_OP,\n [GRAPHQL_FIELD_NAME]: data.fieldName,\n [GRAPHQL_FIELD_PATH]: data.fieldPath,\n [GRAPHQL_FIELD_TYPE]: data.fieldType,\n [GRAPHQL_PARENT_NAME]: data.parentType,\n },\n });\n });\n}\n"],"names":["tracingChannel","bindTracingChannelToSpan","startInactiveSpan","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN","SEMANTIC_ATTRIBUTE_SENTRY_OP","WEB_SERVER_GRAPHQL_SPAN_OP","redactGraphqlDocument","GRAPHQL_DOCUMENT","SPAN_STATUS_ERROR","getOperationSpanName","GRAPHQL_OPERATION_TYPE","GRAPHQL_OPERATION_NAME","renameRootSpanWithOperation","hasResultErrors"],"mappings":";;;;;;;;AAgBO,MAAM,wBAAA,GAA2B;AACjC,MAAM,2BAAA,GAA8B;AACpC,MAAM,0BAAA,GAA6B;AACnC,MAAM,4BAAA,GAA+B;AACrC,MAAM,0BAAA,GAA6B;AAE1C,MAAM,MAAA,GAAS,iCAAA;AAEf,MAAM,eAAA,GAAkB,eAAA;AACxB,MAAM,kBAAA,GAAqB,kBAAA;AAC3B,MAAM,iBAAA,GAAoB,iBAAA;AAC1B,MAAM,mBAAA,GAAsB,mBAAA;AAC5B,MAAM,iBAAA,GAAoB,iBAAA;AAI1B,MAAM,kBAAA,GAAqB,oBAAA;AAC3B,MAAM,kBAAA,GAAqB,oBAAA;AAC3B,MAAM,kBAAA,GAAqB,oBAAA;AAC3B,MAAM,mBAAA,GAAsB,qBAAA;AA6FrB,SAAS,kCAAA,CACd,cAAA,EACA,OAAA,GAA4C,EAAC,EACvC;AACN,EAAA,MAAM,kBAAA,GAAqB,QAAQ,kBAAA,KAAuB,KAAA;AAC1D,EAAA,MAAM,yBAAA,GAA4B,QAAQ,yBAAA,KAA8B,KAAA;AACxE,EAAA,MAAM,2BAAA,GAA8B,QAAQ,2BAAA,KAAgC,KAAA;AAE5E,EAAA,iBAAA,CAAkB,cAAc,CAAA;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AACnH,EAAAC,uCAAA,CAAyBD,gBAAA,CAAmC,0BAA0B,CAAA,EAAG,CAAA,IAAA,KAAQ;AAG/F,IAAA,IAAI,yBAAA,IAA6B,KAAK,iBAAA,EAAmB;AACvD,MAAA,OAAO,MAAA;AAAA,IACT;AAEA,IAAA,OAAOE,sBAAA,CAAkB;AAAA,MACvB,IAAA,EAAM,CAAA,EAAG,iBAAiB,CAAA,CAAA,EAAI,KAAK,SAAS,CAAA,CAAA;AAAA,MAC5C,UAAA,EAAY;AAAA,QACV,CAACC,qCAAgC,GAAG,MAAA;AAAA,QACpC,CAACC,iCAA4B,GAAGC,6BAAA;AAAA,QAChC,CAAC,kBAAkB,GAAG,IAAA,CAAK,SAAA;AAAA,QAC3B,CAAC,kBAAkB,GAAG,IAAA,CAAK,SAAA;AAAA,QAC3B,CAAC,kBAAkB,GAAG,IAAA,CAAK,SAAA;AAAA,QAC3B,CAAC,mBAAmB,GAAG,IAAA,CAAK;AAAA;AAC9B,KACD,CAAA;AAAA,EACH,CAAC,CAAA;AACH;;;;;;;;;"}
@@ -0,0 +1,23 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const core = require('@sentry/core');
4
+ const diagnosticsChannel = require('node:diagnostics_channel');
5
+ const graphqlDcSubscriber = require('./graphql-dc-subscriber.js');
6
+
7
+ const _graphqlIntegration = ((options = {}) => {
8
+ return {
9
+ name: "Graphql",
10
+ setupOnce() {
11
+ if (!diagnosticsChannel.tracingChannel) {
12
+ return;
13
+ }
14
+ core.waitForTracingChannelBinding(() => {
15
+ graphqlDcSubscriber.subscribeGraphqlDiagnosticChannels(diagnosticsChannel.tracingChannel, options);
16
+ });
17
+ }
18
+ };
19
+ });
20
+ const graphqlIntegration = core.defineIntegration(_graphqlIntegration);
21
+
22
+ exports.graphqlIntegration = graphqlIntegration;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/graphql/index.ts"],"sourcesContent":["import { defineIntegration, type IntegrationFn, waitForTracingChannelBinding } from '@sentry/core';\nimport * as dc from 'node:diagnostics_channel';\nimport { type GraphqlDiagnosticChannelsOptions, subscribeGraphqlDiagnosticChannels } from './graphql-dc-subscriber';\n\nconst _graphqlIntegration = ((options: GraphqlDiagnosticChannelsOptions = {}) => {\n return {\n name: 'Graphql' as const,\n setupOnce() {\n // Bail on Node <= 18.18.0, where `tracingChannel` does not exist.\n if (!dc.tracingChannel) {\n return;\n }\n\n // Subscribe to graphql's native tracing channels (graphql >= 17).\n // This is a no-op on versions that don't publish to the channels, so it is always safe to call.\n waitForTracingChannelBinding(() => {\n subscribeGraphqlDiagnosticChannels(dc.tracingChannel, options);\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Auto-instrument the [graphql](https://www.npmjs.com/package/graphql) library via its native\n * `node:diagnostics_channel` tracing channels (graphql >= 17).\n *\n * On older graphql versions the channels are never published to, so this integration is inert and\n * the vendored OTel instrumentation (gated to `< 17`) handles instrumentation instead.\n */\nexport const graphqlIntegration = defineIntegration(_graphqlIntegration);\n"],"names":["dc","waitForTracingChannelBinding","subscribeGraphqlDiagnosticChannels","defineIntegration"],"mappings":";;;;;;AAIA,MAAM,mBAAA,IAAuB,CAAC,OAAA,GAA4C,EAAC,KAAM;AAC/E,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,SAAA;AAAA,IACN,SAAA,GAAY;AAEV,MAAA,IAAI,CAACA,mBAAG,cAAA,EAAgB;AACtB,QAAA;AAAA,MACF;AAIA,MAAAC,iCAAA,CAA6B,MAAM;AACjC,QAAAC,sDAAA,CAAmCF,kBAAA,CAAG,gBAAgB,OAAO,CAAA;AAAA,MAC/D,CAAC,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,CAAA;AASO,MAAM,kBAAA,GAAqBG,uBAAkB,mBAAmB;;;;"}
@@ -0,0 +1,86 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ const attributes = require('@sentry/conventions/attributes');
4
+ const core = require('@sentry/core');
5
+
6
+ const ORIGINAL_DESCRIPTION_ATTRIBUTE = "original-description";
7
+ const REDACTED_LITERAL_KINDS = /* @__PURE__ */ new Set(["Int", "Float", "String", "BlockString"]);
8
+ function renameRootSpanWithOperation(span, operationType, operationName) {
9
+ const rootSpan = core.getRootSpan(span);
10
+ if (rootSpan === span) {
11
+ return;
12
+ }
13
+ const rootSpanJson = core.spanToJSON(rootSpan);
14
+ const newOperation = operationName ? `${operationType} ${operationName}` : operationType;
15
+ const existingOperations = rootSpanJson.data[attributes.SENTRY_GRAPHQL_OPERATION];
16
+ let operations;
17
+ if (Array.isArray(existingOperations)) {
18
+ operations = [...existingOperations, newOperation];
19
+ } else if (typeof existingOperations === "string") {
20
+ operations = [existingOperations, newOperation];
21
+ } else {
22
+ operations = newOperation;
23
+ }
24
+ rootSpan.setAttribute(attributes.SENTRY_GRAPHQL_OPERATION, operations);
25
+ const originalDescription = rootSpanJson.data[ORIGINAL_DESCRIPTION_ATTRIBUTE] ?? rootSpanJson.description;
26
+ if (!rootSpanJson.data[ORIGINAL_DESCRIPTION_ATTRIBUTE]) {
27
+ rootSpan.setAttribute(ORIGINAL_DESCRIPTION_ATTRIBUTE, originalDescription);
28
+ }
29
+ rootSpan.updateName(`${originalDescription} (${getGraphqlOperationNamesFromAttribute(operations)})`);
30
+ }
31
+ function getGraphqlOperationNamesFromAttribute(attr) {
32
+ if (Array.isArray(attr)) {
33
+ const sorted = attr.slice().sort();
34
+ if (sorted.length <= 5) {
35
+ return sorted.join(", ");
36
+ }
37
+ return `${sorted.slice(0, 5).join(", ")}, +${sorted.length - 5}`;
38
+ }
39
+ return attr;
40
+ }
41
+ function getOperationSpanName(operationType, operationName, fallbackName) {
42
+ if (operationType && operationName) {
43
+ return `${operationType} ${operationName}`;
44
+ }
45
+ if (operationType) {
46
+ return operationType;
47
+ }
48
+ return fallbackName;
49
+ }
50
+ function hasResultErrors(result) {
51
+ if (core.isObjectLike(result) && "errors" in result) {
52
+ const errors = result.errors;
53
+ return Array.isArray(errors) && errors.length > 0;
54
+ }
55
+ return false;
56
+ }
57
+ function redactGraphqlDocument(document) {
58
+ const loc = document?.loc;
59
+ const body = loc?.source?.body;
60
+ if (typeof body !== "string" || !loc?.startToken) {
61
+ return void 0;
62
+ }
63
+ try {
64
+ const ranges = [];
65
+ for (let token = loc.startToken; token; token = token.next) {
66
+ if (REDACTED_LITERAL_KINDS.has(token.kind)) {
67
+ ranges.push({ start: token.start, end: token.end, kind: token.kind });
68
+ }
69
+ }
70
+ let out = body;
71
+ for (let i = ranges.length - 1; i >= 0; i--) {
72
+ const { start, end, kind } = ranges[i];
73
+ const replacement = kind === "String" || kind === "BlockString" ? '"*"' : "*";
74
+ out = out.slice(0, start) + replacement + out.slice(end);
75
+ }
76
+ return out;
77
+ } catch {
78
+ return void 0;
79
+ }
80
+ }
81
+
82
+ exports.getOperationSpanName = getOperationSpanName;
83
+ exports.hasResultErrors = hasResultErrors;
84
+ exports.redactGraphqlDocument = redactGraphqlDocument;
85
+ exports.renameRootSpanWithOperation = renameRootSpanWithOperation;
86
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../src/graphql/utils.ts"],"sourcesContent":["import { SENTRY_GRAPHQL_OPERATION } from '@sentry/conventions/attributes';\nimport type { Span } from '@sentry/core';\nimport { isObjectLike, getRootSpan, spanToJSON } from '@sentry/core';\n\n// Same key the OTel path uses, so renames stay consistent across both.\nconst ORIGINAL_DESCRIPTION_ATTRIBUTE = 'original-description';\n\n// graphql-js token kinds whose values may carry user data (literal arguments). We\n// replace them in the serialized document so raw inline values can never reach\n// `graphql.document`. Mirrors the legacy OTel instrumentation's redaction set.\nconst REDACTED_LITERAL_KINDS = new Set(['Int', 'Float', 'String', 'BlockString']);\n\n/** Minimal shape of a graphql-js lexer token, enough to locate literal spans for redaction. */\ninterface GraphqlToken {\n kind: string;\n start: number;\n end: number;\n next?: GraphqlToken | null;\n}\n\n/** Minimal shape of a parsed graphql-js `DocumentNode`, enough to read its source and tokens. */\nexport interface GraphqlDocumentNode {\n loc?: {\n startToken?: GraphqlToken;\n source?: { body?: string };\n };\n}\n\n/**\n * Rename the enclosing root span to include the operation name(s), e.g. `GET /graphql (query GetUser)`.\n * Mirrors the legacy OTel `useOperationNameForRootSpan` behavior; `parseSpanDescription` reads the same\n * `sentry.graphql.operation` attribute on the OTel export path.\n */\nexport function renameRootSpanWithOperation(span: Span, operationType: string, operationName?: string): void {\n const rootSpan = getRootSpan(span);\n // Nothing to rename if the operation span is itself the root (graphql ran outside any span).\n if (rootSpan === span) {\n return;\n }\n\n const rootSpanJson = spanToJSON(rootSpan);\n\n const newOperation = operationName ? `${operationType} ${operationName}` : operationType;\n\n // A single operation is stored as a string, multiple as an array.\n const existingOperations = rootSpanJson.data[SENTRY_GRAPHQL_OPERATION];\n let operations: string | string[];\n if (Array.isArray(existingOperations)) {\n operations = [...(existingOperations as string[]), newOperation];\n } else if (typeof existingOperations === 'string') {\n operations = [existingOperations, newOperation];\n } else {\n operations = newOperation;\n }\n rootSpan.setAttribute(SENTRY_GRAPHQL_OPERATION, operations);\n\n // Keep the pre-rename name so repeated renames don't compound.\n const originalDescription =\n (rootSpanJson.data[ORIGINAL_DESCRIPTION_ATTRIBUTE] as string | undefined) ?? rootSpanJson.description;\n if (!rootSpanJson.data[ORIGINAL_DESCRIPTION_ATTRIBUTE]) {\n rootSpan.setAttribute(ORIGINAL_DESCRIPTION_ATTRIBUTE, originalDescription);\n }\n\n rootSpan.updateName(`${originalDescription} (${getGraphqlOperationNamesFromAttribute(operations)})`);\n}\n\n/** Format the accumulated operations for the root span name: up to 5 sorted names, then `+N`. */\nfunction getGraphqlOperationNamesFromAttribute(attr: string | string[]): string {\n if (Array.isArray(attr)) {\n // oxlint-disable-next-line typescript/require-array-sort-compare\n const sorted = attr.slice().sort();\n if (sorted.length <= 5) {\n return sorted.join(', ');\n }\n\n return `${sorted.slice(0, 5).join(', ')}, +${sorted.length - 5}`;\n }\n\n return attr;\n}\n\n/**\n * Span name follows the GraphQL semantic conventions: `<operation.type> <operation.name>` when both\n * are available, `<operation.type>` when only the type is, otherwise a static fallback.\n */\nexport function getOperationSpanName(\n operationType: string | undefined,\n operationName: string | undefined,\n fallbackName: string,\n): string {\n if (operationType && operationName) {\n return `${operationType} ${operationName}`;\n }\n if (operationType) {\n return operationType;\n }\n\n return fallbackName;\n}\n\n/** Whether a graphql execution result carries GraphQL errors (returned on `result.errors`). */\nexport function hasResultErrors(result: unknown): boolean {\n if (isObjectLike(result) && 'errors' in result) {\n const errors = (result as { errors?: unknown }).errors;\n\n return Array.isArray(errors) && errors.length > 0;\n }\n\n return false;\n}\n\n/**\n * Serialize a parsed document into `graphql.document` while redacting every literal argument value:\n * the original source text is preserved verbatim except that string/number literal spans are\n * replaced (`\"foo\"` -> `\"*\"`, `42` -> `*`). graphql does not sanitize its channel payload, so this\n * prevents raw inline values (potential PII) from leaving the process. Variable values are never\n * included. Returns `undefined` (rather than throwing) on anything it cannot serialize.\n */\nexport function redactGraphqlDocument(document: GraphqlDocumentNode | undefined): string | undefined {\n const loc = document?.loc;\n const body = loc?.source?.body;\n if (typeof body !== 'string' || !loc?.startToken) {\n return undefined;\n }\n\n try {\n // Collect literal token spans, then splice them out back-to-front so earlier offsets stay valid.\n const ranges: Array<{ start: number; end: number; kind: string }> = [];\n for (let token: GraphqlToken | null | undefined = loc.startToken; token; token = token.next) {\n if (REDACTED_LITERAL_KINDS.has(token.kind)) {\n ranges.push({ start: token.start, end: token.end, kind: token.kind });\n }\n }\n\n let out = body;\n // Reverse index loop (not `for...of`) so we splice back-to-front; `i` is bounded by the loop, so\n // `ranges[i]` is always present and the `!` just satisfies `noUncheckedIndexedAccess`.\n for (let i = ranges.length - 1; i >= 0; i--) {\n const { start, end, kind } = ranges[i]!;\n const replacement = kind === 'String' || kind === 'BlockString' ? '\"*\"' : '*';\n out = out.slice(0, start) + replac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mongoose/index.js');
4
- const redisDcSubscriber = require('./redis/redis-dc-subscriber.js');
3
+ const index$1 = require('./graphql/index.js');
4
+ const index$2 = require('./mongoose/index.js');
5
+ const index$3 = require('./mysql2/index.js');
6
+ const index$4 = require('./redis/index.js');
5
7
  const redisStatementSerializer = require('./redis/redis-statement-serializer.js');
6
8
  const tracingChannel = require('./tracing-channel.js');
7
- const index$2 = require('./vercel-ai/index.js');
9
+ const index$5 = require('./vercel-ai/index.js');
8
10
  const index = require('./integrations/tracing-channel/fastify/index.js');
9
11
 
10
12
 
11
13
 
12
- exports.mongooseIntegration = index$1.mongooseIntegration;
13
- exports.IOREDIS_DC_CHANNEL_COMMAND = redisDcSubscriber.IOREDIS_DC_CHANNEL_COMMAND;
14
- exports.IOREDIS_DC_CHANNEL_CONNECT = redisDcSubscriber.IOREDIS_DC_CHANNEL_CONNECT;
15
- exports.REDIS_DC_CHANNEL_BATCH = redisDcSubscriber.REDIS_DC_CHANNEL_BATCH;
16
- exports.REDIS_DC_CHANNEL_COMMAND = redisDcSubscriber.REDIS_DC_CHANNEL_COMMAND;
17
- exports.REDIS_DC_CHANNEL_CONNECT = redisDcSubscriber.REDIS_DC_CHANNEL_CONNECT;
18
- exports.subscribeRedisDiagnosticChannels = redisDcSubscriber.subscribeRedisDiagnosticChannels;
14
+ exports.graphqlIntegration = index$1.graphqlIntegration;
15
+ exports.mongooseIntegration = index$2.mongooseIntegration;
16
+ exports.mysql2Integration = index$3.mysql2Integration;
17
+ exports.redisIntegration = index$4.redisIntegration;
19
18
  exports.defaultDbStatementSerializer = redisStatementSerializer.defaultDbStatementSerializer;
20
19
  exports.bindTracingChannelToSpan = tracingChannel.bindTracingChannelToSpan;
21
- exports.vercelAiIntegration = index$2.vercelAiIntegration;
20
+ exports.vercelAiIntegration = index$5.vercelAiIntegration;
22
21
  exports.fastifyIntegration = index.fastifyIntegration;
23
22
  exports.handleFastifyError = index.handleFastifyError;
24
23
  exports.instrumentFastify = index.instrumentFastify;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}