@sentry/node 10.58.0 → 10.60.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.
- package/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/fs/index.js +3 -84
- package/build/cjs/integrations/fs/index.js.map +1 -1
- package/build/cjs/integrations/fs/vendored/constants.js.map +1 -1
- package/build/cjs/integrations/fs/vendored/instrumentation.js +145 -175
- package/build/cjs/integrations/fs/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/fs/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/node-fetch/index.js +7 -8
- package/build/cjs/integrations/node-fetch/index.js.map +1 -1
- package/build/cjs/integrations/node-fetch/vendored/semconv.js +28 -0
- package/build/cjs/integrations/node-fetch/vendored/semconv.js.map +1 -0
- package/build/cjs/integrations/node-fetch/vendored/undici.js +91 -127
- package/build/cjs/integrations/node-fetch/vendored/undici.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/index.js +0 -21
- package/build/cjs/integrations/tracing/connect/index.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js +0 -6
- package/build/cjs/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js +33 -42
- package/build/cjs/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/vendored/internal-types.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/vendored/utils.js +3 -2
- package/build/cjs/integrations/tracing/connect/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +1 -1
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool/index.js +1 -15
- package/build/cjs/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +30 -18
- package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/index.js +1 -51
- package/build/cjs/integrations/tracing/graphql/index.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/enum.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -2
- package/build/cjs/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js +67 -57
- package/build/cjs/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/internal-types.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/symbols.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/vendored/utils.js +28 -62
- package/build/cjs/integrations/tracing/graphql/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/index.js +0 -17
- package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js +28 -45
- package/build/cjs/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/vendored/internal-types.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/vendored/utils.js +4 -9
- package/build/cjs/integrations/tracing/hapi/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +1 -0
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka/index.js +1 -11
- package/build/cjs/integrations/tracing/kafka/index.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js +45 -247
- package/build/cjs/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka/vendored/semconv.js +4 -8
- package/build/cjs/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka/vendored/utils.js +113 -0
- package/build/cjs/integrations/tracing/kafka/vendored/utils.js.map +1 -0
- package/build/cjs/integrations/tracing/knex/index.js +2 -17
- package/build/cjs/integrations/tracing/knex/index.js.map +1 -1
- package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js +65 -93
- package/build/cjs/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/knex/vendored/semconv.js +2 -0
- package/build/cjs/integrations/tracing/knex/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/knex/vendored/utils.js +2 -15
- package/build/cjs/integrations/tracing/knex/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/index.js +1 -24
- package/build/cjs/integrations/tracing/koa/index.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js +29 -41
- package/build/cjs/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/internal-types.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/types.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/index.js +1 -42
- package/build/cjs/integrations/tracing/mongo/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js +12 -562
- package/build/cjs/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/internal-types.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/patches.js +151 -0
- package/build/cjs/integrations/tracing/mongo/vendored/patches.js.map +1 -0
- package/build/cjs/integrations/tracing/mongo/vendored/semconv.js +0 -4
- package/build/cjs/integrations/tracing/mongo/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js +153 -0
- package/build/cjs/integrations/tracing/mongo/vendored/utils.js.map +1 -0
- package/build/cjs/integrations/tracing/mongoose/index.js +1 -8
- package/build/cjs/integrations/tracing/mongoose/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js +56 -203
- package/build/cjs/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js +0 -4
- package/build/cjs/integrations/tracing/mongoose/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/vendored/utils.js +19 -49
- package/build/cjs/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/index.js +1 -8
- package/build/cjs/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js +21 -59
- package/build/cjs/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/vendored/utils.js +14 -33
- package/build/cjs/integrations/tracing/mysql2/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/index.js +0 -4
- package/build/cjs/integrations/tracing/postgres/index.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -1
- package/build/cjs/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js +51 -261
- package/build/cjs/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/vendored/semconv.js +0 -12
- package/build/cjs/integrations/tracing/postgres/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/vendored/utils.js +43 -167
- package/build/cjs/integrations/tracing/postgres/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/constants.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/global.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js +89 -160
- package/build/cjs/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/vendored/redis-common.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js +92 -231
- package/build/cjs/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/vendored/semconv.js +0 -2
- package/build/cjs/integrations/tracing/redis/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious/index.js +1 -25
- package/build/cjs/integrations/tracing/tedious/index.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js +25 -76
- package/build/cjs/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious/vendored/utils.js.map +1 -1
- package/build/cjs/sdk/diagnosticsChannelInjection.js +21 -0
- package/build/cjs/sdk/diagnosticsChannelInjection.js.map +1 -0
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +19 -0
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -0
- package/build/cjs/sdk/index.js +17 -1
- package/build/cjs/sdk/index.js.map +1 -1
- package/build/cjs/sdk/initOtel.js +2 -1
- package/build/cjs/sdk/initOtel.js.map +1 -1
- package/build/esm/index.js +2 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/fs/index.js +4 -85
- package/build/esm/integrations/fs/index.js.map +1 -1
- package/build/esm/integrations/fs/vendored/constants.js.map +1 -1
- package/build/esm/integrations/fs/vendored/instrumentation.js +147 -177
- package/build/esm/integrations/fs/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/fs/vendored/utils.js.map +1 -1
- package/build/esm/integrations/node-fetch/index.js +8 -9
- package/build/esm/integrations/node-fetch/index.js.map +1 -1
- package/build/esm/integrations/node-fetch/vendored/semconv.js +15 -0
- package/build/esm/integrations/node-fetch/vendored/semconv.js.map +1 -0
- package/build/esm/integrations/node-fetch/vendored/undici.js +80 -116
- package/build/esm/integrations/node-fetch/vendored/undici.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/connect/index.js +1 -22
- package/build/esm/integrations/tracing/connect/index.js.map +1 -1
- package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js +1 -6
- package/build/esm/integrations/tracing/connect/vendored/enums/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/connect/vendored/instrumentation.js +36 -44
- package/build/esm/integrations/tracing/connect/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/connect/vendored/internal-types.js.map +1 -1
- package/build/esm/integrations/tracing/connect/vendored/utils.js +3 -2
- package/build/esm/integrations/tracing/connect/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +1 -1
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool/index.js +3 -17
- package/build/esm/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +31 -19
- package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/index.js +3 -53
- package/build/esm/integrations/tracing/graphql/index.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/enum.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js +0 -2
- package/build/esm/integrations/tracing/graphql/vendored/enums/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js +69 -59
- package/build/esm/integrations/tracing/graphql/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/internal-types.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/symbols.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/vendored/utils.js +29 -62
- package/build/esm/integrations/tracing/graphql/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/index.js +1 -18
- package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/vendored/enums/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js +30 -47
- package/build/esm/integrations/tracing/hapi/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/vendored/internal-types.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/vendored/utils.js +5 -10
- package/build/esm/integrations/tracing/hapi/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +1 -0
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/kafka/index.js +2 -12
- package/build/esm/integrations/tracing/kafka/index.js.map +1 -1
- package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js +47 -249
- package/build/esm/integrations/tracing/kafka/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/kafka/vendored/semconv.js +3 -5
- package/build/esm/integrations/tracing/kafka/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/kafka/vendored/utils.js +107 -0
- package/build/esm/integrations/tracing/kafka/vendored/utils.js.map +1 -0
- package/build/esm/integrations/tracing/knex/index.js +4 -19
- package/build/esm/integrations/tracing/knex/index.js.map +1 -1
- package/build/esm/integrations/tracing/knex/vendored/instrumentation.js +66 -94
- package/build/esm/integrations/tracing/knex/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/knex/vendored/semconv.js +2 -1
- package/build/esm/integrations/tracing/knex/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/knex/vendored/utils.js +3 -15
- package/build/esm/integrations/tracing/knex/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/koa/index.js +3 -26
- package/build/esm/integrations/tracing/koa/index.js.map +1 -1
- package/build/esm/integrations/tracing/koa/vendored/enums/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/koa/vendored/instrumentation.js +31 -43
- package/build/esm/integrations/tracing/koa/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/koa/vendored/internal-types.js.map +1 -1
- package/build/esm/integrations/tracing/koa/vendored/types.js.map +1 -1
- package/build/esm/integrations/tracing/koa/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/index.js +3 -43
- package/build/esm/integrations/tracing/mongo/index.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js +13 -563
- package/build/esm/integrations/tracing/mongo/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/internal-types.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/patches.js +143 -0
- package/build/esm/integrations/tracing/mongo/vendored/patches.js.map +1 -0
- package/build/esm/integrations/tracing/mongo/vendored/semconv.js +1 -3
- package/build/esm/integrations/tracing/mongo/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/vendored/utils.js +146 -0
- package/build/esm/integrations/tracing/mongo/vendored/utils.js.map +1 -0
- package/build/esm/integrations/tracing/mongoose/index.js +2 -9
- package/build/esm/integrations/tracing/mongoose/index.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js +59 -206
- package/build/esm/integrations/tracing/mongoose/vendored/mongoose.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/vendored/semconv.js +1 -3
- package/build/esm/integrations/tracing/mongoose/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/vendored/utils.js +20 -50
- package/build/esm/integrations/tracing/mongoose/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/index.js +2 -9
- package/build/esm/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js +26 -64
- package/build/esm/integrations/tracing/mysql2/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/vendored/utils.js +15 -34
- package/build/esm/integrations/tracing/mysql2/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/index.js +1 -5
- package/build/esm/integrations/tracing/postgres/index.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js +0 -1
- package/build/esm/integrations/tracing/postgres/vendored/enums/AttributeNames.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/vendored/enums/SpanNames.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js +52 -262
- package/build/esm/integrations/tracing/postgres/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/vendored/semconv.js +1 -7
- package/build/esm/integrations/tracing/postgres/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/vendored/utils.js +44 -165
- package/build/esm/integrations/tracing/postgres/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/constants.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/global.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/redis/index.js.map +1 -1
- package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js +92 -163
- package/build/esm/integrations/tracing/redis/vendored/ioredis-instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/redis/vendored/redis-common.js.map +1 -1
- package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js +94 -233
- package/build/esm/integrations/tracing/redis/vendored/redis-instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/redis/vendored/semconv.js +1 -2
- package/build/esm/integrations/tracing/redis/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/tedious/index.js +3 -27
- package/build/esm/integrations/tracing/tedious/index.js.map +1 -1
- package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js +29 -79
- package/build/esm/integrations/tracing/tedious/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/tedious/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/tedious/vendored/utils.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/diagnosticsChannelInjection.js +17 -0
- package/build/esm/sdk/diagnosticsChannelInjection.js.map +1 -0
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +17 -0
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -0
- package/build/esm/sdk/index.js +17 -1
- package/build/esm/sdk/index.js.map +1 -1
- package/build/esm/sdk/initOtel.js +2 -1
- package/build/esm/sdk/initOtel.js.map +1 -1
- package/build/import-hook.mjs +6 -0
- package/build/types/index.d.ts +2 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/fs/index.d.ts.map +1 -1
- package/build/types/integrations/fs/vendored/constants.d.ts.map +1 -1
- package/build/types/integrations/fs/vendored/instrumentation.d.ts +6 -10
- package/build/types/integrations/fs/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/fs/vendored/types.d.ts +10 -15
- package/build/types/integrations/fs/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/fs/vendored/utils.d.ts +2 -2
- package/build/types/integrations/fs/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/index.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/vendored/semconv.d.ts +13 -0
- package/build/types/integrations/node-fetch/vendored/semconv.d.ts.map +1 -0
- package/build/types/integrations/node-fetch/vendored/types.d.ts +2 -4
- package/build/types/integrations/node-fetch/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/vendored/undici.d.ts +6 -7
- package/build/types/integrations/node-fetch/vendored/undici.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/amqplib.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/semconv-obsolete.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -4
- package/build/types/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts +5 -5
- package/build/types/integrations/tracing/connect/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts +2 -2
- package/build/types/integrations/tracing/connect/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/vendored/utils.d.ts +1 -1
- package/build/types/integrations/tracing/connect/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/enum.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +1 -3
- package/build/types/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts +7 -2
- package/build/types/integrations/tracing/graphql/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts +4 -4
- package/build/types/integrations/tracing/graphql/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/symbols.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/types.d.ts +5 -43
- package/build/types/integrations/tracing/graphql/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/vendored/utils.d.ts +8 -11
- package/build/types/integrations/tracing/graphql/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/vendored/enums/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts +2 -2
- package/build/types/integrations/tracing/hapi/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/vendored/utils.d.ts +3 -4
- package/build/types/integrations/tracing/hapi/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts +3 -13
- package/build/types/integrations/tracing/kafka/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -32
- package/build/types/integrations/tracing/kafka/vendored/kafkajs-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts +9 -28
- package/build/types/integrations/tracing/kafka/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/kafka/vendored/utils.d.ts +29 -0
- package/build/types/integrations/tracing/kafka/vendored/utils.d.ts.map +1 -0
- package/build/types/integrations/tracing/knex/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts +8 -10
- package/build/types/integrations/tracing/knex/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex/vendored/semconv.d.ts +1 -0
- package/build/types/integrations/tracing/knex/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex/vendored/utils.d.ts +0 -6
- package/build/types/integrations/tracing/knex/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/enums/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts +1 -1
- package/build/types/integrations/tracing/koa/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts +4 -4
- package/build/types/integrations/tracing/koa/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/types.d.ts +2 -39
- package/build/types/integrations/tracing/koa/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/vendored/utils.d.ts +3 -3
- package/build/types/integrations/tracing/koa/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/index.d.ts +0 -4
- package/build/types/integrations/tracing/mongo/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts +4 -72
- package/build/types/integrations/tracing/mongo/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -59
- package/build/types/integrations/tracing/mongo/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/patches.d.ts +15 -0
- package/build/types/integrations/tracing/mongo/vendored/patches.d.ts.map +1 -0
- package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts +0 -54
- package/build/types/integrations/tracing/mongo/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongo/vendored/utils.d.ts +24 -0
- package/build/types/integrations/tracing/mongo/vendored/utils.d.ts.map +1 -0
- package/build/types/integrations/tracing/mongoose/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +3 -0
- package/build/types/integrations/tracing/mongoose/vendored/mongoose-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts +3 -8
- package/build/types/integrations/tracing/mongoose/vendored/mongoose.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -14
- package/build/types/integrations/tracing/mongoose/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts +4 -6
- package/build/types/integrations/tracing/mongoose/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts +3 -6
- package/build/types/integrations/tracing/mysql2/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts +3 -5
- package/build/types/integrations/tracing/mysql2/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -1
- package/build/types/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/enums/SpanNames.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts +1 -9
- package/build/types/integrations/tracing/postgres/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -2
- package/build/types/integrations/tracing/postgres/vendored/internal-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/pg-pool-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/pg-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts +0 -50
- package/build/types/integrations/tracing/postgres/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/types.d.ts +2 -56
- package/build/types/integrations/tracing/postgres/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/vendored/utils.d.ts +13 -26
- package/build/types/integrations/tracing/postgres/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/constants.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/global.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +3 -8
- package/build/types/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/vendored/redis-common.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/vendored/redis-instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/vendored/types.d.ts +2 -36
- package/build/types/integrations/tracing/redis/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts +3 -14
- package/build/types/integrations/tracing/tedious/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious/vendored/utils.d.ts.map +1 -1
- package/build/types/sdk/diagnosticsChannelInjection.d.ts +41 -0
- package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +1 -0
- package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +34 -0
- package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +1 -0
- package/build/types/sdk/index.d.ts.map +1 -1
- package/build/types/sdk/initOtel.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +2 -1
- package/build/types-ts3.8/integrations/fs/vendored/instrumentation.d.ts +6 -10
- package/build/types-ts3.8/integrations/fs/vendored/types.d.ts +10 -15
- package/build/types-ts3.8/integrations/fs/vendored/utils.d.ts +2 -2
- package/build/types-ts3.8/integrations/node-fetch/vendored/semconv.d.ts +13 -0
- package/build/types-ts3.8/integrations/node-fetch/vendored/types.d.ts +2 -4
- package/build/types-ts3.8/integrations/node-fetch/vendored/undici.d.ts +6 -7
- package/build/types-ts3.8/integrations/tracing/connect/vendored/enums/AttributeNames.d.ts +0 -4
- package/build/types-ts3.8/integrations/tracing/connect/vendored/instrumentation.d.ts +4 -4
- package/build/types-ts3.8/integrations/tracing/connect/vendored/internal-types.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/enums/AttributeNames.d.ts +1 -3
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/instrumentation.d.ts +6 -1
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/internal-types.d.ts +3 -3
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/types.d.ts +4 -42
- package/build/types-ts3.8/integrations/tracing/graphql/vendored/utils.d.ts +6 -9
- package/build/types-ts3.8/integrations/tracing/hapi/vendored/instrumentation.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing/hapi/vendored/utils.d.ts +1 -2
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/instrumentation.d.ts +3 -13
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/kafkajs-types.d.ts +0 -32
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/semconv.d.ts +9 -28
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/utils.d.ts +29 -0
- package/build/types-ts3.8/integrations/tracing/knex/vendored/instrumentation.d.ts +8 -10
- package/build/types-ts3.8/integrations/tracing/knex/vendored/semconv.d.ts +1 -0
- package/build/types-ts3.8/integrations/tracing/knex/vendored/utils.d.ts +0 -6
- package/build/types-ts3.8/integrations/tracing/koa/vendored/internal-types.d.ts +4 -4
- package/build/types-ts3.8/integrations/tracing/koa/vendored/types.d.ts +1 -38
- package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +0 -4
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/instrumentation.d.ts +4 -72
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/internal-types.d.ts +0 -59
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/patches.d.ts +15 -0
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/semconv.d.ts +0 -54
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/utils.d.ts +24 -0
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose-types.d.ts +3 -0
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/mongoose.d.ts +3 -8
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/semconv.d.ts +0 -14
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/utils.d.ts +4 -6
- package/build/types-ts3.8/integrations/tracing/mysql2/vendored/instrumentation.d.ts +3 -6
- package/build/types-ts3.8/integrations/tracing/mysql2/vendored/utils.d.ts +3 -5
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/enums/AttributeNames.d.ts +0 -1
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/instrumentation.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/internal-types.d.ts +0 -2
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/semconv.d.ts +0 -50
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/types.d.ts +1 -55
- package/build/types-ts3.8/integrations/tracing/postgres/vendored/utils.d.ts +13 -26
- package/build/types-ts3.8/integrations/tracing/redis/vendored/ioredis-instrumentation.d.ts +3 -8
- package/build/types-ts3.8/integrations/tracing/redis/vendored/types.d.ts +2 -36
- package/build/types-ts3.8/integrations/tracing/tedious/vendored/instrumentation.d.ts +3 -14
- package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +41 -0
- package/build/types-ts3.8/sdk/experimentalUseDiagnosticsChannelInjection.d.ts +34 -0
- package/package.json +20 -7
- package/build/cjs/integrations/tracing/kafka/vendored/internal-types.js +0 -6
- package/build/cjs/integrations/tracing/kafka/vendored/internal-types.js.map +0 -1
- package/build/cjs/integrations/tracing/kafka/vendored/propagator.js +0 -22
- package/build/cjs/integrations/tracing/kafka/vendored/propagator.js.map +0 -1
- package/build/cjs/integrations/tracing/knex/vendored/constants.js +0 -16
- package/build/cjs/integrations/tracing/knex/vendored/constants.js.map +0 -1
- package/build/cjs/integrations/tracing/postgres/vendored/internal-types.js +0 -6
- package/build/cjs/integrations/tracing/postgres/vendored/internal-types.js.map +0 -1
- package/build/cjs/integrations/tracing/utils/sql-common.js +0 -43
- package/build/cjs/integrations/tracing/utils/sql-common.js.map +0 -1
- package/build/esm/integrations/tracing/kafka/vendored/internal-types.js +0 -4
- package/build/esm/integrations/tracing/kafka/vendored/internal-types.js.map +0 -1
- package/build/esm/integrations/tracing/kafka/vendored/propagator.js +0 -20
- package/build/esm/integrations/tracing/kafka/vendored/propagator.js.map +0 -1
- package/build/esm/integrations/tracing/knex/vendored/constants.js +0 -13
- package/build/esm/integrations/tracing/knex/vendored/constants.js.map +0 -1
- package/build/esm/integrations/tracing/postgres/vendored/internal-types.js +0 -4
- package/build/esm/integrations/tracing/postgres/vendored/internal-types.js.map +0 -1
- package/build/esm/integrations/tracing/utils/sql-common.js +0 -41
- package/build/esm/integrations/tracing/utils/sql-common.js.map +0 -1
- package/build/types/integrations/tracing/kafka/vendored/internal-types.d.ts +0 -9
- package/build/types/integrations/tracing/kafka/vendored/internal-types.d.ts.map +0 -1
- package/build/types/integrations/tracing/kafka/vendored/propagator.d.ts +0 -3
- package/build/types/integrations/tracing/kafka/vendored/propagator.d.ts.map +0 -1
- package/build/types/integrations/tracing/kafka/vendored/types.d.ts +0 -26
- package/build/types/integrations/tracing/kafka/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/knex/vendored/constants.d.ts +0 -3
- package/build/types/integrations/tracing/knex/vendored/constants.d.ts.map +0 -1
- package/build/types/integrations/tracing/knex/vendored/types.d.ts +0 -8
- package/build/types/integrations/tracing/knex/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/mongo/vendored/types.d.ts +0 -51
- package/build/types/integrations/tracing/mongo/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/mongoose/vendored/types.d.ts +0 -36
- package/build/types/integrations/tracing/mongoose/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/mysql2/vendored/types.d.ts +0 -18
- package/build/types/integrations/tracing/mysql2/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/tedious/vendored/types.d.ts +0 -10
- package/build/types/integrations/tracing/tedious/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/tracing/utils/sql-common.d.ts +0 -3
- package/build/types/integrations/tracing/utils/sql-common.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/internal-types.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/propagator.d.ts +0 -3
- package/build/types-ts3.8/integrations/tracing/kafka/vendored/types.d.ts +0 -26
- package/build/types-ts3.8/integrations/tracing/knex/vendored/constants.d.ts +0 -3
- package/build/types-ts3.8/integrations/tracing/knex/vendored/types.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing/mongo/vendored/types.d.ts +0 -51
- package/build/types-ts3.8/integrations/tracing/mongoose/vendored/types.d.ts +0 -36
- package/build/types-ts3.8/integrations/tracing/mysql2/vendored/types.d.ts +0 -18
- package/build/types-ts3.8/integrations/tracing/tedious/vendored/types.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing/utils/sql-common.d.ts +0 -3
|
@@ -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 {
|
|
1
|
+
import { Span, SpanAttributes } from '@sentry/core';
|
|
2
2
|
import { Collection } from './mongoose-types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
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
|
-
|
|
3
|
-
|
|
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 {
|
|
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
|
|
22
|
-
export declare function getQueryText(query: string | Query | QueryOptions, format?: FormatFunction, values?: any[]
|
|
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,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
|
|
5
|
+
* Query spans are still recorded.
|
|
60
6
|
*
|
|
61
7
|
* @default false
|
|
62
8
|
*/
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Span,
|
|
2
|
-
import { PgClientExtended,
|
|
3
|
-
|
|
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
|
|
33
|
-
export declare function getSemanticAttributesFromPoolConnection(params: PgPoolOptionsParams
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
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:
|
|
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
|
|
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
|
-
|
|
8
|
-
setConfig(config?: IORedisInstrumentationConfig): void;
|
|
9
|
-
init(): InstrumentationNodeModuleDefinition[];
|
|
5
|
+
protected init(): InstrumentationNodeModuleDefinition[];
|
|
10
6
|
private _patchSendCommand;
|
|
11
7
|
private _patchConnection;
|
|
12
|
-
private
|
|
13
|
-
private _traceConnection;
|
|
8
|
+
private _callResponseHook;
|
|
14
9
|
}
|
|
15
10
|
//# sourceMappingURL=ioredis-instrumentation.d.ts.map
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { Span } from '@
|
|
2
|
-
import { InstrumentationConfig
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Integration } from '@sentry/core';
|
|
2
|
+
/**
|
|
3
|
+
* The orchestrion-driven pieces, resolved lazily by the opt-in loader.
|
|
4
|
+
*
|
|
5
|
+
* IMPORTANT: this module (and everything `init()` imports) must NOT reference
|
|
6
|
+
* the orchestrion code (`@sentry/server-utils/orchestrion/*`). The only
|
|
7
|
+
* reference lives inside `experimentalUseDiagnosticsChannelInjection()` (a
|
|
8
|
+
* separate module, reachable solely through that public export). That's the
|
|
9
|
+
* tree-shaking boundary: if an app never calls the opt-in function, then a
|
|
10
|
+
* bundler drops the entire orchestrion subtree, including its transitive
|
|
11
|
+
* dependencies, while an app that does call it gets it bundled
|
|
12
|
+
* normally.
|
|
13
|
+
*/
|
|
14
|
+
export interface DiagnosticsChannelInjection {
|
|
15
|
+
/** Channel-based integrations to register, replacing their OTel equivalents. */
|
|
16
|
+
integrations: Integration[];
|
|
17
|
+
/** OTel integration names these replace; filtered out of the default set. */
|
|
18
|
+
replacedOtelIntegrationNames: string[];
|
|
19
|
+
/** Installs the module hooks that inject the diagnostics channels. */
|
|
20
|
+
register: () => void;
|
|
21
|
+
/** Warns (DEBUG only) about missing or doubled channel injection. */
|
|
22
|
+
detect: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Set by `experimentalUseDiagnosticsChannelInjection()`. The loader
|
|
26
|
+
* is the only thing that pulls in the orchestrion modules; see
|
|
27
|
+
* {@link DiagnosticsChannelInjection) re tree-shaking concerns this addresses.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function setDiagnosticsChannelInjectionLoader(load: () => DiagnosticsChannelInjection): void;
|
|
32
|
+
/** Whether `experimentalUseDiagnosticsChannelInjection()` was called. */
|
|
33
|
+
export declare function isDiagnosticsChannelInjectionEnabled(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve and memoize the orchestrion pieces. This is what actually loads
|
|
36
|
+
* the orchestrion modules. Returns `undefined` if the app never opted in.
|
|
37
|
+
* Callers gate this on span recording, so the modules load only when both
|
|
38
|
+
* opted in and tracing is enabled.
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveDiagnosticsChannelInjection(): DiagnosticsChannelInjection | undefined;
|
|
41
|
+
//# sourceMappingURL=diagnosticsChannelInjection.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EXPERIMENTAL: opt into diagnostics-channel-based auto-instrumentation.
|
|
3
|
+
*
|
|
4
|
+
* Call this BEFORE `Sentry.init()`:
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import * as Sentry from '@sentry/node';
|
|
8
|
+
*
|
|
9
|
+
* Sentry.experimentalUseDiagnosticsChannelInjection();
|
|
10
|
+
* Sentry.init({
|
|
11
|
+
* dsn: '__DSN__',
|
|
12
|
+
* // other settings...
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* When this has been called AND span recording is enabled, `Sentry.init()`
|
|
17
|
+
* uses the diagnostics-channel-injection-based integrations instead of the
|
|
18
|
+
* OpenTelemetry ones, and installs the module hooks that inject the channels
|
|
19
|
+
* (so libraries imported after `init()` publish the channel events).
|
|
20
|
+
*
|
|
21
|
+
* This is a standalone function rather than an `init()` option so that a
|
|
22
|
+
* bundler drops all of it (and its transitive deps) when this function isn't
|
|
23
|
+
* called. `init()` reads the loader registered below.
|
|
24
|
+
*
|
|
25
|
+
* An app that DOES call it gets the orchestrion code bundled as intended.
|
|
26
|
+
*
|
|
27
|
+
* In an unbundled (server-side runtime) app this eagerly loads only the small
|
|
28
|
+
* subscriber/channel modules; the heavy code-transform dependencies stay lazy
|
|
29
|
+
* inside `register()` and load only when injection actually runs.
|
|
30
|
+
*
|
|
31
|
+
* @experimental May change or be removed in any release.
|
|
32
|
+
*/
|
|
33
|
+
export declare function experimentalUseDiagnosticsChannelInjection(): void;
|
|
34
|
+
//# sourceMappingURL=experimentalUseDiagnosticsChannelInjection.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.60.0",
|
|
4
4
|
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
|
|
@@ -66,14 +66,13 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@opentelemetry/api": "^1.9.1",
|
|
69
|
-
"@opentelemetry/core": "^2.6.1",
|
|
70
69
|
"@opentelemetry/instrumentation": "^0.214.0",
|
|
71
70
|
"@opentelemetry/sdk-trace-base": "^2.6.1",
|
|
72
71
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
73
|
-
"@sentry/core": "10.
|
|
74
|
-
"@sentry/node-core": "10.
|
|
75
|
-
"@sentry/opentelemetry": "10.
|
|
76
|
-
"@sentry/server-utils": "10.
|
|
72
|
+
"@sentry/core": "10.60.0",
|
|
73
|
+
"@sentry/node-core": "10.60.0",
|
|
74
|
+
"@sentry/opentelemetry": "10.60.0",
|
|
75
|
+
"@sentry/server-utils": "10.60.0",
|
|
77
76
|
"import-in-the-middle": "^3.0.0"
|
|
78
77
|
},
|
|
79
78
|
"devDependencies": {
|
|
@@ -103,5 +102,19 @@
|
|
|
103
102
|
"volta": {
|
|
104
103
|
"extends": "../../package.json"
|
|
105
104
|
},
|
|
106
|
-
"sideEffects": false
|
|
105
|
+
"sideEffects": false,
|
|
106
|
+
"nx": {
|
|
107
|
+
"targets": {
|
|
108
|
+
"build:transpile": {
|
|
109
|
+
"outputs": [
|
|
110
|
+
"{projectRoot}/build/esm",
|
|
111
|
+
"{projectRoot}/build/cjs",
|
|
112
|
+
"{projectRoot}/build/npm/esm",
|
|
113
|
+
"{projectRoot}/build/npm/cjs",
|
|
114
|
+
"{projectRoot}/build/import-hook.mjs",
|
|
115
|
+
"{projectRoot}/build/loader-hook.mjs"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
107
120
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
const EVENT_LISTENERS_SET = /* @__PURE__ */ Symbol("opentelemetry.instrumentation.kafkajs.eventListenersSet");
|
|
4
|
-
|
|
5
|
-
exports.EVENT_LISTENERS_SET = EVENT_LISTENERS_SET;
|
|
6
|
-
//# sourceMappingURL=internal-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-types.js","sources":["../../../../../../src/integrations/tracing/kafka/vendored/internal-types.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-kafkajs\n * - Upstream version: @opentelemetry/instrumentation-kafkajs@0.27.0\n * - Some types vendored from kafkajs with simplifications\n */\n/* eslint-disable */\n\nimport type { Consumer, Producer } from './kafkajs-types';\n\nexport const EVENT_LISTENERS_SET = Symbol('opentelemetry.instrumentation.kafkajs.eventListenersSet');\n\nexport interface ConsumerExtended extends Consumer {\n [EVENT_LISTENERS_SET]?: boolean; // flag to identify if the event listeners for instrumentation have been set\n}\n\nexport interface ProducerExtended extends Producer {\n [EVENT_LISTENERS_SET]?: boolean; // flag to identify if the event listeners for instrumentation have been set\n}\n"],"names":[],"mappings":";;AAwBO,MAAM,mBAAA,0BAA6B,yDAAyD;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
const bufferTextMapGetter = {
|
|
4
|
-
get(carrier, key) {
|
|
5
|
-
if (!carrier) {
|
|
6
|
-
return void 0;
|
|
7
|
-
}
|
|
8
|
-
const keys = Object.keys(carrier);
|
|
9
|
-
for (const carrierKey of keys) {
|
|
10
|
-
if (carrierKey === key || carrierKey.toLowerCase() === key) {
|
|
11
|
-
return carrier[carrierKey]?.toString();
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return void 0;
|
|
15
|
-
},
|
|
16
|
-
keys(carrier) {
|
|
17
|
-
return carrier ? Object.keys(carrier) : [];
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.bufferTextMapGetter = bufferTextMapGetter;
|
|
22
|
-
//# sourceMappingURL=propagator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"propagator.js","sources":["../../../../../../src/integrations/tracing/kafka/vendored/propagator.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors, Aspecto\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-kafkajs\n * - Upstream version: @opentelemetry/instrumentation-kafkajs@0.27.0\n */\n/* eslint-disable */\n\nimport type { TextMapGetter } from '@opentelemetry/api';\n\n/*\nsame as open telemetry's `defaultTextMapGetter`,\nbut also handle case where header is buffer,\nadding toString() to make sure string is returned\n*/\nexport const bufferTextMapGetter: TextMapGetter = {\n get(carrier, key) {\n if (!carrier) {\n return undefined;\n }\n\n const keys = Object.keys(carrier);\n\n for (const carrierKey of keys) {\n if (carrierKey === key || carrierKey.toLowerCase() === key) {\n return carrier[carrierKey]?.toString();\n }\n }\n\n return undefined;\n },\n\n keys(carrier) {\n return carrier ? Object.keys(carrier) : [];\n },\n};\n"],"names":[],"mappings":";;AA4BO,MAAM,mBAAA,GAAqC;AAAA,EAChD,GAAA,CAAI,SAAS,GAAA,EAAK;AAChB,IAAA,IAAI,CAAC,OAAA,EAAS;AACZ,MAAA,OAAO,MAAA;AAAA,IACT;AAEA,IAAA,MAAM,IAAA,GAAO,MAAA,CAAO,IAAA,CAAK,OAAO,CAAA;AAEhC,IAAA,KAAA,MAAW,cAAc,IAAA,EAAM;AAC7B,MAAA,IAAI,UAAA,KAAe,GAAA,IAAO,UAAA,CAAW,WAAA,OAAkB,GAAA,EAAK;AAC1D,QAAA,OAAO,OAAA,CAAQ,UAAU,CAAA,EAAG,QAAA,EAAS;AAAA,MACvC;AAAA,IACF;AAEA,IAAA,OAAO,MAAA;AAAA,EACT,CAAA;AAAA,EAEA,KAAK,OAAA,EAAS;AACZ,IAAA,OAAO,OAAA,GAAU,MAAA,CAAO,IAAA,CAAK,OAAO,IAAI,EAAC;AAAA,EAC3C;AACF;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
const MODULE_NAME = "knex";
|
|
4
|
-
const SUPPORTED_VERSIONS = [
|
|
5
|
-
// use "lib/execution" for runner.js, "lib" for client.js as basepath, latest tested 0.95.6
|
|
6
|
-
">=0.22.0 <4",
|
|
7
|
-
// use "lib" as basepath
|
|
8
|
-
">=0.10.0 <0.18.0",
|
|
9
|
-
">=0.19.0 <0.22.0",
|
|
10
|
-
// use "src" as basepath
|
|
11
|
-
">=0.18.0 <0.19.0"
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
exports.MODULE_NAME = MODULE_NAME;
|
|
15
|
-
exports.SUPPORTED_VERSIONS = SUPPORTED_VERSIONS;
|
|
16
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../../../src/integrations/tracing/knex/vendored/constants.ts"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * NOTICE from the Sentry authors:\n * - Vendored from: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/15ef7506553f631ea4181391e0c5725a56f0d082/packages/instrumentation-knex\n * - Upstream version: @opentelemetry/instrumentation-knex@0.62.0\n */\n/* eslint-disable */\n\nexport const MODULE_NAME = 'knex';\nexport const SUPPORTED_VERSIONS = [\n // use \"lib/execution\" for runner.js, \"lib\" for client.js as basepath, latest tested 0.95.6\n '>=0.22.0 <4',\n // use \"lib\" as basepath\n '>=0.10.0 <0.18.0',\n '>=0.19.0 <0.22.0',\n // use \"src\" as basepath\n '>=0.18.0 <0.19.0',\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,WAAA,GAAc;AACpB,MAAM,kBAAA,GAAqB;AAAA;AAAA,EAEhC,aAAA;AAAA;AAAA,EAEA,kBAAA;AAAA,EACA,kBAAA;AAAA;AAAA,EAEA;AACF;;;;;"}
|