@sentry/server-utils 11.0.0-alpha.2 → 11.0.0-beta.1

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 (327) hide show
  1. package/build/THIRD-PARTY-LICENSES.txt +50 -377
  2. package/build/cjs/ai/core/gen-ai-attributes.js +0 -6
  3. package/build/cjs/ai/core/gen-ai-attributes.js.map +1 -1
  4. package/build/cjs/ai/google-genai/index.js +17 -5
  5. package/build/cjs/ai/google-genai/index.js.map +1 -1
  6. package/build/cjs/ai/langchain/embeddings.js +2 -2
  7. package/build/cjs/ai/langchain/embeddings.js.map +1 -1
  8. package/build/cjs/ai/langchain/index.js +11 -12
  9. package/build/cjs/ai/langchain/index.js.map +1 -1
  10. package/build/cjs/ai/langgraph/index.js +2 -3
  11. package/build/cjs/ai/langgraph/index.js.map +1 -1
  12. package/build/cjs/ai/langgraph/utils.js +2 -2
  13. package/build/cjs/ai/langgraph/utils.js.map +1 -1
  14. package/build/cjs/ai/workers-ai/index.js +5 -2
  15. package/build/cjs/ai/workers-ai/index.js.map +1 -1
  16. package/build/cjs/ai/workers-ai/utils.js +6 -0
  17. package/build/cjs/ai/workers-ai/utils.js.map +1 -1
  18. package/build/cjs/index.js +3 -3
  19. package/build/cjs/index.js.map +1 -1
  20. package/build/cjs/index.no-diagnostic-channels.js +3 -3
  21. package/build/cjs/integrations/amqplib.js +15 -5
  22. package/build/cjs/integrations/amqplib.js.map +1 -1
  23. package/build/cjs/integrations/aws-sdk/index.js +2 -1
  24. package/build/cjs/integrations/aws-sdk/index.js.map +1 -1
  25. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +3 -2
  26. package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  27. package/build/cjs/integrations/aws-sdk/services/dynamodb.js +2 -1
  28. package/build/cjs/integrations/aws-sdk/services/dynamodb.js.map +1 -1
  29. package/build/cjs/integrations/aws-sdk/services/sns.js +21 -4
  30. package/build/cjs/integrations/aws-sdk/services/sns.js.map +1 -1
  31. package/build/cjs/integrations/aws-sdk/services/sqs.js +25 -6
  32. package/build/cjs/integrations/aws-sdk/services/sqs.js.map +1 -1
  33. package/build/cjs/integrations/dataloader.js +10 -2
  34. package/build/cjs/integrations/dataloader.js.map +1 -1
  35. package/build/cjs/integrations/express/error-handler.js +4 -5
  36. package/build/cjs/integrations/express/error-handler.js.map +1 -1
  37. package/build/cjs/integrations/express/instrumentation.js +6 -4
  38. package/build/cjs/integrations/express/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/fastify/instrumentation.js +9 -7
  40. package/build/cjs/integrations/fastify/instrumentation.js.map +1 -1
  41. package/build/cjs/integrations/firebase/firestore.js +2 -1
  42. package/build/cjs/integrations/firebase/firestore.js.map +1 -1
  43. package/build/cjs/integrations/google-genai.js +1 -1
  44. package/build/cjs/integrations/google-genai.js.map +1 -1
  45. package/build/cjs/integrations/hapi/hapi-utils.js +5 -4
  46. package/build/cjs/integrations/hapi/hapi-utils.js.map +1 -1
  47. package/build/cjs/integrations/kafkajs/spans.js +2 -1
  48. package/build/cjs/integrations/kafkajs/spans.js.map +1 -1
  49. package/build/cjs/integrations/knex.js +32 -6
  50. package/build/cjs/integrations/knex.js.map +1 -1
  51. package/build/cjs/integrations/koa/index.js +1 -2
  52. package/build/cjs/integrations/koa/index.js.map +1 -1
  53. package/build/cjs/integrations/mongodb/mongodb-span.js +7 -2
  54. package/build/cjs/integrations/mongodb/mongodb-span.js.map +1 -1
  55. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +6 -2
  56. package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
  57. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js +12 -5
  58. package/build/cjs/integrations/mongoose/mongoose-legacy-span.js.map +1 -1
  59. package/build/cjs/integrations/mysql.js +4 -2
  60. package/build/cjs/integrations/mysql.js.map +1 -1
  61. package/build/cjs/integrations/mysql2/index.js +4 -2
  62. package/build/cjs/integrations/mysql2/index.js.map +1 -1
  63. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +6 -4
  64. package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  65. package/build/cjs/integrations/postgres-js.js +10 -8
  66. package/build/cjs/integrations/postgres-js.js.map +1 -1
  67. package/build/cjs/integrations/postgres.js +6 -4
  68. package/build/cjs/integrations/postgres.js.map +1 -1
  69. package/build/cjs/integrations/prisma/tracing-helper.js +15 -3
  70. package/build/cjs/integrations/prisma/tracing-helper.js.map +1 -1
  71. package/build/cjs/integrations/redis/index.js +27 -21
  72. package/build/cjs/integrations/redis/index.js.map +1 -1
  73. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +20 -16
  74. package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  75. package/build/cjs/integrations/redis/redis-cache.js +30 -15
  76. package/build/cjs/integrations/redis/redis-cache.js.map +1 -1
  77. package/build/cjs/integrations/redis/redis-dc-subscriber.js +22 -12
  78. package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +1 -1
  79. package/build/cjs/integrations/redis/redis-span-name.js +32 -0
  80. package/build/cjs/integrations/redis/redis-span-name.js.map +1 -0
  81. package/build/cjs/integrations/tedious.js +16 -5
  82. package/build/cjs/integrations/tedious.js.map +1 -1
  83. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +23 -16
  84. package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  85. package/build/cjs/{otlp.js → opentelemetry.js} +5 -5
  86. package/build/cjs/opentelemetry.js.map +1 -0
  87. package/build/cjs/orchestrion/bundler/bun.js +37 -0
  88. package/build/cjs/orchestrion/bundler/bun.js.map +1 -0
  89. package/build/cjs/orchestrion/bundler/options.js +2 -2
  90. package/build/cjs/orchestrion/bundler/options.js.map +1 -1
  91. package/build/cjs/orchestrion/bundler/resolve.js +2 -2
  92. package/build/cjs/orchestrion/bundler/resolve.js.map +1 -1
  93. package/build/cjs/orchestrion/bundler/vite.js +7 -1
  94. package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
  95. package/build/cjs/orchestrion/bundler/webpack-loader.js +2 -2
  96. package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -1
  97. package/build/cjs/orchestrion/config/index.js +0 -3
  98. package/build/cjs/orchestrion/config/index.js.map +1 -1
  99. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +65 -0
  100. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -0
  101. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +1 -2
  102. package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
  103. package/build/cjs/vendored/module-details-from-path/index.js +2 -3
  104. package/build/cjs/vendored/module-details-from-path/index.js.map +1 -1
  105. package/build/esm/ai/core/gen-ai-attributes.js +1 -4
  106. package/build/esm/ai/core/gen-ai-attributes.js.map +1 -1
  107. package/build/esm/ai/google-genai/index.js +17 -6
  108. package/build/esm/ai/google-genai/index.js.map +1 -1
  109. package/build/esm/ai/langchain/embeddings.js +5 -5
  110. package/build/esm/ai/langchain/embeddings.js.map +1 -1
  111. package/build/esm/ai/langchain/index.js +13 -14
  112. package/build/esm/ai/langchain/index.js.map +1 -1
  113. package/build/esm/ai/langgraph/index.js +4 -5
  114. package/build/esm/ai/langgraph/index.js.map +1 -1
  115. package/build/esm/ai/langgraph/utils.js +5 -5
  116. package/build/esm/ai/langgraph/utils.js.map +1 -1
  117. package/build/esm/ai/workers-ai/index.js +6 -3
  118. package/build/esm/ai/workers-ai/index.js.map +1 -1
  119. package/build/esm/ai/workers-ai/utils.js +7 -2
  120. package/build/esm/ai/workers-ai/utils.js.map +1 -1
  121. package/build/esm/index.js +1 -1
  122. package/build/esm/index.js.map +1 -1
  123. package/build/esm/index.no-diagnostic-channels.js +1 -1
  124. package/build/esm/integrations/amqplib.js +16 -7
  125. package/build/esm/integrations/amqplib.js.map +1 -1
  126. package/build/esm/integrations/aws-sdk/index.js +2 -1
  127. package/build/esm/integrations/aws-sdk/index.js.map +1 -1
  128. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +3 -2
  129. package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
  130. package/build/esm/integrations/aws-sdk/services/dynamodb.js +2 -1
  131. package/build/esm/integrations/aws-sdk/services/dynamodb.js.map +1 -1
  132. package/build/esm/integrations/aws-sdk/services/sns.js +23 -6
  133. package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
  134. package/build/esm/integrations/aws-sdk/services/sqs.js +26 -7
  135. package/build/esm/integrations/aws-sdk/services/sqs.js.map +1 -1
  136. package/build/esm/integrations/dataloader.js +12 -4
  137. package/build/esm/integrations/dataloader.js.map +1 -1
  138. package/build/esm/integrations/express/error-handler.js +4 -5
  139. package/build/esm/integrations/express/error-handler.js.map +1 -1
  140. package/build/esm/integrations/express/instrumentation.js +8 -6
  141. package/build/esm/integrations/express/instrumentation.js.map +1 -1
  142. package/build/esm/integrations/fastify/instrumentation.js +10 -8
  143. package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
  144. package/build/esm/integrations/firebase/firestore.js +3 -2
  145. package/build/esm/integrations/firebase/firestore.js.map +1 -1
  146. package/build/esm/integrations/google-genai.js +2 -2
  147. package/build/esm/integrations/google-genai.js.map +1 -1
  148. package/build/esm/integrations/hapi/hapi-utils.js +7 -6
  149. package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
  150. package/build/esm/integrations/kafkajs/spans.js +3 -2
  151. package/build/esm/integrations/kafkajs/spans.js.map +1 -1
  152. package/build/esm/integrations/knex.js +34 -8
  153. package/build/esm/integrations/knex.js.map +1 -1
  154. package/build/esm/integrations/koa/index.js +2 -3
  155. package/build/esm/integrations/koa/index.js.map +1 -1
  156. package/build/esm/integrations/mongodb/mongodb-span.js +9 -4
  157. package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
  158. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +8 -4
  159. package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
  160. package/build/esm/integrations/mongoose/mongoose-legacy-span.js +14 -7
  161. package/build/esm/integrations/mongoose/mongoose-legacy-span.js.map +1 -1
  162. package/build/esm/integrations/mysql.js +5 -3
  163. package/build/esm/integrations/mysql.js.map +1 -1
  164. package/build/esm/integrations/mysql2/index.js +5 -3
  165. package/build/esm/integrations/mysql2/index.js.map +1 -1
  166. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +6 -4
  167. package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
  168. package/build/esm/integrations/postgres-js.js +5 -3
  169. package/build/esm/integrations/postgres-js.js.map +1 -1
  170. package/build/esm/integrations/postgres.js +7 -5
  171. package/build/esm/integrations/postgres.js.map +1 -1
  172. package/build/esm/integrations/prisma/tracing-helper.js +17 -5
  173. package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
  174. package/build/esm/integrations/redis/index.js +30 -24
  175. package/build/esm/integrations/redis/index.js.map +1 -1
  176. package/build/esm/integrations/redis/ioredis-channel-subscriber.js +22 -18
  177. package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
  178. package/build/esm/integrations/redis/redis-cache.js +31 -17
  179. package/build/esm/integrations/redis/redis-cache.js.map +1 -1
  180. package/build/esm/integrations/redis/redis-dc-subscriber.js +24 -14
  181. package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
  182. package/build/esm/integrations/redis/redis-span-name.js +30 -0
  183. package/build/esm/integrations/redis/redis-span-name.js.map +1 -0
  184. package/build/esm/integrations/tedious.js +18 -7
  185. package/build/esm/integrations/tedious.js.map +1 -1
  186. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +23 -16
  187. package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
  188. package/build/esm/{otlp.js → opentelemetry.js} +5 -5
  189. package/build/esm/opentelemetry.js.map +1 -0
  190. package/build/esm/orchestrion/bundler/bun.js +35 -0
  191. package/build/esm/orchestrion/bundler/bun.js.map +1 -0
  192. package/build/esm/orchestrion/bundler/options.js +2 -2
  193. package/build/esm/orchestrion/bundler/options.js.map +1 -1
  194. package/build/esm/orchestrion/bundler/vite.js +7 -1
  195. package/build/esm/orchestrion/bundler/vite.js.map +1 -1
  196. package/build/esm/orchestrion/config/index.js +0 -1
  197. package/build/esm/orchestrion/config/index.js.map +1 -1
  198. package/build/esm/package.json +1 -1
  199. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +63 -0
  200. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -0
  201. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +2 -2
  202. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -1
  203. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +2 -2
  204. package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
  205. package/build/esm/vendored/module-details-from-path/index.js +2 -2
  206. package/build/types/ai/core/gen-ai-attributes.d.ts +0 -12
  207. package/build/types/ai/core/gen-ai-attributes.d.ts.map +1 -1
  208. package/build/types/ai/google-genai/index.d.ts +14 -0
  209. package/build/types/ai/google-genai/index.d.ts.map +1 -1
  210. package/build/types/ai/langchain/embeddings.d.ts +0 -1
  211. package/build/types/ai/langchain/embeddings.d.ts.map +1 -1
  212. package/build/types/ai/langchain/index.d.ts.map +1 -1
  213. package/build/types/ai/langgraph/index.d.ts.map +1 -1
  214. package/build/types/ai/langgraph/utils.d.ts.map +1 -1
  215. package/build/types/ai/workers-ai/index.d.ts.map +1 -1
  216. package/build/types/ai/workers-ai/utils.d.ts +3 -1
  217. package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
  218. package/build/types/exports.d.ts +1 -1
  219. package/build/types/exports.d.ts.map +1 -1
  220. package/build/types/index.d.ts +1 -1
  221. package/build/types/index.d.ts.map +1 -1
  222. package/build/types/integrations/amqplib.d.ts +9 -0
  223. package/build/types/integrations/amqplib.d.ts.map +1 -1
  224. package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
  225. package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
  226. package/build/types/integrations/aws-sdk/services/dynamodb.d.ts.map +1 -1
  227. package/build/types/integrations/aws-sdk/services/sns.d.ts.map +1 -1
  228. package/build/types/integrations/aws-sdk/services/sqs.d.ts.map +1 -1
  229. package/build/types/integrations/dataloader.d.ts.map +1 -1
  230. package/build/types/integrations/express/error-handler.d.ts +5 -6
  231. package/build/types/integrations/express/error-handler.d.ts.map +1 -1
  232. package/build/types/integrations/express/instrumentation.d.ts.map +1 -1
  233. package/build/types/integrations/express/types.d.ts +0 -5
  234. package/build/types/integrations/express/types.d.ts.map +1 -1
  235. package/build/types/integrations/fastify/instrumentation.d.ts.map +1 -1
  236. package/build/types/integrations/firebase/firestore.d.ts.map +1 -1
  237. package/build/types/integrations/google-genai.d.ts.map +1 -1
  238. package/build/types/integrations/hapi/hapi-utils.d.ts.map +1 -1
  239. package/build/types/integrations/kafkajs/spans.d.ts +1 -1
  240. package/build/types/integrations/kafkajs/spans.d.ts.map +1 -1
  241. package/build/types/integrations/knex.d.ts.map +1 -1
  242. package/build/types/integrations/koa/index.d.ts.map +1 -1
  243. package/build/types/integrations/mongodb/mongodb-span.d.ts +1 -1
  244. package/build/types/integrations/mongodb/mongodb-span.d.ts.map +1 -1
  245. package/build/types/integrations/mongoose/mongoose-dc-subscriber.d.ts.map +1 -1
  246. package/build/types/integrations/mongoose/mongoose-legacy-span.d.ts +2 -1
  247. package/build/types/integrations/mongoose/mongoose-legacy-span.d.ts.map +1 -1
  248. package/build/types/integrations/mysql.d.ts.map +1 -1
  249. package/build/types/integrations/mysql2/mysql2-dc-subscriber.d.ts.map +1 -1
  250. package/build/types/integrations/postgres-js.d.ts +2 -1
  251. package/build/types/integrations/postgres-js.d.ts.map +1 -1
  252. package/build/types/integrations/postgres.d.ts.map +1 -1
  253. package/build/types/integrations/prisma/tracing-helper.d.ts.map +1 -1
  254. package/build/types/integrations/redis/index.d.ts.map +1 -1
  255. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts +1 -1
  256. package/build/types/integrations/redis/ioredis-channel-subscriber.d.ts.map +1 -1
  257. package/build/types/integrations/redis/redis-cache.d.ts +24 -7
  258. package/build/types/integrations/redis/redis-cache.d.ts.map +1 -1
  259. package/build/types/integrations/redis/redis-dc-subscriber.d.ts.map +1 -1
  260. package/build/types/integrations/redis/redis-span-name.d.ts +24 -0
  261. package/build/types/integrations/redis/redis-span-name.d.ts.map +1 -0
  262. package/build/types/integrations/tedious.d.ts.map +1 -1
  263. package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
  264. package/build/types/{otlp.d.ts → opentelemetry.d.ts} +4 -4
  265. package/build/types/opentelemetry.d.ts.map +1 -0
  266. package/build/types/orchestrion/bundler/bun.d.ts +21 -0
  267. package/build/types/orchestrion/bundler/bun.d.ts.map +1 -0
  268. package/build/types/orchestrion/bundler/options.d.ts +9 -2
  269. package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
  270. package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
  271. package/build/types/orchestrion/config/index.d.ts +6 -1
  272. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  273. package/package.json +10 -17
  274. package/build/cjs/_virtual/node.js +0 -6
  275. package/build/cjs/_virtual/node.js.map +0 -1
  276. package/build/cjs/orchestrion/runtime/hook.js +0 -17
  277. package/build/cjs/orchestrion/runtime/hook.js.map +0 -1
  278. package/build/cjs/orchestrion/runtime/register.js +0 -80
  279. package/build/cjs/orchestrion/runtime/register.js.map +0 -1
  280. package/build/cjs/otlp.js.map +0 -1
  281. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +0 -166
  282. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +0 -1
  283. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +0 -88
  284. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +0 -1
  285. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +0 -15
  286. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +0 -1
  287. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +0 -30
  288. package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +0 -1
  289. package/build/cjs/vendored/debug/src/common.js +0 -178
  290. package/build/cjs/vendored/debug/src/common.js.map +0 -1
  291. package/build/cjs/vendored/debug/src/node.js +0 -186
  292. package/build/cjs/vendored/debug/src/node.js.map +0 -1
  293. package/build/cjs/vendored/has-flag/index.js +0 -11
  294. package/build/cjs/vendored/has-flag/index.js.map +0 -1
  295. package/build/cjs/vendored/ms/index.js +0 -115
  296. package/build/cjs/vendored/ms/index.js.map +0 -1
  297. package/build/cjs/vendored/supports-color/index.js +0 -104
  298. package/build/cjs/vendored/supports-color/index.js.map +0 -1
  299. package/build/esm/_virtual/node.js +0 -4
  300. package/build/esm/_virtual/node.js.map +0 -1
  301. package/build/esm/orchestrion/runtime/hook.js +0 -8
  302. package/build/esm/orchestrion/runtime/hook.js.map +0 -1
  303. package/build/esm/orchestrion/runtime/register.js +0 -65
  304. package/build/esm/orchestrion/runtime/register.js.map +0 -1
  305. package/build/esm/otlp.js.map +0 -1
  306. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +0 -157
  307. package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +0 -1
  308. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +0 -86
  309. package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +0 -1
  310. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +0 -13
  311. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +0 -1
  312. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +0 -27
  313. package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +0 -1
  314. package/build/esm/vendored/debug/src/common.js +0 -176
  315. package/build/esm/vendored/debug/src/common.js.map +0 -1
  316. package/build/esm/vendored/debug/src/node.js +0 -183
  317. package/build/esm/vendored/debug/src/node.js.map +0 -1
  318. package/build/esm/vendored/has-flag/index.js +0 -9
  319. package/build/esm/vendored/has-flag/index.js.map +0 -1
  320. package/build/esm/vendored/ms/index.js +0 -113
  321. package/build/esm/vendored/ms/index.js.map +0 -1
  322. package/build/esm/vendored/supports-color/index.js +0 -102
  323. package/build/esm/vendored/supports-color/index.js.map +0 -1
  324. package/build/orchestrion/import-hook.mjs +0 -19
  325. package/build/types/orchestrion/runtime/register.d.ts +0 -14
  326. package/build/types/orchestrion/runtime/register.d.ts.map +0 -1
  327. package/build/types/otlp.d.ts.map +0 -1
