@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
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Attributes } from '@opentelemetry/api';
|
|
2
2
|
import * as Hapi from './hapi-types';
|
|
3
3
|
import { HapiPluginObject, PatchableExtMethod, ServerExtDirectInput } from './internal-types';
|
|
4
|
-
import { SemconvStability } from '@opentelemetry/instrumentation';
|
|
5
4
|
export declare function getPluginName<T>(plugin: Hapi.Plugin<T>): string;
|
|
6
5
|
export declare const isLifecycleExtType: (variableToCheck: unknown) => variableToCheck is Hapi.ServerRequestExtType;
|
|
7
6
|
export declare const isLifecycleExtEventObj: (variableToCheck: unknown) => variableToCheck is Hapi.ServerExtEventsRequestObject;
|
|
8
7
|
export declare const isDirectExtInput: (variableToCheck: unknown) => variableToCheck is ServerExtDirectInput;
|
|
9
8
|
export declare const isPatchableExtMethod: (variableToCheck: PatchableExtMethod | PatchableExtMethod[]) => variableToCheck is PatchableExtMethod;
|
|
10
|
-
export declare const getRouteMetadata: (route: Hapi.ServerRoute,
|
|
9
|
+
export declare const getRouteMetadata: (route: Hapi.ServerRoute, pluginName?: string) => {
|
|
11
10
|
attributes: Attributes;
|
|
12
11
|
name: string;
|
|
13
12
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
1
2
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
private _clientDuration;
|
|
5
|
-
private _sentMessages;
|
|
6
|
-
private _consumedMessages;
|
|
7
|
-
private _processDuration;
|
|
8
|
-
constructor(config?: KafkaJsInstrumentationConfig);
|
|
9
|
-
_updateMetricInstruments(): void;
|
|
3
|
+
export declare class KafkaJsInstrumentation extends InstrumentationBase<InstrumentationConfig> {
|
|
4
|
+
constructor(config?: InstrumentationConfig);
|
|
10
5
|
protected init(): InstrumentationNodeModuleDefinition;
|
|
11
6
|
private _getConsumerPatch;
|
|
12
|
-
private _setKafkaEventListeners;
|
|
13
|
-
private _recordClientDurationMetric;
|
|
14
7
|
private _getProducerPatch;
|
|
15
8
|
private _getConsumerRunPatch;
|
|
16
9
|
private _getConsumerEachMessagePatch;
|
|
@@ -18,8 +11,5 @@ export declare class KafkaJsInstrumentation extends InstrumentationBase<KafkaJsI
|
|
|
18
11
|
private _getProducerTransactionPatch;
|
|
19
12
|
private _getSendBatchPatch;
|
|
20
13
|
private _getSendPatch;
|
|
21
|
-
private _endSpansOnPromise;
|
|
22
|
-
private _startConsumerSpan;
|
|
23
|
-
private _startProducerSpan;
|
|
24
14
|
}
|
|
25
15
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
export interface InstrumentationEvent<T> {
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
timestamp: number;
|
|
5
|
-
payload: T;
|
|
6
|
-
}
|
|
7
|
-
export type RequestEvent = InstrumentationEvent<{
|
|
8
|
-
apiKey: number;
|
|
9
|
-
apiName: string;
|
|
10
|
-
apiVersion: number;
|
|
11
|
-
broker: string;
|
|
12
|
-
clientId: string;
|
|
13
|
-
correlationId: number;
|
|
14
|
-
createdAt: number;
|
|
15
|
-
duration: number;
|
|
16
|
-
pendingDuration: number;
|
|
17
|
-
sentAt: number;
|
|
18
|
-
size: number;
|
|
19
|
-
}>;
|
|
20
|
-
export type RemoveInstrumentationEventListener<_T> = () => void;
|
|
21
|
-
export type ConsumerEvents = {
|
|
22
|
-
REQUEST: 'consumer.network.request';
|
|
23
|
-
[key: string]: string;
|
|
24
|
-
};
|
|
25
|
-
export type ProducerEvents = {
|
|
26
|
-
REQUEST: 'producer.network.request';
|
|
27
|
-
[key: string]: string;
|
|
28
|
-
};
|
|
29
1
|
type Sender = {
|
|
30
2
|
send(record: any): Promise<any>;
|
|
31
3
|
sendBatch(batch: any): Promise<any>;
|
|
@@ -34,8 +6,6 @@ export type Producer = Sender & {
|
|
|
34
6
|
connect(): Promise<void>;
|
|
35
7
|
disconnect(): Promise<void>;
|
|
36
8
|
isIdempotent(): boolean;
|
|
37
|
-
readonly events: ProducerEvents;
|
|
38
|
-
on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
|
|
39
9
|
transaction(): Promise<Transaction>;
|
|
40
10
|
[key: string]: any;
|
|
41
11
|
};
|
|
@@ -50,8 +20,6 @@ export type Consumer = {
|
|
|
50
20
|
disconnect(): Promise<void>;
|
|
51
21
|
subscribe(subscription: any): Promise<void>;
|
|
52
22
|
run(config?: any): Promise<void>;
|
|
53
|
-
readonly events: ConsumerEvents;
|
|
54
|
-
on(eventName: string, listener: (...args: any[]) => void): RemoveInstrumentationEventListener<any>;
|
|
55
23
|
[key: string]: any;
|
|
56
24
|
};
|
|
57
25
|
export declare class Kafka {
|
|
@@ -96,36 +96,17 @@ export declare const MESSAGING_OPERATION_TYPE_VALUE_SEND: "send";
|
|
|
96
96
|
*/
|
|
97
97
|
export declare const MESSAGING_SYSTEM_VALUE_KAFKA: "kafka";
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Describes a class of error the operation ended with.
|
|
100
100
|
*
|
|
101
|
-
* @
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* @
|
|
105
|
-
*/
|
|
106
|
-
export declare const METRIC_MESSAGING_CLIENT_CONSUMED_MESSAGES: "messaging.client.consumed.messages";
|
|
107
|
-
/**
|
|
108
|
-
* Duration of messaging operation initiated by a producer or consumer client.
|
|
109
|
-
*
|
|
110
|
-
* @note This metric **SHOULD NOT** be used to report processing duration - processing duration is reported in `messaging.process.duration` metric.
|
|
111
|
-
*
|
|
112
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
101
|
+
* @example timeout
|
|
102
|
+
* @example java.net.UnknownHostException
|
|
103
|
+
* @example server_certificate_invalid
|
|
104
|
+
* @example 500
|
|
113
105
|
*/
|
|
114
|
-
export declare const
|
|
106
|
+
export declare const ATTR_ERROR_TYPE: "error.type";
|
|
115
107
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* @note This metric **MUST NOT** count messages that were created but haven't yet been sent.
|
|
119
|
-
*
|
|
120
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
121
|
-
*/
|
|
122
|
-
export declare const METRIC_MESSAGING_CLIENT_SENT_MESSAGES: "messaging.client.sent.messages";
|
|
123
|
-
/**
|
|
124
|
-
* Duration of processing operation.
|
|
125
|
-
*
|
|
126
|
-
* @note This metric **MUST** be reported for operations with `messaging.operation.type` that matches `process`.
|
|
127
|
-
*
|
|
128
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
108
|
+
* Enum value "_OTHER" for attribute {@link ATTR_ERROR_TYPE}. A fallback error value to be used when
|
|
109
|
+
* the instrumentation doesn't define a custom value.
|
|
129
110
|
*/
|
|
130
|
-
export declare const
|
|
111
|
+
export declare const ERROR_TYPE_VALUE_OTHER: "_OTHER";
|
|
131
112
|
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Span, SpanAttributes, SpanLink } from '@sentry/core';
|
|
2
|
+
import { KafkaMessage, Message } from './kafkajs-types';
|
|
3
|
+
export interface ConsumerSpanOptions {
|
|
4
|
+
topic: string;
|
|
5
|
+
message: KafkaMessage | undefined;
|
|
6
|
+
operationType: string;
|
|
7
|
+
attributes: SpanAttributes;
|
|
8
|
+
links?: SpanLink[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Reads a header value off a kafkajs message as a string. kafkajs delivers headers as `Buffer`s (or
|
|
12
|
+
* arrays of them), so we normalize to a string before handing them to Sentry's trace helpers.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getHeaderAsString(headers: KafkaMessage['headers'], key: string): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Builds a span link to the producer span carried in the message headers, mirroring the upstream
|
|
17
|
+
* behavior of linking each batch-processed message to its originating producer span.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getLinksFromHeaders(headers: KafkaMessage['headers']): SpanLink[] | undefined;
|
|
20
|
+
/** Starts an inactive consumer (process/receive) span carrying the kafkajs messaging attributes. */
|
|
21
|
+
export declare function startConsumerSpan({ topic, message, operationType, links, attributes }: ConsumerSpanOptions): Span;
|
|
22
|
+
/** Starts an inactive producer span and propagates its trace into the message headers. */
|
|
23
|
+
export declare function startProducerSpan(topic: string, message: Message): Span;
|
|
24
|
+
/**
|
|
25
|
+
* Resolves once `sendPromise` settles, ending all `spans` and, on failure, marking them with the
|
|
26
|
+
* error status and `error.type` before re-throwing.
|
|
27
|
+
*/
|
|
28
|
+
export declare function endSpansOnPromise<T>(spans: Span[], sendPromise: Promise<T>): Promise<T>;
|
|
29
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
1
2
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
private _semconvStability;
|
|
5
|
-
constructor(config?: KnexInstrumentationConfig);
|
|
6
|
-
setConfig(config?: KnexInstrumentationConfig): void;
|
|
3
|
+
export declare class KnexInstrumentation extends InstrumentationBase<InstrumentationConfig> {
|
|
4
|
+
constructor(config?: InstrumentationConfig);
|
|
7
5
|
init(): InstrumentationNodeModuleDefinition;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
6
|
+
private _getRunnerNodeModuleFileInstrumentation;
|
|
7
|
+
private _getClientNodeModuleFileInstrumentation;
|
|
8
|
+
private _createQueryWrapper;
|
|
9
|
+
private _storeContext;
|
|
10
|
+
private _ensureWrapped;
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -35,4 +35,5 @@ export declare const ATTR_NET_PEER_PORT: "net.peer.port";
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const ATTR_NET_TRANSPORT: "net.transport";
|
|
37
37
|
export declare const DB_SYSTEM_NAME_VALUE_SQLITE: "sqlite";
|
|
38
|
+
export declare const DB_SYSTEM_NAME_VALUE_POSTGRESQL: "postgresql";
|
|
38
39
|
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { Exception } from '@opentelemetry/api';
|
|
2
|
-
type KnexError = Error & {
|
|
3
|
-
code?: string;
|
|
4
|
-
};
|
|
5
1
|
export declare const getFormatter: (runner: any) => any;
|
|
6
|
-
export declare function otelExceptionFromKnexError(err: KnexError, message: string): Exception;
|
|
7
2
|
export declare const mapSystem: (knexSystem: string) => string;
|
|
8
3
|
export declare const getName: (db: string, operation?: string, table?: string) => string;
|
|
9
4
|
export declare const limitLength: (str: string, maxLength: number) => string;
|
|
@@ -11,5 +6,4 @@ export declare const extractDatabaseFromConnectionString: (connectionString?: st
|
|
|
11
6
|
export declare const extractHostFromConnectionString: (connectionString?: string) => string | undefined;
|
|
12
7
|
export declare const extractPortFromConnectionString: (connectionString?: string) => number | undefined;
|
|
13
8
|
export declare const extractTableName: (builder: any) => string;
|
|
14
|
-
export {};
|
|
15
9
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface DefaultState {
|
|
2
2
|
}
|
|
3
|
-
export type Next = () => Promise<
|
|
3
|
+
export type Next = () => Promise<unknown>;
|
|
4
4
|
type ParameterizedContext<_StateT = DefaultState, ContextT = {}, _ResponseBodyT = unknown> = {
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: unknown;
|
|
6
6
|
} & ContextT;
|
|
7
|
-
type Middleware<StateT = DefaultState, ContextT = {}, ResponseBodyT =
|
|
7
|
+
type Middleware<StateT = DefaultState, ContextT = {}, ResponseBodyT = unknown> = (context: ParameterizedContext<StateT, ContextT, ResponseBodyT>, next: Next) => unknown;
|
|
8
8
|
interface RouterParamContext<StateT = DefaultState, ContextT = {}> {
|
|
9
9
|
params: Record<string, string>;
|
|
10
10
|
router: Router<StateT, ContextT>;
|
|
@@ -13,7 +13,7 @@ interface RouterParamContext<StateT = DefaultState, ContextT = {}> {
|
|
|
13
13
|
}
|
|
14
14
|
interface Layer {
|
|
15
15
|
path: string | RegExp;
|
|
16
|
-
stack:
|
|
16
|
+
stack: KoaMiddleware[];
|
|
17
17
|
}
|
|
18
18
|
export interface Router<_StateT = DefaultState, _ContextT = {}> {
|
|
19
19
|
stack: Layer[];
|
|
@@ -1,50 +1,13 @@
|
|
|
1
|
-
import { Span } from '@opentelemetry/api';
|
|
2
1
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
3
2
|
export declare enum KoaLayerType {
|
|
4
3
|
ROUTER = "router",
|
|
5
4
|
MIDDLEWARE = "middleware"
|
|
6
5
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Information about the current Koa middleware layer
|
|
9
|
-
* The middleware layer type is any by default.
|
|
10
|
-
* One can install koa types packages `@types/koa` and `@types/koa__router`
|
|
11
|
-
* with compatible versions to the koa version used in the project
|
|
12
|
-
* to get more specific types for the middleware layer property.
|
|
13
|
-
*
|
|
14
|
-
* Example use in a custom attribute function:
|
|
15
|
-
* ```ts
|
|
16
|
-
* import type { Middleware, ParameterizedContext, DefaultState } from 'koa';
|
|
17
|
-
* import type { RouterParamContext } from '@koa/router';
|
|
18
|
-
*
|
|
19
|
-
* type KoaContext = ParameterizedContext<DefaultState, RouterParamContext>;
|
|
20
|
-
* type KoaMiddleware = Middleware<DefaultState, KoaContext>;
|
|
21
|
-
*
|
|
22
|
-
* const koaConfig: KoaInstrumentationConfig<KoaContext, KoaMiddleware> = {
|
|
23
|
-
* requestHook: (span: Span, info: KoaRequestInfo<KoaContext, KoaMiddleware>) => {
|
|
24
|
-
* // custom typescript code that can access the typed into.middlewareLayer and info.context
|
|
25
|
-
* }
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export type KoaRequestInfo<KoaContextType = any, KoaMiddlewareType = any> = {
|
|
29
|
-
context: KoaContextType;
|
|
30
|
-
middlewareLayer: KoaMiddlewareType;
|
|
31
|
-
layerType: KoaLayerType;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Function that can be used to add custom attributes to the current span
|
|
35
|
-
* @param span - The Express middleware layer span.
|
|
36
|
-
* @param context - The current KoaContext.
|
|
37
|
-
*/
|
|
38
|
-
export interface KoaRequestCustomAttributeFunction<KoaContextType = any, KoaMiddlewareType = any> {
|
|
39
|
-
(span: Span, info: KoaRequestInfo<KoaContextType, KoaMiddlewareType>): void;
|
|
40
|
-
}
|
|
41
6
|
/**
|
|
42
7
|
* Options available for the Koa Instrumentation (see [documentation](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-Instrumentation-koa#koa-Instrumentation-options))
|
|
43
8
|
*/
|
|
44
|
-
export interface KoaInstrumentationConfig
|
|
9
|
+
export interface KoaInstrumentationConfig extends InstrumentationConfig {
|
|
45
10
|
/** Ignore specific layers based on their type */
|
|
46
11
|
ignoreLayersType?: KoaLayerType[];
|
|
47
|
-
/** Function for adding custom attributes to each middleware layer span */
|
|
48
|
-
requestHook?: KoaRequestCustomAttributeFunction<KoaContextType, KoaMiddlewareType>;
|
|
49
12
|
}
|
|
50
13
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,10 +2,6 @@ import { MongoDBInstrumentation } from './vendored/instrumentation';
|
|
|
2
2
|
export declare const instrumentMongo: ((options?: unknown) => MongoDBInstrumentation) & {
|
|
3
3
|
id: string;
|
|
4
4
|
};
|
|
5
|
-
/**
|
|
6
|
-
* Replaces values in document with '?', hiding PII and helping grouping.
|
|
7
|
-
*/
|
|
8
|
-
export declare function _defaultDbStatementSerializer(commandObj: Record<string, unknown>): string;
|
|
9
5
|
/**
|
|
10
6
|
* Adds Sentry tracing instrumentation for the [mongodb](https://www.npmjs.com/package/mongodb) library.
|
|
11
7
|
*
|
|
@@ -1,79 +1,11 @@
|
|
|
1
1
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
-
import {
|
|
3
|
-
/** mongodb instrumentation plugin
|
|
4
|
-
export declare class MongoDBInstrumentation extends InstrumentationBase<
|
|
5
|
-
|
|
6
|
-
private _dbSemconvStability;
|
|
7
|
-
private _connectionsUsage;
|
|
8
|
-
private _poolName;
|
|
9
|
-
constructor(config?: MongoDBInstrumentationConfig);
|
|
10
|
-
private _setSemconvStabilityFromEnv;
|
|
11
|
-
setConfig(config?: MongoDBInstrumentationConfig): void;
|
|
12
|
-
_updateMetricInstruments(): void;
|
|
13
|
-
/**
|
|
14
|
-
* Convenience function for updating the `db.client.connections.usage` metric.
|
|
15
|
-
* The name "count" comes from the eventual replacement for this metric per
|
|
16
|
-
* https://opentelemetry.io/docs/specs/semconv/non-normative/db-migration/#database-client-connection-count
|
|
17
|
-
*/
|
|
18
|
-
private _connCountAdd;
|
|
2
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
3
|
+
/** mongodb instrumentation plugin */
|
|
4
|
+
export declare class MongoDBInstrumentation extends InstrumentationBase<InstrumentationConfig> {
|
|
5
|
+
constructor(config?: InstrumentationConfig);
|
|
19
6
|
init(): InstrumentationNodeModuleDefinition[];
|
|
20
7
|
private _getV3ConnectionPatches;
|
|
21
|
-
private _getV4SessionsPatches;
|
|
22
|
-
private _getV4AcquireCommand;
|
|
23
|
-
private _getV4ReleaseCommand;
|
|
24
8
|
private _getV4ConnectionPoolPatches;
|
|
25
|
-
private _getV4ConnectPatches;
|
|
26
|
-
private _getV4ConnectionPoolCheckOut;
|
|
27
|
-
private _getV4ConnectCommand;
|
|
28
9
|
private _getV4ConnectionPatches;
|
|
29
|
-
/** Creates spans for common operations */
|
|
30
|
-
private _getV3PatchOperation;
|
|
31
|
-
/** Creates spans for command operation */
|
|
32
|
-
private _getV3PatchCommand;
|
|
33
|
-
/** Creates spans for command operation */
|
|
34
|
-
private _getV4PatchCommandCallback;
|
|
35
|
-
private _getV4PatchCommandPromise;
|
|
36
|
-
/** Creates spans for find operation */
|
|
37
|
-
private _getV3PatchFind;
|
|
38
|
-
/** Creates spans for find operation */
|
|
39
|
-
private _getV3PatchCursor;
|
|
40
|
-
/**
|
|
41
|
-
* Get the mongodb command type from the object.
|
|
42
|
-
* @param command Internal mongodb command object
|
|
43
|
-
*/
|
|
44
|
-
private static _getCommandType;
|
|
45
|
-
/**
|
|
46
|
-
* Determine a span's attributes by fetching related metadata from the context
|
|
47
|
-
* @param connectionCtx mongodb internal connection context
|
|
48
|
-
* @param ns mongodb namespace
|
|
49
|
-
* @param command mongodb internal representation of a command
|
|
50
|
-
*/
|
|
51
|
-
private _getV4SpanAttributes;
|
|
52
|
-
/**
|
|
53
|
-
* Determine a span's attributes by fetching related metadata from the context
|
|
54
|
-
* @param ns mongodb namespace
|
|
55
|
-
* @param topology mongodb internal representation of the network topology
|
|
56
|
-
* @param command mongodb internal representation of a command
|
|
57
|
-
*/
|
|
58
|
-
private _getV3SpanAttributes;
|
|
59
|
-
private _getSpanAttributes;
|
|
60
|
-
private _spanNameFromAttrs;
|
|
61
|
-
private _getDefaultDbStatementReplacer;
|
|
62
|
-
private _defaultDbStatementSerializer;
|
|
63
|
-
/**
|
|
64
|
-
* Triggers the response hook in case it is defined.
|
|
65
|
-
* @param span The span to add the results to.
|
|
66
|
-
* @param result The command result
|
|
67
|
-
*/
|
|
68
|
-
private _handleExecutionResult;
|
|
69
|
-
/**
|
|
70
|
-
* Ends a created span.
|
|
71
|
-
* @param span The created span to end.
|
|
72
|
-
* @param resultHandler A callback function.
|
|
73
|
-
* @param connectionId: The connection ID of the Command response.
|
|
74
|
-
*/
|
|
75
|
-
private _patchEnd;
|
|
76
|
-
private setPoolName;
|
|
77
|
-
private _checkSkipInstrumentation;
|
|
78
10
|
}
|
|
79
11
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
-
import { Span } from '@opentelemetry/api';
|
|
3
|
-
export interface MongoDBInstrumentationExecutionResponseHook {
|
|
4
|
-
(span: Span, responseInfo: MongoResponseHookInformation): void;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Function that can be used to serialize db.statement tag
|
|
8
|
-
* @param cmd - MongoDB command object
|
|
9
|
-
*
|
|
10
|
-
* @returns serialized string that will be used as the db.statement attribute.
|
|
11
|
-
*/
|
|
12
|
-
export type DbStatementSerializer = (cmd: Record<string, unknown>) => string;
|
|
13
|
-
export interface MongoDBInstrumentationConfig extends InstrumentationConfig {
|
|
14
|
-
/**
|
|
15
|
-
* If true, additional information about query parameters and
|
|
16
|
-
* results will be attached (as `attributes`) to spans representing
|
|
17
|
-
* database operations.
|
|
18
|
-
*/
|
|
19
|
-
enhancedDatabaseReporting?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Hook that allows adding custom span attributes based on the data
|
|
22
|
-
* returned from MongoDB actions.
|
|
23
|
-
*
|
|
24
|
-
* @default undefined
|
|
25
|
-
*/
|
|
26
|
-
responseHook?: MongoDBInstrumentationExecutionResponseHook;
|
|
27
|
-
/**
|
|
28
|
-
* Custom serializer function for the db.statement tag
|
|
29
|
-
*/
|
|
30
|
-
dbStatementSerializer?: DbStatementSerializer;
|
|
31
|
-
}
|
|
32
|
-
export type Func<T> = (...args: unknown[]) => T;
|
|
33
1
|
export type MongoInternalCommand = {
|
|
34
2
|
findandmodify: boolean;
|
|
35
3
|
createIndexes: boolean;
|
|
@@ -42,23 +10,9 @@ export type MongoInternalCommand = {
|
|
|
42
10
|
q?: Record<string, unknown>;
|
|
43
11
|
u?: Record<string, unknown>;
|
|
44
12
|
};
|
|
45
|
-
export type ServerSession = {
|
|
46
|
-
id: any;
|
|
47
|
-
lastUse: number;
|
|
48
|
-
txnNumber: number;
|
|
49
|
-
isDirty: boolean;
|
|
50
|
-
};
|
|
51
13
|
export type CursorState = {
|
|
52
14
|
cmd: MongoInternalCommand;
|
|
53
15
|
} & Record<string, unknown>;
|
|
54
|
-
export interface MongoResponseHookInformation {
|
|
55
|
-
data: CommandResult;
|
|
56
|
-
}
|
|
57
|
-
export type CommandResult = {
|
|
58
|
-
result?: unknown;
|
|
59
|
-
connection?: unknown;
|
|
60
|
-
message?: unknown;
|
|
61
|
-
};
|
|
62
16
|
export type WireProtocolInternal = {
|
|
63
17
|
insert: (server: MongoInternalTopology, ns: string, ops: unknown[], options: unknown | Function, callback?: Function) => unknown;
|
|
64
18
|
update: (server: MongoInternalTopology, ns: string, ops: unknown[], options: unknown | Function, callback?: Function) => unknown;
|
|
@@ -105,17 +59,4 @@ export type V4Connection = {
|
|
|
105
59
|
export type V4ConnectionPool = {
|
|
106
60
|
checkOut: (callback: (error: any, connection: any) => void) => void;
|
|
107
61
|
};
|
|
108
|
-
export type V4Connect = {
|
|
109
|
-
connect: Function;
|
|
110
|
-
connectPromise: (options: any) => Promise<any>;
|
|
111
|
-
connectCallback: (options: any, callback: any) => void;
|
|
112
|
-
};
|
|
113
|
-
export type V4Session = {
|
|
114
|
-
acquire: () => ServerSession;
|
|
115
|
-
release: (session: ServerSession) => void;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#replacer
|
|
119
|
-
*/
|
|
120
|
-
export type Replacer = (key: string, value: unknown) => unknown;
|
|
121
62
|
//# sourceMappingURL=internal-types.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CursorState, MongodbNamespace, MongoInternalCommand, MongoInternalTopology, V4Connection, V4ConnectionPool, WireProtocolInternal } from './internal-types';
|
|
2
|
+
/** Creates spans for v3 common operations (insert/update/remove). */
|
|
3
|
+
export declare function getV3PatchOperation(operationName: 'insert' | 'update' | 'remove'): (original: WireProtocolInternal[typeof operationName]) => (this: unknown, server: MongoInternalTopology, ns: string, ops: unknown[], options: unknown | Function, callback?: Function) => any;
|
|
4
|
+
/** Creates spans for the v3 command operation. */
|
|
5
|
+
export declare function getV3PatchCommand(): (original: WireProtocolInternal["command"]) => (this: unknown, server: MongoInternalTopology, ns: string, cmd: MongoInternalCommand, options: unknown | Function, callback?: Function) => any;
|
|
6
|
+
/** Creates spans for the v4 (<6.4) callback-style command operation. */
|
|
7
|
+
export declare function getV4PatchCommandCallback(): (original: V4Connection["commandCallback"]) => (this: any, ns: MongodbNamespace, cmd: any, options: undefined | unknown, callback: any) => any;
|
|
8
|
+
/** Creates spans for the v4 (>=6.4) promise-style command operation. */
|
|
9
|
+
export declare function getV4PatchCommandPromise(): (original: V4Connection["commandPromise"]) => (this: any, ...args: Parameters<V4Connection["commandPromise"]>) => any;
|
|
10
|
+
/** Creates spans for the v3 find operation. */
|
|
11
|
+
export declare function getV3PatchFind(): (original: WireProtocolInternal["query"]) => (this: unknown, server: MongoInternalTopology, ns: string, cmd: MongoInternalCommand, cursorState: CursorState, options: unknown | Function, callback?: Function) => any;
|
|
12
|
+
/** Creates spans for the v3 getMore (cursor) operation. */
|
|
13
|
+
export declare function getV3PatchCursor(): (original: WireProtocolInternal["getMore"]) => (this: unknown, server: MongoInternalTopology, ns: string, cursorState: CursorState, batchSize: number, options: unknown | Function, callback?: Function) => any;
|
|
14
|
+
export declare function getV4ConnectionPoolCheckOut(): (original: V4ConnectionPool["checkOut"]) => (this: unknown, callback: (error: any, connection: any) => void) => any;
|
|
15
|
+
//# sourceMappingURL=patches.d.ts.map
|
|
@@ -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
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
6
|
-
|
|
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
|