@sentry/node 10.58.0 → 10.59.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 (502) hide show
  1. package/build/cjs/index.js +2 -0
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/integrations/fs/index.js +3 -84
  4. package/build/cjs/integrations/fs/index.js.map +1 -1
  5. package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
  6. package/build/cjs/integrations/fs/vendored/instrumentation.js +145 -175
  7. package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
  8. package/build/cjs/integrations/fs/vendored/utils.js.map +1 -1
  9. package/build/cjs/integrations/node-fetch/vendored/undici.js.map +1 -1
  10. package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
  11. package/build/cjs/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +1 -1
  12. package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
  13. package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +1 -1
  14. package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
  15. package/build/cjs/integrations/tracing/connect/index.js +0 -21
  16. package/build/cjs/integrations/tracing/connect/index.js.map +1 -1
  17. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -6
  18. package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +1 -1
  19. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +33 -42
  20. package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
  21. package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +1 -1
  22. package/build/cjs/integrations/tracing/connect/vendored/utils.js +3 -2
  23. package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +1 -1
  24. package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  25. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +1 -1
  26. package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
  27. package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
  28. package/build/cjs/integrations/tracing/genericPool/index.js +1 -15
  29. package/build/cjs/integrations/tracing/genericPool/index.js.map +1 -1
  30. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +30 -18
  31. package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
  32. package/build/cjs/integrations/tracing/graphql/index.js +1 -51
  33. package/build/cjs/integrations/tracing/graphql/index.js.map +1 -1
  34. package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +1 -1
  35. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -2
  36. package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +1 -1
  37. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +67 -57
  38. package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  39. package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +1 -1
  40. package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +1 -1
  41. package/build/cjs/integrations/tracing/graphql/vendored/utils.js +28 -62
  42. package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +1 -1
  43. package/build/cjs/integrations/tracing/hapi/index.js +0 -17
  44. package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
  45. package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +1 -1
  46. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +28 -45
  47. package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
  48. package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +1 -1
  49. package/build/cjs/integrations/tracing/hapi/vendored/semconv.js.map +1 -1
  50. package/build/cjs/integrations/tracing/hapi/vendored/utils.js +4 -9
  51. package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +1 -1
  52. package/build/cjs/integrations/tracing/index.js +1 -0
  53. package/build/cjs/integrations/tracing/index.js.map +1 -1
  54. package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
  55. package/build/cjs/integrations/tracing/kafka/vendored/internal-types.js.map +1 -1
  56. package/build/cjs/integrations/tracing/kafka/vendored/propagator.js.map +1 -1
  57. package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
  58. package/build/cjs/integrations/tracing/knex/index.js +2 -17
  59. package/build/cjs/integrations/tracing/knex/index.js.map +1 -1
  60. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +65 -93
  61. package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  62. package/build/cjs/integrations/tracing/knex/vendored/semconv.js +2 -0
  63. package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +1 -1
  64. package/build/cjs/integrations/tracing/knex/vendored/utils.js +2 -15
  65. package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +1 -1
  66. package/build/cjs/integrations/tracing/koa/index.js +1 -24
  67. package/build/cjs/integrations/tracing/koa/index.js.map +1 -1
  68. package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +1 -1
  69. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +29 -41
  70. package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
  71. package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +1 -1
  72. package/build/cjs/integrations/tracing/koa/vendored/types.js.map +1 -1
  73. package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +1 -1
  74. package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
  75. package/build/cjs/integrations/tracing/mongo/index.js +1 -42
  76. package/build/cjs/integrations/tracing/mongo/index.js.map +1 -1
  77. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +12 -562
  78. package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
  79. package/build/cjs/integrations/tracing/mongo/vendored/internal-types.js.map +1 -1
  80. package/build/cjs/integrations/tracing/mongo/vendored/patches.js +151 -0
  81. package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +1 -0
  82. package/build/cjs/integrations/tracing/mongo/vendored/semconv.js +0 -4
  83. package/build/cjs/integrations/tracing/mongo/vendored/semconv.js.map +1 -1
  84. package/build/cjs/integrations/tracing/mongo/vendored/utils.js +153 -0
  85. package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -0
  86. package/build/cjs/integrations/tracing/mongoose/index.js +1 -8
  87. package/build/cjs/integrations/tracing/mongoose/index.js.map +1 -1
  88. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +56 -203
  89. package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
  90. package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js +0 -4
  91. package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js.map +1 -1
  92. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +19 -49
  93. package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
  94. package/build/cjs/integrations/tracing/mysql/vendored/AttributeNames.js.map +1 -1
  95. package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
  96. package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
  97. package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +1 -1
  98. package/build/cjs/integrations/tracing/mysql2/index.js +1 -8
  99. package/build/cjs/integrations/tracing/mysql2/index.js.map +1 -1
  100. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +21 -59
  101. package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  102. package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +1 -1
  103. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +14 -33
  104. package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +1 -1
  105. package/build/cjs/integrations/tracing/postgres/index.js +0 -4
  106. package/build/cjs/integrations/tracing/postgres/index.js.map +1 -1
  107. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -1
  108. package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +1 -1
  109. package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +1 -1
  110. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +51 -261
  111. package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  112. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -12
  113. package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +1 -1
  114. package/build/cjs/integrations/tracing/postgres/vendored/utils.js +43 -167
  115. package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +1 -1
  116. package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +1 -1
  117. package/build/cjs/integrations/tracing/prisma/vendored/constants.js.map +1 -1
  118. package/build/cjs/integrations/tracing/prisma/vendored/global.js.map +1 -1
  119. package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
  120. package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
  121. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +89 -160
  122. package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  123. package/build/cjs/integrations/tracing/redis/vendored/redis-common.js.map +1 -1
  124. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +92 -231
  125. package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  126. package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -2
  127. package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +1 -1
  128. package/build/cjs/integrations/tracing/tedious/index.js +1 -25
  129. package/build/cjs/integrations/tracing/tedious/index.js.map +1 -1
  130. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +25 -76
  131. package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
  132. package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +1 -1
  133. package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +1 -1
  134. package/build/cjs/sdk/diagnosticsChannelInjection.js +21 -0
  135. package/build/cjs/sdk/diagnosticsChannelInjection.js.map +1 -0
  136. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +19 -0
  137. package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -0
  138. package/build/cjs/sdk/index.js +17 -1
  139. package/build/cjs/sdk/index.js.map +1 -1
  140. package/build/esm/index.js +1 -0
  141. package/build/esm/index.js.map +1 -1
  142. package/build/esm/integrations/fs/index.js +4 -85
  143. package/build/esm/integrations/fs/index.js.map +1 -1
  144. package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
  145. package/build/esm/integrations/fs/vendored/instrumentation.js +147 -177
  146. package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
  147. package/build/esm/integrations/fs/vendored/utils.js.map +1 -1
  148. package/build/esm/integrations/node-fetch/vendored/undici.js.map +1 -1
  149. package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
  150. package/build/esm/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +1 -1
  151. package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
  152. package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +1 -1
  153. package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
  154. package/build/esm/integrations/tracing/connect/index.js +1 -22
  155. package/build/esm/integrations/tracing/connect/index.js.map +1 -1
  156. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +1 -6
  157. package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +1 -1
  158. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +36 -44
  159. package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
  160. package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +1 -1
  161. package/build/esm/integrations/tracing/connect/vendored/utils.js +3 -2
  162. package/build/esm/integrations/tracing/connect/vendored/utils.js.map +1 -1
  163. package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
  164. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +1 -1
  165. package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
  166. package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
  167. package/build/esm/integrations/tracing/genericPool/index.js +3 -17
  168. package/build/esm/integrations/tracing/genericPool/index.js.map +1 -1
  169. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +31 -19
  170. package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
  171. package/build/esm/integrations/tracing/graphql/index.js +3 -53
  172. package/build/esm/integrations/tracing/graphql/index.js.map +1 -1
  173. package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +1 -1
  174. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -2
  175. package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +1 -1
  176. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +69 -59
  177. package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
  178. package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +1 -1
  179. package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +1 -1
  180. package/build/esm/integrations/tracing/graphql/vendored/utils.js +29 -62
  181. package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +1 -1
  182. package/build/esm/integrations/tracing/hapi/index.js +1 -18
  183. package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
  184. package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +1 -1
  185. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +30 -47
  186. package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
  187. package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +1 -1
  188. package/build/esm/integrations/tracing/hapi/vendored/semconv.js.map +1 -1
  189. package/build/esm/integrations/tracing/hapi/vendored/utils.js +5 -10
  190. package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +1 -1
  191. package/build/esm/integrations/tracing/index.js +1 -0
  192. package/build/esm/integrations/tracing/index.js.map +1 -1
  193. package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
  194. package/build/esm/integrations/tracing/kafka/vendored/internal-types.js.map +1 -1
  195. package/build/esm/integrations/tracing/kafka/vendored/propagator.js.map +1 -1
  196. package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
  197. package/build/esm/integrations/tracing/knex/index.js +4 -19
  198. package/build/esm/integrations/tracing/knex/index.js.map +1 -1
  199. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +66 -94
  200. package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
  201. package/build/esm/integrations/tracing/knex/vendored/semconv.js +2 -1
  202. package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +1 -1
  203. package/build/esm/integrations/tracing/knex/vendored/utils.js +3 -15
  204. package/build/esm/integrations/tracing/knex/vendored/utils.js.map +1 -1
  205. package/build/esm/integrations/tracing/koa/index.js +3 -26
  206. package/build/esm/integrations/tracing/koa/index.js.map +1 -1
  207. package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +1 -1
  208. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +31 -43
  209. package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
  210. package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +1 -1
  211. package/build/esm/integrations/tracing/koa/vendored/types.js.map +1 -1
  212. package/build/esm/integrations/tracing/koa/vendored/utils.js.map +1 -1
  213. package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
  214. package/build/esm/integrations/tracing/mongo/index.js +3 -43
  215. package/build/esm/integrations/tracing/mongo/index.js.map +1 -1
  216. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +13 -563
  217. package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
  218. package/build/esm/integrations/tracing/mongo/vendored/internal-types.js.map +1 -1
  219. package/build/esm/integrations/tracing/mongo/vendored/patches.js +143 -0
  220. package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +1 -0
  221. package/build/esm/integrations/tracing/mongo/vendored/semconv.js +1 -3
  222. package/build/esm/integrations/tracing/mongo/vendored/semconv.js.map +1 -1
  223. package/build/esm/integrations/tracing/mongo/vendored/utils.js +146 -0
  224. package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -0
  225. package/build/esm/integrations/tracing/mongoose/index.js +2 -9
  226. package/build/esm/integrations/tracing/mongoose/index.js.map +1 -1
  227. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +59 -206
  228. package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
  229. package/build/esm/integrations/tracing/mongoose/vendored/semconv.js +1 -3
  230. package/build/esm/integrations/tracing/mongoose/vendored/semconv.js.map +1 -1
  231. package/build/esm/integrations/tracing/mongoose/vendored/utils.js +20 -50
  232. package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
  233. package/build/esm/integrations/tracing/mysql/vendored/AttributeNames.js.map +1 -1
  234. package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
  235. package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
  236. package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +1 -1
  237. package/build/esm/integrations/tracing/mysql2/index.js +2 -9
  238. package/build/esm/integrations/tracing/mysql2/index.js.map +1 -1
  239. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +26 -64
  240. package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
  241. package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +1 -1
  242. package/build/esm/integrations/tracing/mysql2/vendored/utils.js +15 -34
  243. package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +1 -1
  244. package/build/esm/integrations/tracing/postgres/index.js +1 -5
  245. package/build/esm/integrations/tracing/postgres/index.js.map +1 -1
  246. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -1
  247. package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +1 -1
  248. package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +1 -1
  249. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +52 -262
  250. package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
  251. package/build/esm/integrations/tracing/postgres/vendored/semconv.js +1 -7
  252. package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +1 -1
  253. package/build/esm/integrations/tracing/postgres/vendored/utils.js +44 -165
  254. package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +1 -1
  255. package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +1 -1
  256. package/build/esm/integrations/tracing/prisma/vendored/constants.js.map +1 -1
  257. package/build/esm/integrations/tracing/prisma/vendored/global.js.map +1 -1
  258. package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
  259. package/build/esm/integrations/tracing/redis/index.js.map +1 -1
  260. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +92 -163
  261. package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
  262. package/build/esm/integrations/tracing/redis/vendored/redis-common.js.map +1 -1
  263. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +94 -233
  264. package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
  265. package/build/esm/integrations/tracing/redis/vendored/semconv.js +1 -2
  266. package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +1 -1
  267. package/build/esm/integrations/tracing/tedious/index.js +3 -27
  268. package/build/esm/integrations/tracing/tedious/index.js.map +1 -1
  269. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +29 -79
  270. package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
  271. package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +1 -1
  272. package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +1 -1
  273. package/build/esm/package.json +1 -1
  274. package/build/esm/sdk/diagnosticsChannelInjection.js +17 -0
  275. package/build/esm/sdk/diagnosticsChannelInjection.js.map +1 -0
  276. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +17 -0
  277. package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -0
  278. package/build/esm/sdk/index.js +17 -1
  279. package/build/esm/sdk/index.js.map +1 -1
  280. package/build/import-hook.mjs +6 -0
  281. package/build/types/index.d.ts +1 -0
  282. package/build/types/index.d.ts.map +1 -1
  283. package/build/types/integrations/fs/index.d.ts.map +1 -1
  284. package/build/types/integrations/fs/vendored/constants.d.ts.map +1 -1
  285. package/build/types/integrations/fs/vendored/instrumentation.d.ts +6 -10
  286. package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
  287. package/build/types/integrations/fs/vendored/types.d.ts +10 -15
  288. package/build/types/integrations/fs/vendored/types.d.ts.map +1 -1
  289. package/build/types/integrations/fs/vendored/utils.d.ts +2 -2
  290. package/build/types/integrations/fs/vendored/utils.d.ts.map +1 -1
  291. package/build/types/integrations/node-fetch/vendored/internal-types.d.ts.map +1 -1
  292. package/build/types/integrations/node-fetch/vendored/types.d.ts.map +1 -1
  293. package/build/types/integrations/node-fetch/vendored/undici.d.ts.map +1 -1
  294. package/build/types/integrations/tracing/amqplib/vendored/amqplib.d.ts.map +1 -1
  295. package/build/types/integrations/tracing/amqplib/vendored/semconv-obsolete.d.ts.map +1 -1
  296. package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +1 -1
  297. package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +1 -1
  298. package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +1 -1
  299. package/build/types/integrations/tracing/connect/index.d.ts.map +1 -1
  300. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -4
  301. package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +1 -1
  302. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +5 -5
  303. package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +1 -1
  304. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +2 -2
  305. package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +1 -1
  306. package/build/types/integrations/tracing/connect/vendored/utils.d.ts +1 -1
  307. package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +1 -1
  308. package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +1 -1
  309. package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +1 -1
  310. package/build/types/integrations/tracing/fastify/vendored/instrumentation.d.ts.map +1 -1
  311. package/build/types/integrations/tracing/genericPool/index.d.ts.map +1 -1
  312. package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +1 -1
  313. package/build/types/integrations/tracing/graphql/index.d.ts.map +1 -1
  314. package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +1 -1
  315. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +1 -3
  316. package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +1 -1
  317. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +7 -2
  318. package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +1 -1
  319. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +4 -4
  320. package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +1 -1
  321. package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +1 -1
  322. package/build/types/integrations/tracing/graphql/vendored/types.d.ts +5 -43
  323. package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +1 -1
  324. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +8 -11
  325. package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +1 -1
  326. package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
  327. package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +1 -1
  328. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +2 -2
  329. package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +1 -1
  330. package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +1 -1
  331. package/build/types/integrations/tracing/hapi/vendored/semconv.d.ts.map +1 -1
  332. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +3 -4
  333. package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +1 -1
  334. package/build/types/integrations/tracing/index.d.ts.map +1 -1
  335. package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +1 -1
  336. package/build/types/integrations/tracing/kafka/vendored/internal-types.d.ts.map +1 -1
  337. package/build/types/integrations/tracing/kafka/vendored/propagator.d.ts.map +1 -1
  338. package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +1 -1
  339. package/build/types/integrations/tracing/kafka/vendored/types.d.ts.map +1 -1
  340. package/build/types/integrations/tracing/knex/index.d.ts.map +1 -1
  341. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +8 -10
  342. package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +1 -1
  343. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +1 -0
  344. package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +1 -1
  345. package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -6
  346. package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +1 -1
  347. package/build/types/integrations/tracing/koa/index.d.ts.map +1 -1
  348. package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +1 -1
  349. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +1 -1
  350. package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +1 -1
  351. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +4 -4
  352. package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +1 -1
  353. package/build/types/integrations/tracing/koa/vendored/types.d.ts +2 -39
  354. package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +1 -1
  355. package/build/types/integrations/tracing/koa/vendored/utils.d.ts +3 -3
  356. package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +1 -1
  357. package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +1 -1
  358. package/build/types/integrations/tracing/mongo/index.d.ts +0 -4
  359. package/build/types/integrations/tracing/mongo/index.d.ts.map +1 -1
  360. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +4 -72
  361. package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +1 -1
  362. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -59
  363. package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +1 -1
  364. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +15 -0
  365. package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +1 -0
  366. package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts +0 -54
  367. package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts.map +1 -1
  368. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +24 -0
  369. package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -0
  370. package/build/types/integrations/tracing/mongoose/index.d.ts.map +1 -1
  371. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +3 -0
  372. package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +1 -1
  373. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +3 -8
  374. package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +1 -1
  375. package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -14
  376. package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts.map +1 -1
  377. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +4 -6
  378. package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +1 -1
  379. package/build/types/integrations/tracing/mysql/vendored/AttributeNames.d.ts.map +1 -1
  380. package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +1 -1
  381. package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +1 -1
  382. package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +1 -1
  383. package/build/types/integrations/tracing/mysql/vendored/types.d.ts.map +1 -1
  384. package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +1 -1
  385. package/build/types/integrations/tracing/mysql2/index.d.ts.map +1 -1
  386. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +3 -6
  387. package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
  388. package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +1 -1
  389. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +3 -5
  390. package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +1 -1
  391. package/build/types/integrations/tracing/postgres/index.d.ts.map +1 -1
  392. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -1
  393. package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +1 -1
  394. package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +1 -1
  395. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +1 -9
  396. package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +1 -1
  397. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -2
  398. package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +1 -1
  399. package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +1 -1
  400. package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +1 -1
  401. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -50
  402. package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +1 -1
  403. package/build/types/integrations/tracing/postgres/vendored/types.d.ts +2 -56
  404. package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +1 -1
  405. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +13 -26
  406. package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +1 -1
  407. package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts.map +1 -1
  408. package/build/types/integrations/tracing/prisma/vendored/constants.d.ts.map +1 -1
  409. package/build/types/integrations/tracing/prisma/vendored/global.d.ts.map +1 -1
  410. package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts.map +1 -1
  411. package/build/types/integrations/tracing/prisma/vendored/types.d.ts.map +1 -1
  412. package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
  413. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +3 -8
  414. package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +1 -1
  415. package/build/types/integrations/tracing/redis/vendored/redis-common.d.ts.map +1 -1
  416. package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +1 -1
  417. package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +1 -1
  418. package/build/types/integrations/tracing/redis/vendored/types.d.ts +2 -36
  419. package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +1 -1
  420. package/build/types/integrations/tracing/tedious/index.d.ts.map +1 -1
  421. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +3 -14
  422. package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +1 -1
  423. package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +1 -1
  424. package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +1 -1
  425. package/build/types/sdk/diagnosticsChannelInjection.d.ts +41 -0
  426. package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +1 -0
  427. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +34 -0
  428. package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +1 -0
  429. package/build/types/sdk/index.d.ts.map +1 -1
  430. package/build/types-ts3.8/index.d.ts +1 -0
  431. package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +6 -10
  432. package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +10 -15
  433. package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +2 -2
  434. package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -4
  435. package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +4 -4
  436. package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +2 -2
  437. package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +1 -3
  438. package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +6 -1
  439. package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +3 -3
  440. package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +4 -42
  441. package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +6 -9
  442. package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +2 -2
  443. package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +1 -2
  444. package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +8 -10
  445. package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +1 -0
  446. package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -6
  447. package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +4 -4
  448. package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +1 -38
  449. package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -4
  450. package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +4 -72
  451. package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -59
  452. package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +15 -0
  453. package/build/types-ts3.8/integrations/tracing/mongo/vendored/semconv.d.ts +0 -54
  454. package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +24 -0
  455. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +3 -0
  456. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +3 -8
  457. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -14
  458. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +4 -6
  459. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +3 -6
  460. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +3 -5
  461. package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -1
  462. package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -8
  463. package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -2
  464. package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -50
  465. package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +1 -55
  466. package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +13 -26
  467. package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +3 -8
  468. package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +2 -36
  469. package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +3 -14
  470. package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +41 -0
  471. package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +34 -0
  472. package/package.json +20 -6
  473. package/build/cjs/integrations/tracing/knex/vendored/constants.js +0 -16
  474. package/build/cjs/integrations/tracing/knex/vendored/constants.js.map +0 -1
  475. package/build/cjs/integrations/tracing/postgres/vendored/internal-types.js +0 -6
  476. package/build/cjs/integrations/tracing/postgres/vendored/internal-types.js.map +0 -1
  477. package/build/cjs/integrations/tracing/utils/sql-common.js +0 -43
  478. package/build/cjs/integrations/tracing/utils/sql-common.js.map +0 -1
  479. package/build/esm/integrations/tracing/knex/vendored/constants.js +0 -13
  480. package/build/esm/integrations/tracing/knex/vendored/constants.js.map +0 -1
  481. package/build/esm/integrations/tracing/postgres/vendored/internal-types.js +0 -4
  482. package/build/esm/integrations/tracing/postgres/vendored/internal-types.js.map +0 -1
  483. package/build/esm/integrations/tracing/utils/sql-common.js +0 -41
  484. package/build/esm/integrations/tracing/utils/sql-common.js.map +0 -1
  485. package/build/types/integrations/tracing/knex/vendored/constants.d.ts +0 -3
  486. package/build/types/integrations/tracing/knex/vendored/constants.d.ts.map +0 -1
  487. package/build/types/integrations/tracing/knex/vendored/types.d.ts +0 -8
  488. package/build/types/integrations/tracing/knex/vendored/types.d.ts.map +0 -1
  489. package/build/types/integrations/tracing/mongo/vendored/types.d.ts +0 -51
  490. package/build/types/integrations/tracing/mongo/vendored/types.d.ts.map +0 -1
  491. package/build/types/integrations/tracing/mongoose/vendored/types.d.ts +0 -36
  492. package/build/types/integrations/tracing/mongoose/vendored/types.d.ts.map +0 -1
  493. package/build/types/integrations/tracing/mysql2/vendored/types.d.ts +0 -18
  494. package/build/types/integrations/tracing/mysql2/vendored/types.d.ts.map +0 -1
  495. package/build/types/integrations/tracing/tedious/vendored/types.d.ts +0 -10
  496. package/build/types/integrations/tracing/tedious/vendored/types.d.ts.map +0 -1
  497. package/build/types-ts3.8/integrations/tracing/knex/vendored/constants.d.ts +0 -3
  498. package/build/types-ts3.8/integrations/tracing/knex/vendored/types.d.ts +0 -8
  499. package/build/types-ts3.8/integrations/tracing/mongo/vendored/types.d.ts +0 -51
  500. package/build/types-ts3.8/integrations/tracing/mongoose/vendored/types.d.ts +0 -36
  501. package/build/types-ts3.8/integrations/tracing/mysql2/vendored/types.d.ts +0 -18
  502. package/build/types-ts3.8/integrations/tracing/tedious/vendored/types.d.ts +0 -10