@@ -1,259 +1,32 @@
1
- Name: @apm-js-collab/tracing-hooks
2
- Version: 0.13.0
3
- License: Apache-2.0
1
+ Name: @apm-js-collab/code-transformer-bundler-plugins
2
+ Version: 0.7.4
3
+ License: MIT
4
4
  Private: false
5
- Description: CJS and ESM hooks for orchestrion
6
- Repository: git+https://github.com/apm-js-collab/tracing-hooks.git
7
- License Text:
8
- ===
9
-
10
-
11
- Apache License
12
- Version 2.0, January 2004
13
- http://www.apache.org/licenses/
14
-
15
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
16
-
17
- 1. Definitions.
18
-
19
- "License" shall mean the terms and conditions for use, reproduction,
20
- and distribution as defined by Sections 1 through 9 of this document.
21
-
22
- "Licensor" shall mean the copyright owner or entity authorized by
23
- the copyright owner that is granting the License.
24
-
25
- "Legal Entity" shall mean the union of the acting entity and all
26
- other entities that control, are controlled by, or are under common
27
- control with that entity. For the purposes of this definition,
28
- "control" means (i) the power, direct or indirect, to cause the
29
- direction or management of such entity, whether by contract or
30
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
31
- outstanding shares, or (iii) beneficial ownership of such entity.
32
-
33
- "You" (or "Your") shall mean an individual or Legal Entity
34
- exercising permissions granted by this License.
35
-
36
- "Source" form shall mean the preferred form for making modifications,
37
- including but not limited to software source code, documentation
38
- source, and configuration files.
39
-
40
- "Object" form shall mean any form resulting from mechanical
41
- transformation or translation of a Source form, including but
42
- not limited to compiled object code, generated documentation,
43
- and conversions to other media types.
44
-
45
- "Work" shall mean the work of authorship, whether in Source or
46
- Object form, made available under the License, as indicated by a
47
- copyright notice that is included in or attached to the work
48
- (an example is provided in the Appendix below).
49
-
50
- "Derivative Works" shall mean any work, whether in Source or Object
51
- form, that is based on (or derived from) the Work and for which the
52
- editorial revisions, annotations, elaborations, or other modifications
53
- represent, as a whole, an original work of authorship. For the purposes
54
- of this License, Derivative Works shall not include works that remain
55
- separable from, or merely link (or bind by name) to the interfaces of,
56
- the Work and Derivative Works thereof.
57
-
58
- "Contribution" shall mean any work of authorship, including
59
- the original version of the Work and any modifications or additions
60
- to that Work or Derivative Works thereof, that is intentionally
61
- submitted to Licensor for inclusion in the Work by the copyright owner
62
- or by an individual or Legal Entity authorized to submit on behalf of
63
- the copyright owner. For the purposes of this definition, "submitted"
64
- means any form of electronic, verbal, or written communication sent
65
- to the Licensor or its representatives, including but not limited to
66
- communication on electronic mailing lists, source code control systems,
67
- and issue tracking systems that are managed by, or on behalf of, the
68
- Licensor for the purpose of discussing and improving the Work, but
69
- excluding communication that is conspicuously marked or otherwise
70
- designated in writing by the copyright owner as "Not a Contribution."
71
-
72
- "Contributor" shall mean Licensor and any individual or Legal Entity
73
- on behalf of whom a Contribution has been received by Licensor and
74
- subsequently incorporated within the Work.
75
-
76
- 2. Grant of Copyright License. Subject to the terms and conditions of
77
- this License, each Contributor hereby grants to You a perpetual,
78
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
- copyright license to reproduce, prepare Derivative Works of,
80
- publicly display, publicly perform, sublicense, and distribute the
81
- Work and such Derivative Works in Source or Object form.
82
-
83
- 3. Grant of Patent License. Subject to the terms and conditions of
84
- this License, each Contributor hereby grants to You a perpetual,
85
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
86
- (except as stated in this section) patent license to make, have made,
87
- use, offer to sell, sell, import, and otherwise transfer the Work,
88
- where such license applies only to those patent claims licensable
89
- by such Contributor that are necessarily infringed by their
90
- Contribution(s) alone or by combination of their Contribution(s)
91
- with the Work to which such Contribution(s) was submitted. If You
92
- institute patent litigation against any entity (including a
93
- cross-claim or counterclaim in a lawsuit) alleging that the Work
94
- or a Contribution incorporated within the Work constitutes direct
95
- or contributory patent infringement, then any patent licenses
96
- granted to You under this License for that Work shall terminate
97
- as of the date such litigation is filed.
98
-
99
- 4. Redistribution. You may reproduce and distribute copies of the
100
- Work or Derivative Works thereof in any medium, with or without
101
- modifications, and in Source or Object form, provided that You
102
- meet the following conditions:
103
-
104
- (a) You must give any other recipients of the Work or
105
- Derivative Works a copy of this License; and
106
-
107
- (b) You must cause any modified files to carry prominent notices
108
- stating that You changed the files; and
109
-
110
- (c) You must retain, in the Source form of any Derivative Works
111
- that You distribute, all copyright, patent, trademark, and
112
- attribution notices from the Source form of the Work,
113
- excluding those notices that do not pertain to any part of
114
- the Derivative Works; and
115
-
116
- (d) If the Work includes a "NOTICE" text file as part of its
117
- distribution, then any Derivative Works that You distribute must
118
- include a readable copy of the attribution notices contained
119
- within such NOTICE file, excluding those notices that do not
120
- pertain to any part of the Derivative Works, in at least one
121
- of the following places: within a NOTICE text file distributed
122
- as part of the Derivative Works; within the Source form or
123
- documentation, if provided along with the Derivative Works; or,
124
- within a display generated by the Derivative Works, if and
125
- wherever such third-party notices normally appear. The contents
126
- of the NOTICE file are for informational purposes only and
127
- do not modify the License. You may add Your own attribution
128
- notices within Derivative Works that You distribute, alongside
129
- or as an addendum to the NOTICE text from the Work, provided
130
- that such additional attribution notices cannot be construed
131
- as modifying the License.
132
-
133
- You may add Your own copyright statement to Your modifications and
134
- may provide additional or different license terms and conditions
135
- for use, reproduction, or distribution of Your modifications, or
136
- for any such Derivative Works as a whole, provided Your use,
137
- reproduction, and distribution of the Work otherwise complies with
138
- the conditions stated in this License.
139
-
140
- 5. Submission of Contributions. Unless You explicitly state otherwise,
141
- any Contribution intentionally submitted for inclusion in the Work
142
- by You to the Licensor shall be under the terms and conditions of
143
- this License, without any additional terms or conditions.
144
- Notwithstanding the above, nothing herein shall supersede or modify
145
- the terms of any separate license agreement you may have executed
146
- with Licensor regarding such Contributions.
147
-
148
- 6. Trademarks. This License does not grant permission to use the trade
149
- names, trademarks, service marks, or product names of the Licensor,
150
- except as required for reasonable and customary use in describing the
151
- origin of the Work and reproducing the content of the NOTICE file.
152
-
153
- 7. Disclaimer of Warranty. Unless required by applicable law or
154
- agreed to in writing, Licensor provides the Work (and each
155
- Contributor provides its Contributions) on an "AS IS" BASIS,
156
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
157
- implied, including, without limitation, any warranties or conditions
158
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
159
- PARTICULAR PURPOSE. You are solely responsible for determining the
160
- appropriateness of using or redistributing the Work and assume any
161
- risks associated with Your exercise of permissions under this License.
162
-
163
- 8. Limitation of Liability. In no event and under no legal theory,
164
- whether in tort (including negligence), contract, or otherwise,
165
- unless required by applicable law (such as deliberate and grossly
166
- negligent acts) or agreed to in writing, shall any Contributor be
167
- liable to You for damages, including any direct, indirect, special,
168
- incidental, or consequential damages of any character arising as a
169
- result of this License or out of the use or inability to use the
170
- Work (including but not limited to damages for loss of goodwill,
171
- work stoppage, computer failure or malfunction, or any and all
172
- other commercial damages or losses), even if such Contributor
173
- has been advised of the possibility of such damages.
174
-
175
- 9. Accepting Warranty or Additional Liability. While redistributing
176
- the Work or Derivative Works thereof, You may choose to offer,
177
- and charge a fee for, acceptance of support, warranty, indemnity,
178
- or other liability obligations and/or rights consistent with this
179
- License. However, in accepting such obligations, You may act only
180
- on Your own behalf and on Your sole responsibility, not on behalf
181
- of any other Contributor, and only if You agree to indemnify,
182
- defend, and hold each Contributor harmless for any liability
183
- incurred by, or claims asserted against, such Contributor by reason
184
- of your accepting any such warranty or additional liability.
185
-
186
- END OF TERMS AND CONDITIONS
187
-
188
- APPENDIX: How to apply the Apache License to your work.
189
-
190
- To apply the Apache License to your work, attach the following
191
- boilerplate notice, with the fields enclosed by brackets "[]"
192
- replaced with your own identifying information. (Don't include
193
- the brackets!) The text should be enclosed in the appropriate
194
- comment syntax for the file format. We also recommend that a
195
- file or class name and description of purpose be included on the
196
- same "printed page" as the copyright notice for easier
197
- identification within third-party archives.
198
-
199
- Copyright 2025-present Datadog, Inc.
200
-
201
- Licensed under the Apache License, Version 2.0 (the "License");
202
- you may not use this file except in compliance with the License.
203
- You may obtain a copy of the License at
204
-
205
- http://www.apache.org/licenses/LICENSE-2.0
206
-
207
- Unless required by applicable law or agreed to in writing, software
208
- distributed under the License is distributed on an "AS IS" BASIS,
209
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
- See the License for the specific language governing permissions and
211
- limitations under the License.
5
+ Description: A universal plugin that uses '@apm-js-collab/code-transformer' to instrument JavaScript code at build time
6
+ Repository: https://github.com/apm-js-collab/code-transformer-bundler-plugins
212
7
 
