@sentry/node 10.61.0 → 10.63.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/integrations/featureFlagShims/launchDarkly.js.map +1 -1
- package/build/cjs/integrations/featureFlagShims/openFeature.js.map +1 -1
- package/build/cjs/integrations/featureFlagShims/statsig.js.map +1 -1
- package/build/cjs/integrations/featureFlagShims/unleash.js.map +1 -1
- package/build/cjs/integrations/fs/index.js.map +1 -1
- package/build/cjs/integrations/http.js.map +1 -1
- package/build/cjs/integrations/node-fetch/index.js +7 -49
- package/build/cjs/integrations/node-fetch/index.js.map +1 -1
- package/build/cjs/integrations/node-fetch/undici-instrumentation.js +266 -0
- package/build/cjs/integrations/node-fetch/undici-instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/amqplib/index.js +2 -10
- package/build/cjs/integrations/tracing/amqplib/index.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js +117 -0
- package/build/cjs/integrations/tracing/amqplib/vendored/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/amqplib/vendored/patches.js +185 -0
- package/build/cjs/integrations/tracing/amqplib/vendored/patches.js.map +1 -0
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js +21 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/types.js +0 -6
- package/build/cjs/integrations/tracing/amqplib/vendored/types.js.map +1 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/utils.js +71 -80
- package/build/cjs/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/connect/index.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/cjs/integrations/tracing/express.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/index.js +7 -103
- package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js +2 -3
- package/build/cjs/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/firebase/firebase.js +1 -24
- package/build/cjs/integrations/tracing/firebase/firebase.js.map +1 -1
- package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js +3 -11
- package/build/cjs/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js +33 -72
- package/build/cjs/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -1
- package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js +46 -105
- package/build/cjs/integrations/tracing/firebase/otel/patches/functions.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/cjs/integrations/tracing/graphql/index.js.map +1 -1
- package/build/cjs/integrations/tracing/hapi/index.js.map +1 -1
- package/build/cjs/integrations/tracing/hono/index.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +0 -1
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/kafka/index.js.map +1 -1
- package/build/cjs/integrations/tracing/knex/index.js.map +1 -1
- package/build/cjs/integrations/tracing/koa/index.js.map +1 -1
- package/build/cjs/integrations/tracing/lrumemoizer/index.js.map +1 -1
- package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +4 -2
- package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mongo/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mongoose/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/index.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js +34 -128
- package/build/cjs/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/semconv.js +0 -2
- package/build/cjs/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql/vendored/utils.js +2 -27
- package/build/cjs/integrations/tracing/mysql/vendored/utils.js.map +1 -1
- package/build/cjs/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/cjs/integrations/tracing/postgres/index.js.map +1 -1
- package/build/cjs/integrations/tracing/postgresjs.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/index.js +1 -10
- package/build/cjs/integrations/tracing/prisma/index.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/active-tracing-helper.js +83 -57
- 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 +2 -2
- package/build/cjs/integrations/tracing/prisma/vendored/global.js.map +1 -1
- package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js +1 -6
- package/build/cjs/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/index.js +5 -3
- package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
- package/build/cjs/integrations/tracing/tedious/index.js.map +1 -1
- package/build/cjs/integrations/tracing/vercelai/constants.js.map +1 -1
- package/build/cjs/integrations/tracing/vercelai/index.js +4 -3
- package/build/cjs/integrations/tracing/vercelai/index.js.map +1 -1
- package/build/cjs/sdk/diagnosticsChannelInjection.js.map +1 -1
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js +8 -6
- package/build/cjs/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
- package/build/esm/integrations/featureFlagShims/launchDarkly.js.map +1 -1
- package/build/esm/integrations/featureFlagShims/openFeature.js.map +1 -1
- package/build/esm/integrations/featureFlagShims/statsig.js.map +1 -1
- package/build/esm/integrations/featureFlagShims/unleash.js.map +1 -1
- package/build/esm/integrations/fs/index.js.map +1 -1
- package/build/esm/integrations/http.js.map +1 -1
- package/build/esm/integrations/node-fetch/index.js +9 -50
- package/build/esm/integrations/node-fetch/index.js.map +1 -1
- package/build/esm/integrations/node-fetch/undici-instrumentation.js +264 -0
- package/build/esm/integrations/node-fetch/undici-instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/amqplib/index.js +3 -11
- package/build/esm/integrations/tracing/amqplib/index.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js +115 -0
- package/build/esm/integrations/tracing/amqplib/vendored/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/amqplib/vendored/patches.js +177 -0
- package/build/esm/integrations/tracing/amqplib/vendored/patches.js.map +1 -0
- package/build/esm/integrations/tracing/amqplib/vendored/semconv.js +12 -2
- package/build/esm/integrations/tracing/amqplib/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/types.js +1 -6
- package/build/esm/integrations/tracing/amqplib/vendored/types.js.map +1 -1
- package/build/esm/integrations/tracing/amqplib/vendored/utils.js +68 -78
- package/build/esm/integrations/tracing/amqplib/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/connect/index.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/esm/integrations/tracing/express.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/index.js +8 -103
- package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js +3 -4
- package/build/esm/integrations/tracing/fastify/v3/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/firebase/firebase.js +3 -26
- package/build/esm/integrations/tracing/firebase/firebase.js.map +1 -1
- package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js +3 -11
- package/build/esm/integrations/tracing/firebase/otel/firebaseInstrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js +34 -73
- package/build/esm/integrations/tracing/firebase/otel/patches/firestore.js.map +1 -1
- package/build/esm/integrations/tracing/firebase/otel/patches/functions.js +47 -106
- package/build/esm/integrations/tracing/firebase/otel/patches/functions.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/esm/integrations/tracing/graphql/index.js.map +1 -1
- package/build/esm/integrations/tracing/hapi/index.js.map +1 -1
- package/build/esm/integrations/tracing/hono/index.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +1 -2
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/kafka/index.js.map +1 -1
- package/build/esm/integrations/tracing/knex/index.js.map +1 -1
- package/build/esm/integrations/tracing/koa/index.js.map +1 -1
- package/build/esm/integrations/tracing/lrumemoizer/index.js.map +1 -1
- package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +5 -3
- package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mongo/index.js.map +1 -1
- package/build/esm/integrations/tracing/mongoose/index.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/index.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js +37 -131
- package/build/esm/integrations/tracing/mysql/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/semconv.js +1 -2
- package/build/esm/integrations/tracing/mysql/vendored/semconv.js.map +1 -1
- package/build/esm/integrations/tracing/mysql/vendored/utils.js +3 -25
- package/build/esm/integrations/tracing/mysql/vendored/utils.js.map +1 -1
- package/build/esm/integrations/tracing/mysql2/index.js.map +1 -1
- package/build/esm/integrations/tracing/postgres/index.js.map +1 -1
- package/build/esm/integrations/tracing/postgresjs.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/index.js +2 -11
- package/build/esm/integrations/tracing/prisma/index.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/active-tracing-helper.js +83 -57
- 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 +2 -2
- package/build/esm/integrations/tracing/prisma/vendored/global.js.map +1 -1
- package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js +1 -6
- package/build/esm/integrations/tracing/prisma/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/redis/index.js +7 -5
- package/build/esm/integrations/tracing/redis/index.js.map +1 -1
- package/build/esm/integrations/tracing/tedious/index.js.map +1 -1
- package/build/esm/integrations/tracing/vercelai/constants.js.map +1 -1
- package/build/esm/integrations/tracing/vercelai/index.js +5 -4
- package/build/esm/integrations/tracing/vercelai/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/diagnosticsChannelInjection.js.map +1 -1
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js +9 -7
- package/build/esm/sdk/experimentalUseDiagnosticsChannelInjection.js.map +1 -1
- package/build/types/integrations/featureFlagShims/launchDarkly.d.ts +3 -1
- package/build/types/integrations/featureFlagShims/launchDarkly.d.ts.map +1 -1
- package/build/types/integrations/featureFlagShims/openFeature.d.ts +3 -1
- package/build/types/integrations/featureFlagShims/openFeature.d.ts.map +1 -1
- package/build/types/integrations/featureFlagShims/statsig.d.ts +3 -1
- package/build/types/integrations/featureFlagShims/statsig.d.ts.map +1 -1
- package/build/types/integrations/featureFlagShims/unleash.d.ts +3 -1
- package/build/types/integrations/featureFlagShims/unleash.d.ts.map +1 -1
- package/build/types/integrations/fs/index.d.ts +3 -1
- package/build/types/integrations/fs/index.d.ts.map +1 -1
- package/build/types/integrations/http.d.ts +3 -1
- package/build/types/integrations/http.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/index.d.ts +4 -35
- package/build/types/integrations/node-fetch/index.d.ts.map +1 -1
- package/build/types/integrations/node-fetch/types.d.ts +96 -0
- package/build/types/integrations/node-fetch/types.d.ts.map +1 -0
- package/build/types/integrations/node-fetch/undici-instrumentation.d.ts +14 -0
- package/build/types/integrations/node-fetch/undici-instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/amqplib/index.d.ts +4 -2
- package/build/types/integrations/tracing/amqplib/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts +11 -0
- package/build/types/integrations/tracing/amqplib/vendored/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts +11 -0
- package/build/types/integrations/tracing/amqplib/vendored/patches.d.ts.map +1 -0
- package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts +25 -37
- package/build/types/integrations/tracing/amqplib/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/types.d.ts +0 -81
- package/build/types/integrations/tracing/amqplib/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts +16 -9
- package/build/types/integrations/tracing/amqplib/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts +3 -1
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/connect/index.d.ts +3 -1
- package/build/types/integrations/tracing/connect/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/index.d.ts +3 -1
- package/build/types/integrations/tracing/dataloader/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/express.d.ts +3 -1
- package/build/types/integrations/tracing/express.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify/index.d.ts +6 -6
- package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/fastify/v3/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/firebase/firebase.d.ts +3 -1
- package/build/types/integrations/tracing/firebase/firebase.d.ts.map +1 -1
- package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +4 -9
- package/build/types/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts +2 -5
- package/build/types/integrations/tracing/firebase/otel/patches/firestore.d.ts.map +1 -1
- package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts +3 -8
- package/build/types/integrations/tracing/firebase/otel/patches/functions.d.ts.map +1 -1
- package/build/types/integrations/tracing/firebase/otel/types.d.ts +0 -20
- package/build/types/integrations/tracing/firebase/otel/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/index.d.ts +3 -1
- package/build/types/integrations/tracing/genericPool/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/google-genai/index.d.ts +3 -1
- package/build/types/integrations/tracing/google-genai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/graphql/index.d.ts +3 -1
- package/build/types/integrations/tracing/graphql/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/hapi/index.d.ts +3 -1
- package/build/types/integrations/tracing/hapi/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/hono/index.d.ts +3 -1
- package/build/types/integrations/tracing/hono/index.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 +3 -1
- package/build/types/integrations/tracing/kafka/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/knex/index.d.ts +3 -1
- package/build/types/integrations/tracing/knex/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/koa/index.d.ts +3 -1
- package/build/types/integrations/tracing/koa/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/langchain/index.d.ts +3 -1
- package/build/types/integrations/tracing/langchain/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/langgraph/index.d.ts +3 -1
- package/build/types/integrations/tracing/langgraph/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/lrumemoizer/index.d.ts +3 -1
- package/build/types/integrations/tracing/lrumemoizer/index.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 +3 -1
- package/build/types/integrations/tracing/mongo/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mongoose/index.d.ts +3 -1
- package/build/types/integrations/tracing/mongoose/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/index.d.ts +3 -1
- package/build/types/integrations/tracing/mysql/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts +3 -17
- package/build/types/integrations/tracing/mysql/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts +16 -16
- package/build/types/integrations/tracing/mysql/vendored/mysql-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts +0 -8
- package/build/types/integrations/tracing/mysql/vendored/semconv.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql/vendored/utils.d.ts +6 -9
- package/build/types/integrations/tracing/mysql/vendored/utils.d.ts.map +1 -1
- package/build/types/integrations/tracing/mysql2/index.d.ts +3 -1
- package/build/types/integrations/tracing/mysql2/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/openai/index.d.ts +3 -1
- package/build/types/integrations/tracing/openai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgres/index.d.ts +3 -1
- package/build/types/integrations/tracing/postgres/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgresjs.d.ts +3 -1
- package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/index.d.ts +5 -21
- package/build/types/integrations/tracing/prisma/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +5 -7
- 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 +2 -4
- package/build/types/integrations/tracing/prisma/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/prisma/vendored/types.d.ts +5 -23
- package/build/types/integrations/tracing/prisma/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/redis/index.d.ts +4 -2
- package/build/types/integrations/tracing/redis/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/tedious/index.d.ts +3 -1
- package/build/types/integrations/tracing/tedious/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/constants.d.ts +1 -1
- package/build/types/integrations/tracing/vercelai/constants.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/index.d.ts +3 -2
- package/build/types/integrations/tracing/vercelai/index.d.ts.map +1 -1
- package/build/types/sdk/diagnosticsChannelInjection.d.ts +1 -1
- package/build/types/sdk/diagnosticsChannelInjection.d.ts.map +1 -1
- package/build/types/sdk/experimentalUseDiagnosticsChannelInjection.d.ts.map +1 -1
- package/build/types-ts3.8/integrations/featureFlagShims/launchDarkly.d.ts +3 -1
- package/build/types-ts3.8/integrations/featureFlagShims/openFeature.d.ts +3 -1
- package/build/types-ts3.8/integrations/featureFlagShims/statsig.d.ts +3 -1
- package/build/types-ts3.8/integrations/featureFlagShims/unleash.d.ts +3 -1
- package/build/types-ts3.8/integrations/fs/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/http.d.ts +3 -1
- package/build/types-ts3.8/integrations/node-fetch/index.d.ts +4 -35
- package/build/types-ts3.8/integrations/node-fetch/types.d.ts +96 -0
- package/build/types-ts3.8/integrations/node-fetch/undici-instrumentation.d.ts +14 -0
- package/build/types-ts3.8/integrations/tracing/amqplib/index.d.ts +4 -2
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/instrumentation.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/patches.d.ts +11 -0
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv.d.ts +25 -37
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/types.d.ts +0 -81
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/utils.d.ts +16 -9
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/connect/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/dataloader/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/express.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/fastify/index.d.ts +6 -6
- package/build/types-ts3.8/integrations/tracing/firebase/firebase.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/firebase/otel/firebaseInstrumentation.d.ts +4 -9
- package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/firestore.d.ts +2 -5
- package/build/types-ts3.8/integrations/tracing/firebase/otel/patches/functions.d.ts +3 -8
- package/build/types-ts3.8/integrations/tracing/firebase/otel/types.d.ts +0 -20
- package/build/types-ts3.8/integrations/tracing/genericPool/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/graphql/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/hapi/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/kafka/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/knex/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/koa/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/lrumemoizer/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/mongo/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/mongoose/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/mysql/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/instrumentation.d.ts +3 -17
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/mysql-types.d.ts +16 -16
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/semconv.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/utils.d.ts +6 -9
- package/build/types-ts3.8/integrations/tracing/mysql2/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/postgres/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/postgresjs.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/prisma/index.d.ts +5 -21
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/active-tracing-helper.d.ts +5 -7
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/instrumentation.d.ts +2 -4
- package/build/types-ts3.8/integrations/tracing/prisma/vendored/types.d.ts +5 -23
- package/build/types-ts3.8/integrations/tracing/redis/index.d.ts +4 -2
- package/build/types-ts3.8/integrations/tracing/tedious/index.d.ts +3 -1
- package/build/types-ts3.8/integrations/tracing/vercelai/constants.d.ts +1 -1
- package/build/types-ts3.8/integrations/tracing/vercelai/index.d.ts +3 -2
- package/build/types-ts3.8/sdk/diagnosticsChannelInjection.d.ts +1 -1
- package/package.json +6 -5
- package/build/cjs/integrations/node-fetch/vendored/semconv.js +0 -28
- package/build/cjs/integrations/node-fetch/vendored/semconv.js.map +0 -1
- package/build/cjs/integrations/node-fetch/vendored/undici.js +0 -302
- package/build/cjs/integrations/node-fetch/vendored/undici.js.map +0 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js +0 -452
- package/build/cjs/integrations/tracing/amqplib/vendored/amqplib.js.map +0 -1
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv-obsolete.js +0 -24
- package/build/cjs/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +0 -1
- package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js +0 -387
- package/build/cjs/integrations/tracing/fastify/vendored/instrumentation.js.map +0 -1
- package/build/cjs/integrations/tracing/mysql/vendored/AttributeNames.js +0 -9
- package/build/cjs/integrations/tracing/mysql/vendored/AttributeNames.js.map +0 -1
- package/build/esm/integrations/node-fetch/vendored/semconv.js +0 -15
- package/build/esm/integrations/node-fetch/vendored/semconv.js.map +0 -1
- package/build/esm/integrations/node-fetch/vendored/undici.js +0 -300
- package/build/esm/integrations/node-fetch/vendored/undici.js.map +0 -1
- package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js +0 -450
- package/build/esm/integrations/tracing/amqplib/vendored/amqplib.js.map +0 -1
- package/build/esm/integrations/tracing/amqplib/vendored/semconv-obsolete.js +0 -13
- package/build/esm/integrations/tracing/amqplib/vendored/semconv-obsolete.js.map +0 -1
- package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js +0 -385
- package/build/esm/integrations/tracing/fastify/vendored/instrumentation.js.map +0 -1
- package/build/esm/integrations/tracing/mysql/vendored/AttributeNames.js +0 -7
- package/build/esm/integrations/tracing/mysql/vendored/AttributeNames.js.map +0 -1
- package/build/types/integrations/node-fetch/vendored/internal-types.d.ts +0 -25
- package/build/types/integrations/node-fetch/vendored/internal-types.d.ts.map +0 -1
- package/build/types/integrations/node-fetch/vendored/semconv.d.ts +0 -13
- package/build/types/integrations/node-fetch/vendored/semconv.d.ts.map +0 -1
- package/build/types/integrations/node-fetch/vendored/types.d.ts +0 -60
- package/build/types/integrations/node-fetch/vendored/types.d.ts.map +0 -1
- package/build/types/integrations/node-fetch/vendored/undici.d.ts +0 -21
- package/build/types/integrations/node-fetch/vendored/undici.d.ts.map +0 -1
- package/build/types/integrations/tracing/amqplib/vendored/amqplib.d.ts +0 -26
- package/build/types/integrations/tracing/amqplib/vendored/amqplib.d.ts.map +0 -1
- package/build/types/integrations/tracing/amqplib/vendored/semconv-obsolete.d.ts +0 -63
- package/build/types/integrations/tracing/amqplib/vendored/semconv-obsolete.d.ts.map +0 -1
- package/build/types/integrations/tracing/fastify/vendored/instrumentation.d.ts +0 -27
- package/build/types/integrations/tracing/fastify/vendored/instrumentation.d.ts.map +0 -1
- package/build/types/integrations/tracing/mysql/vendored/AttributeNames.d.ts +0 -4
- package/build/types/integrations/tracing/mysql/vendored/AttributeNames.d.ts.map +0 -1
- package/build/types/integrations/tracing/mysql/vendored/types.d.ts +0 -9
- package/build/types/integrations/tracing/mysql/vendored/types.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/node-fetch/vendored/internal-types.d.ts +0 -25
- package/build/types-ts3.8/integrations/node-fetch/vendored/semconv.d.ts +0 -13
- package/build/types-ts3.8/integrations/node-fetch/vendored/types.d.ts +0 -60
- package/build/types-ts3.8/integrations/node-fetch/vendored/undici.d.ts +0 -21
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/amqplib.d.ts +0 -26
- package/build/types-ts3.8/integrations/tracing/amqplib/vendored/semconv-obsolete.d.ts +0 -63
- package/build/types-ts3.8/integrations/tracing/fastify/vendored/instrumentation.d.ts +0 -27
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/AttributeNames.d.ts +0 -4
- package/build/types-ts3.8/integrations/tracing/mysql/vendored/types.d.ts +0 -9
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Integration } from '@sentry/core';
|
|
2
2
|
import { FastifyMinimal, FastifyReply, FastifyRequest } from './types';
|
|
3
3
|
import { FastifyInstrumentationV3 } from './v3/instrumentation';
|
|
4
|
+
import { instrumentFastify } from '@sentry/server-utils';
|
|
5
|
+
export { instrumentFastify };
|
|
4
6
|
/**
|
|
5
7
|
* Options for the Fastify integration.
|
|
6
8
|
*
|
|
@@ -74,9 +76,6 @@ interface FastifyHandlerOptions {
|
|
|
74
76
|
export declare const instrumentFastifyV3: ((options?: unknown) => FastifyInstrumentationV3) & {
|
|
75
77
|
id: string;
|
|
76
78
|
};
|
|
77
|
-
export declare const instrumentFastify: ((options?: unknown) => Instrumentation<InstrumentationConfig>) & {
|
|
78
|
-
id: string;
|
|
79
|
-
};
|
|
80
79
|
/**
|
|
81
80
|
* Adds Sentry tracing instrumentation for [Fastify](https://fastify.dev/).
|
|
82
81
|
*
|
|
@@ -93,7 +92,9 @@ export declare const instrumentFastify: ((options?: unknown) => Instrumentation<
|
|
|
93
92
|
* })
|
|
94
93
|
* ```
|
|
95
94
|
*/
|
|
96
|
-
export declare const fastifyIntegration: (options?: Partial<FastifyIntegrationOptions> | undefined) =>
|
|
95
|
+
export declare const fastifyIntegration: (options?: Partial<FastifyIntegrationOptions> | undefined) => Integration & {
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
97
98
|
/**
|
|
98
99
|
* Add an Fastify error handler to capture errors to Sentry.
|
|
99
100
|
*
|
|
@@ -115,5 +116,4 @@ export declare const fastifyIntegration: (options?: Partial<FastifyIntegrationOp
|
|
|
115
116
|
* ```
|
|
116
117
|
*/
|
|
117
118
|
export declare function setupFastifyErrorHandler(fastify: FastifyMinimal, options?: Partial<FastifyHandlerOptions>): void;
|
|
118
|
-
export {};
|
|
119
119
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,5 +2,7 @@ import { FirebaseInstrumentation } from './otel';
|
|
|
2
2
|
export declare const instrumentFirebase: ((options?: unknown) => FirebaseInstrumentation) & {
|
|
3
3
|
id: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const firebaseIntegration: () => import("@sentry/core").Integration
|
|
5
|
+
export declare const firebaseIntegration: () => import("@sentry/core").Integration & {
|
|
6
|
+
name: "Firebase";
|
|
7
|
+
};
|
|
6
8
|
//# sourceMappingURL=firebase.d.ts.map
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { InstrumentationConfig, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
+
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
3
3
|
/**
|
|
4
4
|
* Instrumentation for Firebase services, specifically Firestore.
|
|
5
5
|
*/
|
|
6
|
-
export declare class FirebaseInstrumentation extends InstrumentationBase<
|
|
7
|
-
constructor(config?:
|
|
8
|
-
/**
|
|
9
|
-
* sets config
|
|
10
|
-
* @param config
|
|
11
|
-
*/
|
|
12
|
-
setConfig(config?: FirebaseInstrumentationConfig): void;
|
|
6
|
+
export declare class FirebaseInstrumentation extends InstrumentationBase<InstrumentationConfig> {
|
|
7
|
+
constructor(config?: InstrumentationConfig);
|
|
13
8
|
/**
|
|
14
9
|
*
|
|
15
10
|
* @protected
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { Tracer } from '@opentelemetry/api';
|
|
2
1
|
import { InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
3
|
-
import {
|
|
2
|
+
import { FirestoreSettings } from '../types';
|
|
4
3
|
type ShimmerWrap = (target: any, name: string, wrapper: (...args: any[]) => any) => void;
|
|
5
4
|
type ShimmerUnwrap = (target: any, name: string) => void;
|
|
6
5
|
/**
|
|
7
6
|
*
|
|
8
|
-
* @param tracer - Opentelemetry Tracer
|
|
9
7
|
* @param firestoreSupportedVersions - supported version of firebase/firestore
|
|
10
8
|
* @param wrap - reference to native instrumentation wrap function
|
|
11
9
|
* @param unwrap - reference to native instrumentation wrap function
|
|
12
10
|
*/
|
|
13
|
-
export declare function patchFirestore(
|
|
11
|
+
export declare function patchFirestore(firestoreSupportedVersions: string[], wrap: ShimmerWrap, unwrap: ShimmerUnwrap): InstrumentationNodeModuleDefinition;
|
|
14
12
|
/**
|
|
15
13
|
* Gets the server address and port attributes from the Firestore settings.
|
|
16
14
|
* It's best effort to extract the address and port from the settings, especially for IPv6.
|
|
17
|
-
* @param span - The span to set attributes on.
|
|
18
15
|
* @param settings - The Firestore settings containing host information.
|
|
19
16
|
*/
|
|
20
17
|
export declare function getPortAndAddress(settings: FirestoreSettings): {
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { Tracer } from '@opentelemetry/api';
|
|
2
1
|
import { InstrumentationBase } from '@opentelemetry/instrumentation';
|
|
3
2
|
import { InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
4
|
-
import { FirebaseFunctions,
|
|
3
|
+
import { FirebaseFunctions, OverloadedParameters } from '../types';
|
|
5
4
|
/**
|
|
6
5
|
* Patches Firebase Functions v2 to add OpenTelemetry instrumentation
|
|
7
|
-
* @param tracer - Opentelemetry Tracer
|
|
8
6
|
* @param functionsSupportedVersions - supported versions of firebase-functions
|
|
9
7
|
* @param wrap - reference to native instrumentation wrap function
|
|
10
8
|
* @param unwrap - reference to native instrumentation unwrap function
|
|
11
|
-
* @param config - Firebase instrumentation config
|
|
12
9
|
*/
|
|
13
|
-
export declare function patchFunctions(
|
|
10
|
+
export declare function patchFunctions(functionsSupportedVersions: string[], wrap: InstrumentationBase['_wrap'], unwrap: InstrumentationBase['_unwrap']): InstrumentationNodeModuleDefinition;
|
|
14
11
|
/**
|
|
15
12
|
* Patches Cloud Functions for Firebase (v2) to add OpenTelemetry instrumentation
|
|
16
13
|
*
|
|
17
|
-
* @param tracer - Opentelemetry Tracer
|
|
18
|
-
* @param functionsConfig - Firebase instrumentation config
|
|
19
14
|
* @param triggerType - Type of trigger
|
|
20
15
|
* @returns A function that patches the function
|
|
21
16
|
*/
|
|
22
|
-
export declare function patchV2Functions<T extends FirebaseFunctions = FirebaseFunctions>(
|
|
17
|
+
export declare function patchV2Functions<T extends FirebaseFunctions = FirebaseFunctions>(triggerType: string): (original: T) => (...args: OverloadedParameters<T>) => ReturnType<T>;
|
|
23
18
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Span } from '@opentelemetry/api';
|
|
2
|
-
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
3
1
|
export interface FirebaseOptions {
|
|
4
2
|
[key: string]: any;
|
|
5
3
|
apiKey?: string;
|
|
@@ -70,24 +68,6 @@ export interface FirestoreSettings {
|
|
|
70
68
|
experimentalAutoDetectLongPolling?: boolean;
|
|
71
69
|
useFetchStreams?: boolean;
|
|
72
70
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Firebase Auto Instrumentation
|
|
75
|
-
*/
|
|
76
|
-
export interface FirebaseInstrumentationConfig extends InstrumentationConfig {
|
|
77
|
-
firestoreSpanCreationHook?: FirestoreSpanCreationHook;
|
|
78
|
-
functions?: FunctionsConfig;
|
|
79
|
-
}
|
|
80
|
-
export interface FunctionsConfig {
|
|
81
|
-
requestHook?: RequestHook;
|
|
82
|
-
responseHook?: ResponseHook;
|
|
83
|
-
errorHook?: ErrorHook;
|
|
84
|
-
}
|
|
85
|
-
export type RequestHook = (span: Span) => void;
|
|
86
|
-
export type ResponseHook = (span: Span, error?: unknown) => void;
|
|
87
|
-
export type ErrorHook = (span: Span, error?: unknown) => Promise<void> | void;
|
|
88
|
-
export interface FirestoreSpanCreationHook {
|
|
89
|
-
(span: Span): void;
|
|
90
|
-
}
|
|
91
71
|
export type GetDocsType<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> = (query: CollectionReference<AppModelType, DbModelType>) => Promise<QuerySnapshot<AppModelType, DbModelType>>;
|
|
92
72
|
export type SetDocType<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> = ((reference: DocumentReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>) => Promise<void>) & ((reference: DocumentReference<AppModelType, DbModelType>, data: PartialWithFieldValue<AppModelType>, options: SetOptions) => Promise<void>);
|
|
93
73
|
export type AddDocType<AppModelType, DbModelType extends DocumentData> = (reference: CollectionReference<AppModelType, DbModelType>, data: WithFieldValue<AppModelType>) => Promise<DocumentReference<AppModelType, DbModelType>>;
|
|
@@ -16,5 +16,7 @@ export declare const instrumentGenericPool: ((options?: unknown) => GenericPoolI
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const genericPoolIntegration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const genericPoolIntegration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "GenericPool";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -56,5 +56,7 @@ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | und
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
|
-
export declare const googleGenAIIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration
|
|
59
|
+
export declare const googleGenAIIntegration: (options?: GoogleGenAIOptions | undefined) => import("@sentry/core").Integration & {
|
|
60
|
+
name: "Google_GenAI";
|
|
61
|
+
};
|
|
60
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -43,6 +43,8 @@ export declare const instrumentGraphql: ((options: GraphqlOptions) => GraphQLIns
|
|
|
43
43
|
* integrations: [Sentry.graphqlIntegration()],
|
|
44
44
|
* });
|
|
45
45
|
*/
|
|
46
|
-
export declare const graphqlIntegration: (options?: GraphqlOptions | undefined) => import("@sentry/core").Integration
|
|
46
|
+
export declare const graphqlIntegration: (options?: GraphqlOptions | undefined) => import("@sentry/core").Integration & {
|
|
47
|
+
name: "Graphql";
|
|
48
|
+
};
|
|
47
49
|
export {};
|
|
48
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -19,7 +19,9 @@ export declare const instrumentHapi: ((options?: unknown) => HapiInstrumentation
|
|
|
19
19
|
* })
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare const hapiIntegration: () => import("@sentry/core").Integration
|
|
22
|
+
export declare const hapiIntegration: () => import("@sentry/core").Integration & {
|
|
23
|
+
name: "Hapi";
|
|
24
|
+
};
|
|
23
25
|
export declare const hapiErrorPlugin: {
|
|
24
26
|
name: string;
|
|
25
27
|
version: string;
|
|
@@ -22,7 +22,9 @@ export declare const instrumentHono: ((options?: unknown) => HonoInstrumentation
|
|
|
22
22
|
* })
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export declare const honoIntegration: () => import("@sentry/core").Integration
|
|
25
|
+
export declare const honoIntegration: () => import("@sentry/core").Integration & {
|
|
26
|
+
name: "Hono";
|
|
27
|
+
};
|
|
26
28
|
interface HonoHandlerOptions {
|
|
27
29
|
/**
|
|
28
30
|
* Callback method deciding whether error should be captured and sent to Sentry
|
|
@@ -15,5 +15,7 @@ export declare const instrumentKafka: ((options?: unknown) => KafkaJsInstrumenta
|
|
|
15
15
|
* integrations: [Sentry.kafkaIntegration()],
|
|
16
16
|
* });
|
|
17
17
|
*/
|
|
18
|
-
export declare const kafkaIntegration: () => import("@sentry/core").Integration
|
|
18
|
+
export declare const kafkaIntegration: () => import("@sentry/core").Integration & {
|
|
19
|
+
name: "Kafka";
|
|
20
|
+
};
|
|
19
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,5 +16,7 @@ export declare const instrumentKnex: ((options?: unknown) => KnexInstrumentation
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const knexIntegration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const knexIntegration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "Knex";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -40,7 +40,9 @@ export declare const instrumentKoa: ((options: KoaOptions | undefined) => KoaIns
|
|
|
40
40
|
* })
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
export declare const koaIntegration: (options?: KoaOptions | undefined) => import("@sentry/core").Integration
|
|
43
|
+
export declare const koaIntegration: (options?: KoaOptions | undefined) => import("@sentry/core").Integration & {
|
|
44
|
+
name: "Koa";
|
|
45
|
+
};
|
|
44
46
|
/**
|
|
45
47
|
* Add an Koa error handler to capture errors to Sentry.
|
|
46
48
|
*
|
|
@@ -95,5 +95,7 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
|
|
|
95
95
|
* - Embeddings: embedQuery, embedDocuments (via direct method wrapping)
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
|
-
export declare const langChainIntegration: (options?: LangChainOptions | undefined) => import("@sentry/core").Integration
|
|
98
|
+
export declare const langChainIntegration: (options?: LangChainOptions | undefined) => import("@sentry/core").Integration & {
|
|
99
|
+
name: "LangChain";
|
|
100
|
+
};
|
|
99
101
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -71,5 +71,7 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
|
|
|
71
71
|
* - Available tools configured in the graph
|
|
72
72
|
*
|
|
73
73
|
*/
|
|
74
|
-
export declare const langGraphIntegration: (options?: LangGraphOptions | undefined) => import("@sentry/core").Integration
|
|
74
|
+
export declare const langGraphIntegration: (options?: LangGraphOptions | undefined) => import("@sentry/core").Integration & {
|
|
75
|
+
name: "LangGraph";
|
|
76
|
+
};
|
|
75
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,5 +15,7 @@ export declare const instrumentLruMemoizer: ((options?: unknown) => LruMemoizerI
|
|
|
15
15
|
* integrations: [Sentry.lruMemoizerIntegration()],
|
|
16
16
|
* });
|
|
17
17
|
*/
|
|
18
|
-
export declare const lruMemoizerIntegration: () => import("@sentry/core").Integration
|
|
18
|
+
export declare const lruMemoizerIntegration: () => import("@sentry/core").Integration & {
|
|
19
|
+
name: "LruMemoizer";
|
|
20
|
+
};
|
|
19
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,5 +16,7 @@ export declare const instrumentMongo: ((options?: unknown) => MongoDBInstrumenta
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const mongoIntegration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const mongoIntegration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "Mongo";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,5 +16,7 @@ export declare const instrumentMongoose: ((options?: unknown) => MongooseInstrum
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const mongooseIntegration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const mongooseIntegration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "Mongoose";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -16,5 +16,7 @@ export declare const instrumentMysql: ((options?: unknown) => MySQLInstrumentati
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const mysqlIntegration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const mysqlIntegration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "Mysql";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
1
2
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
private _netSemconvStability;
|
|
5
|
-
private _dbSemconvStability;
|
|
6
|
-
private _connectionsUsageOld;
|
|
7
|
-
constructor(config?: MySQLInstrumentationConfig);
|
|
8
|
-
private _setSemconvStabilityFromEnv;
|
|
9
|
-
protected _updateMetricInstruments(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Convenience function for updating the `db.client.connections.usage` metric.
|
|
12
|
-
* The name "count" comes from the eventually replacement for this metric per
|
|
13
|
-
* https://opentelemetry.io/docs/specs/semconv/non-normative/db-migration/#database-client-connection-count
|
|
14
|
-
*/
|
|
15
|
-
private _connCountAdd;
|
|
3
|
+
export declare class MySQLInstrumentation extends InstrumentationBase<InstrumentationConfig> {
|
|
4
|
+
constructor(config?: InstrumentationConfig);
|
|
16
5
|
protected init(): InstrumentationNodeModuleDefinition[];
|
|
17
6
|
private _patchCreateConnection;
|
|
18
7
|
private _patchCreatePool;
|
|
19
|
-
private _patchPoolEnd;
|
|
20
8
|
private _patchCreatePoolCluster;
|
|
21
|
-
private _patchAdd;
|
|
22
9
|
private _patchGetConnection;
|
|
23
10
|
private _getConnectionCallbackPatchFn;
|
|
24
11
|
private _patchQuery;
|
|
25
12
|
private _patchCallbackQuery;
|
|
26
|
-
private _setPoolCallbacks;
|
|
27
13
|
}
|
|
28
14
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -5,7 +5,7 @@ export interface MysqlError extends Error {
|
|
|
5
5
|
sql?: string;
|
|
6
6
|
sqlState?: string;
|
|
7
7
|
sqlMessage?: string;
|
|
8
|
-
[key: string]:
|
|
8
|
+
[key: string]: unknown;
|
|
9
9
|
}
|
|
10
10
|
export interface ConnectionConfig {
|
|
11
11
|
host?: string;
|
|
@@ -13,16 +13,16 @@ export interface ConnectionConfig {
|
|
|
13
13
|
database?: string;
|
|
14
14
|
user?: string;
|
|
15
15
|
password?: string;
|
|
16
|
-
[key: string]:
|
|
16
|
+
[key: string]: unknown;
|
|
17
17
|
}
|
|
18
18
|
export interface PoolConfig extends ConnectionConfig {
|
|
19
19
|
connectionConfig?: ConnectionConfig;
|
|
20
|
-
[key: string]:
|
|
20
|
+
[key: string]: unknown;
|
|
21
21
|
}
|
|
22
22
|
export interface QueryOptions {
|
|
23
23
|
sql: string;
|
|
24
|
-
values?:
|
|
25
|
-
[key: string]:
|
|
24
|
+
values?: unknown;
|
|
25
|
+
[key: string]: unknown;
|
|
26
26
|
}
|
|
27
27
|
export interface FieldInfo {
|
|
28
28
|
catalog: string;
|
|
@@ -34,35 +34,35 @@ export interface FieldInfo {
|
|
|
34
34
|
charsetNr: number;
|
|
35
35
|
length: number;
|
|
36
36
|
type: number;
|
|
37
|
-
[key: string]:
|
|
37
|
+
[key: string]: unknown;
|
|
38
38
|
}
|
|
39
|
-
export type queryCallback = (err: MysqlError | null, results?:
|
|
39
|
+
export type queryCallback = (err: MysqlError | null, results?: unknown, fields?: FieldInfo[]) => void;
|
|
40
40
|
export interface Query {
|
|
41
41
|
sql: string;
|
|
42
|
-
values?:
|
|
43
|
-
on(event: string, listener: (...args:
|
|
44
|
-
[key: string]:
|
|
42
|
+
values?: unknown;
|
|
43
|
+
on(event: string, listener: (...args: unknown[]) => void): this;
|
|
44
|
+
[key: string]: unknown;
|
|
45
45
|
}
|
|
46
46
|
export type QueryFunction = {
|
|
47
47
|
(query: string | QueryOptions, callback?: queryCallback): Query;
|
|
48
|
-
(query: string | QueryOptions, values?:
|
|
48
|
+
(query: string | QueryOptions, values?: unknown, callback?: queryCallback): Query;
|
|
49
49
|
};
|
|
50
50
|
export interface Connection {
|
|
51
51
|
config: ConnectionConfig;
|
|
52
52
|
query: QueryFunction;
|
|
53
|
-
[key: string]:
|
|
53
|
+
[key: string]: unknown;
|
|
54
54
|
}
|
|
55
55
|
export interface PoolConnection extends Connection {
|
|
56
56
|
release(): void;
|
|
57
|
-
[key: string]:
|
|
57
|
+
[key: string]: unknown;
|
|
58
58
|
}
|
|
59
59
|
export interface Pool {
|
|
60
60
|
config: PoolConfig;
|
|
61
61
|
query: QueryFunction;
|
|
62
62
|
getConnection(callback: (err: MysqlError, connection: PoolConnection) => void): void;
|
|
63
63
|
end(callback?: (err?: MysqlError) => void): void;
|
|
64
|
-
on(event: string, listener: (...args:
|
|
65
|
-
[key: string]:
|
|
64
|
+
on(event: string, listener: (...args: unknown[]) => void): this;
|
|
65
|
+
[key: string]: unknown;
|
|
66
66
|
}
|
|
67
67
|
export interface PoolCluster {
|
|
68
68
|
getConnection(callback: (err: MysqlError, connection: PoolConnection) => void): void;
|
|
@@ -70,7 +70,7 @@ export interface PoolCluster {
|
|
|
70
70
|
getConnection(pattern: string, selector: string, callback: (err: MysqlError, connection: PoolConnection) => void): void;
|
|
71
71
|
add(config: PoolConfig): void;
|
|
72
72
|
add(id: string, config: PoolConfig): void;
|
|
73
|
-
[key: string]:
|
|
73
|
+
[key: string]: unknown;
|
|
74
74
|
}
|
|
75
75
|
export declare function createConnection(connectionUri: string | ConnectionConfig): Connection;
|
|
76
76
|
export declare function createPool(config: string | PoolConfig): Pool;
|
|
@@ -77,12 +77,4 @@ export declare const ATTR_NET_PEER_PORT: "net.peer.port";
|
|
|
77
77
|
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
78
78
|
*/
|
|
79
79
|
export declare const DB_SYSTEM_VALUE_MYSQL: "mysql";
|
|
80
|
-
/**
|
|
81
|
-
* Deprecated, use `db.client.connection.count` instead.
|
|
82
|
-
*
|
|
83
|
-
* @experimental This metric is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
84
|
-
*
|
|
85
|
-
* @deprecated Replaced by `db.client.connection.count`.
|
|
86
|
-
*/
|
|
87
|
-
export declare const METRIC_DB_CLIENT_CONNECTIONS_USAGE: "db.client.connections.usage";
|
|
88
80
|
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getConfig(config:
|
|
3
|
-
host:
|
|
4
|
-
port:
|
|
5
|
-
database:
|
|
6
|
-
user:
|
|
1
|
+
import { ConnectionConfig, PoolConfig, Query, QueryOptions } from './mysql-types';
|
|
2
|
+
export declare function getConfig(config: ConnectionConfig | PoolConfig | undefined): {
|
|
3
|
+
host: string | undefined;
|
|
4
|
+
port: number | undefined;
|
|
5
|
+
database: string | undefined;
|
|
6
|
+
user: string | undefined;
|
|
7
7
|
};
|
|
8
8
|
export declare function getJDBCString(host: string | undefined, port: number | undefined, database: string | undefined): string;
|
|
9
9
|
/**
|
|
10
10
|
* @returns the database query being executed.
|
|
11
11
|
*/
|
|
12
12
|
export declare function getDbQueryText(query: string | Query | QueryOptions): string;
|
|
13
|
-
export declare function getDbValues(query: string | Query | QueryOptions, values?: any[]): string;
|
|
14
13
|
/**
|
|
15
14
|
* The span name SHOULD be set to a low cardinality value
|
|
16
15
|
* representing the statement executed on the database.
|
|
@@ -20,6 +19,4 @@ export declare function getDbValues(query: string | Query | QueryOptions, values
|
|
|
20
19
|
* @returns SQL statement without variable arguments or SQL verb
|
|
21
20
|
*/
|
|
22
21
|
export declare function getSpanName(query: string | Query | QueryOptions): string;
|
|
23
|
-
export declare function arrayStringifyHelper(arr: Array<unknown> | undefined): string;
|
|
24
|
-
export declare function getPoolNameOld(pool: Pool): string;
|
|
25
22
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -16,5 +16,7 @@ export declare const instrumentMysql2: ((options?: unknown) => MySQL2Instrumenta
|
|
|
16
16
|
* });
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const mysql2Integration: () => import("@sentry/core").Integration
|
|
19
|
+
export declare const mysql2Integration: () => import("@sentry/core").Integration & {
|
|
20
|
+
name: "Mysql2";
|
|
21
|
+
};
|
|
20
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -56,5 +56,7 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
*/
|
|
59
|
-
export declare const openAIIntegration: (options?: OpenAiOptions | undefined) => import("@sentry/core").Integration
|
|
59
|
+
export declare const openAIIntegration: (options?: OpenAiOptions | undefined) => import("@sentry/core").Integration & {
|
|
60
|
+
name: "OpenAI";
|
|
61
|
+
};
|
|
60
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -19,6 +19,8 @@ export declare const instrumentPostgres: ((options: PostgresIntegrationOptions |
|
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare const postgresIntegration: (options?: PostgresIntegrationOptions | undefined) => import("@sentry/core").Integration
|
|
22
|
+
export declare const postgresIntegration: (options?: PostgresIntegrationOptions | undefined) => import("@sentry/core").Integration & {
|
|
23
|
+
name: "Postgres";
|
|
24
|
+
};
|
|
23
25
|
export {};
|
|
24
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -96,6 +96,8 @@ export declare class PostgresJsInstrumentation extends InstrumentationBase<Postg
|
|
|
96
96
|
* });
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
|
-
export declare const postgresJsIntegration: (options?: PostgresJsInstrumentationConfig | undefined) => import("@sentry/core").Integration
|
|
99
|
+
export declare const postgresJsIntegration: (options?: PostgresJsInstrumentationConfig | undefined) => import("@sentry/core").Integration & {
|
|
100
|
+
name: "PostgresJs";
|
|
101
|
+
};
|
|
100
102
|
export {};
|
|
101
103
|
//# sourceMappingURL=postgresjs.d.ts.map
|
|
@@ -17,26 +17,8 @@ export declare const instrumentPrisma: ((options?: PrismaOptions | undefined) =>
|
|
|
17
17
|
* Adds Sentry tracing instrumentation for the [prisma](https://www.npmjs.com/package/prisma) library.
|
|
18
18
|
* For more information, see the [`prismaIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/).
|
|
19
19
|
*
|
|
20
|
-
* NOTE:
|
|
21
|
-
*
|
|
22
|
-
* 1. Install the `@prisma/instrumentation` package with the desired version.
|
|
23
|
-
* 1. Pass a `new PrismaInstrumentation()` instance as exported from `@prisma/instrumentation` to the `prismaInstrumentation` option of this integration:
|
|
24
|
-
*
|
|
25
|
-
* ```js
|
|
26
|
-
* import { PrismaInstrumentation } from '@prisma/instrumentation'
|
|
27
|
-
*
|
|
28
|
-
* Sentry.init({
|
|
29
|
-
* integrations: [
|
|
30
|
-
* prismaIntegration({
|
|
31
|
-
* // Override the default instrumentation that Sentry uses
|
|
32
|
-
* prismaInstrumentation: new PrismaInstrumentation()
|
|
33
|
-
* })
|
|
34
|
-
* ]
|
|
35
|
-
* })
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* The passed instrumentation instance will override the default instrumentation instance the integration would use, while the `prismaIntegration` will still ensure data compatibility for the various Prisma versions.
|
|
39
|
-
* 1. Depending on your Prisma version (prior to version 6), add `previewFeatures = ["tracing"]` to the client generator block of your Prisma schema:
|
|
20
|
+
* NOTE: This integration works out of the box with Prisma v6, and v7.
|
|
21
|
+
* On Prisma versions prior to v6, add `previewFeatures = ["tracing"]` to the client generator block of your Prisma schema:
|
|
40
22
|
*
|
|
41
23
|
* ```
|
|
42
24
|
* generator client {
|
|
@@ -45,6 +27,8 @@ export declare const instrumentPrisma: ((options?: PrismaOptions | undefined) =>
|
|
|
45
27
|
* }
|
|
46
28
|
* ```
|
|
47
29
|
*/
|
|
48
|
-
export declare const prismaIntegration: (options?: PrismaOptions | undefined) => import("@sentry/core").Integration
|
|
30
|
+
export declare const prismaIntegration: (options?: PrismaOptions | undefined) => import("@sentry/core").Integration & {
|
|
31
|
+
name: "Prisma";
|
|
32
|
+
};
|
|
49
33
|
export {};
|
|
50
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Span } from '@sentry/core';
|
|
2
2
|
import { EngineSpan, ExtendedSpanOptions, SpanCallback, TracingHelper } from './types';
|
|
3
3
|
type Options = {
|
|
4
|
-
tracerProvider: TracerProvider;
|
|
5
4
|
ignoreSpanTypes: (string | RegExp)[];
|
|
6
5
|
};
|
|
7
6
|
export declare class ActiveTracingHelper implements TracingHelper {
|
|
8
|
-
private tracerProvider;
|
|
9
7
|
private ignoreSpanTypes;
|
|
10
|
-
constructor({
|
|
8
|
+
constructor({ ignoreSpanTypes }: Options);
|
|
11
9
|
isEnabled(): boolean;
|
|
12
|
-
getTraceParent(
|
|
10
|
+
getTraceParent(span?: Span): string;
|
|
13
11
|
dispatchEngineSpans(spans: EngineSpan[]): void;
|
|
14
|
-
getActiveContext():
|
|
15
|
-
runInChildSpan<R>(
|
|
12
|
+
getActiveContext(): Span | undefined;
|
|
13
|
+
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
16
14
|
}
|
|
17
15
|
export {};
|
|
18
16
|
//# sourceMappingURL=active-tracing-helper.d.ts.map
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InstrumentationBase,
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
3
3
|
export interface PrismaInstrumentationConfig {
|
|
4
4
|
ignoreSpanTypes?: (string | RegExp)[];
|
|
5
5
|
}
|
|
6
6
|
type Config = PrismaInstrumentationConfig & InstrumentationConfig;
|
|
7
7
|
export declare class PrismaInstrumentation extends InstrumentationBase {
|
|
8
|
-
private tracerProvider;
|
|
9
8
|
constructor(config?: Config);
|
|
10
|
-
setTracerProvider(tracerProvider: TracerProvider): void;
|
|
11
9
|
init(): InstrumentationNodeModuleDefinition[];
|
|
12
10
|
enable(): void;
|
|
13
11
|
disable(): void;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { SpanOptions } from '@opentelemetry/api';
|
|
2
|
+
import { Span } from '@sentry/core';
|
|
3
|
+
export type SpanCallback<R> = (span?: Span, parentSpan?: Span) => R;
|
|
3
4
|
export interface ExtendedSpanOptions extends SpanOptions {
|
|
4
5
|
/** The name of the span */
|
|
5
6
|
name: string;
|
|
6
7
|
internal?: boolean;
|
|
7
8
|
/** Whether it propagates context (?=true) */
|
|
8
9
|
active?: boolean;
|
|
9
|
-
/** The context to append the span to */
|
|
10
|
-
context?: Context;
|
|
11
10
|
}
|
|
12
11
|
export type EngineSpanId = string;
|
|
13
12
|
export type HrTime = [
|
|
@@ -25,28 +24,11 @@ export type EngineSpan = {
|
|
|
25
24
|
attributes?: Record<string, unknown>;
|
|
26
25
|
links?: EngineSpanId[];
|
|
27
26
|
};
|
|
28
|
-
export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'query';
|
|
29
|
-
export interface EngineTraceEvent {
|
|
30
|
-
spanId: EngineSpanId;
|
|
31
|
-
target?: string;
|
|
32
|
-
level: LogLevel;
|
|
33
|
-
timestamp: HrTime;
|
|
34
|
-
attributes: Record<string, unknown> & {
|
|
35
|
-
message?: string;
|
|
36
|
-
query?: string;
|
|
37
|
-
duration_ms?: number;
|
|
38
|
-
params?: string;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface EngineTrace {
|
|
42
|
-
spans: EngineSpan[];
|
|
43
|
-
events: EngineTraceEvent[];
|
|
44
|
-
}
|
|
45
27
|
export interface TracingHelper {
|
|
46
28
|
isEnabled(): boolean;
|
|
47
|
-
getTraceParent(
|
|
29
|
+
getTraceParent(span?: Span): string;
|
|
48
30
|
dispatchEngineSpans(spans: EngineSpan[]): void;
|
|
49
|
-
getActiveContext():
|
|
31
|
+
getActiveContext(): Span | undefined;
|
|
50
32
|
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
|
51
33
|
}
|
|
52
34
|
export interface PrismaInstrumentationGlobalValue {
|