@@ -1,107 +1,53 @@
1
1
  /**
2
2
  * Deprecated, use `server.address`, `server.port` attributes instead.
3
3
  *
4
- * @example "Server=(localdb)\\v11.0;Integrated Security=true;"
5
- *
6
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
7
- *
8
4
  * @deprecated Replaced by `server.address` and `server.port`.
9
5
  */
10
6
  export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
11
7
  /**
12
8
  * Deprecated, use `db.collection.name` instead.
13
9
  *
14
- * @example "mytable"
15
- *
16
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
17
- *
18
10
  * @deprecated Replaced by `db.collection.name`.
19
11
  */
20
12
  export declare const ATTR_DB_MONGODB_COLLECTION: "db.mongodb.collection";
21
13
  /**
22
14
  * Deprecated, use `db.namespace` instead.
23
15
  *
24
- * @example customers
25
- * @example main
26
- *
27
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
28
- *
29
16
  * @deprecated Replaced by `db.namespace`.
30
17
  */
31
18
  export declare const ATTR_DB_NAME: "db.name";
32
19
  /**
33
20
  * Deprecated, use `db.operation.name` instead.
34
21
  *
35
- * @example findAndModify
36
- * @example HMSET
37
- * @example SELECT
38
- *
39
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
40
- *
41
22
  * @deprecated Replaced by `db.operation.name`.
42
23
  */