213
8
  ---
214
9
 
215
- Name: debug
216
- Version: 4.4.3
217
- License: MIT
10
+ Name: meriyah
11
+ Version: 6.1.4
12
+ License: ISC
218
13
  Private: false
219
- Description: Lightweight debugging utility for Node.js and the browser
220
- Repository: git://github.com/debug-js/debug.git
221
- Author: Josh Junon (https://github.com/qix-)
14
+ Description: A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
15
+ Repository: git+https://github.com/meriyah/meriyah.git
16
+ Homepage: https://github.com/meriyah/meriyah
17
+ Author: Kenny F. (https://github.com/KFlash)
222
18
  Contributors:
223
- TJ Holowaychuk <tj@vision-media.ca>
224
- Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)
225
- Andrew Rhyne <rhyneandrew@gmail.com>
19
+ Chunpeng Huo (https://github.com/3cp)
226
20
  License Text:
227
21
  ===
228
22
 
229
- (The MIT License)
230
-
231
- Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
232
- Copyright (c) 2018-2021 Josh Junon
233
-
234
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
235
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
236
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
237
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
238
- subject to the following conditions:
239
-
240
- The above copyright notice and this permission notice shall be included in all copies or substantial
241
- portions of the Software.
23
+ ISC License
242
24
 
243
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
244
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
245
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
246
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
247
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+ Copyright (c) 2019 and later, KFlash and others.
248
26
 
249
- ---
27
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
250
28
 
251
- Name: @apm-js-collab/code-transformer-bundler-plugins
252
- Version: 0.7.4
253
- License: MIT
254
- Private: false
255
- Description: A universal plugin that uses '@apm-js-collab/code-transformer' to instrument JavaScript code at build time
256
- Repository: https://github.com/apm-js-collab/code-transformer-bundler-plugins
29
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
257
30
 
258
31
  ---
259
32
 
@@ -478,29 +251,6 @@ This product includes software developed at Datadog (<https://www.datadoghq.com/
478
251
 
479
252
  ---
480
253
 
481
- Name: meriyah
482
- Version: 6.1.4
483
- License: ISC
484
- Private: false
485
- Description: A 100% compliant, self-hosted javascript parser with high focus on both performance and stability
486
- Repository: git+https://github.com/meriyah/meriyah.git
487
- Homepage: https://github.com/meriyah/meriyah
488
- Author: Kenny F. (https://github.com/KFlash)
489
- Contributors:
490
- Chunpeng Huo (https://github.com/3cp)
491
- License Text:
492
- ===
493
-
494
- ISC License
495
-
496
- Copyright (c) 2019 and later, KFlash and others.
497
-
498
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
499
-
500
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
501
-
502
- ---
503
-
504
254
  Name: module-details-from-path
505
255
  Version: 1.0.4
506
256
  License: MIT
@@ -536,93 +286,6 @@ SOFTWARE.
536
286
 
537
287
  ---
538
288
 
539
- Name: supports-color
540
- Version: 7.2.0
541
- License: MIT
542
- Private: false
543
- Description: Detect whether a terminal supports color
544
- Repository: undefined
545
- Author: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
546
- License Text:
547
- ===
548
-
549
- MIT License
550
-
551
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
552
-
553
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
554
-
555
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
556
-
557
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
558
-
559
- ---
560
-
561
- Name: ms
562
- Version: 2.1.3
563
- License: MIT
564
- Private: false
565
- Description: Tiny millisecond conversion utility
566
- Repository: undefined
567
- License Text:
568
- ===
569
-
570
- The MIT License (MIT)
571
-
572
- Copyright (c) 2020 Vercel, Inc.
573
-
574
- Permission is hereby granted, free of charge, to any person obtaining a copy
575
- of this software and associated documentation files (the "Software"), to deal
576
- in the Software without restriction, including without limitation the rights
577
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
578
- copies of the Software, and to permit persons to whom the Software is
579
- furnished to do so, subject to the following conditions:
580
-
581
- The above copyright notice and this permission notice shall be included in all
582
- copies or substantial portions of the Software.
583
-
584
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
585
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
586
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
587
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
588
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
589
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
590
- SOFTWARE.
591
-
592
- ---
593
-
594
- Name: astring
595
- Version: 1.9.0
596
- License: MIT
597
- Private: false
598
- Description: JavaScript code generator from an ESTree-compliant AST.
599
- Repository: https://github.com/davidbonnet/astring.git
600
- Author: David Bonnet <david@bonnet.cc>
601
- License Text:
602
- ===
603
-
604
- Copyright (c) 2015, David Bonnet <david@bonnet.cc>
605
-
606
- Permission is hereby granted, free of charge, to any person obtaining a copy
607
- of this software and associated documentation files (the "Software"), to deal
608
- in the Software without restriction, including without limitation the rights
609
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
610
- copies of the Software, and to permit persons to whom the Software is
611
- furnished to do so, subject to the following conditions:
612
-
613
- The above copyright notice and this permission notice shall be included in
614
- all copies or substantial portions of the Software.
615
-
616
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
617
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
618
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
619
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
620
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
621
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
622
- THE SOFTWARE.
623
-
624
- ---
625
-
626
289
  Name: semifies
627
290
  Version: 1.0.0
628
291
  License: Apache-2.0
@@ -838,6 +501,38 @@ License Text:
838
501
 
839
502
  ---
840
503
 
504
+ Name: astring
505
+ Version: 1.9.0
506
+ License: MIT
507
+ Private: false
508
+ Description: JavaScript code generator from an ESTree-compliant AST.
509
+ Repository: https://github.com/davidbonnet/astring.git
510
+ Author: David Bonnet <david@bonnet.cc>
511
+ License Text:
512
+ ===
513
+
514
+ Copyright (c) 2015, David Bonnet <david@bonnet.cc>
515
+
516
+ Permission is hereby granted, free of charge, to any person obtaining a copy
517
+ of this software and associated documentation files (the "Software"), to deal
518
+ in the Software without restriction, including without limitation the rights
519
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
520
+ copies of the Software, and to permit persons to whom the Software is
521
+ furnished to do so, subject to the following conditions:
522
+
523
+ The above copyright notice and this permission notice shall be included in
524
+ all copies or substantial portions of the Software.
525
+
526
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
527
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
528
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
529
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
530
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
531
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
532
+ THE SOFTWARE.
533
+
534
+ ---
535
+
841
536
  Name: source-map
842
537
  Version: 0.6.1
843
538
  License: BSD-3-Clause
@@ -951,26 +646,4 @@ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
951
646
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
952
647
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
953
648
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
954
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
955
-
956
- ---
957
-
958
- Name: has-flag
959
- Version: 4.0.0
960
- License: MIT
961
- Private: false
962
- Description: Check if argv has a specific flag
963
- Repository: undefined
964
- Author: Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
965
- License Text:
966
- ===
967
-
968
- MIT License
969
-
970
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
971
-
972
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
973
-
974
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
975
-
976
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
649
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -4,14 +4,8 @@ const GEN_AI_REQUEST_STREAM_ATTRIBUTE = "gen_ai.request.stream";
4
4
  const GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE = "gen_ai.request.encoding_format";
5
5
  const GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE = "gen_ai.request.dimensions";
6
6
  const GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE = "gen_ai.response.stop_reason";
7
- const GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE = "gen_ai.invoke_agent";
8
- const GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE = "gen_ai.embeddings";
9
- const GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE = "gen_ai.execute_tool";
10
7
  const GEN_AI_TOOL_CALL_ID_ATTRIBUTE = "gen_ai.tool.call.id";
11
8
 
12
- exports.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE = GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE;
13
- exports.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE = GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE;
14
- exports.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE = GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE;
15
9
  exports.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE = GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE;
16
10
  exports.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE = GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE;
17
11
  exports.GEN_AI_REQUEST_STREAM_ATTRIBUTE = GEN_AI_REQUEST_STREAM_ATTRIBUTE;
@@ -1 +1 @@
1
- {"version":3,"file":"gen-ai-attributes.js","sources":["../../../../src/ai/core/gen-ai-attributes.ts"],"sourcesContent":["/**\n * Gen-AI telemetry attributes that are not (yet) covered by `@sentry/conventions`.\n *\n * Attributes with an equivalent in `@sentry/conventions/attributes` are imported from there directly\n * at their call sites. The constants below either have no conventions equivalent, are Sentry-internal\n * meta attributes, are span-operation values (not attribute keys), or intentionally emit a different\n * key than the current conventions attribute.\n *\n * Based on OpenTelemetry Semantic Conventions for Generative AI\n * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/\n */\n\n/**\n * Whether streaming was enabled for the request\n */\nexport const GEN_AI_REQUEST_STREAM_ATTRIBUTE = 'gen_ai.request.stream';\n\n/**\n * The encoding format for the model request\n */\nexport const GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE = 'gen_ai.request.encoding_format';\n\n/**\n * The dimensions for the model request\n */\nexport const GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE = 'gen_ai.request.dimensions';\n\n/**\n * The reason why the model stopped generating tokens\n */\nexport const GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE = 'gen_ai.response.stop_reason';\n\n/**\n * The span operation name for invoking an agent\n */\nexport const GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE = 'gen_ai.invoke_agent';\n\n/**\n * The span operation for embeddings\n */\nexport const GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE = 'gen_ai.embeddings';\n\n/**\n * The span operation name for executing a tool\n */\nexport const GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE = 'gen_ai.execute_tool';\n\n/**\n * The tool call ID\n */\nexport const GEN_AI_TOOL_CALL_ID_ATTRIBUTE = 'gen_ai.tool.call.id';\n"],"names":[],"mappings":";;AAeO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,+BAAA,CAAA,CAAA,CAAkC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,wCAAA,CAAA,CAAA,CAA2C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mCAAA,CAAA,CAAA,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAK5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,qCAAA,CAAA,CAAA,CAAwC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAK9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,uCAAA,CAAA,CAAA,CAA0C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKhD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,qCAAA,CAAA,CAAA,CAAwC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAK9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,uCAAA,CAAA,CAAA,CAA0C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKhD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,6BAAA,CAAA,CAAA,CAAgC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;;"}
1
+ {"version":3,"file":"gen-ai-attributes.js","sources":["../../../../src/ai/core/gen-ai-attributes.ts"],"sourcesContent":["/**\n * Gen-AI telemetry attributes that are not (yet) covered by `@sentry/conventions`.\n *\n * Attributes with an equivalent in `@sentry/conventions/attributes` are imported from there directly\n * at their call sites. The constants below either have no conventions equivalent, are Sentry-internal\n * meta attributes, are span-operation values (not attribute keys), or intentionally emit a different\n * key than the current conventions attribute.\n *\n * Based on OpenTelemetry Semantic Conventions for Generative AI\n * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/\n */\n\n/**\n * Whether streaming was enabled for the request\n */\nexport const GEN_AI_REQUEST_STREAM_ATTRIBUTE = 'gen_ai.request.stream';\n\n/**\n * The encoding format for the model request\n */\nexport const GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE = 'gen_ai.request.encoding_format';\n\n/**\n * The dimensions for the model request\n */\nexport const GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE = 'gen_ai.request.dimensions';\n\n/**\n * The reason why the model stopped generating tokens\n */\nexport const GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE = 'gen_ai.response.stop_reason';\n\n/**\n * The tool call ID\n */\nexport const GEN_AI_TOOL_CALL_ID_ATTRIBUTE = 'gen_ai.tool.call.id';\n"],"names":[],"mappings":";;AAeO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,+BAAA,CAAA,CAAA,CAAkC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKxC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,wCAAA,CAAA,CAAA,CAA2C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAKjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mCAAA,CAAA,CAAA,CAAsC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAK5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,qCAAA,CAAA,CAAA,CAAwC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAK9C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,6BAAA,CAAA,CAAA,CAAgC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;"}
@@ -143,13 +143,24 @@ function addResponseAttributes(span, response, recordOutputs) {
143
143
  }
144
144
  }
145
145
  }
146
+ function resolveChatParams(operationName, params, context) {
147
+ if (operationName !== "chat" || params?.config != null || !context || typeof context !== "object") {
148
+ return params;
149
+ }
150
+ const chatConfig = context.config;
151
+ if (!chatConfig || typeof chatConfig !== "object") {
152
+ return params;
153
+ }
154
+ return { ...params, config: chatConfig };
155
+ }
146
156
  function instrumentMethod(originalMethod, methodPath, instrumentedMethod, context, options) {
147
157
  const isEmbeddings = instrumentedMethod.operation === "embeddings";
148
158
  return new Proxy(originalMethod, {
149
159
  apply(target, _, args) {
150
160
  const operationName = instrumentedMethod.operation || "unknown";
151
161
  const params = args[0];
152
- const requestAttributes = extractRequestAttributes(operationName, params, context);
162
+ const attributeParams = resolveChatParams(operationName, params, context);
163
+ const requestAttributes = extractRequestAttributes(operationName, attributeParams, context);
153
164
  const model = requestAttributes[attributes.GEN_AI_REQUEST_MODEL] || "unknown";
154
165
  const client = core.getClient();
155
166
  const spanName = typeof model === "string" && model !== "unknown" || !(client && core.hasSpanStreamingEnabled(client)) ? `${operationName} ${model}` : operationName;
@@ -162,8 +173,8 @@ function instrumentMethod(originalMethod, methodPath, instrumentedMethod, contex
162
173
  },
163
174
  async (span) => {
164
175
  try {
165
- if (options.recordInputs && params) {
166
- addPrivateRequestAttributes(span, params, operationName);
176
+ if (options.recordInputs && attributeParams) {
177
+ addPrivateRequestAttributes(span, attributeParams, operationName);
167
178
  }
168
179
  const stream = await target.apply(context, args);
169
180
  return streaming.instrumentStream(stream, span, Boolean(options.recordOutputs));
@@ -182,8 +193,8 @@ function instrumentMethod(originalMethod, methodPath, instrumentedMethod, contex
182
193
  attributes: requestAttributes
183
194
  },
184
195
  (span) => {
185
- if (options.recordInputs && params) {
186
- addPrivateRequestAttributes(span, params, operationName);
196
+ if (options.recordInputs && attributeParams) {
197
+ addPrivateRequestAttributes(span, attributeParams, operationName);
187
198
  }
188
199
  return core.handleCallbackErrors(
189
200
  () => target.apply(context, args),
@@ -240,4 +251,5 @@ exports.addResponseAttributes = addResponseAttributes;
240
251
  exports.extractModel = extractModel;
241
252
  exports.extractRequestAttributes = extractRequestAttributes;
242
253
  exports.instrumentGoogleGenAIClient = instrumentGoogleGenAIClient;
254
+ exports.resolveChatParams = resolveChatParams;
243
255
  //# sourceMappingURL=index.js.map