@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ioredis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/ioredis-instrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ioredis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/ioredis-instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AAkBrH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AA6C5D,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,4BAA4B,CAAC;gBACxE,MAAM,GAAE,4BAAiC;IAI5D,SAAS,CAAC,IAAI,IAAI,mCAAmC,EAAE;IA2BvD,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,gBAAgB;IA2CxB,OAAO,CAAC,iBAAiB;CAW1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-common.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis-common.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-common.ts"],"names":[],"mappings":"AAuCA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,SAAS,MAAM,EACf,SAAS,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,KAC/C,MAWF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis-instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/redis-instrumentation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAkD,MAAM,gCAAgC,CAAC;AAsBrH,OAAO,KAAK,EAAE,0BAA0B,EAAwC,MAAM,SAAS,CAAC;AAydhG,qBAAa,oBAAqB,SAAQ,mBAAmB,CAAC,0BAA0B,CAAC;IACvF,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,WAAW,CAAS;gBAEhB,MAAM,GAAE,0BAA+B;IAO1C,SAAS,CAAC,MAAM,GAAE,0BAA+B,GAAG,IAAI;IASjE,IAAI;IAEK,oBAAoB;IAIpB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IASvD,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAQzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/semconv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/semconv.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAChE,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAClD,eAAO,MAAM,qBAAqB,UAAU,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import type { Span } from '@
|
|
2
|
-
import type { 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 type { Span } from '@sentry/core';
|
|
2
|
+
import type { 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/redis/vendored/types.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAI5E;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;CACzF;AAED,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE,2DAA2D;IAC3D,YAAY,CAAC,EAAE,oCAAoC,CAAC;CACrD;AAID,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9E;AAED,MAAM,WAAW,4BAA6B,SAAQ,qBAAqB;IACzE,2DAA2D;IAC3D,YAAY,CAAC,EAAE,sCAAsC,CAAC;CACvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/tedious/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/tracing/tedious/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAOpE,eAAO,MAAM,iBAAiB;;CAAiF,CAAC;AAWhH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,0CAAyC,CAAC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
+
import type { 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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/instrumentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/instrumentation.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,mCAAmC,EAAa,MAAM,gCAAgC,CAAC;AA8CrH,qBAAa,sBAAuB,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,SAAS,aAAa;gBAE1B,MAAM,GAAE,qBAA0B;IAI9C,SAAS,CAAC,IAAI;IAkCd,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,WAAW;IAyFnB,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/semconv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"semconv.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/semconv.ts"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAG,SAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAG,cAAuB,CAAC;AAEzD;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAG,cAAuB,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAG,WAAoB,CAAC;AAEnD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAG,SAAkB,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,EAAG,eAAwB,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,EAAG,eAAwB,CAAC;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAG,OAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/tedious/vendored/utils.ts"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,EACjB,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,CAgBR;AAED,eAAO,MAAM,IAAI,GAAI,IAAI,QAAQ,MAEvB,GAAG,MAAM,OAAO,EAAE,QAK3B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { 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 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosticsChannelInjection.d.ts","sourceRoot":"","sources":["../../../src/sdk/diagnosticsChannelInjection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,6EAA6E;IAC7E,4BAA4B,EAAE,MAAM,EAAE,CAAC;IACvC,sEAAsE;IACtE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAKD;;;;;;GAMG;AACH,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,MAAM,2BAA2B,GAAG,IAAI,CAElG;AAED,yEAAyE;AACzE,wBAAgB,oCAAoC,IAAI,OAAO,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,IAAI,2BAA2B,GAAG,SAAS,CAK5F"}
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimentalUseDiagnosticsChannelInjection.d.ts","sourceRoot":"","sources":["../../../src/sdk/experimentalUseDiagnosticsChannelInjection.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,0CAA0C,IAAI,IAAI,CASjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AASpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAO5C;;GAEG;AACH,wBAAgB,wCAAwC,IAAI,WAAW,EAAE,CAOxE;AAED,qDAAqD;AACrD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,WAAW,EAAE,CA2BtE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAElF;AAkDD;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,WAAW,GAAG,SAAc,GAAG,UAAU,GAAG,SAAS,CAE5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,uBAAuB,EAK7B,MAAM,uBAAuB,CAAC;AAO/B,UAAU,8BAA8B;IACtC,8DAA8D;IAC9D,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,8BAAmC,GAAG,IAAI,CAQxG;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAiB3E;AAgBD,+BAA+B;AAC/B,wBAAgB,SAAS,CACvB,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,8BAAmC,GAC3C,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"initOtel.d.ts","sourceRoot":"","sources":["../../../src/sdk/initOtel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,uBAAuB,EAK7B,MAAM,uBAAuB,CAAC;AAO/B,UAAU,8BAA8B;IACtC,8DAA8D;IAC9D,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,8BAAmC,GAAG,IAAI,CAQxG;AAED,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAiB3E;AAgBD,+BAA+B;AAC/B,wBAAgB,SAAS,CACvB,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,8BAAmC,GAC3C,CAAC,mBAAmB,EAAE,uBAAuB,CAAC,CAuBhD;AAED,+BAA+B;AAC/B,wBAAgB,0BAA0B,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAiBtG"}
|
|
@@ -32,11 +32,12 @@ export { langGraphIntegration } from './integrations/tracing/langgraph';
|
|
|
32
32
|
export { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, growthbookIntegration, } from './integrations/featureFlagShims';
|
|
33
33
|
export { firebaseIntegration } from './integrations/tracing/firebase';
|
|
34
34
|
export { init, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations, } from './sdk';
|
|
35
|
+
export { experimentalUseDiagnosticsChannelInjection } from './sdk/experimentalUseDiagnosticsChannelInjection';
|
|
35
36
|
export { initOpenTelemetry, preloadOpenTelemetry } from './sdk/initOtel';
|
|
36
37
|
export { getAutoPerformanceIntegrations } from './integrations/tracing';
|
|
37
38
|
export { NodeOptions } from './types';
|
|
38
39
|
export { setOpenTelemetryContextAsyncContextStrategy as setNodeAsyncContextStrategy, } from '@sentry/opentelemetry';
|
|
39
|
-
export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, winterCGHeadersToDict, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, wrapMcpServerWithSentry, featureFlagsIntegration, spanStreamingIntegration, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentStateGraphCompile, } from '@sentry/core';
|
|
40
|
+
export { addBreadcrumb, isInitialized, isEnabled, getGlobalScope, lastEventId, close, createTransport, flush, SDK_VERSION, getSpanStatusFromHttpCode, setHttpStatus, captureCheckIn, withMonitor, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, addEventProcessor, setContext, setExtra, setExtras, setTag, setTags, setUser, setConversationId, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, setCurrentClient, Scope, setMeasurement, getSpanDescendants, parameterize, getClient, getCurrentScope, getIsolationScope, getTraceData, getTraceMetaTags, httpHeadersToSpanAttributes, winterCGHeadersToDict, continueTrace, withScope, withIsolationScope, captureException, captureEvent, captureMessage, captureFeedback, captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, startSession, captureSession, endSession, addIntegration, startSpan, startSpanManual, startInactiveSpan, startNewTrace, bindScopeToEmitter, suppressTracing, getActiveSpan, withActiveSpan, getRootSpan, spanToJSON, spanToTraceHeader, spanToBaggageHeader, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, zodErrorsIntegration, profiler, consoleLoggingIntegration, createConsolaReporter, wrapMcpServerWithSentry, featureFlagsIntegration, spanStreamingIntegration, createLangChainCallbackHandler, instrumentLangChainEmbeddings, instrumentLangGraph, instrumentStateGraphCompile, } from '@sentry/core';
|
|
40
41
|
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, RequestEventData, SdkInfo, Event, EventHint, ErrorEvent, Exception, Session, SeverityLevel, StackFrame, Stacktrace, Thread, User, Span, Metric, Log, LogSeverityLevel, FeatureFlagsIntegration, ExclusiveEventHintOrCaptureContext, CaptureContext, } from '@sentry/core';
|
|
41
42
|
export { logger, metrics, httpServerIntegration, httpServerSpansIntegration, nodeContextIntegration, contextLinesIntegration, localVariablesIntegration, modulesIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, anrIntegration, disableAnrDetectionForCallback, spotlightIntegration, childProcessIntegration, processSessionIntegration, nodeRuntimeMetricsIntegration, NodeRuntimeMetricsOptions, consoleIntegration, pinoIntegration, createSentryWinstonTransport, SentryContextManager, systemErrorIntegration, generateInstrumentOnce, getSentryRelease, defaultStackParser, createGetModuleFromFilename, makeNodeTransport, NodeClient, cron, NODE_VERSION, validateOpenTelemetrySetup, withStreamedSpan, _INTERNAL_normalizeCollectionInterval } from '@sentry/node-core';
|
|
42
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import * as api from '@opentelemetry/api';
|
|
2
1
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
3
|
-
import { FMember, FPMember,
|
|
2
|
+
import { FMember, FPMember, FsInstrumentationConfig, GenericFunction } from './types';
|
|
4
3
|
export declare class FsInstrumentation extends InstrumentationBase<FsInstrumentationConfig> {
|
|
5
4
|
constructor(config?: FsInstrumentationConfig);
|
|
6
|
-
init():
|
|
7
|
-
protected _patchSyncFunction<T extends (
|
|
8
|
-
protected _patchCallbackFunction<T extends (
|
|
9
|
-
protected _patchExistsCallbackFunction<T extends (
|
|
10
|
-
protected _patchPromiseFunction<T extends (
|
|
11
|
-
protected _runCreateHook(...args: Parameters<CreateHook>): ReturnType<CreateHook>;
|
|
12
|
-
protected _runEndHook(...args: Parameters<EndHook>): ReturnType<EndHook>;
|
|
13
|
-
protected _shouldTrace(context: api.Context): boolean;
|
|
5
|
+
init(): InstrumentationNodeModuleDefinition[];
|
|
6
|
+
protected _patchSyncFunction<T extends GenericFunction>(functionName: FMember, original: T): T;
|
|
7
|
+
protected _patchCallbackFunction<T extends GenericFunction>(functionName: FMember, original: T): T;
|
|
8
|
+
protected _patchExistsCallbackFunction<T extends GenericFunction>(functionName: 'exists', original: T): T;
|
|
9
|
+
protected _patchPromiseFunction<T extends GenericFunction>(functionName: FPMember, original: T): T;
|
|
14
10
|
}
|
|
15
11
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as api from '@opentelemetry/api';
|
|
3
1
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
export type GenericFunction = (...args: any[]) => unknown;
|
|
4
4
|
export type FunctionPropertyNames<T> = Exclude<{
|
|
5
5
|
[K in keyof T]: T[K] extends Function ? K : never;
|
|
6
6
|
}[keyof T], undefined>;
|
|
7
|
-
export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;
|
|
8
7
|
export type FunctionPropertyNamesTwoLevels<T> = Exclude<{
|
|
9
8
|
[K in keyof T]: {
|
|
10
9
|
[L in keyof T[K]]: L extends string ? T[K][L] extends Function ? K extends string ? L extends string ? string : never : never : never : never;
|
|
11
10
|
}[keyof T[K]];
|
|
12
11
|
}[keyof T], undefined>;
|
|
13
|
-
export type Member<F> = FunctionPropertyNames<F> | FunctionPropertyNamesTwoLevels<F>;
|
|
14
12
|
export type FMember = FunctionPropertyNames<typeof fs> | FunctionPropertyNamesTwoLevels<typeof fs>;
|
|
15
13
|
export type FPMember = FunctionPropertyNames<(typeof fs)['promises']> | FunctionPropertyNamesTwoLevels<(typeof fs)['promises']>;
|
|
16
|
-
export type CreateHook = (functionName: FMember | FPMember, info: {
|
|
17
|
-
args: ArrayLike<unknown>;
|
|
18
|
-
}) => boolean;
|
|
19
|
-
export type EndHook = (functionName: FMember | FPMember, info: {
|
|
20
|
-
args: ArrayLike<unknown>;
|
|
21
|
-
span: api.Span;
|
|
22
|
-
error?: Error;
|
|
23
|
-
}) => void;
|
|
24
14
|
export interface FsInstrumentationConfig extends InstrumentationConfig {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Setting this option to `true` will include any filepath arguments from your `fs` API calls as span attributes.
|
|
17
|
+
*/
|
|
18
|
+
recordFilePaths?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Setting this option to `true` will include the error messages of failed `fs` API calls as a span attribute.
|
|
21
|
+
*/
|
|
22
|
+
recordErrorMessagesAsSpanAttributes?: boolean;
|
|
28
23
|
}
|
|
29
24
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionPropertyNames, FMember } from './types';
|
|
2
1
|
import * as fs from 'fs';
|
|
2
|
+
import { FMember, FunctionPropertyNames, GenericFunction } from './types';
|
|
3
3
|
type FS = typeof fs;
|
|
4
4
|
export declare function splitTwoLevels<FSObject>(functionName: FMember): [
|
|
5
5
|
FunctionPropertyNames<FSObject> & string
|
|
@@ -8,7 +8,7 @@ export declare function splitTwoLevels<FSObject>(functionName: FMember): [
|
|
|
8
8
|
string
|
|
9
9
|
];
|
|
10
10
|
export declare function indexFs<FSObject extends FS | FS['promises']>(fs: FSObject, member: FMember): {
|
|
11
|
-
objectToPatch:
|
|
11
|
+
objectToPatch: Record<string, GenericFunction>;
|
|
12
12
|
functionNameToPatch: string;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ATTR_HTTP_REQUEST_METHOD: "http.request.method";
|
|
2
|
+
export declare const ATTR_HTTP_REQUEST_METHOD_ORIGINAL: "http.request.method_original";
|
|
3
|
+
export declare const ATTR_HTTP_RESPONSE_STATUS_CODE: "http.response.status_code";
|
|
4
|
+
export declare const ATTR_NETWORK_PEER_ADDRESS: "network.peer.address";
|
|
5
|
+
export declare const ATTR_NETWORK_PEER_PORT: "network.peer.port";
|
|
6
|
+
export declare const ATTR_SERVER_ADDRESS: "server.address";
|
|
7
|
+
export declare const ATTR_SERVER_PORT: "server.port";
|
|
8
|
+
export declare const ATTR_URL_FULL: "url.full";
|
|
9
|
+
export declare const ATTR_URL_PATH: "url.path";
|
|
10
|
+
export declare const ATTR_URL_QUERY: "url.query";
|
|
11
|
+
export declare const ATTR_URL_SCHEME: "url.scheme";
|
|
12
|
+
export declare const ATTR_USER_AGENT_ORIGINAL: "user_agent.original";
|
|
13
|
+
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
-
import {
|
|
2
|
+
import { Span, SpanAttributes } from '@sentry/core';
|
|
3
3
|
export interface UndiciRequest {
|
|
4
4
|
origin: string;
|
|
5
5
|
method: string;
|
|
@@ -40,7 +40,7 @@ export interface ResponseHookFunction<RequestType = UndiciRequest, ResponseType
|
|
|
40
40
|
}): void;
|
|
41
41
|
}
|
|
42
42
|
export interface StartSpanHookFunction<T = UndiciRequest> {
|
|
43
|
-
(request: T):
|
|
43
|
+
(request: T): SpanAttributes;
|
|
44
44
|
}
|
|
45
45
|
export interface UndiciInstrumentationConfig<RequestType = UndiciRequest, ResponseType = UndiciResponse> extends InstrumentationConfig {
|
|
46
46
|
/** Not trace all outgoing requests that matched with custom function */
|
|
@@ -51,8 +51,6 @@ export interface UndiciInstrumentationConfig<RequestType = UndiciRequest, Respon
|
|
|
51
51
|
responseHook?: ResponseHookFunction<RequestType, ResponseType>;
|
|
52
52
|
/** Function for adding custom attributes before a span is started */
|
|
53
53
|
startSpanHook?: StartSpanHookFunction<RequestType>;
|
|
54
|
-
/** Require parent to create span for outgoing requests */
|
|
55
|
-
requireParentforSpans?: boolean;
|
|
56
54
|
/** Map the following HTTP headers to span attributes. */
|
|
57
55
|
headersToSpanAttributes?: {
|
|
58
56
|
requestHeaders?: string[];
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
2
1
|
import { UndiciInstrumentationConfig } from './types';
|
|
3
|
-
export declare class UndiciInstrumentation
|
|
2
|
+
export declare class UndiciInstrumentation {
|
|
4
3
|
private _channelSubs;
|
|
5
|
-
private
|
|
6
|
-
private
|
|
4
|
+
private _spanFromReq;
|
|
5
|
+
private _propagationDecisionMap;
|
|
6
|
+
private _config;
|
|
7
7
|
constructor(config?: UndiciInstrumentationConfig);
|
|
8
|
-
protected init(): undefined;
|
|
9
8
|
disable(): void;
|
|
9
|
+
/** Subscribe to the undici diagnostics channels (idempotent). */
|
|
10
10
|
enable(): void;
|
|
11
|
-
protected _updateMetricInstruments(): void;
|
|
12
11
|
private subscribeToChannel;
|
|
13
12
|
private parseRequestHeaders;
|
|
14
13
|
private onRequestCreated;
|
|
@@ -16,7 +15,7 @@ export declare class UndiciInstrumentation extends InstrumentationBase<UndiciIns
|
|
|
16
15
|
private onResponseHeaders;
|
|
17
16
|
private onDone;
|
|
18
17
|
private onError;
|
|
19
|
-
private
|
|
18
|
+
private injectTracePropagationHeaders;
|
|
20
19
|
private getRequestMethod;
|
|
21
20
|
}
|
|
22
21
|
//# sourceMappingURL=undici.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Span } from '@opentelemetry/api';
|
|
2
1
|
import { HandleFunction, NextFunction, Server, Use } from './internal-types';
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { Span } from '@sentry/core';
|
|
3
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
4
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
5
5
|
/** Connect instrumentation for OpenTelemetry */
|
|
6
6
|
export declare class ConnectInstrumentation extends InstrumentationBase {
|
|
7
7
|
constructor(config?: InstrumentationConfig);
|
|
8
8
|
init(): InstrumentationNodeModuleDefinition[];
|
|
9
9
|
private _patchApp;
|
|
10
10
|
private _patchConstructor;
|
|
11
|
-
_patchNext(next: NextFunction, finishSpan: () => void): NextFunction;
|
|
11
|
+
_patchNext(next: NextFunction, span: Span, finishSpan: () => void): NextFunction;
|
|
12
12
|
_startSpan(routeName: string, middleWare: HandleFunction): Span;
|
|
13
13
|
_patchMiddleware(routeName: string, middleWare: HandleFunction): HandleFunction;
|
|
14
14
|
_patchUse(original: Server['use']): Use;
|
|
@@ -2,10 +2,10 @@ import * as http from 'http';
|
|
|
2
2
|
export type IncomingMessage = http.IncomingMessage & {
|
|
3
3
|
originalUrl?: http.IncomingMessage['url'] | undefined;
|
|
4
4
|
};
|
|
5
|
-
export type NextFunction = (err?:
|
|
5
|
+
export type NextFunction = (err?: unknown) => void;
|
|
6
6
|
export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void;
|
|
7
7
|
export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
|
|
8
|
-
export type ErrorHandleFunction = (err:
|
|
8
|
+
export type ErrorHandleFunction = (err: unknown, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
|
|
9
9
|
export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
|
|
10
10
|
export interface Server extends NodeJS.EventEmitter {
|
|
11
11
|
(req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void;
|
|
@@ -5,8 +5,6 @@ export declare enum AttributeNames {
|
|
|
5
5
|
FIELD_TYPE = "graphql.field.type",
|
|
6
6
|
PARENT_NAME = "graphql.parent.name",
|
|
7
7
|
OPERATION_TYPE = "graphql.operation.type",
|
|
8
|
-
OPERATION_NAME = "graphql.operation.name"
|
|
9
|
-
VARIABLES = "graphql.variables.",
|
|
10
|
-
ERROR_VALIDATION_NAME = "graphql.validation.error"
|
|
8
|
+
OPERATION_NAME = "graphql.operation.name"
|
|
11
9
|
}
|
|
12
10
|
//# sourceMappingURL=AttributeNames.d.ts.map
|
|
@@ -9,7 +9,12 @@ export declare class GraphQLInstrumentation extends InstrumentationBase<GraphQLI
|
|
|
9
9
|
private _addPatchingValidate;
|
|
10
10
|
private _patchExecute;
|
|
11
11
|
private _handleExecutionResult;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Applies Sentry-specific span mutations based on the GraphQL execution result:
|
|
14
|
+
* - Marks the execute span as errored if the result contains errors (and no status was set yet)
|
|
15
|
+
* - Optionally renames the containing root span to include the GraphQL operation name(s)
|
|
16
|
+
*/
|
|
17
|
+
private _updateSpanFromResult;
|
|
13
18
|
private _patchParse;
|
|
14
19
|
private _patchValidate;
|
|
15
20
|
private _parse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
2
|
import { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLFieldResolver, GraphQLSchema, GraphQLTypeResolver, Maybe, ParseOptions, PromiseOrValue, Source, TypeInfo, ValidationRule } from './graphql-types';
|
|
3
3
|
import { OTEL_GRAPHQL_DATA_SYMBOL, OTEL_PATCHED_SYMBOL } from './symbols';
|
|
4
4
|
export { Maybe } from './graphql-types';
|
|
@@ -37,11 +37,11 @@ export type validateType = (schema: GraphQLSchema, documentAST: DocumentNode, ru
|
|
|
37
37
|
maxErrors?: number;
|
|
38
38
|
}, typeInfo?: TypeInfo) => ReadonlyArray<GraphQLError>;
|
|
39
39
|
export interface GraphQLField {
|
|
40
|
-
span:
|
|
40
|
+
span: Span;
|
|
41
41
|
}
|
|
42
42
|
interface OtelGraphQLData {
|
|
43
43
|
source?: any;
|
|
44
|
-
span:
|
|
44
|
+
span: Span;
|
|
45
45
|
fields: {
|
|
46
46
|
[key: string]: GraphQLField;
|
|
47
47
|
};
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
-
import * as api from '@opentelemetry/api';
|
|
3
|
-
export interface GraphQLInstrumentationExecutionResponseHook {
|
|
4
|
-
(span: api.Span, data: any): void;
|
|
5
|
-
}
|
|
6
2
|
export interface GraphQLInstrumentationConfig extends InstrumentationConfig {
|
|
7
|
-
/**
|
|
8
|
-
* When set to true it will not remove attributes values from schema source.
|
|
9
|
-
* By default all values that can be sensitive are removed and replaced
|
|
10
|
-
* with "*"
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
allowValues?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The maximum depth of fields/resolvers to instrument.
|
|
17
|
-
* When set to 0 it will not instrument fields and resolvers
|
|
18
|
-
*
|
|
19
|
-
* @default undefined
|
|
20
|
-
*/
|
|
21
|
-
depth?: number;
|
|
22
3
|
/**
|
|
23
4
|
* Do not create spans for resolvers.
|
|
24
5
|
*
|
|
@@ -37,35 +18,16 @@ export interface GraphQLInstrumentationConfig extends InstrumentationConfig {
|
|
|
37
18
|
*/
|
|
38
19
|
ignoreTrivialResolveSpans?: boolean;
|
|
39
20
|
/**
|
|
40
|
-
*
|
|
21
|
+
* If this is enabled, a `http.server` root span containing the execute span will automatically be renamed
|
|
22
|
+
* to include the operation name.
|
|
41
23
|
*
|
|
42
24
|
* @default false
|
|
43
25
|
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Whether to merge list items into a single element.
|
|
47
|
-
*
|
|
48
|
-
* @example `users.*.name` instead of `users.0.name`, `users.1.name`
|
|
49
|
-
*
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
mergeItems?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Hook that allows adding custom span attributes based on the data
|
|
55
|
-
* returned from "execute" GraphQL action.
|
|
56
|
-
*
|
|
57
|
-
* @param data - A GraphQL `ExecutionResult` object. For the exact type definitions, see the following:
|
|
58
|
-
* - {@linkcode https://github.com/graphql/graphql-js/blob/v14.7.0/src/execution/execute.js#L115 graphql@14}
|
|
59
|
-
* - {@linkcode https://github.com/graphql/graphql-js/blob/15.x.x/src/execution/execute.d.ts#L31 graphql@15}
|
|
60
|
-
* - {@linkcode https://github.com/graphql/graphql-js/blob/16.x.x/src/execution/execute.ts#L127 graphql@16}
|
|
61
|
-
*
|
|
62
|
-
* @default undefined
|
|
63
|
-
*/
|
|
64
|
-
responseHook?: GraphQLInstrumentationExecutionResponseHook;
|
|
26
|
+
useOperationNameForRootSpan?: boolean;
|
|
65
27
|
}
|
|
66
28
|
type RequireSpecificKeys<T, K extends keyof T> = T & {
|
|
67
29
|
[P in K]-?: T[P];
|
|
68
30
|
};
|
|
69
|
-
export type GraphQLInstrumentationParsedConfig = RequireSpecificKeys<GraphQLInstrumentationConfig, '
|
|
31
|
+
export type GraphQLInstrumentationParsedConfig = RequireSpecificKeys<GraphQLInstrumentationConfig, 'ignoreResolveSpans'>;
|
|
70
32
|
export {};
|
|
71
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { DocumentNode, GraphQLFieldResolver, GraphQLObjectType, Location, Maybe } from './graphql-types';
|
|
2
|
-
import
|
|
2
|
+
import { Span } from '@sentry/core';
|
|
3
3
|
import { ObjectWithGraphQLData, OtelPatched } from './internal-types';
|
|
4
4
|
import { GraphQLInstrumentationParsedConfig } from './types';
|
|
5
5
|
export declare const isPromise: (value: any) => value is Promise<unknown>;
|
|
6
|
-
export declare function
|
|
7
|
-
|
|
8
|
-
}): void;
|
|
9
|
-
export declare function addSpanSource(span: api.Span, loc?: Location, allowValues?: boolean, start?: number, end?: number): void;
|
|
10
|
-
export declare function endSpan(span: api.Span, error?: Error): void;
|
|
6
|
+
export declare function addSpanSource(span: Span, loc?: Location, start?: number, end?: number): void;
|
|
7
|
+
export declare function endSpan(span: Span, error?: Error): void;
|
|
11
8
|
export declare function getOperation(document: DocumentNode, operationName?: Maybe<string>): DefinitionNodeLike | undefined;
|
|
12
9
|
type DefinitionNodeLike = DocumentNode['definitions'][number];
|
|
13
|
-
export declare function getSourceFromLocation(loc?: Location,
|
|
14
|
-
export declare function wrapFields(type: Maybe<GraphQLObjectType & OtelPatched>,
|
|
15
|
-
export declare function wrapFieldResolver<TSource = any, TContext = any, TArgs = any>(
|
|
10
|
+
export declare function getSourceFromLocation(loc?: Location, inputStart?: number, inputEnd?: number): string;
|
|
11
|
+
export declare function wrapFields(type: Maybe<GraphQLObjectType & OtelPatched>, getConfig: () => GraphQLInstrumentationParsedConfig): void;
|
|
12
|
+
export declare function wrapFieldResolver<TSource = any, TContext = any, TArgs = any>(getConfig: () => GraphQLInstrumentationParsedConfig, fieldResolver: Maybe<GraphQLFieldResolver<TSource, TContext, TArgs> & OtelPatched>, isDefaultResolver?: boolean): GraphQLFieldResolver<TSource, TContext & ObjectWithGraphQLData, TArgs> & OtelPatched;
|
|
16
13
|
export {};
|
|
17
14
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
3
|
/** Hapi instrumentation for OpenTelemetry */
|
|
3
4
|
export declare class HapiInstrumentation extends InstrumentationBase {
|
|
4
|
-
private _semconvStability;
|
|
5
5
|
constructor(config?: InstrumentationConfig);
|
|
6
6
|
protected init(): InstrumentationNodeModuleDefinition;
|
|
7
7
|
/**
|