43
24
  export declare const ATTR_DB_OPERATION: "db.operation";
44
25
  /**
45
26
  * The database statement being executed.
46
27
  *
47
- * @example SELECT * FROM wuser_table
48
- * @example SET mykey "WuValue"
49
- *
50
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
51
- *
52
28
  * @deprecated Replaced by `db.query.text`.
53
29
  */
54
30
  export declare const ATTR_DB_STATEMENT: "db.statement";
55
31
  /**
56
32
  * Deprecated, use `db.system.name` instead.
57
33
  *
58
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
59
- *
60
34
  * @deprecated Replaced by `db.system.name`.
61
35
  */
62
36
  export declare const ATTR_DB_SYSTEM: "db.system";
63
37
  /**
64
38
  * Deprecated, use `server.address` on client spans and `client.address` on server spans.
65
39
  *
66
- * @example example.com
67
- *
68
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
69
- *
70
40
  * @deprecated Replaced by `server.address` on client spans and `client.address` on server spans.
71
41
  */
72
42
  export declare const ATTR_NET_PEER_NAME: "net.peer.name";
73
43
  /**
74
44
  * Deprecated, use `server.port` on client spans and `client.port` on server spans.
75
45
  *
76
- * @example 8080
77
- *
78
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
79
- *
80
46
  * @deprecated Replaced by `server.port` on client spans and `client.port` on server spans.
81
47
  */
82
48
  export declare const ATTR_NET_PEER_PORT: "net.peer.port";
83
- /**
84
- * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM_NAME}.
85
- *
86
- * [MongoDB](https://www.mongodb.com/)
87
- *
88
- * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
89
- */
90
- export declare const DB_SYSTEM_NAME_VALUE_MONGODB: "mongodb";
91
49
  /**
92
50
  * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM}.
93
- *
94
- * MongoDB
95
- *
96
- * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
97
51
  */
98
52
  export declare const DB_SYSTEM_VALUE_MONGODB: "mongodb";
99
- /**
100
- * Deprecated, use `db.client.connection.count` instead.
101
- *
102
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
103
- *
104
- * @deprecated Replaced by `db.client.connection.count`.
105
- */
106
- export declare const METRIC_DB_CLIENT_CONNECTIONS_USAGE: "db.client.connections.usage";
107
53
  //# sourceMappingURL=semconv.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { Span, SpanAttributes } from '@sentry/core';
2
+ import { MongodbNamespace, MongoInternalCommand, MongoInternalTopology } from './internal-types';
3
+ import { MongodbCommandType } from './internal-types';
4
+ /**
5
+ * Get the mongodb command type from the object.
6
+ */
7
+ export declare function getCommandType(command: MongoInternalCommand): MongodbCommandType;
8
+ /**
9
+ * Determine a span's attributes by fetching related metadata from the v4 connection context.
10
+ */
11
+ export declare function getV4SpanAttributes(connectionCtx: any, ns: MongodbNamespace, command?: any, operation?: string): SpanAttributes;
12
+ /**
13
+ * Determine a span's attributes by fetching related metadata from the v3 topology.
14
+ */
15
+ export declare function getV3SpanAttributes(ns: string, topology: MongoInternalTopology, command?: MongoInternalCommand, operation?: string | undefined): SpanAttributes;
16
+ export declare function startMongoSpan(attributes: SpanAttributes): Span;
17
+ /**
18
+ * Wraps the result handler so it ends the span (with error status on failure) and runs the
19
+ * original callback re-activated under the parent span — mongodb loses the async context when
20
+ * it invokes the callback on a later tick.
21
+ */
22
+ export declare function patchEnd(span: Span | undefined, resultHandler: Function): Function;
23
+ export declare function shouldSkipInstrumentation(): boolean;
24
+ //# sourceMappingURL=utils.d.ts.map
@@ -27,4 +27,7 @@ export declare const Aggregate: {
27
27
  prototype: any;
28
28
  [key: string]: any;
29
29
  };
30
+ export interface MongooseError extends Error {
31
+ code?: number;
32
+ }
30
33
  //# sourceMappingURL=mongoose-types.d.ts.map
@@ -1,12 +1,8 @@
1
- import { MongooseInstrumentationConfig } from './types';
2
- import { InstrumentationBase, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
1
+ import { InstrumentationConfig, InstrumentationBase, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
3
2
  export declare const _STORED_PARENT_SPAN: unique symbol;
4
3
  export declare const _ALREADY_INSTRUMENTED: unique symbol;
5
- export declare class MongooseInstrumentation extends InstrumentationBase<MongooseInstrumentationConfig> {
6
- private _netSemconvStability;
7
- private _dbSemconvStability;
8
- constructor(config?: MongooseInstrumentationConfig);
9
- private _setSemconvStabilityFromEnv;
4
+ export declare class MongooseInstrumentation extends InstrumentationBase<InstrumentationConfig> {
5
+ constructor(config?: InstrumentationConfig);
10
6
  protected init(): InstrumentationModuleDefinition;
11
7
  private patch;
12
8
  private unpatch;
@@ -19,6 +15,5 @@ export declare class MongooseInstrumentation extends InstrumentationBase<Mongoos
19
15
  private patchAndCaptureSpanContext;
20
16
  private _startSpan;
21
17
  private _handleResponse;
22
- private _callOriginalFunction;
23
18
  }
24
19
  //# sourceMappingURL=mongoose.d.ts.map
@@ -22,14 +22,6 @@ export declare const ATTR_DB_NAME: "db.name";
22
22
  * @deprecated Replaced by `db.operation.name`.
23
23
  */
24
24
  export declare const ATTR_DB_OPERATION: "db.operation";
25
- /**
26
- * The database statement being executed.
27
- *
28
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
29
- *
30
- * @deprecated Replaced by `db.query.text`.
31
- */
32
- export declare const ATTR_DB_STATEMENT: "db.statement";
33
25
  /**
34
26
  * Deprecated, use `db.system.name` instead.
35
27
  *
@@ -62,10 +54,4 @@ export declare const ATTR_NET_PEER_NAME: "net.peer.name";
62
54
  * @deprecated Replaced by `server.port` on client spans and `client.port` on server spans.
63
55
  */
64
56
  export declare const ATTR_NET_PEER_PORT: "net.peer.port";
65
- /**
66
- * Enum value "mongodb" for attribute {@link ATTR_DB_SYSTEM_NAME}.
67
- *
68
- * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
69
- */
70
- export declare const DB_SYSTEM_NAME_VALUE_MONGODB: "mongodb";
71
57
  //# sourceMappingURL=semconv.d.ts.map
@@ -1,8 +1,6 @@
1
- import { Attributes, Span } from '@opentelemetry/api';
1
+ import { Span, SpanAttributes } from '@sentry/core';
2
2
  import { Collection } from './mongoose-types';
3
- import { MongooseResponseCustomAttributesFunction } from './types';
4
- import { SemconvStability } from '@opentelemetry/instrumentation';
5
- export declare function getAttributesFromCollection(collection: Collection, dbSemconvStability: SemconvStability, netSemconvStability: SemconvStability): Attributes;
6
- export declare function handlePromiseResponse(execResponse: any, span: Span, responseHook?: MongooseResponseCustomAttributesFunction, moduleVersion?: string | undefined): any;
7
- export declare function handleCallbackResponse(callback: Function, exec: Function, originalThis: any, span: Span, args: IArguments, responseHook?: MongooseResponseCustomAttributesFunction, moduleVersion?: string | undefined): any;
3
+ export declare function getAttributesFromCollection(collection: Collection): SpanAttributes;
4
+ export declare function handlePromiseResponse(execResponse: any, span: Span): any;
5
+ export declare function handleCallbackResponse(callback: Function, exec: Function, originalThis: any, span: Span, args: IArguments): any;
8
6
  //# sourceMappingURL=utils.d.ts.map
@@ -1,10 +1,7 @@
1
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
1
2
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { MySQL2InstrumentationConfig } from './types';
3
- export declare class MySQL2Instrumentation extends InstrumentationBase<MySQL2InstrumentationConfig> {
4
- private _netSemconvStability;
5
- private _dbSemconvStability;
6
- constructor(config?: MySQL2InstrumentationConfig);
7
- private _setSemconvStabilityFromEnv;
3
+ export declare class MySQL2Instrumentation extends InstrumentationBase<InstrumentationConfig> {
4
+ constructor(config?: InstrumentationConfig);
8
5
  protected init(): InstrumentationNodeModuleDefinition[];
9
6
  private _patchQuery;
10
7
  private _patchCallbackQuery;
@@ -1,7 +1,5 @@
1
- import { Attributes } from '@opentelemetry/api';
1
+ import { SpanAttributes } from '@sentry/core';
2
2
  import { FormatFunction } from './mysql2-types';
3
- import { MySQL2InstrumentationQueryMaskingHook } from './types';
4
- import { SemconvStability } from '@opentelemetry/instrumentation';
5
3
  interface QueryOptions {
6
4
  sql: string;
7
5
  values?: any | any[] | {
@@ -18,8 +16,8 @@ interface Config {
18
16
  user?: string;
19
17
  connectionConfig?: Config;
20
18
  }
21
- export declare function getConnectionAttributes(config: Config, dbSemconvStability: SemconvStability, netSemconvStability: SemconvStability): Attributes;
22
- export declare function getQueryText(query: string | Query | QueryOptions, format?: FormatFunction, values?: any[], maskStatement?: boolean, maskStatementHook?: MySQL2InstrumentationQueryMaskingHook): string;
19
+ export declare function getConnectionAttributes(config: Config): SpanAttributes;
20
+ export declare function getQueryText(query: string | Query | QueryOptions, format?: FormatFunction, values?: any[]): string;
23
21
  export declare function getSpanName(query: string | Query | QueryOptions): string;
24
22
  export declare const once: (fn: Function) => (...args: unknown[]) => any;
25
23
  export declare function getConnectionPrototypeToInstrument(connection: any): any;
@@ -1,5 +1,4 @@
1
1
  export declare enum AttributeNames {
2
- PG_VALUES = "db.postgresql.values",
3
2
  PG_PLAN = "db.postgresql.plan",
4
3
  IDLE_TIMEOUT_MILLIS = "db.postgresql.idle.timeout.millis",
5
4
  MAX_CLIENT = "db.postgresql.max.client"
@@ -1,20 +1,12 @@
1
1
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
2
  import { PgInstrumentationConfig } from './types';
3
3
  export declare class PgInstrumentation extends InstrumentationBase<PgInstrumentationConfig> {
4
- private _operationDuration;
5
- private _connectionsCount;
6
- private _connectionPendingRequests;
7
- private _connectionsCounter;
8
- private _semconvStability;
9
4
  constructor(config?: PgInstrumentationConfig);
10
- _updateMetricInstruments(): void;
11
5
  protected init(): InstrumentationNodeModuleDefinition[];
12
6
  private _patchPgClient;
13
7
  private _unpatchPgClient;
14
8
  private _getClientConnectPatch;
15
- private recordOperationDuration;
16
9
  private _getClientQueryPatch;
17
- private _setPoolConnectEventListeners;
18
10
  private _getPoolConnectPatch;
19
11
  }
20
12
  //# sourceMappingURL=instrumentation.d.ts.map
@@ -26,10 +26,8 @@ export interface PgPoolOptionsParams {
26
26
  port: number;
27
27
  user: string;
28
28
  }
29
- export declare const EVENT_LISTENERS_SET: unique symbol;
30
29
  export interface PgPoolExtended extends PgPool {
31
30
  options: PgPoolOptionsParams;
32
- [EVENT_LISTENERS_SET]?: boolean;
33
31
  }
34
32
  export type PgClientConnect = (callback?: Function) => Promise<void> | void;
35
33
  //# sourceMappingURL=internal-types.d.ts.map
@@ -1,26 +1,8 @@
1
- /**
2
- * The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation **SHOULD** use a combination of parameters that would make the name unique, for example, combining attributes `server.address`, `server.port`, and `db.namespace`, formatted as `server.address:server.port/db.namespace`. Instrumentations that generate connection pool name following different patterns **SHOULD** document it.
3
- *
4
- * @example myDataSource
5
- *
6
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
7
- */
8
- export declare const ATTR_DB_CLIENT_CONNECTION_POOL_NAME: "db.client.connection.pool.name";
9
- /**
10
- * The state of a connection in the pool
11
- *
12
- * @example idle
13
- *
14
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
15
- */
16
- export declare const ATTR_DB_CLIENT_CONNECTION_STATE: "db.client.connection.state";
17
1
  /**
18
2
  * Deprecated, use `server.address`, `server.port` attributes instead.
19
3
  *
20
4
  * @example "Server=(localdb)\\v11.0;Integrated Security=true;"
21
5
  *
22
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
23
- *
24
6
  * @deprecated Replaced by `server.address` and `server.port`.
25
7
  */
26
8
  export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
@@ -30,8 +12,6 @@ export declare const ATTR_DB_CONNECTION_STRING: "db.connection_string";
30
12
  * @example customers
31
13
  * @example main
32
14
  *
33
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
34
- *
35
15
  * @deprecated Replaced by `db.namespace`.
36
16
  */
37
17
  export declare const ATTR_DB_NAME: "db.name";
@@ -41,16 +21,12 @@ export declare const ATTR_DB_NAME: "db.name";
41
21
  * @example SELECT * FROM wuser_table
42
22
  * @example SET mykey "WuValue"
43
23
  *
44
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
45
- *
46
24
  * @deprecated Replaced by `db.query.text`.
47
25
  */
48
26
  export declare const ATTR_DB_STATEMENT: "db.statement";
49
27
  /**
50
28
  * Deprecated, use `db.system.name` instead.
51
29
  *
52
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
53
- *
54
30
  * @deprecated Replaced by `db.system.name`.
55
31
  */
56
32
  export declare const ATTR_DB_SYSTEM: "db.system";
@@ -60,8 +36,6 @@ export declare const ATTR_DB_SYSTEM: "db.system";
60
36
  * @example readonly_user
61
37
  * @example reporting_user
62
38
  *
63
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
64
- *
65
39
  * @deprecated Removed, no replacement at this time.
66
40
  */
67
41
  export declare const ATTR_DB_USER: "db.user";
@@ -70,8 +44,6 @@ export declare const ATTR_DB_USER: "db.user";
70
44
  *
71
45
  * @example example.com
72
46
  *
73
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
74
- *
75
47
  * @deprecated Replaced by `server.address` on client spans and `client.address` on server spans.
76
48
  */
77
49
  export declare const ATTR_NET_PEER_NAME: "net.peer.name";
@@ -80,33 +52,11 @@ export declare const ATTR_NET_PEER_NAME: "net.peer.name";
80
52
  *
81
53
  * @example 8080
82
54
  *
83
- * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
84
- *
85
55
  * @deprecated Replaced by `server.port` on client spans and `client.port` on server spans.
86
56
  */
87
57
  export declare const ATTR_NET_PEER_PORT: "net.peer.port";
88
- /**
89
- * Enum value "idle" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}.
90
- */
91
- export declare const DB_CLIENT_CONNECTION_STATE_VALUE_IDLE: "idle";
92
- /**
93
- * Enum value "used" for attribute {@link ATTR_DB_CLIENT_CONNECTION_STATE}.
94
- */
95
- export declare const DB_CLIENT_CONNECTION_STATE_VALUE_USED: "used";
96
58
  /**
97
59
  * Enum value "postgresql" for attribute {@link ATTR_DB_SYSTEM}.
98
60
  */
99
61
  export declare const DB_SYSTEM_VALUE_POSTGRESQL: "postgresql";
100
- /**
101
- * The number of connections that are currently in state described by the `state` attribute
102
- *
103
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
104
- */
105
- export declare const METRIC_DB_CLIENT_CONNECTION_COUNT: "db.client.connection.count";
106
- /**
107
- * The number of current pending requests for an open connection
108
- *
109
- * @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
110
- */
111
- export declare const METRIC_DB_CLIENT_CONNECTION_PENDING_REQUESTS: "db.client.connection.pending_requests";
112
62
  //# sourceMappingURL=semconv.d.ts.map
@@ -1,62 +1,8 @@
1
- import { QueryResult, QueryArrayResult } from './pg-types';
2
- import * as api from '@opentelemetry/api';
3
1
  import { InstrumentationConfig } from '@opentelemetry/instrumentation';
4
- export interface PgResponseHookInformation {
5
- data: QueryResult | QueryArrayResult;
6
- }
7
- export interface PgInstrumentationExecutionResponseHook {
8
- (span: api.Span, responseInfo: PgResponseHookInformation): void;
9
- }
10
- export interface PgRequestHookInformation {
11
- query: {
12
- text: string;
13
- name?: string;
14
- values?: unknown[];
15
- };
16
- connection: {
17
- database?: string;
18
- host?: string;
19
- port?: number;
20
- user?: string;
21
- };
22
- }
23
- export interface PgInstrumentationExecutionRequestHook {
24
- (span: api.Span, queryInfo: PgRequestHookInformation): void;
25
- }
26
2
  export interface PgInstrumentationConfig extends InstrumentationConfig {
27
- /**
28
- * If true, an attribute containing the query's parameters will be attached
29
- * the spans generated to represent the query.
30
- */
31
- enhancedDatabaseReporting?: boolean;
32
- /**
33
- * Hook that allows adding custom span attributes or updating the
34
- * span's name based on the data about the query to execute.
35
- *
36
- * @default undefined
37
- */
38
- requestHook?: PgInstrumentationExecutionRequestHook;
39
- /**
40
- * Hook that allows adding custom span attributes based on the data
41
- * returned from "query" Pg actions.
42
- *
43
- * @default undefined
44
- */
45
- responseHook?: PgInstrumentationExecutionResponseHook;
46
- /**
47
- * If true, requires a parent span to create new spans.
48
- *
49
- * @default false
50
- */
51
- requireParentSpan?: boolean;
52
- /**
53
- * If true, queries are modified to also include a comment with
54
- * the tracing context, following the {@link https://github.com/open-telemetry/opentelemetry-sqlcommenter sqlcommenter} format
55
- */
56
- addSqlCommenterCommentToQueries?: boolean;
57
3
  /**
58
4
  * If true, `pg.connect` and `pg-pool.connect` spans will not be created.
59
- * Query spans and pool metrics are still recorded.
5
+ * Query spans are still recorded.
60
6
  *
61
7
  * @default false
62
8
  */
@@ -1,8 +1,6 @@
1
- import { Span, Tracer, UpDownCounter, Attributes } from '@opentelemetry/api';
2
- import { PgClientExtended, PostgresCallback, PgPoolCallback, PgPoolExtended, PgParsedConnectionParams, PgPoolOptionsParams } from './internal-types';
3
- import { PgInstrumentationConfig } from './types';
4
- import { QueryResult, QueryArrayResult } from './pg-types';
5
- import { SemconvStability } from '@opentelemetry/instrumentation';
1
+ import { Span, SpanAttributes } from '@sentry/core';
2
+ import { PgClientExtended, PgParsedConnectionParams, PgPoolCallback, PgPoolOptionsParams, PostgresCallback } from './internal-types';
3
+ export declare const ORIGIN = "auto.db.otel.postgres";
6
4
  /**
7
5
  * Helper function to get a low cardinality span name from whatever info we have
8
6
  * about the query.
@@ -29,27 +27,21 @@ export declare function getQuerySpanName(dbName: string | undefined, queryConfig
29
27
  export declare function parseNormalizedOperationName(queryText: string): string;
30
28
  export declare function parseAndMaskConnectionString(connectionString: string): string;
31
29
  export declare function getConnectionString(params: PgParsedConnectionParams | PgPoolOptionsParams): string;
32
- export declare function getSemanticAttributesFromConnection(params: PgParsedConnectionParams, semconvStability: SemconvStability): Attributes;
33
- export declare function getSemanticAttributesFromPoolConnection(params: PgPoolOptionsParams, semconvStability: SemconvStability): Attributes;
34
- export declare function shouldSkipInstrumentation(instrumentationConfig: PgInstrumentationConfig): boolean;
35
- export declare function handleConfigQuery(this: PgClientExtended, tracer: Tracer, instrumentationConfig: PgInstrumentationConfig, semconvStability: SemconvStability, queryConfig?: {
30
+ export declare function getSemanticAttributesFromConnection(params: PgParsedConnectionParams): SpanAttributes;
31
+ export declare function getSemanticAttributesFromPoolConnection(params: PgPoolOptionsParams): SpanAttributes;
32
+ /**
33
+ * The SDK always requires a parent span (it sets `requireParentSpan: true`), so
34
+ * we only instrument when there is an active span to parent the new span under.
35
+ */
36
+ export declare function shouldSkipInstrumentation(): boolean;
37
+ export declare function handleConfigQuery(this: PgClientExtended, queryConfig?: {
36
38
  text: string;
37
39
  values?: unknown;
38
40
  name?: unknown;
39
41
  }): Span;
40
- export declare function handleExecutionResult(config: PgInstrumentationConfig, span: Span, pgResult: QueryResult | QueryArrayResult | unknown): void;
41
- export declare function patchCallback(instrumentationConfig: PgInstrumentationConfig, span: Span, cb: PostgresCallback, attributes: Attributes, recordDuration: {
42
- (): void;
43
- }): PostgresCallback;
44
- export declare function getPoolName(pool: PgPoolOptionsParams): string;
45
- export interface poolConnectionsCounter {
46
- used: number;
47
- idle: number;
48
- pending: number;
49
- }
50
- export declare function updateCounter(poolName: string, pool: PgPoolExtended, connectionCount: UpDownCounter, connectionPendingRequests: UpDownCounter, latestCounter: poolConnectionsCounter): poolConnectionsCounter;
42
+ export declare function patchCallback(span: Span, cb: PostgresCallback): PostgresCallback;
51
43
  export declare function patchCallbackPGPool(span: Span, cb: PgPoolCallback): PgPoolCallback;
52
- export declare function patchClientConnectCallback(span: Span, cb: Function): Function;
44
+ export declare function patchClientConnectCallback(span: Span, cb: (...args: unknown[]) => void): (...args: unknown[]) => void;
53
45
  /**
54
46
  * Attempt to get a message string from a thrown value, while being quite
55
47
  * defensive, to recognize the fact that, in JS, any kind of value (even
@@ -61,9 +53,4 @@ export type ObjectWithText = {
61
53
  text: string;
62
54
  [k: string]: unknown;
63
55
  };
64
- /**
65
- * Generates a sanitized message for the error.
66
- * Only includes the error type and PostgreSQL error code, omitting any sensitive details.
67
- */
68
- export declare function sanitizedErrorMessage(error: unknown): string;
69
56
  //# sourceMappingURL=utils.d.ts.map
@@ -1,15 +1,10 @@
1
- import { InstrumentationBase, InstrumentationNodeModuleDefinition, SemconvStability } from '@opentelemetry/instrumentation';
1
+ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
2
  import { IORedisInstrumentationConfig } from './types';
3
3
  export declare class IORedisInstrumentation extends InstrumentationBase<IORedisInstrumentationConfig> {
4
- _netSemconvStability: SemconvStability;
5
- _dbSemconvStability: SemconvStability;
6
4
  constructor(config?: IORedisInstrumentationConfig);
7
- _setSemconvStabilityFromEnv(): void;
8
- setConfig(config?: IORedisInstrumentationConfig): void;
9
- init(): InstrumentationNodeModuleDefinition[];
5
+ protected init(): InstrumentationNodeModuleDefinition[];
10
6
  private _patchSendCommand;
11
7
  private _patchConnection;
12
- private _traceSendCommand;
13
- private _traceConnection;
8
+ private _callResponseHook;
14
9
  }
15
10
  //# sourceMappingURL=ioredis-instrumentation.d.ts.map
@@ -1,12 +1,5 @@
1
- import { Span } from '@opentelemetry/api';
2
- import { InstrumentationConfig, SemconvStability } from '@opentelemetry/instrumentation';
3
- /**
4
- * Function that can be used to serialize db.statement tag
5
- * @param cmdName - The name of the command (eg. set, get, mset)
6
- * @param cmdArgs - Array of arguments passed to the command
7
- * @returns serialized string that will be used as the db.statement attribute.
8
- */
9
- export type DbStatementSerializer = (cmdName: string, cmdArgs: Array<string | Buffer>) => string;
1
+ import { Span } from '@sentry/core';
2
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
10
3
  /**
11
4
  * Function that can be used to add custom attributes to span on response from redis server
12
5
  */
@@ -14,31 +7,10 @@ export interface RedisResponseCustomAttributeFunction {
14
7
  (span: Span, cmdName: string, cmdArgs: Array<string | Buffer>, response: unknown): void;
15
8
  }
16
9
  export interface RedisInstrumentationConfig extends InstrumentationConfig {
17
- /** Custom serializer function for the db.statement tag */
18
- dbStatementSerializer?: DbStatementSerializer;
19
10
  /** Function for adding custom attributes on db response */
20
11
  responseHook?: RedisResponseCustomAttributeFunction;
21
- /** Require parent to create redis span, default when unset is false */
22
- requireParentSpan?: boolean;
23
- /**
24
- * Controls which semantic-convention attributes are emitted on spans.
25
- * Default: 'OLD'.
26
- */
27
- semconvStability?: SemconvStability;
28
12
  }
29
13
  export type CommandArgs = Array<string | Buffer | number | any[]>;
30
- /**
31
- * Function that can be used to serialize db.statement tag for ioredis
32
- */
33
- export type IORedisDbStatementSerializer = (cmdName: string, cmdArgs: CommandArgs) => string;
34
- export interface IORedisRequestHookInformation {
35
- moduleVersion?: string;
36
- cmdName: string;
37
- cmdArgs: CommandArgs;
38
- }
39
- export interface RedisRequestCustomAttributeFunction {
40
- (span: Span, requestInfo: IORedisRequestHookInformation): void;
41
- }
42
14
  /**
43
15
  * Function that can be used to add custom attributes to span on response from redis server (ioredis)
44
16
  */
@@ -46,13 +18,7 @@ export interface IORedisResponseCustomAttributeFunction {
46
18
  (span: Span, cmdName: string, cmdArgs: CommandArgs, response: unknown): void;
47
19
  }
48
20
  export interface IORedisInstrumentationConfig extends InstrumentationConfig {
49
- /** Custom serializer function for the db.statement tag */
50
- dbStatementSerializer?: IORedisDbStatementSerializer;
51
- /** Function for adding custom attributes on db request */
52
- requestHook?: RedisRequestCustomAttributeFunction;
53
21
  /** Function for adding custom attributes on db response */
54
22
  responseHook?: IORedisResponseCustomAttributeFunction;
55
- /** Require parent to create ioredis span, default when unset is true */
56
- requireParentSpan?: boolean;
57
23
  }
58
24
  //# sourceMappingURL=types.d.ts.map
@@ -1,21 +1,10 @@
1
+ import { InstrumentationConfig } from '@opentelemetry/instrumentation';
1
2
  import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
2
- import { TediousInstrumentationConfig } from './types';
3
- export declare const INJECTED_CTX: unique symbol;
4
- export declare class TediousInstrumentation extends InstrumentationBase<TediousInstrumentationConfig> {
3
+ export declare class TediousInstrumentation extends InstrumentationBase<InstrumentationConfig> {
5
4
  static readonly COMPONENT = "tedious";
6
- private _netSemconvStability;
7
- private _dbSemconvStability;
8
- constructor(config?: TediousInstrumentationConfig);
9
- private _setSemconvStabilityFromEnv;
5
+ constructor(config?: InstrumentationConfig);
10
6
  protected init(): InstrumentationNodeModuleDefinition[];
11
7
  private _patchConnect;
12
- private _buildTraceparent;
13
- /**
14
- * Fire a one-off `SET CONTEXT_INFO @opentelemetry_traceparent` on the same
15
- * connection. Marks the request with INJECTED_CTX so our patch skips it.
16
- */
17
- private _injectContextInfo;
18
- private _shouldInjectFor;
19
8
  private _patchQuery;
20
9
  private _patchCallbackQuery;
21
10
  }