@sentry/server-utils 10.70.0 → 11.0.0-alpha.1
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/README.md +1 -1
- package/build/THIRD-PARTY-LICENSES.txt +976 -0
- package/build/cjs/_virtual/_commonjsHelpers.js +8 -0
- package/build/cjs/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/cjs/_virtual/array-set.js +6 -0
- package/build/cjs/_virtual/array-set.js.map +1 -0
- package/build/cjs/_virtual/astring.js +6 -0
- package/build/cjs/_virtual/astring.js.map +1 -0
- package/build/cjs/_virtual/base64-vlq.js +6 -0
- package/build/cjs/_virtual/base64-vlq.js.map +1 -0
- package/build/cjs/_virtual/base64.js +6 -0
- package/build/cjs/_virtual/base64.js.map +1 -0
- package/build/cjs/_virtual/binary-search.js +6 -0
- package/build/cjs/_virtual/binary-search.js.map +1 -0
- package/build/cjs/_virtual/mapping-list.js +6 -0
- package/build/cjs/_virtual/mapping-list.js.map +1 -0
- package/build/cjs/_virtual/meriyah.js +6 -0
- package/build/cjs/_virtual/meriyah.js.map +1 -0
- package/build/cjs/_virtual/node.js +6 -0
- package/build/cjs/_virtual/node.js.map +1 -0
- package/build/cjs/_virtual/quick-sort.js +6 -0
- package/build/cjs/_virtual/quick-sort.js.map +1 -0
- package/build/cjs/_virtual/source-map-consumer.js +6 -0
- package/build/cjs/_virtual/source-map-consumer.js.map +1 -0
- package/build/cjs/_virtual/source-map-generator.js +6 -0
- package/build/cjs/_virtual/source-map-generator.js.map +1 -0
- package/build/cjs/_virtual/source-map.js +6 -0
- package/build/cjs/_virtual/source-map.js.map +1 -0
- package/build/cjs/_virtual/source-node.js +6 -0
- package/build/cjs/_virtual/source-node.js.map +1 -0
- package/build/cjs/_virtual/util.js +6 -0
- package/build/cjs/_virtual/util.js.map +1 -0
- package/build/cjs/ai/anthropic-ai/constants.js +13 -0
- package/build/cjs/ai/anthropic-ai/constants.js.map +1 -0
- package/build/cjs/ai/anthropic-ai/index.js +245 -0
- package/build/cjs/ai/anthropic-ai/index.js.map +1 -0
- package/build/cjs/ai/anthropic-ai/streaming.js +154 -0
- package/build/cjs/ai/anthropic-ai/streaming.js.map +1 -0
- package/build/cjs/ai/anthropic-ai/utils.js +61 -0
- package/build/cjs/ai/anthropic-ai/utils.js.map +1 -0
- package/build/cjs/ai/core/gen-ai-attributes.js +20 -0
- package/build/cjs/ai/core/gen-ai-attributes.js.map +1 -0
- package/build/cjs/ai/core/utils.js +134 -0
- package/build/cjs/ai/core/utils.js.map +1 -0
- package/build/cjs/ai/google-genai/constants.js +17 -0
- package/build/cjs/ai/google-genai/constants.js.map +1 -0
- package/build/cjs/ai/google-genai/index.js +251 -0
- package/build/cjs/ai/google-genai/index.js.map +1 -0
- package/build/cjs/ai/google-genai/streaming.js +71 -0
- package/build/cjs/ai/google-genai/streaming.js.map +1 -0
- package/build/cjs/ai/google-genai/utils.js +21 -0
- package/build/cjs/ai/google-genai/utils.js.map +1 -0
- package/build/cjs/ai/langchain/constants.js +17 -0
- package/build/cjs/ai/langchain/constants.js.map +1 -0
- package/build/cjs/ai/langchain/embeddings.js +85 -0
- package/build/cjs/ai/langchain/embeddings.js.map +1 -0
- package/build/cjs/ai/langchain/index.js +257 -0
- package/build/cjs/ai/langchain/index.js.map +1 -0
- package/build/cjs/ai/langchain/utils.js +272 -0
- package/build/cjs/ai/langchain/utils.js.map +1 -0
- package/build/cjs/ai/langgraph/constants.js +8 -0
- package/build/cjs/ai/langgraph/constants.js.map +1 -0
- package/build/cjs/ai/langgraph/index.js +176 -0
- package/build/cjs/ai/langgraph/index.js.map +1 -0
- package/build/cjs/ai/langgraph/utils.js +231 -0
- package/build/cjs/ai/langgraph/utils.js.map +1 -0
- package/build/cjs/ai/openai/constants.js +33 -0
- package/build/cjs/ai/openai/constants.js.map +1 -0
- package/build/cjs/ai/openai/index.js +173 -0
- package/build/cjs/ai/openai/index.js.map +1 -0
- package/build/cjs/ai/openai/streaming.js +126 -0
- package/build/cjs/ai/openai/streaming.js.map +1 -0
- package/build/cjs/ai/openai/utils.js +111 -0
- package/build/cjs/ai/openai/utils.js.map +1 -0
- package/build/cjs/ai/vercel-ai/constants.js +21 -0
- package/build/cjs/ai/vercel-ai/constants.js.map +1 -0
- package/build/cjs/ai/vercel-ai/index.js +339 -0
- package/build/cjs/ai/vercel-ai/index.js.map +1 -0
- package/build/cjs/ai/vercel-ai/utils.js +171 -0
- package/build/cjs/ai/vercel-ai/utils.js.map +1 -0
- package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js +50 -0
- package/build/cjs/ai/vercel-ai/vercel-ai-attributes.js.map +1 -0
- package/build/cjs/ai/workers-ai/constants.js +10 -0
- package/build/cjs/ai/workers-ai/constants.js.map +1 -0
- package/build/cjs/ai/workers-ai/index.js +83 -0
- package/build/cjs/ai/workers-ai/index.js.map +1 -0
- package/build/cjs/ai/workers-ai/streaming.js +150 -0
- package/build/cjs/ai/workers-ai/streaming.js.map +1 -0
- package/build/cjs/ai/workers-ai/utils.js +132 -0
- package/build/cjs/ai/workers-ai/utils.js.map +1 -0
- package/build/cjs/async-context.js +68 -0
- package/build/cjs/async-context.js.map +1 -0
- package/build/cjs/debug-build.js.map +1 -1
- package/build/cjs/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/cjs/graphql/index.js +15 -2
- package/build/cjs/graphql/index.js.map +1 -1
- package/build/cjs/graphql/utils.js +5 -3
- package/build/cjs/graphql/utils.js.map +1 -1
- package/build/cjs/index.js +42 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +31 -0
- package/build/cjs/index.no-diagnostic-channels.js.map +1 -0
- package/build/cjs/integrations/tracing-channel/amqplib.js +46 -35
- package/build/cjs/integrations/tracing-channel/amqplib.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/anthropic.js +55 -45
- package/build/cjs/integrations/tracing-channel/anthropic.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js +3 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js +115 -115
- package/build/cjs/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +8 -4
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -2
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js +1 -3
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js +0 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js +1 -3
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +1 -3
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js +3 -4
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js +5 -5
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +1 -3
- package/build/cjs/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/dataloader.js +37 -16
- package/build/cjs/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/index.js +24 -11
- package/build/cjs/integrations/tracing-channel/express/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js +11 -16
- package/build/cjs/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/express/route.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/errors.js +14 -1
- package/build/cjs/integrations/tracing-channel/fastify/errors.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js +25 -10
- package/build/cjs/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js +16 -3
- package/build/cjs/integrations/tracing-channel/firebase/firestore.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/functions.js +6 -4
- package/build/cjs/integrations/tracing-channel/firebase/functions.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/index.js +8 -12
- package/build/cjs/integrations/tracing-channel/firebase/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js +17 -14
- package/build/cjs/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/generic-pool.js +25 -10
- package/build/cjs/integrations/tracing-channel/generic-pool.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/google-genai.js +57 -43
- package/build/cjs/integrations/tracing-channel/google-genai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/constants.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/index.js +40 -36
- package/build/cjs/integrations/tracing-channel/graphql/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi-types.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi-utils.js +13 -21
- package/build/cjs/integrations/tracing-channel/hapi-utils.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/hapi.js +51 -36
- package/build/cjs/integrations/tracing-channel/hapi.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/ioredis.js +52 -41
- package/build/cjs/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js +28 -15
- package/build/cjs/integrations/tracing-channel/kafkajs/index.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js +8 -7
- package/build/cjs/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/knex.js +24 -10
- package/build/cjs/integrations/tracing-channel/knex.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/koa.js +42 -39
- package/build/cjs/integrations/tracing-channel/koa.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/langchain.js +59 -40
- package/build/cjs/integrations/tracing-channel/langchain.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/langgraph.js +64 -64
- package/build/cjs/integrations/tracing-channel/langgraph.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js +27 -16
- package/build/cjs/integrations/tracing-channel/lru-memoizer.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mongodb.js +29 -16
- package/build/cjs/integrations/tracing-channel/mongodb.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mongoose.js +25 -13
- package/build/cjs/integrations/tracing-channel/mongoose.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mysql.js +65 -53
- package/build/cjs/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/mysql2.js +27 -10
- package/build/cjs/integrations/tracing-channel/mysql2.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/openai.js +46 -34
- package/build/cjs/integrations/tracing-channel/openai.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/postgres-js.js +96 -84
- package/build/cjs/integrations/tracing-channel/postgres-js.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/postgres.js +35 -19
- package/build/cjs/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/redis.js +52 -31
- package/build/cjs/integrations/tracing-channel/redis.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/tedious.js +35 -22
- package/build/cjs/integrations/tracing-channel/tedious.js.map +1 -1
- package/build/cjs/integrations/tracing-channel/vercel-ai.js +23 -10
- package/build/cjs/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/cjs/mongodb/mongodb-span.js +15 -18
- package/build/cjs/mongodb/mongodb-span.js.map +1 -1
- package/build/cjs/mongoose/index.js +15 -2
- package/build/cjs/mongoose/index.js.map +1 -1
- package/build/cjs/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/cjs/mongoose/mongoose-legacy-span.js +4 -3
- package/build/cjs/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/cjs/mysql2/index.js +15 -2
- package/build/cjs/mysql2/index.js.map +1 -1
- package/build/cjs/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/cjs/orchestrion/bundler/esbuild.js +22 -6
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +43 -0
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +1 -0
- package/build/cjs/orchestrion/bundler/options.js +5 -19
- package/build/cjs/orchestrion/bundler/options.js.map +1 -1
- package/build/cjs/orchestrion/bundler/resolve.js +23 -0
- package/build/cjs/orchestrion/bundler/resolve.js.map +1 -0
- package/build/cjs/orchestrion/bundler/rollup.js +21 -6
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/vite.js +42 -7
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack-loader.js +22 -0
- package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -0
- package/build/cjs/orchestrion/bundler/webpack.js +45 -24
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/channels.js.map +1 -1
- package/build/cjs/orchestrion/config/amqplib.js +3 -3
- package/build/cjs/orchestrion/config/amqplib.js.map +1 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +8 -16
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/cjs/orchestrion/config/aws-sdk.js +3 -3
- package/build/cjs/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +16 -16
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/cjs/orchestrion/config/dataloader.js +0 -4
- package/build/cjs/orchestrion/config/dataloader.js.map +1 -1
- package/build/cjs/orchestrion/config/express.js +4 -4
- package/build/cjs/orchestrion/config/express.js.map +1 -1
- package/build/cjs/orchestrion/config/firebase.js +3 -3
- package/build/cjs/orchestrion/config/firebase.js.map +1 -1
- package/build/cjs/orchestrion/config/generic-pool.js +3 -3
- package/build/cjs/orchestrion/config/generic-pool.js.map +1 -1
- package/build/cjs/orchestrion/config/google-genai.js +8 -7
- package/build/cjs/orchestrion/config/google-genai.js.map +1 -1
- package/build/cjs/orchestrion/config/graphql.js +3 -3
- package/build/cjs/orchestrion/config/graphql.js.map +1 -1
- package/build/cjs/orchestrion/config/hapi.js +3 -3
- package/build/cjs/orchestrion/config/hapi.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +3 -32
- package/build/cjs/orchestrion/config/index.js.map +1 -1
- package/build/cjs/orchestrion/config/ioredis.js +3 -3
- package/build/cjs/orchestrion/config/ioredis.js.map +1 -1
- package/build/cjs/orchestrion/config/kafkajs.js +3 -3
- package/build/cjs/orchestrion/config/kafkajs.js.map +1 -1
- package/build/cjs/orchestrion/config/knex.js +0 -4
- package/build/cjs/orchestrion/config/knex.js.map +1 -1
- package/build/cjs/orchestrion/config/koa.js +3 -3
- package/build/cjs/orchestrion/config/koa.js.map +1 -1
- package/build/cjs/orchestrion/config/langchain.js +3 -3
- package/build/cjs/orchestrion/config/langchain.js.map +1 -1
- package/build/cjs/orchestrion/config/langgraph.js +3 -3
- package/build/cjs/orchestrion/config/langgraph.js.map +1 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js +3 -3
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/cjs/orchestrion/config/module-names.js +8 -0
- package/build/cjs/orchestrion/config/module-names.js.map +1 -0
- package/build/cjs/orchestrion/config/mongodb.js +3 -3
- package/build/cjs/orchestrion/config/mongodb.js.map +1 -1
- package/build/cjs/orchestrion/config/mongoose.js +3 -3
- package/build/cjs/orchestrion/config/mongoose.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql.js +3 -3
- package/build/cjs/orchestrion/config/mysql.js.map +1 -1
- package/build/cjs/orchestrion/config/mysql2.js +3 -3
- package/build/cjs/orchestrion/config/mysql2.js.map +1 -1
- package/build/cjs/orchestrion/config/nestjs.js +0 -4
- package/build/cjs/orchestrion/config/nestjs.js.map +1 -1
- package/build/cjs/orchestrion/config/openai.js +3 -3
- package/build/cjs/orchestrion/config/openai.js.map +1 -1
- package/build/cjs/orchestrion/config/pg.js +3 -3
- package/build/cjs/orchestrion/config/pg.js.map +1 -1
- package/build/cjs/orchestrion/config/postgres.js +3 -3
- package/build/cjs/orchestrion/config/postgres.js.map +1 -1
- package/build/cjs/orchestrion/config/redis.js +3 -3
- package/build/cjs/orchestrion/config/redis.js.map +1 -1
- package/build/cjs/orchestrion/config/remix.js +0 -4
- package/build/cjs/orchestrion/config/remix.js.map +1 -1
- package/build/cjs/orchestrion/config/tedious.js +3 -3
- package/build/cjs/orchestrion/config/tedious.js.map +1 -1
- package/build/cjs/orchestrion/config/vercel-ai.js +3 -3
- package/build/cjs/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/cjs/orchestrion/detect.js +7 -1
- package/build/cjs/orchestrion/detect.js.map +1 -1
- package/build/cjs/orchestrion/index.js +51 -50
- package/build/cjs/orchestrion/index.js.map +1 -1
- package/build/cjs/orchestrion/instrumentation.js +86 -0
- package/build/cjs/orchestrion/instrumentation.js.map +1 -0
- package/build/cjs/orchestrion/moduleInjected.js +21 -0
- package/build/cjs/orchestrion/moduleInjected.js.map +1 -0
- package/build/cjs/orchestrion/runtime/hook.js +17 -0
- package/build/cjs/orchestrion/runtime/hook.js.map +1 -0
- package/build/cjs/orchestrion/runtime/register.js +46 -43
- package/build/cjs/orchestrion/runtime/register.js.map +1 -1
- package/build/cjs/otlp.js +45 -0
- package/build/cjs/otlp.js.map +1 -0
- package/build/cjs/prisma/global.js.map +1 -1
- package/build/cjs/prisma/index.js.map +1 -1
- package/build/cjs/prisma/tracing-helper.js +21 -10
- package/build/cjs/prisma/tracing-helper.js.map +1 -1
- package/build/cjs/redis/index.js +15 -2
- package/build/cjs/redis/index.js.map +1 -1
- package/build/cjs/redis/redis-dc-subscriber.js +5 -3
- package/build/cjs/redis/redis-dc-subscriber.js.map +1 -1
- package/build/cjs/redis/redis-statement-serializer.js.map +1 -1
- package/build/cjs/tracing-channel.js +18 -1
- package/build/cjs/tracing-channel.js.map +1 -1
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +26 -0
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +8 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +12 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +86 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +316 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +442 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +219 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +98 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +52 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1069 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +14 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +117 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +104 -0
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js +166 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js +88 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +15 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +30 -0
- package/build/cjs/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
- package/build/cjs/vendored/astring/dist/astring.js +1068 -0
- package/build/cjs/vendored/astring/dist/astring.js.map +1 -0
- package/build/cjs/vendored/debug/src/common.js +178 -0
- package/build/cjs/vendored/debug/src/common.js.map +1 -0
- package/build/cjs/vendored/debug/src/node.js +186 -0
- package/build/cjs/vendored/debug/src/node.js.map +1 -0
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +847 -0
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
- package/build/cjs/vendored/has-flag/index.js +11 -0
- package/build/cjs/vendored/has-flag/index.js.map +1 -0
- package/build/cjs/vendored/meriyah/dist/meriyah.js +9192 -0
- package/build/cjs/vendored/meriyah/dist/meriyah.js.map +1 -0
- package/build/cjs/vendored/meriyah/dist/meriyah2.js +9209 -0
- package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +1 -0
- package/build/cjs/vendored/module-details-from-path/index.js +44 -0
- package/build/cjs/vendored/module-details-from-path/index.js.map +1 -0
- package/build/cjs/vendored/ms/index.js +115 -0
- package/build/cjs/vendored/ms/index.js.map +1 -0
- package/build/cjs/vendored/semifies/index.js +111 -0
- package/build/cjs/vendored/semifies/index.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/array-set.js +73 -0
- package/build/cjs/vendored/source-map/lib/array-set.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/base64-vlq.js +57 -0
- package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/base64.js +42 -0
- package/build/cjs/vendored/source-map/lib/base64.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/binary-search.js +55 -0
- package/build/cjs/vendored/source-map/lib/binary-search.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/mapping-list.js +42 -0
- package/build/cjs/vendored/source-map/lib/mapping-list.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/quick-sort.js +36 -0
- package/build/cjs/vendored/source-map/lib/quick-sort.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js +612 -0
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-map-generator.js +285 -0
- package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/source-node.js +270 -0
- package/build/cjs/vendored/source-map/lib/source-node.js.map +1 -0
- package/build/cjs/vendored/source-map/lib/util.js +300 -0
- package/build/cjs/vendored/source-map/lib/util.js.map +1 -0
- package/build/cjs/vendored/source-map/source-map.js +16 -0
- package/build/cjs/vendored/source-map/source-map.js.map +1 -0
- package/build/cjs/vendored/supports-color/index.js +104 -0
- package/build/cjs/vendored/supports-color/index.js.map +1 -0
- package/build/cjs/vercel-ai/index.js +15 -2
- package/build/cjs/vercel-ai/index.js.map +1 -1
- package/build/cjs/vercel-ai/util.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js +26 -27
- package/build/cjs/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
- package/build/cjs/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/_virtual/_commonjsHelpers.js +6 -0
- package/build/esm/_virtual/_commonjsHelpers.js.map +1 -0
- package/build/esm/_virtual/array-set.js +4 -0
- package/build/esm/_virtual/array-set.js.map +1 -0
- package/build/esm/_virtual/astring.js +4 -0
- package/build/esm/_virtual/astring.js.map +1 -0
- package/build/esm/_virtual/base64-vlq.js +4 -0
- package/build/esm/_virtual/base64-vlq.js.map +1 -0
- package/build/esm/_virtual/base64.js +4 -0
- package/build/esm/_virtual/base64.js.map +1 -0
- package/build/esm/_virtual/binary-search.js +4 -0
- package/build/esm/_virtual/binary-search.js.map +1 -0
- package/build/esm/_virtual/mapping-list.js +4 -0
- package/build/esm/_virtual/mapping-list.js.map +1 -0
- package/build/esm/_virtual/meriyah.js +4 -0
- package/build/esm/_virtual/meriyah.js.map +1 -0
- package/build/esm/_virtual/node.js +4 -0
- package/build/esm/_virtual/node.js.map +1 -0
- package/build/esm/_virtual/quick-sort.js +4 -0
- package/build/esm/_virtual/quick-sort.js.map +1 -0
- package/build/esm/_virtual/source-map-consumer.js +4 -0
- package/build/esm/_virtual/source-map-consumer.js.map +1 -0
- package/build/esm/_virtual/source-map-generator.js +4 -0
- package/build/esm/_virtual/source-map-generator.js.map +1 -0
- package/build/esm/_virtual/source-map.js +4 -0
- package/build/esm/_virtual/source-map.js.map +1 -0
- package/build/esm/_virtual/source-node.js +4 -0
- package/build/esm/_virtual/source-node.js.map +1 -0
- package/build/esm/_virtual/util.js +4 -0
- package/build/esm/_virtual/util.js.map +1 -0
- package/build/esm/ai/anthropic-ai/constants.js +10 -0
- package/build/esm/ai/anthropic-ai/constants.js.map +1 -0
- package/build/esm/ai/anthropic-ai/index.js +240 -0
- package/build/esm/ai/anthropic-ai/index.js.map +1 -0
- package/build/esm/ai/anthropic-ai/streaming.js +151 -0
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -0
- package/build/esm/ai/anthropic-ai/utils.js +56 -0
- package/build/esm/ai/anthropic-ai/utils.js.map +1 -0
- package/build/esm/ai/core/gen-ai-attributes.js +11 -0
- package/build/esm/ai/core/gen-ai-attributes.js.map +1 -0
- package/build/esm/ai/core/utils.js +126 -0
- package/build/esm/ai/core/utils.js.map +1 -0
- package/build/esm/ai/google-genai/constants.js +13 -0
- package/build/esm/ai/google-genai/constants.js.map +1 -0
- package/build/esm/ai/google-genai/index.js +245 -0
- package/build/esm/ai/google-genai/index.js.map +1 -0
- package/build/esm/ai/google-genai/streaming.js +69 -0
- package/build/esm/ai/google-genai/streaming.js.map +1 -0
- package/build/esm/ai/google-genai/utils.js +19 -0
- package/build/esm/ai/google-genai/utils.js.map +1 -0
- package/build/esm/ai/langchain/constants.js +13 -0
- package/build/esm/ai/langchain/constants.js.map +1 -0
- package/build/esm/ai/langchain/embeddings.js +81 -0
- package/build/esm/ai/langchain/embeddings.js.map +1 -0
- package/build/esm/ai/langchain/index.js +255 -0
- package/build/esm/ai/langchain/index.js.map +1 -0
- package/build/esm/ai/langchain/utils.js +263 -0
- package/build/esm/ai/langchain/utils.js.map +1 -0
- package/build/esm/ai/langgraph/constants.js +5 -0
- package/build/esm/ai/langgraph/constants.js.map +1 -0
- package/build/esm/ai/langgraph/index.js +171 -0
- package/build/esm/ai/langgraph/index.js.map +1 -0
- package/build/esm/ai/langgraph/utils.js +222 -0
- package/build/esm/ai/langgraph/utils.js.map +1 -0
- package/build/esm/ai/openai/constants.js +28 -0
- package/build/esm/ai/openai/constants.js.map +1 -0
- package/build/esm/ai/openai/index.js +169 -0
- package/build/esm/ai/openai/index.js.map +1 -0
- package/build/esm/ai/openai/streaming.js +124 -0
- package/build/esm/ai/openai/streaming.js.map +1 -0
- package/build/esm/ai/openai/utils.js +106 -0
- package/build/esm/ai/openai/utils.js.map +1 -0
- package/build/esm/ai/vercel-ai/constants.js +18 -0
- package/build/esm/ai/vercel-ai/constants.js.map +1 -0
- package/build/esm/ai/vercel-ai/index.js +335 -0
- package/build/esm/ai/vercel-ai/index.js.map +1 -0
- package/build/esm/ai/vercel-ai/utils.js +164 -0
- package/build/esm/ai/vercel-ai/utils.js.map +1 -0
- package/build/esm/ai/vercel-ai/vercel-ai-attributes.js +26 -0
- package/build/esm/ai/vercel-ai/vercel-ai-attributes.js.map +1 -0
- package/build/esm/ai/workers-ai/constants.js +6 -0
- package/build/esm/ai/workers-ai/constants.js.map +1 -0
- package/build/esm/ai/workers-ai/index.js +81 -0
- package/build/esm/ai/workers-ai/index.js.map +1 -0
- package/build/esm/ai/workers-ai/streaming.js +148 -0
- package/build/esm/ai/workers-ai/streaming.js.map +1 -0
- package/build/esm/ai/workers-ai/utils.js +126 -0
- package/build/esm/ai/workers-ai/utils.js.map +1 -0
- package/build/esm/async-context.js +66 -0
- package/build/esm/async-context.js.map +1 -0
- package/build/esm/debug-build.js.map +1 -1
- package/build/esm/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/esm/graphql/index.js.map +1 -1
- package/build/esm/graphql/utils.js +6 -4
- package/build/esm/graphql/utils.js.map +1 -1
- package/build/esm/index.js +11 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +12 -0
- package/build/esm/index.no-diagnostic-channels.js.map +1 -0
- package/build/esm/integrations/tracing-channel/amqplib.js +25 -27
- package/build/esm/integrations/tracing-channel/amqplib.js.map +1 -1
- package/build/esm/integrations/tracing-channel/anthropic.js +37 -40
- package/build/esm/integrations/tracing-channel/anthropic.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/constants.js +3 -2
- package/build/esm/integrations/tracing-channel/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/index.js +106 -119
- package/build/esm/integrations/tracing-channel/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js +10 -6
- package/build/esm/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js +0 -2
- package/build/esm/integrations/tracing-channel/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js +1 -3
- package/build/esm/integrations/tracing-channel/aws-sdk/services/kinesis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js +1 -2
- package/build/esm/integrations/tracing-channel/aws-sdk/services/lambda.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js +1 -3
- package/build/esm/integrations/tracing-channel/aws-sdk/services/s3.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js +1 -3
- package/build/esm/integrations/tracing-channel/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js +5 -6
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sns.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js +7 -7
- package/build/esm/integrations/tracing-channel/aws-sdk/services/sqs.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js +1 -3
- package/build/esm/integrations/tracing-channel/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/aws-sdk/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/dataloader.js +22 -14
- package/build/esm/integrations/tracing-channel/dataloader.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/index.js +11 -11
- package/build/esm/integrations/tracing-channel/express/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -18
- package/build/esm/integrations/tracing-channel/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/express/route.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/errors.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js +13 -11
- package/build/esm/integrations/tracing-channel/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/fastify/utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/firestore.js +4 -4
- package/build/esm/integrations/tracing-channel/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/functions.js +8 -6
- package/build/esm/integrations/tracing-channel/firebase/functions.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/index.js +8 -12
- package/build/esm/integrations/tracing-channel/firebase/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/firebase/instrumentation.js +3 -13
- package/build/esm/integrations/tracing-channel/firebase/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing-channel/generic-pool.js +12 -10
- package/build/esm/integrations/tracing-channel/generic-pool.js.map +1 -1
- package/build/esm/integrations/tracing-channel/google-genai.js +41 -40
- package/build/esm/integrations/tracing-channel/google-genai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/constants.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/index.js +30 -39
- package/build/esm/integrations/tracing-channel/graphql/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/resolvers.js.map +1 -1
- package/build/esm/integrations/tracing-channel/graphql/spans.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi-types.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi-utils.js +14 -22
- package/build/esm/integrations/tracing-channel/hapi-utils.js.map +1 -1
- package/build/esm/integrations/tracing-channel/hapi.js +39 -37
- package/build/esm/integrations/tracing-channel/hapi.js.map +1 -1
- package/build/esm/integrations/tracing-channel/ioredis.js +40 -42
- package/build/esm/integrations/tracing-channel/ioredis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/consumer.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/index.js +14 -14
- package/build/esm/integrations/tracing-channel/kafkajs/index.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/semconv.js.map +1 -1
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js +10 -9
- package/build/esm/integrations/tracing-channel/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/tracing-channel/knex.js +10 -9
- package/build/esm/integrations/tracing-channel/knex.js.map +1 -1
- package/build/esm/integrations/tracing-channel/koa.js +30 -40
- package/build/esm/integrations/tracing-channel/koa.js.map +1 -1
- package/build/esm/integrations/tracing-channel/langchain.js +45 -39
- package/build/esm/integrations/tracing-channel/langchain.js.map +1 -1
- package/build/esm/integrations/tracing-channel/langgraph.js +50 -63
- package/build/esm/integrations/tracing-channel/langgraph.js.map +1 -1
- package/build/esm/integrations/tracing-channel/lru-memoizer.js +15 -17
- package/build/esm/integrations/tracing-channel/lru-memoizer.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mongodb.js +14 -14
- package/build/esm/integrations/tracing-channel/mongodb.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mongoose.js +11 -12
- package/build/esm/integrations/tracing-channel/mongoose.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mysql.js +53 -54
- package/build/esm/integrations/tracing-channel/mysql.js.map +1 -1
- package/build/esm/integrations/tracing-channel/mysql2.js +14 -10
- package/build/esm/integrations/tracing-channel/mysql2.js.map +1 -1
- package/build/esm/integrations/tracing-channel/openai.js +32 -33
- package/build/esm/integrations/tracing-channel/openai.js.map +1 -1
- package/build/esm/integrations/tracing-channel/postgres-js.js +85 -86
- package/build/esm/integrations/tracing-channel/postgres-js.js.map +1 -1
- package/build/esm/integrations/tracing-channel/postgres.js +22 -19
- package/build/esm/integrations/tracing-channel/postgres.js.map +1 -1
- package/build/esm/integrations/tracing-channel/redis.js +37 -29
- package/build/esm/integrations/tracing-channel/redis.js.map +1 -1
- package/build/esm/integrations/tracing-channel/tedious.js +22 -22
- package/build/esm/integrations/tracing-channel/tedious.js.map +1 -1
- package/build/esm/integrations/tracing-channel/vercel-ai.js +13 -13
- package/build/esm/integrations/tracing-channel/vercel-ai.js.map +1 -1
- package/build/esm/mongodb/mongodb-span.js +13 -16
- package/build/esm/mongodb/mongodb-span.js.map +1 -1
- package/build/esm/mongoose/index.js.map +1 -1
- package/build/esm/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/mongoose/mongoose-legacy-span.js +3 -2
- package/build/esm/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/esm/mysql2/index.js.map +1 -1
- package/build/esm/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/esbuild.js +22 -2
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +40 -0
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -0
- package/build/esm/orchestrion/bundler/options.js +5 -20
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/resolve.js +20 -0
- package/build/esm/orchestrion/bundler/resolve.js.map +1 -0
- package/build/esm/orchestrion/bundler/rollup.js +21 -2
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/bundler/vite.js +43 -4
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack-loader.js +20 -0
- package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -0
- package/build/esm/orchestrion/bundler/webpack.js +43 -18
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +3 -3
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +8 -16
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/aws-sdk.js +3 -3
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +16 -16
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/dataloader.js +1 -4
- package/build/esm/orchestrion/config/dataloader.js.map +1 -1
- package/build/esm/orchestrion/config/express.js +4 -4
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js +3 -3
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js +3 -3
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +8 -7
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js +3 -3
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js +3 -3
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +31 -61
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js +3 -3
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +3 -3
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js +1 -4
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- package/build/esm/orchestrion/config/koa.js +3 -3
- package/build/esm/orchestrion/config/koa.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js +3 -3
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js +3 -3
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js +3 -3
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/module-names.js +6 -0
- package/build/esm/orchestrion/config/module-names.js.map +1 -0
- package/build/esm/orchestrion/config/mongodb.js +3 -3
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js +3 -3
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js +3 -3
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js +3 -3
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js +1 -4
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +3 -3
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js +3 -3
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js +3 -3
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js +3 -3
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js +1 -4
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/tedious.js +3 -3
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js +3 -3
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/detect.js +7 -2
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/index.js +51 -51
- package/build/esm/orchestrion/index.js.map +1 -1
- package/build/esm/orchestrion/instrumentation.js +71 -0
- package/build/esm/orchestrion/instrumentation.js.map +1 -0
- package/build/esm/orchestrion/moduleInjected.js +19 -0
- package/build/esm/orchestrion/moduleInjected.js.map +1 -0
- package/build/esm/orchestrion/runtime/hook.js +8 -0
- package/build/esm/orchestrion/runtime/hook.js.map +1 -0
- package/build/esm/orchestrion/runtime/register.js +34 -45
- package/build/esm/orchestrion/runtime/register.js.map +1 -1
- package/build/esm/otlp.js +42 -0
- package/build/esm/otlp.js.map +1 -0
- package/build/esm/package.json +1 -1
- package/build/esm/prisma/global.js.map +1 -1
- package/build/esm/prisma/index.js.map +1 -1
- package/build/esm/prisma/tracing-helper.js +17 -6
- package/build/esm/prisma/tracing-helper.js.map +1 -1
- package/build/esm/redis/index.js.map +1 -1
- package/build/esm/redis/redis-dc-subscriber.js +7 -5
- package/build/esm/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/redis/redis-statement-serializer.js.map +1 -1
- package/build/esm/tracing-channel.js +19 -3
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js +24 -0
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +6 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +10 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +84 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +314 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +440 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js +213 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-dC9TN3Ev.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +96 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +49 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js +1067 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-OTS4ktWb.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +12 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +116 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +101 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js +157 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/hook.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js +86 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/index.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js +13 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js +27 -0
- package/build/esm/vendored/@apm-js-collab/tracing-hooks/lib/get-package-version.js.map +1 -0
- package/build/esm/vendored/astring/dist/astring.js +1066 -0
- package/build/esm/vendored/astring/dist/astring.js.map +1 -0
- package/build/esm/vendored/debug/src/common.js +176 -0
- package/build/esm/vendored/debug/src/common.js.map +1 -0
- package/build/esm/vendored/debug/src/node.js +183 -0
- package/build/esm/vendored/debug/src/node.js.map +1 -0
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js +845 -0
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +1 -0
- package/build/esm/vendored/has-flag/index.js +9 -0
- package/build/esm/vendored/has-flag/index.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js +9190 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah2.js +9207 -0
- package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -0
- package/build/esm/vendored/module-details-from-path/index.js +41 -0
- package/build/esm/vendored/module-details-from-path/index.js.map +1 -0
- package/build/esm/vendored/ms/index.js +113 -0
- package/build/esm/vendored/ms/index.js.map +1 -0
- package/build/esm/vendored/semifies/index.js +109 -0
- package/build/esm/vendored/semifies/index.js.map +1 -0
- package/build/esm/vendored/source-map/lib/array-set.js +71 -0
- package/build/esm/vendored/source-map/lib/array-set.js.map +1 -0
- package/build/esm/vendored/source-map/lib/base64-vlq.js +55 -0
- package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -0
- package/build/esm/vendored/source-map/lib/base64.js +40 -0
- package/build/esm/vendored/source-map/lib/base64.js.map +1 -0
- package/build/esm/vendored/source-map/lib/binary-search.js +55 -0
- package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -0
- package/build/esm/vendored/source-map/lib/mapping-list.js +40 -0
- package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -0
- package/build/esm/vendored/source-map/lib/quick-sort.js +34 -0
- package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-map-consumer.js +610 -0
- package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-map-generator.js +283 -0
- package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -0
- package/build/esm/vendored/source-map/lib/source-node.js +268 -0
- package/build/esm/vendored/source-map/lib/source-node.js.map +1 -0
- package/build/esm/vendored/source-map/lib/util.js +300 -0
- package/build/esm/vendored/source-map/lib/util.js.map +1 -0
- package/build/esm/vendored/source-map/source-map.js +14 -0
- package/build/esm/vendored/source-map/source-map.js.map +1 -0
- package/build/esm/vendored/supports-color/index.js +102 -0
- package/build/esm/vendored/supports-color/index.js.map +1 -0
- package/build/esm/vercel-ai/index.js.map +1 -1
- package/build/esm/vercel-ai/util.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js +26 -27
- package/build/esm/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js +1 -1
- package/build/esm/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/orchestrion/import-hook.mjs +1 -1
- package/build/types/ai/anthropic-ai/constants.d.ts +17 -0
- package/build/types/ai/anthropic-ai/constants.d.ts.map +1 -0
- package/build/types/ai/anthropic-ai/index.d.ts +26 -0
- package/build/types/ai/anthropic-ai/index.d.ts.map +1 -0
- package/build/types/ai/anthropic-ai/streaming.d.ts +15 -0
- package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -0
- package/build/types/ai/anthropic-ai/types.d.ts +89 -0
- package/build/types/ai/anthropic-ai/types.d.ts.map +1 -0
- package/build/types/ai/anthropic-ai/utils.d.ts +21 -0
- package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -0
- package/build/types/ai/core/gen-ai-attributes.d.ts +44 -0
- package/build/types/ai/core/gen-ai-attributes.d.ts.map +1 -0
- package/build/types/ai/core/utils.d.ts +92 -0
- package/build/types/ai/core/utils.d.ts.map +1 -0
- package/build/types/ai/google-genai/constants.d.ts +25 -0
- package/build/types/ai/google-genai/constants.d.ts.map +1 -0
- package/build/types/ai/google-genai/index.d.ts +47 -0
- package/build/types/ai/google-genai/index.d.ts.map +1 -0
- package/build/types/ai/google-genai/streaming.d.ts +9 -0
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -0
- package/build/types/ai/google-genai/types.d.ts +141 -0
- package/build/types/ai/google-genai/types.d.ts.map +1 -0
- package/build/types/ai/google-genai/utils.d.ts +26 -0
- package/build/types/ai/google-genai/utils.d.ts.map +1 -0
- package/build/types/ai/index.d.ts +13 -0
- package/build/types/ai/index.d.ts.map +1 -0
- package/build/types/ai/langchain/constants.d.ts +4 -0
- package/build/types/ai/langchain/constants.d.ts.map +1 -0
- package/build/types/ai/langchain/embeddings.d.ts +39 -0
- package/build/types/ai/langchain/embeddings.d.ts.map +1 -0
- package/build/types/ai/langchain/index.d.ts +10 -0
- package/build/types/ai/langchain/index.d.ts.map +1 -0
- package/build/types/ai/langchain/types.d.ts +136 -0
- package/build/types/ai/langchain/types.d.ts.map +1 -0
- package/build/types/ai/langchain/utils.d.ts +67 -0
- package/build/types/ai/langchain/utils.d.ts.map +1 -0
- package/build/types/ai/langgraph/constants.d.ts +3 -0
- package/build/types/ai/langgraph/constants.d.ts.map +1 -0
- package/build/types/ai/langgraph/index.d.ts +44 -0
- package/build/types/ai/langgraph/index.d.ts.map +1 -0
- package/build/types/ai/langgraph/types.d.ts +64 -0
- package/build/types/ai/langgraph/types.d.ts.map +1 -0
- package/build/types/ai/langgraph/utils.d.ts +45 -0
- package/build/types/ai/langgraph/utils.d.ts.map +1 -0
- package/build/types/ai/openai/constants.d.ts +18 -0
- package/build/types/ai/openai/constants.d.ts.map +1 -0
- package/build/types/ai/openai/index.d.ts +13 -0
- package/build/types/ai/openai/index.d.ts.map +1 -0
- package/build/types/ai/openai/streaming.d.ts +13 -0
- package/build/types/ai/openai/streaming.d.ts.map +1 -0
- package/build/types/ai/openai/types.d.ts +217 -0
- package/build/types/ai/openai/types.d.ts.map +1 -0
- package/build/types/ai/openai/utils.d.ts +20 -0
- package/build/types/ai/openai/utils.d.ts.map +1 -0
- package/build/types/ai/vercel-ai/constants.d.ts +4 -0
- package/build/types/ai/vercel-ai/constants.d.ts.map +1 -0
- package/build/types/ai/vercel-ai/index.d.ts +24 -0
- package/build/types/ai/vercel-ai/index.d.ts.map +1 -0
- package/build/types/ai/vercel-ai/types.d.ts +5 -0
- package/build/types/ai/vercel-ai/types.d.ts.map +1 -0
- package/build/types/ai/vercel-ai/utils.d.ts +39 -0
- package/build/types/ai/vercel-ai/utils.d.ts.map +1 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +432 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -0
- package/build/types/ai/workers-ai/constants.d.ts +16 -0
- package/build/types/ai/workers-ai/constants.d.ts.map +1 -0
- package/build/types/ai/workers-ai/index.d.ts +18 -0
- package/build/types/ai/workers-ai/index.d.ts.map +1 -0
- package/build/types/ai/workers-ai/streaming.d.ts +9 -0
- package/build/types/ai/workers-ai/streaming.d.ts.map +1 -0
- package/build/types/ai/workers-ai/types.d.ts +41 -0
- package/build/types/ai/workers-ai/types.d.ts.map +1 -0
- package/build/types/ai/workers-ai/utils.d.ts +34 -0
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -0
- package/build/types/async-context.d.ts +15 -0
- package/build/types/async-context.d.ts.map +1 -0
- package/build/types/exports.d.ts +5 -0
- package/build/types/exports.d.ts.map +1 -0
- package/build/types/graphql/utils.d.ts +0 -2
- package/build/types/graphql/utils.d.ts.map +1 -1
- package/build/types/index.d.ts +2 -5
- package/build/types/index.d.ts.map +1 -1
- package/build/types/index.no-diagnostic-channels.d.ts +2 -0
- package/build/types/index.no-diagnostic-channels.d.ts.map +1 -0
- package/build/types/integrations/tracing-channel/amqplib.d.ts +2 -2
- package/build/types/integrations/tracing-channel/amqplib.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/anthropic.d.ts +3 -4
- package/build/types/integrations/tracing-channel/anthropic.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts +3 -2
- package/build/types/integrations/tracing-channel/aws-sdk/constants.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts +4 -7
- package/build/types/integrations/tracing-channel/aws-sdk/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/lambda.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/s3.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/sns.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/sqs.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts +0 -2
- package/build/types/integrations/tracing-channel/aws-sdk/types.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/dataloader.d.ts +2 -2
- package/build/types/integrations/tracing-channel/dataloader.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/express/index.d.ts +3 -4
- package/build/types/integrations/tracing-channel/express/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/express/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/fastify/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/fastify/utils.d.ts +1 -1
- package/build/types/integrations/tracing-channel/firebase/firestore.d.ts +1 -2
- package/build/types/integrations/tracing-channel/firebase/firestore.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/firebase/functions.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/firebase/index.d.ts +3 -6
- package/build/types/integrations/tracing-channel/firebase/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/firebase/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/generic-pool.d.ts +2 -2
- package/build/types/integrations/tracing-channel/generic-pool.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/google-genai.d.ts +2 -3
- package/build/types/integrations/tracing-channel/google-genai.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/graphql/index.d.ts +7 -8
- package/build/types/integrations/tracing-channel/graphql/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/hapi-types.d.ts +4 -4
- package/build/types/integrations/tracing-channel/hapi-types.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/hapi-utils.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/hapi.d.ts +2 -2
- package/build/types/integrations/tracing-channel/hapi.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/ioredis.d.ts +1 -1
- package/build/types/integrations/tracing-channel/ioredis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts +3 -4
- package/build/types/integrations/tracing-channel/kafkajs/index.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/kafkajs/semconv.d.ts +9 -9
- package/build/types/integrations/tracing-channel/kafkajs/spans.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/knex.d.ts +2 -2
- package/build/types/integrations/tracing-channel/knex.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/koa.d.ts +3 -3
- package/build/types/integrations/tracing-channel/koa.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/langchain.d.ts +2 -3
- package/build/types/integrations/tracing-channel/langchain.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/langgraph.d.ts +2 -3
- package/build/types/integrations/tracing-channel/langgraph.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/lru-memoizer.d.ts +2 -2
- package/build/types/integrations/tracing-channel/lru-memoizer.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mongodb.d.ts +2 -2
- package/build/types/integrations/tracing-channel/mongodb.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mongoose.d.ts +2 -2
- package/build/types/integrations/tracing-channel/mongoose.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mysql.d.ts +3 -3
- package/build/types/integrations/tracing-channel/mysql.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/mysql2.d.ts +9 -7
- package/build/types/integrations/tracing-channel/mysql2.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/openai.d.ts +2 -3
- package/build/types/integrations/tracing-channel/openai.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/postgres-js.d.ts +3 -3
- package/build/types/integrations/tracing-channel/postgres-js.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/postgres.d.ts +2 -2
- package/build/types/integrations/tracing-channel/postgres.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/redis.d.ts +1 -1
- package/build/types/integrations/tracing-channel/redis.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/tedious.d.ts +2 -2
- package/build/types/integrations/tracing-channel/tedious.d.ts.map +1 -1
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts +1 -1
- package/build/types/integrations/tracing-channel/vercel-ai.d.ts.map +1 -1
- package/build/types/mongodb/mongodb-span.d.ts.map +1 -1
- package/build/types/mongoose/mongoose-legacy-span.d.ts +0 -1
- package/build/types/mongoose/mongoose-legacy-span.d.ts.map +1 -1
- package/build/types/orchestrion/apmTypes.d.ts +173 -0
- package/build/types/orchestrion/apmTypes.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/esbuild.d.ts +2 -2
- package/build/types/orchestrion/bundler/esbuild.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +27 -0
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/options.d.ts +19 -29
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/resolve.d.ts +24 -0
- package/build/types/orchestrion/bundler/resolve.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/rollup.d.ts +2 -2
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/vite.d.ts +2 -2
- package/build/types/orchestrion/bundler/vite.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/webpack-loader.d.ts +28 -0
- package/build/types/orchestrion/bundler/webpack-loader.d.ts.map +1 -0
- package/build/types/orchestrion/bundler/webpack.d.ts +9 -13
- package/build/types/orchestrion/bundler/webpack.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +124 -125
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/amqplib.d.ts +21 -22
- package/build/types/orchestrion/config/amqplib.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +5 -7
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/aws-sdk.d.ts +4 -5
- package/build/types/orchestrion/config/aws-sdk.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +20 -20
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/dataloader.d.ts +17 -19
- package/build/types/orchestrion/config/dataloader.d.ts.map +1 -1
- package/build/types/orchestrion/config/express.d.ts +5 -6
- package/build/types/orchestrion/config/express.d.ts.map +1 -1
- package/build/types/orchestrion/config/firebase.d.ts +23 -24
- package/build/types/orchestrion/config/firebase.d.ts.map +1 -1
- package/build/types/orchestrion/config/generic-pool.d.ts +4 -5
- package/build/types/orchestrion/config/generic-pool.d.ts.map +1 -1
- package/build/types/orchestrion/config/google-genai.d.ts +6 -7
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
- package/build/types/orchestrion/config/graphql.d.ts +4 -5
- package/build/types/orchestrion/config/graphql.d.ts.map +1 -1
- package/build/types/orchestrion/config/hapi.d.ts +3 -4
- package/build/types/orchestrion/config/hapi.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts +1 -12
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/ioredis.d.ts +3 -3
- package/build/types/orchestrion/config/ioredis.d.ts.map +1 -1
- package/build/types/orchestrion/config/kafkajs.d.ts +3 -4
- package/build/types/orchestrion/config/kafkajs.d.ts.map +1 -1
- package/build/types/orchestrion/config/knex.d.ts +4 -5
- package/build/types/orchestrion/config/knex.d.ts.map +1 -1
- package/build/types/orchestrion/config/koa.d.ts +2 -3
- package/build/types/orchestrion/config/koa.d.ts.map +1 -1
- package/build/types/orchestrion/config/langchain.d.ts +4 -5
- package/build/types/orchestrion/config/langchain.d.ts.map +1 -1
- package/build/types/orchestrion/config/langgraph.d.ts +7 -8
- package/build/types/orchestrion/config/langgraph.d.ts.map +1 -1
- package/build/types/orchestrion/config/lru-memoizer.d.ts +2 -3
- package/build/types/orchestrion/config/lru-memoizer.d.ts.map +1 -1
- package/build/types/orchestrion/config/module-names.d.ts +8 -0
- package/build/types/orchestrion/config/module-names.d.ts.map +1 -0
- package/build/types/orchestrion/config/mongodb.d.ts +20 -21
- package/build/types/orchestrion/config/mongodb.d.ts.map +1 -1
- package/build/types/orchestrion/config/mongoose.d.ts +12 -13
- package/build/types/orchestrion/config/mongoose.d.ts.map +1 -1
- package/build/types/orchestrion/config/mysql.d.ts +2 -3
- package/build/types/orchestrion/config/mysql.d.ts.map +1 -1
- package/build/types/orchestrion/config/mysql2.d.ts +3 -4
- package/build/types/orchestrion/config/mysql2.d.ts.map +1 -1
- package/build/types/orchestrion/config/nestjs.d.ts +9 -10
- package/build/types/orchestrion/config/nestjs.d.ts.map +1 -1
- package/build/types/orchestrion/config/openai.d.ts +4 -5
- package/build/types/orchestrion/config/openai.d.ts.map +1 -1
- package/build/types/orchestrion/config/pg.d.ts +7 -8
- package/build/types/orchestrion/config/pg.d.ts.map +1 -1
- package/build/types/orchestrion/config/postgres.d.ts +5 -5
- package/build/types/orchestrion/config/postgres.d.ts.map +1 -1
- package/build/types/orchestrion/config/redis.d.ts +10 -11
- package/build/types/orchestrion/config/redis.d.ts.map +1 -1
- package/build/types/orchestrion/config/remix.d.ts +4 -5
- package/build/types/orchestrion/config/remix.d.ts.map +1 -1
- package/build/types/orchestrion/config/tedious.d.ts +8 -8
- package/build/types/orchestrion/config/tedious.d.ts.map +1 -1
- package/build/types/orchestrion/config/vercel-ai.d.ts +8 -8
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/orchestrion/detect.d.ts +14 -1
- package/build/types/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/index.d.ts +42 -49
- package/build/types/orchestrion/index.d.ts.map +1 -1
- package/build/types/orchestrion/instrumentation.d.ts +37 -0
- package/build/types/orchestrion/instrumentation.d.ts.map +1 -0
- package/build/types/orchestrion/moduleInjected.d.ts +25 -0
- package/build/types/orchestrion/moduleInjected.d.ts.map +1 -0
- package/build/types/orchestrion/runtime/register.d.ts +1 -12
- package/build/types/orchestrion/runtime/register.d.ts.map +1 -1
- package/build/types/otlp.d.ts +49 -0
- package/build/types/otlp.d.ts.map +1 -0
- package/build/types/prisma/index.d.ts +0 -4
- package/build/types/prisma/index.d.ts.map +1 -1
- package/build/types/prisma/tracing-helper.d.ts.map +1 -1
- package/build/types/prisma/types.d.ts +2 -2
- package/build/types/prisma/types.d.ts.map +1 -1
- package/build/types/redis/redis-dc-subscriber.d.ts.map +1 -1
- package/build/types/redis/redis-statement-serializer.d.ts.map +1 -1
- package/build/types/tracing-channel.d.ts +2 -0
- package/build/types/tracing-channel.d.ts.map +1 -1
- package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts +9 -0
- package/build/types/utils/setHttpServerSpanRouteAttribute.d.ts.map +1 -0
- package/build/types/vercel-ai/index.d.ts +4 -20
- package/build/types/vercel-ai/index.d.ts.map +1 -1
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts +2 -5
- package/build/types/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/package.json +23 -38
- package/build/cjs/orchestrion/bundler/subscribeInjection.js +0 -40
- package/build/cjs/orchestrion/bundler/subscribeInjection.js.map +0 -1
- package/build/cjs/orchestrion/config/subscribe-injection.js +0 -25
- package/build/cjs/orchestrion/config/subscribe-injection.js.map +0 -1
- package/build/cjs/orchestrion/registerChannelIntegration.js +0 -13
- package/build/cjs/orchestrion/registerChannelIntegration.js.map +0 -1
- package/build/esm/orchestrion/bundler/subscribeInjection.js +0 -38
- package/build/esm/orchestrion/bundler/subscribeInjection.js.map +0 -1
- package/build/esm/orchestrion/config/subscribe-injection.js +0 -22
- package/build/esm/orchestrion/config/subscribe-injection.js.map +0 -1
- package/build/esm/orchestrion/registerChannelIntegration.js +0 -11
- package/build/esm/orchestrion/registerChannelIntegration.js.map +0 -1
- package/build/types/orchestrion/bundler/subscribeInjection.d.ts +0 -13
- package/build/types/orchestrion/bundler/subscribeInjection.d.ts.map +0 -1
- package/build/types/orchestrion/config/subscribe-injection.d.ts +0 -31
- package/build/types/orchestrion/config/subscribe-injection.d.ts.map +0 -1
- package/build/types/orchestrion/registerChannelIntegration.d.ts +0 -33
- package/build/types/orchestrion/registerChannelIntegration.d.ts.map +0 -1
- package/build/types-ts3.8/debug-build.d.ts +0 -7
- package/build/types-ts3.8/graphql/graphql-dc-subscriber.d.ts +0 -94
- package/build/types-ts3.8/graphql/index.d.ts +0 -12
- package/build/types-ts3.8/graphql/utils.d.ts +0 -36
- package/build/types-ts3.8/index.d.ts +0 -23
- package/build/types-ts3.8/integrations/tracing-channel/amqplib.d.ts +0 -11
- package/build/types-ts3.8/integrations/tracing-channel/anthropic.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/aws-sdk.types.d.ts +0 -43
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/constants.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/index.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/MessageAttributes.d.ts +0 -23
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServiceExtension.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/ServicesExtensions.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.d.ts +0 -14
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/dynamodb.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/index.d.ts +0 -2
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/kinesis.d.ts +0 -6
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/lambda.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/s3.d.ts +0 -6
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/secretsmanager.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sns.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/sqs.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/services/stepfunctions.d.ts +0 -6
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/types.d.ts +0 -26
- package/build/types-ts3.8/integrations/tracing-channel/aws-sdk/utils.d.ts +0 -5
- package/build/types-ts3.8/integrations/tracing-channel/dataloader.d.ts +0 -11
- package/build/types-ts3.8/integrations/tracing-channel/express/index.d.ts +0 -18
- package/build/types-ts3.8/integrations/tracing-channel/express/instrumentation.d.ts +0 -4
- package/build/types-ts3.8/integrations/tracing-channel/express/route.d.ts +0 -28
- package/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +0 -64
- package/build/types-ts3.8/integrations/tracing-channel/fastify/errors.d.ts +0 -12
- package/build/types-ts3.8/integrations/tracing-channel/fastify/index.d.ts +0 -66
- package/build/types-ts3.8/integrations/tracing-channel/fastify/instrumentation.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/fastify/types.d.ts +0 -32
- package/build/types-ts3.8/integrations/tracing-channel/fastify/utils.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore-types.d.ts +0 -38
- package/build/types-ts3.8/integrations/tracing-channel/firebase/firestore.d.ts +0 -18
- package/build/types-ts3.8/integrations/tracing-channel/firebase/functions.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/firebase/index.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/firebase/instrumentation.d.ts +0 -2
- package/build/types-ts3.8/integrations/tracing-channel/generic-pool.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/google-genai.d.ts +0 -12
- package/build/types-ts3.8/integrations/tracing-channel/graphql/constants.d.ts +0 -12
- package/build/types-ts3.8/integrations/tracing-channel/graphql/graphql-types.d.ts +0 -135
- package/build/types-ts3.8/integrations/tracing-channel/graphql/index.d.ts +0 -30
- package/build/types-ts3.8/integrations/tracing-channel/graphql/resolvers.d.ts +0 -13
- package/build/types-ts3.8/integrations/tracing-channel/graphql/spans.d.ts +0 -17
- package/build/types-ts3.8/integrations/tracing-channel/graphql/types.d.ts +0 -25
- package/build/types-ts3.8/integrations/tracing-channel/hapi-types.d.ts +0 -65
- package/build/types-ts3.8/integrations/tracing-channel/hapi-utils.d.ts +0 -25
- package/build/types-ts3.8/integrations/tracing-channel/hapi.d.ts +0 -9
- package/build/types-ts3.8/integrations/tracing-channel/ioredis.d.ts +0 -37
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/consumer.d.ts +0 -8
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/index.d.ts +0 -17
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/semconv.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/spans.d.ts +0 -38
- package/build/types-ts3.8/integrations/tracing-channel/kafkajs/types.d.ts +0 -40
- package/build/types-ts3.8/integrations/tracing-channel/knex.d.ts +0 -11
- package/build/types-ts3.8/integrations/tracing-channel/koa.d.ts +0 -14
- package/build/types-ts3.8/integrations/tracing-channel/langchain.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/langgraph.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/lru-memoizer.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/mongodb.d.ts +0 -12
- package/build/types-ts3.8/integrations/tracing-channel/mongoose.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/mysql.d.ts +0 -12
- package/build/types-ts3.8/integrations/tracing-channel/mysql2.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/openai.d.ts +0 -10
- package/build/types-ts3.8/integrations/tracing-channel/postgres-js.d.ts +0 -26
- package/build/types-ts3.8/integrations/tracing-channel/postgres.d.ts +0 -15
- package/build/types-ts3.8/integrations/tracing-channel/redis.d.ts +0 -16
- package/build/types-ts3.8/integrations/tracing-channel/tedious.d.ts +0 -11
- package/build/types-ts3.8/integrations/tracing-channel/vercel-ai.d.ts +0 -9
- package/build/types-ts3.8/mongodb/mongodb-span.d.ts +0 -66
- package/build/types-ts3.8/mongoose/index.d.ts +0 -13
- package/build/types-ts3.8/mongoose/mongoose-dc-subscriber.d.ts +0 -63
- package/build/types-ts3.8/mongoose/mongoose-legacy-span.d.ts +0 -29
- package/build/types-ts3.8/mysql2/index.d.ts +0 -11
- package/build/types-ts3.8/mysql2/mysql2-dc-subscriber.d.ts +0 -59
- package/build/types-ts3.8/node-diagnostics-channel.d.ts +0 -19
- package/build/types-ts3.8/orchestrion/bundler/esbuild.d.ts +0 -20
- package/build/types-ts3.8/orchestrion/bundler/options.d.ts +0 -63
- package/build/types-ts3.8/orchestrion/bundler/rollup.d.ts +0 -17
- package/build/types-ts3.8/orchestrion/bundler/subscribeInjection.d.ts +0 -13
- package/build/types-ts3.8/orchestrion/bundler/vite.d.ts +0 -18
- package/build/types-ts3.8/orchestrion/bundler/webpack.d.ts +0 -24
- package/build/types-ts3.8/orchestrion/channels.d.ts +0 -145
- package/build/types-ts3.8/orchestrion/config/amqplib.d.ts +0 -68
- package/build/types-ts3.8/orchestrion/config/anthropic-ai.d.ts +0 -33
- package/build/types-ts3.8/orchestrion/config/aws-sdk.d.ts +0 -21
- package/build/types-ts3.8/orchestrion/config/channel-integration-definitions.d.ts +0 -139
- package/build/types-ts3.8/orchestrion/config/dataloader.d.ts +0 -48
- package/build/types-ts3.8/orchestrion/config/express.d.ts +0 -32
- package/build/types-ts3.8/orchestrion/config/firebase.d.ts +0 -43
- package/build/types-ts3.8/orchestrion/config/generic-pool.d.ts +0 -33
- package/build/types-ts3.8/orchestrion/config/google-genai.d.ts +0 -32
- package/build/types-ts3.8/orchestrion/config/graphql.d.ts +0 -31
- package/build/types-ts3.8/orchestrion/config/hapi.d.ts +0 -19
- package/build/types-ts3.8/orchestrion/config/index.d.ts +0 -49
- package/build/types-ts3.8/orchestrion/config/ioredis.d.ts +0 -8
- package/build/types-ts3.8/orchestrion/config/kafkajs.d.ts +0 -19
- package/build/types-ts3.8/orchestrion/config/knex.d.ts +0 -10
- package/build/types-ts3.8/orchestrion/config/koa.d.ts +0 -19
- package/build/types-ts3.8/orchestrion/config/langchain.d.ts +0 -20
- package/build/types-ts3.8/orchestrion/config/langgraph.d.ts +0 -23
- package/build/types-ts3.8/orchestrion/config/lru-memoizer.d.ts +0 -18
- package/build/types-ts3.8/orchestrion/config/mongodb.d.ts +0 -61
- package/build/types-ts3.8/orchestrion/config/mongoose.d.ts +0 -42
- package/build/types-ts3.8/orchestrion/config/mysql.d.ts +0 -18
- package/build/types-ts3.8/orchestrion/config/mysql2.d.ts +0 -20
- package/build/types-ts3.8/orchestrion/config/nestjs.d.ts +0 -25
- package/build/types-ts3.8/orchestrion/config/openai.d.ts +0 -20
- package/build/types-ts3.8/orchestrion/config/pg.d.ts +0 -35
- package/build/types-ts3.8/orchestrion/config/postgres.d.ts +0 -10
- package/build/types-ts3.8/orchestrion/config/redis.d.ts +0 -39
- package/build/types-ts3.8/orchestrion/config/remix.d.ts +0 -10
- package/build/types-ts3.8/orchestrion/config/subscribe-injection.d.ts +0 -31
- package/build/types-ts3.8/orchestrion/config/tedious.d.ts +0 -13
- package/build/types-ts3.8/orchestrion/config/vercel-ai.d.ts +0 -13
- package/build/types-ts3.8/orchestrion/detect.d.ts +0 -26
- package/build/types-ts3.8/orchestrion/index.d.ts +0 -139
- package/build/types-ts3.8/orchestrion/registerChannelIntegration.d.ts +0 -33
- package/build/types-ts3.8/orchestrion/runtime/register.d.ts +0 -25
- package/build/types-ts3.8/prisma/global.d.ts +0 -5
- package/build/types-ts3.8/prisma/index.d.ts +0 -45
- package/build/types-ts3.8/prisma/tracing-helper.d.ts +0 -52
- package/build/types-ts3.8/prisma/types.d.ts +0 -40
- package/build/types-ts3.8/redis/index.d.ts +0 -18
- package/build/types-ts3.8/redis/redis-dc-subscriber.d.ts +0 -89
- package/build/types-ts3.8/redis/redis-statement-serializer.d.ts +0 -6
- package/build/types-ts3.8/tracing-channel.d.ts +0 -73
- package/build/types-ts3.8/vercel-ai/index.d.ts +0 -26
- package/build/types-ts3.8/vercel-ai/util.d.ts +0 -30
- package/build/types-ts3.8/vercel-ai/vercel-ai-dc-subscriber.d.ts +0 -72
- package/build/types-ts3.8/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts +0 -12
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { GLOBAL_OBJ, debug } from '@sentry/core';
|
|
2
2
|
|
|
3
3
|
function isOrchestrionInjected() {
|
|
4
|
-
|
|
4
|
+
const marker = GLOBAL_OBJ.__SENTRY_ORCHESTRION__;
|
|
5
|
+
return !!(marker?.runtime || marker?.bundler || marker?.integrations);
|
|
6
|
+
}
|
|
7
|
+
function getOrchestrionInjectedModules() {
|
|
8
|
+
const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};
|
|
9
|
+
return [...runtime ?? [], ...Array.isArray(bundler) ? bundler : []];
|
|
5
10
|
}
|
|
6
11
|
function detectOrchestrionSetup() {
|
|
7
12
|
const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};
|
|
@@ -19,5 +24,5 @@ function detectOrchestrionSetup() {
|
|
|
19
24
|
);
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
export { detectOrchestrionSetup, isOrchestrionInjected };
|
|
27
|
+
export { detectOrchestrionSetup, getOrchestrionInjectedModules, isOrchestrionInjected };
|
|
23
28
|
//# sourceMappingURL=detect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.js","sources":["../../../src/orchestrion/detect.ts"],"sourcesContent":["import { debug, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Whether orchestrion has injected the diagnostics channels into this process,\n * either by the runtime `--import` hook / init-time registration (`runtime`)\n * or a bundler plugin (`bundler`). Both injectors set a flag on the\n * `globalThis.__SENTRY_ORCHESTRION__` marker.\n *\n * Use this to avoid wiring up channel-subscriber integrations when nothing\n * will ever publish to those channels.\n */\nexport function isOrchestrionInjected(): boolean {\n return !!GLOBAL_OBJ.__SENTRY_ORCHESTRION__;\n}\n\n/**\n * Verifies that the diagnostics channels have been injected either by the\n * runtime `--import` hook (or init-time registration), a bundler plugin, or\n * both, and warns if not. When at least one injector is active, logs for each\n * mechanism whether it hooked (a defined array, even empty, means it did) and\n * which libraries it injected.\n *\n * Both injectors being active at once is fine: they operate on disjoint module\n * sets (a module is either loaded through Node's loader and transformed by the\n * runtime hook, or inlined by the bundler and transformed by the plugin), so\n * a single module can't be double-wrapped. A hybrid setup, with some deps\n * external and runtime-instrumented, others bundled and plugin-instrumented,\n * is fine.\n */\nexport function detectOrchestrionSetup(): void {\n const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n\n if (!runtime && !bundler) {\n debug.warn(\n '[Sentry] No diagnostics-channel injection detected. Channel-based integrations ' +\n 'will not record spans. Make sure the diagnostics channels are injected ' +\n 'via the runtime `--import` hook or a bundler plugin before the instrumented modules load.',\n );\n return;\n }\n\n debug.log(\n runtime\n ? `[Sentry] Runtime hook registered, injected libraries=${JSON.stringify(runtime)}`\n : '[Sentry] Runtime hook not registered',\n );\n debug.log(\n bundler\n ? `[Sentry] Bundler plugin ran, injected libraries=${JSON.stringify(bundler)}`\n : '[Sentry] Bundler plugin did not run',\n );\n}\n"],"names":[],"mappings":";;AAWO,
|
|
1
|
+
{"version":3,"file":"detect.js","sources":["../../../src/orchestrion/detect.ts"],"sourcesContent":["import { debug, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Whether orchestrion has injected the diagnostics channels into this process,\n * either by the runtime `--import` hook / init-time registration (`runtime`)\n * or a bundler plugin (`bundler`). Both injectors set a flag on the\n * `globalThis.__SENTRY_ORCHESTRION__` marker.\n *\n * Use this to avoid wiring up channel-subscriber integrations when nothing\n * will ever publish to those channels.\n */\nexport function isOrchestrionInjected(): boolean {\n const marker = GLOBAL_OBJ.__SENTRY_ORCHESTRION__;\n return !!(marker?.runtime || marker?.bundler || marker?.integrations);\n}\n\n/**\n * The module names (e.g. `mysql`, `@hapi/hapi`) orchestrion has already injected\n * into this process — from the runtime `--import` hook (`runtime`) and/or the\n * snippets a bundler transform spliced into each transformed module (`bundler`).\n * Channel-based integrations use it to decide whether to subscribe now (their\n * module is already loaded) or wait for the module-injected event.\n *\n * The `Array.isArray` guard is runtime safety, not typing: a banner from\n * another SDK copy or version may have written a non-array flag here.\n */\nexport function getOrchestrionInjectedModules(): string[] {\n const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n return [...(runtime ?? []), ...(Array.isArray(bundler) ? bundler : [])];\n}\n\n/**\n * Verifies that the diagnostics channels have been injected either by the\n * runtime `--import` hook (or init-time registration), a bundler plugin, or\n * both, and warns if not. When at least one injector is active, logs for each\n * mechanism whether it hooked (a defined array, even empty, means it did) and\n * which libraries it injected. For the bundler path, the entry banner ensures\n * `[]` at boot; module names arrive as each transformed module is evaluated,\n * so an empty list can also just mean none has loaded yet.\n *\n * Both injectors being active at once is fine: they operate on disjoint module\n * sets (a module is either loaded through Node's loader and transformed by the\n * runtime hook, or inlined by the bundler and transformed by the plugin), so\n * a single module can't be double-wrapped. A hybrid setup, with some deps\n * external and runtime-instrumented, others bundled and plugin-instrumented,\n * is fine.\n */\nexport function detectOrchestrionSetup(): void {\n const { runtime, bundler } = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ?? {};\n\n if (!runtime && !bundler) {\n debug.warn(\n '[Sentry] No diagnostics-channel injection detected. Channel-based integrations ' +\n 'will not record spans. Make sure the diagnostics channels are injected ' +\n 'via the runtime `--import` hook or a bundler plugin before the instrumented modules load.',\n );\n return;\n }\n\n debug.log(\n runtime\n ? `[Sentry] Runtime hook registered, injected libraries=${JSON.stringify(runtime)}`\n : '[Sentry] Runtime hook not registered',\n );\n debug.log(\n bundler\n ? `[Sentry] Bundler plugin ran, injected libraries=${JSON.stringify(bundler)}`\n : '[Sentry] Bundler plugin did not run',\n );\n}\n"],"names":[],"mappings":";;AAWO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,qBAAA,CAAA,CAAA,CAAiC;AAC/C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,IAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAC1B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,YAAA,CAAA;AAC1D;AAYO,CAAA,CAAA,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2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { amqplibIntegration } from '../integrations/tracing-channel/amqplib.js';
|
|
2
|
+
import { anthropicIntegration } from '../integrations/tracing-channel/anthropic.js';
|
|
3
|
+
import { awsIntegration } from '../integrations/tracing-channel/aws-sdk/index.js';
|
|
4
|
+
export { dataloaderIntegration } from '../integrations/tracing-channel/dataloader.js';
|
|
5
|
+
import { genericPoolIntegration } from '../integrations/tracing-channel/generic-pool.js';
|
|
6
|
+
import { googleGenAIIntegration } from '../integrations/tracing-channel/google-genai.js';
|
|
7
|
+
import { graphqlDiagnosticsIntegration } from '../integrations/tracing-channel/graphql/index.js';
|
|
8
|
+
export { graphqlIntegration } from '../integrations/tracing-channel/graphql/index.js';
|
|
9
|
+
import { hapiIntegration } from '../integrations/tracing-channel/hapi.js';
|
|
10
|
+
import { koaIntegration } from '../integrations/tracing-channel/koa.js';
|
|
11
11
|
export { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis.js';
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
12
|
+
import { kafkajsIntegration } from '../integrations/tracing-channel/kafkajs/index.js';
|
|
13
|
+
export { knexIntegration } from '../integrations/tracing-channel/knex.js';
|
|
14
|
+
import { langChainIntegration } from '../integrations/tracing-channel/langchain.js';
|
|
15
|
+
import { langGraphIntegration } from '../integrations/tracing-channel/langgraph.js';
|
|
16
|
+
import { lruMemoizerIntegration } from '../integrations/tracing-channel/lru-memoizer.js';
|
|
17
|
+
import { mongodbIntegration } from '../integrations/tracing-channel/mongodb.js';
|
|
18
|
+
import { mongooseIntegration } from '../integrations/tracing-channel/mongoose.js';
|
|
19
|
+
import { mysqlIntegration } from '../integrations/tracing-channel/mysql.js';
|
|
20
|
+
import { mysql2Integration } from '../integrations/tracing-channel/mysql2.js';
|
|
21
|
+
import { openaiIntegration } from '../integrations/tracing-channel/openai.js';
|
|
22
|
+
import { postgresIntegration } from '../integrations/tracing-channel/postgres.js';
|
|
23
|
+
import { postgresJsIntegration } from '../integrations/tracing-channel/postgres-js.js';
|
|
24
|
+
import { tediousIntegration } from '../integrations/tracing-channel/tedious.js';
|
|
25
|
+
import { vercelAiIntegration } from '../integrations/tracing-channel/vercel-ai.js';
|
|
26
|
+
import { expressIntegration } from '../integrations/tracing-channel/express/index.js';
|
|
27
|
+
import { firebaseIntegration } from '../integrations/tracing-channel/firebase/index.js';
|
|
28
28
|
export { detectOrchestrionSetup, isOrchestrionInjected } from './detect.js';
|
|
29
|
-
export {
|
|
29
|
+
export { orchestrionModuleInjected } from './moduleInjected.js';
|
|
30
30
|
export { nestjsChannels } from './config/nestjs.js';
|
|
31
31
|
export { remixChannels } from './config/remix.js';
|
|
32
32
|
export { redisChannelIntegration } from '../integrations/tracing-channel/redis.js';
|
|
33
33
|
|
|
34
34
|
const channelIntegrations = {
|
|
35
|
-
postgresIntegration
|
|
36
|
-
postgresJsIntegration
|
|
37
|
-
mongoIntegration:
|
|
38
|
-
mysqlIntegration
|
|
39
|
-
mysql2Integration
|
|
40
|
-
genericPoolIntegration
|
|
41
|
-
mongooseIntegration
|
|
42
|
-
lruMemoizerIntegration
|
|
43
|
-
openaiIntegration
|
|
44
|
-
anthropicIntegration
|
|
45
|
-
googleGenAIIntegration
|
|
46
|
-
langChainIntegration
|
|
47
|
-
langGraphIntegration
|
|
48
|
-
vercelAiIntegration
|
|
49
|
-
amqplibIntegration
|
|
50
|
-
hapiIntegration
|
|
51
|
-
koaIntegration
|
|
52
|
-
expressIntegration
|
|
53
|
-
graphqlIntegration:
|
|
54
|
-
kafkajsIntegration
|
|
55
|
-
tediousIntegration
|
|
56
|
-
awsIntegration
|
|
57
|
-
firebaseIntegration
|
|
35
|
+
postgresIntegration,
|
|
36
|
+
postgresJsIntegration,
|
|
37
|
+
mongoIntegration: mongodbIntegration,
|
|
38
|
+
mysqlIntegration,
|
|
39
|
+
mysql2Integration,
|
|
40
|
+
genericPoolIntegration,
|
|
41
|
+
mongooseIntegration,
|
|
42
|
+
lruMemoizerIntegration,
|
|
43
|
+
openaiIntegration,
|
|
44
|
+
anthropicIntegration,
|
|
45
|
+
googleGenAIIntegration,
|
|
46
|
+
langChainIntegration,
|
|
47
|
+
langGraphIntegration,
|
|
48
|
+
vercelAiIntegration,
|
|
49
|
+
amqplibIntegration,
|
|
50
|
+
hapiIntegration,
|
|
51
|
+
koaIntegration,
|
|
52
|
+
expressIntegration,
|
|
53
|
+
graphqlIntegration: graphqlDiagnosticsIntegration,
|
|
54
|
+
kafkajsIntegration,
|
|
55
|
+
tediousIntegration,
|
|
56
|
+
awsIntegration,
|
|
57
|
+
firebaseIntegration
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
export {
|
|
60
|
+
export { amqplibIntegration, anthropicIntegration, awsIntegration, channelIntegrations, expressIntegration, firebaseIntegration, genericPoolIntegration, googleGenAIIntegration, graphqlDiagnosticsIntegration, hapiIntegration, kafkajsIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mongodbIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, openaiIntegration, postgresIntegration, postgresJsIntegration, tediousIntegration, vercelAiIntegration };
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/orchestrion/index.ts"],"sourcesContent":["import { amqplibIntegration } from '../integrations/tracing-channel/amqplib';\nimport { anthropicIntegration } from '../integrations/tracing-channel/anthropic';\nimport { awsIntegration } from '../integrations/tracing-channel/aws-sdk';\nimport { dataloaderIntegration } from '../integrations/tracing-channel/dataloader';\nimport { genericPoolIntegration } from '../integrations/tracing-channel/generic-pool';\nimport { googleGenAIIntegration } from '../integrations/tracing-channel/google-genai';\nimport { graphqlIntegration, graphqlDiagnosticsIntegration } from '../integrations/tracing-channel/graphql';\nimport { hapiIntegration } from '../integrations/tracing-channel/hapi';\nimport { koaIntegration } from '../integrations/tracing-channel/koa';\nimport { ioredisChannelIntegration } from '../integrations/tracing-channel/ioredis';\nimport { kafkajsIntegration } from '../integrations/tracing-channel/kafkajs';\nimport { knexIntegration } from '../integrations/tracing-channel/knex';\nimport { langChainIntegration } from '../integrations/tracing-channel/langchain';\nimport { langGraphIntegration } from '../integrations/tracing-channel/langgraph';\nimport { lruMemoizerIntegration } from '../integrations/tracing-channel/lru-memoizer';\nimport { mongodbIntegration } from '../integrations/tracing-channel/mongodb';\nimport { mongooseIntegration } from '../integrations/tracing-channel/mongoose';\nimport { mysqlIntegration } from '../integrations/tracing-channel/mysql';\nimport { mysql2Integration } from '../integrations/tracing-channel/mysql2';\nimport { openaiIntegration } from '../integrations/tracing-channel/openai';\nimport { postgresIntegration } from '../integrations/tracing-channel/postgres';\nimport { postgresJsIntegration } from '../integrations/tracing-channel/postgres-js';\nimport { tediousIntegration } from '../integrations/tracing-channel/tedious';\nimport { vercelAiIntegration } from '../integrations/tracing-channel/vercel-ai';\nimport { expressIntegration } from '../integrations/tracing-channel/express';\nimport { firebaseIntegration } from '../integrations/tracing-channel/firebase';\n\nexport { detectOrchestrionSetup, isOrchestrionInjected } from './detect';\n// The runtime target of the snippet the bundler transform splices into every\n// instrumented module: records the module on the global marker (plus its\n// subscriber factory, when it has one) and emits the module-injected event.\nexport { orchestrionModuleInjected } from './moduleInjected';\n// The `@nestjs/*` channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/nestjs`, which imports this.\nexport { nestjsChannels } from './config/nestjs';\n// The remix channel names live here alongside their transform config; the\n// listener that subscribes to them lives in `@sentry/remix`, which imports this.\nexport { remixChannels } from './config/remix';\nexport {\n amqplibIntegration,\n anthropicIntegration,\n awsIntegration,\n dataloaderIntegration,\n genericPoolIntegration,\n googleGenAIIntegration,\n graphqlIntegration,\n graphqlDiagnosticsIntegration,\n hapiIntegration,\n koaIntegration,\n ioredisChannelIntegration,\n kafkajsIntegration,\n knexIntegration,\n langChainIntegration,\n langGraphIntegration,\n lruMemoizerIntegration,\n mongodbIntegration,\n mongooseIntegration,\n mysqlIntegration,\n mysql2Integration,\n openaiIntegration,\n postgresIntegration,\n postgresJsIntegration,\n tediousIntegration,\n vercelAiIntegration,\n expressIntegration,\n firebaseIntegration,\n};\nexport type { KoaIntegrationOptions } from '../integrations/tracing-channel/koa';\nexport type { IORedisChannelIntegrationOptions, IORedisResponseHook } from '../integrations/tracing-channel/ioredis';\nexport type { PostgresJsIntegrationOptions } from '../integrations/tracing-channel/postgres-js';\nexport { redisChannelIntegration } from '../integrations/tracing-channel/redis';\nexport type { RedisChannelIntegrationOptions, RedisResponseHook } from '../integrations/tracing-channel/redis';\nexport type { InstrumentationConfig, CustomTransform } from './apmTypes';\n\n// The structural `graphql` package types are the single source of truth shared with `@sentry/node`'s\n// vendored OTel graphql instrumentation (re-exported from here so the two can't drift).\nexport type * from '../integrations/tracing-channel/graphql/graphql-types';\n\n/**\n * The canonical set of orchestrion diagnostics-channel integrations, keyed by their public\n * (OTel-parity) factory name.\n *\n * Single source of truth: add a new channel integration here and every consumer that spreads this map\n * into its default integrations picks it up automatically, so there's no separate list to keep in sync.\n *\n * NOTE: `ioredisChannelIntegration` and `redisChannelIntegration` are intentionally NOT here. They\n * only partially replace the composite OTel `Redis` integration and need the node SDK's redis cache\n * `responseHook` (which can't live in `server-utils`), so `@sentry/node` wires them up separately.\n *\n * Framework SDKs that own their own channel listener (e.g. `@sentry/nestjs`'s `Nest`) are NOT here\n * either: their transform config is still in `SENTRY_INSTRUMENTATIONS`, but the listener lives in\n * their package and picks the channel-vs-OTel path itself at `setupOnce`, so it needs no central swap.\n *\n * NOTE: `dataloaderIntegration` is also NOT here. Everything in this map is auto-appended to\n * the default integrations, but the OTel `Dataloader` integration is opt-in (never a default). Like\n * `@sentry/nestjs`'s `Nest`, its `@sentry/node` factory picks the channel-vs-OTel path itself at\n * `setupOnce` (via `isOrchestrionInjected()`), so there's nothing for the central swap to do.\n */\nexport const channelIntegrations = {\n postgresIntegration,\n postgresJsIntegration,\n mongoIntegration: mongodbIntegration,\n mysqlIntegration,\n mysql2Integration,\n genericPoolIntegration,\n mongooseIntegration,\n lruMemoizerIntegration,\n openaiIntegration,\n anthropicIntegration,\n googleGenAIIntegration,\n langChainIntegration,\n langGraphIntegration,\n vercelAiIntegration,\n amqplibIntegration,\n hapiIntegration,\n koaIntegration,\n expressIntegration,\n graphqlIntegration: graphqlDiagnosticsIntegration,\n kafkajsIntegration,\n tediousIntegration,\n awsIntegration,\n firebaseIntegration,\n} as const;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,mBAAA,CAAA,CAAA,CAAsB;AAAA,CAAA,CACjC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAkB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACF,CAAA;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as diagnosticsChannel from 'node:diagnostics_channel';
|
|
2
|
+
import { debug, waitForTracingChannelBinding, addNonEnumerableProperty } from '@sentry/core';
|
|
3
|
+
import { DEBUG_BUILD } from '../debug-build.js';
|
|
4
|
+
import { getOrchestrionInjectedModules } from './detect.js';
|
|
5
|
+
|
|
6
|
+
const INSTRUMENTED = /* @__PURE__ */ Symbol.for("SentryOrchestrionInstrumented");
|
|
7
|
+
const globalAny = globalThis;
|
|
8
|
+
const isBun = typeof globalAny.Bun !== "undefined";
|
|
9
|
+
const isDeno = typeof globalAny.Deno !== "undefined";
|
|
10
|
+
function invokeOrchestrionInstrumentation(client, moduleNames, callback, args, { requiresTracingChannelBinding = true } = {}) {
|
|
11
|
+
const label = moduleNames.join(", ");
|
|
12
|
+
if (!diagnosticsChannel.tracingChannel) {
|
|
13
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] no \`tracingChannel\` (Node < 18.19), not subscribing`);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (hasBeenInstrumented(callback)) {
|
|
17
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] already subscribed, skipping`);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const run = (cleanup2) => {
|
|
21
|
+
const subscribe = () => {
|
|
22
|
+
if (hasBeenInstrumented(callback)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
markInstrumented(callback);
|
|
26
|
+
cleanup2?.();
|
|
27
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] subscribing to channels`);
|
|
28
|
+
callback(...args);
|
|
29
|
+
};
|
|
30
|
+
if (!requiresTracingChannelBinding) {
|
|
31
|
+
subscribe();
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
waitForTracingChannelBinding(subscribe);
|
|
35
|
+
if (DEBUG_BUILD && !hasBeenInstrumented(callback)) {
|
|
36
|
+
debug.log(`[orchestrion:${label}] async-context binding not ready, retrying before subscribing`);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
if (isBun || isDeno) {
|
|
40
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] Bun/Deno, subscribing eagerly`);
|
|
41
|
+
run();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const injected = getOrchestrionInjectedModules();
|
|
45
|
+
const injectedName = moduleNames.find((name) => injected.includes(name));
|
|
46
|
+
if (injectedName) {
|
|
47
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] "${injectedName}" already injected, subscribing now`);
|
|
48
|
+
run();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] not injected yet, waiting for the module to load`);
|
|
52
|
+
const cleanup = client.on("orchestrion.module-injected", (moduleName) => {
|
|
53
|
+
if (hasBeenInstrumented(callback)) {
|
|
54
|
+
cleanup();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (moduleNames.includes(moduleName)) {
|
|
58
|
+
DEBUG_BUILD && debug.log(`[orchestrion:${label}] "${moduleName}" injected at runtime, subscribing now`);
|
|
59
|
+
run(cleanup);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function hasBeenInstrumented(callback) {
|
|
64
|
+
return callback[INSTRUMENTED] ?? false;
|
|
65
|
+
}
|
|
66
|
+
function markInstrumented(callback) {
|
|
67
|
+
addNonEnumerableProperty(callback, INSTRUMENTED, true);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { invokeOrchestrionInstrumentation };
|
|
71
|
+
//# sourceMappingURL=instrumentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrumentation.js","sources":["../../../src/orchestrion/instrumentation.ts"],"sourcesContent":["import * as diagnosticsChannel from 'node:diagnostics_channel';\nimport type { Client } from '@sentry/core';\nimport { addNonEnumerableProperty, debug, waitForTracingChannelBinding } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getOrchestrionInjectedModules } from './detect';\n\n// Marks an instrumentation callback as already run, so it subscribes at most once\n// even when reached through several integration names (e.g. Deno wraps a shared\n// integration under `DenoMysql`) or several clients.\nconst INSTRUMENTED = Symbol.for('SentryOrchestrionInstrumented');\n\n// generic function arguments can only be `any`\n// oxlint-disable-next-line typescript/no-explicit-any\ntype InstrumentationFn = ((...args: any[]) => void) & { [INSTRUMENTED]?: boolean };\n\nconst globalAny = globalThis as { Bun?: unknown; Deno?: unknown };\nconst isBun = typeof globalAny.Bun !== 'undefined';\nconst isDeno = typeof globalAny.Deno !== 'undefined';\n\n/**\n * Run an integration's channel-subscription callback once one of its modules is\n * orchestrion-injected, and never more than once.\n *\n * Channel integrations must NOT subscribe eagerly at `Sentry.init()`: Node caps\n * the number of `diagnostics_channel` channels in use at 1024, and every default\n * channel integration binding several channels up front would burn that budget\n * for modules the app never loads. So we defer:\n *\n * - If a module is already injected, then a bundler transformed and loaded it\n * (which records it via `orchestrionModuleInjected`), or the runtime hook\n * injected it before `init()`, so subscribe right away.\n * - Otherwise wait for the `orchestrion.module-injected` event, which fires\n * when the module is loaded and transformed, before it can publish to its\n * channels.\n *\n * Bun and Deno have no such channel limit and no reliable per-module injection\n * tracking, so there we just subscribe immediately.\n *\n * `waitForTracingChannelBinding` still wraps the callback: the async-context\n * binding the subscription needs for span parenting may not exist yet.\n *\n * Note: it is possible to register extra event listeners, if the same callback\n * is registered multiple times. However, this is (a) not something that happens\n * normally, and (b) ultimately fine, because it'll only call the callback one\n * time. There'll just be a few no-op client event listeners.\n */\nexport function invokeOrchestrionInstrumentation<Callback extends InstrumentationFn>(\n client: Client,\n moduleNames: readonly string[],\n callback: Callback,\n args: Parameters<Callback>,\n // Most integrations parent spans via `bindTracingChannelToSpan`, which needs\n // the async-context binding set up at subscribe time. A few (e.g. Hapi,\n // KafkaJS, Koa, tedious) subscribe without it and create spans directly;\n // they pass `false` so a missing binding never blocks their subscription.\n { requiresTracingChannelBinding = true }: { requiresTracingChannelBinding?: boolean } = {},\n): void {\n const label = moduleNames.join(', ');\n\n // `tracingChannel` is unavailable before Node 18.19; nothing to subscribe to.\n if (!diagnosticsChannel.tracingChannel) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] no \\`tracingChannel\\` (Node < 18.19), not subscribing`);\n return;\n }\n\n if (hasBeenInstrumented(callback)) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] already subscribed, skipping`);\n return;\n }\n\n // cleanup function is passed in so that we only remove the listener\n // once the callback is actually instrumented and called.\n const run = (cleanup?: () => void): void => {\n const subscribe = (): void => {\n if (hasBeenInstrumented(callback)) {\n return;\n }\n markInstrumented(callback);\n cleanup?.();\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] subscribing to channels`);\n callback(...args);\n };\n\n if (!requiresTracingChannelBinding) {\n subscribe();\n return;\n }\n\n // Mark as instrumented only if the channel binding actually lands.\n // Avoids a very narrow case where the binding never arrives within the\n // retry window. So, don't mark until we know we're actually calling.\n waitForTracingChannelBinding(subscribe);\n\n // `waitForTracingChannelBinding` retries once on a timer and then gives up\n // silently. Not being subscribed by now means we took that path, so say so:\n // without this, an integration that never subscribes leaves no trace at all.\n if (DEBUG_BUILD && !hasBeenInstrumented(callback)) {\n debug.log(`[orchestrion:${label}] async-context binding not ready, retrying before subscribing`);\n }\n };\n\n if (isBun || isDeno) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] Bun/Deno, subscribing eagerly`);\n run();\n return;\n }\n\n const injected = getOrchestrionInjectedModules();\n const injectedName = moduleNames.find(name => injected.includes(name));\n if (injectedName) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] \"${injectedName}\" already injected, subscribing now`);\n run();\n return;\n }\n\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] not injected yet, waiting for the module to load`);\n\n const cleanup = client.on('orchestrion.module-injected', (moduleName: string) => {\n if (hasBeenInstrumented(callback)) {\n cleanup();\n return;\n }\n if (moduleNames.includes(moduleName)) {\n DEBUG_BUILD && debug.log(`[orchestrion:${label}] \"${moduleName}\" injected at runtime, subscribing now`);\n run(cleanup);\n }\n });\n}\n\nfunction hasBeenInstrumented(callback: InstrumentationFn): boolean {\n return callback[INSTRUMENTED] ?? false;\n}\n\nfunction markInstrumented(callback: InstrumentationFn): void {\n addNonEnumerableProperty(callback, INSTRUMENTED, true);\n}\n"],"names":["cleanup"],"mappings":";;;;;AASA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,YAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAI,+BAA+B,CAAA;AAM/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAClB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,KAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,SAAA,CAAU,CAAA,CAAA,CAAA,KAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CA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CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAc,IAAI,CAAA;AACvD;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GLOBAL_OBJ, getClient } from '@sentry/core';
|
|
2
|
+
|
|
3
|
+
function orchestrionModuleInjected(moduleName, integrationFn) {
|
|
4
|
+
var _a;
|
|
5
|
+
const marker = (_a = GLOBAL_OBJ).__SENTRY_ORCHESTRION__ ?? (_a.__SENTRY_ORCHESTRION__ = {});
|
|
6
|
+
if (marker.bundler === void 0 || Array.isArray(marker.bundler)) {
|
|
7
|
+
const bundler = marker.bundler ?? (marker.bundler = []);
|
|
8
|
+
if (!bundler.includes(moduleName)) {
|
|
9
|
+
bundler.push(moduleName);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
if (integrationFn) {
|
|
13
|
+
(marker.integrations ?? (marker.integrations = /* @__PURE__ */ new Map())).set(moduleName, integrationFn);
|
|
14
|
+
}
|
|
15
|
+
getClient()?.emit("orchestrion.module-injected", moduleName);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { orchestrionModuleInjected };
|
|
19
|
+
//# sourceMappingURL=moduleInjected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moduleInjected.js","sources":["../../../src/orchestrion/moduleInjected.ts"],"sourcesContent":["import type { Integration } from '@sentry/core';\nimport { getClient, GLOBAL_OBJ } from '@sentry/core';\n\n/**\n * Record a bundler-injected module and notify channel integrations. This is the\n * runtime target of the snippet the `tracingChannelImport` override splices\n * into every instrumented module (see `bundler/moduleInjectedTransform.ts`), so\n * it runs when that module is first evaluated — the moment its diagnostics\n * channels can start publishing.\n *\n * It records the module name on the global orchestrion marker, stores the\n * module's channel-subscriber integration factory (when the module has one)\n * keyed by module name, and emits the `orchestrion.module-injected` client\n * event. Recording happens BEFORE the emit so listeners triggered by the event\n * can read the marker.\n *\n * Deliberately record-and-emit only — no `addIntegration` here. Whether an\n * integration is *installed* is each SDK's policy: `@sentry/node` registers its\n * channel integrations statically and only needs the event to trigger their\n * lazy subscription (so a user who removed one from `integrations` stays opted\n * out), while a bundler-only SDK like `@sentry/cloudflare` instantiates the\n * stored factories at `init()` and listens for this event to pick up modules\n * that evaluate later (e.g. a lazily-required driver after a per-request\n * `init()` already snapshotted the marker).\n */\nexport function orchestrionModuleInjected(moduleName: string, integrationFn?: () => Integration): void {\n const marker = (GLOBAL_OBJ.__SENTRY_ORCHESTRION__ ??= {});\n\n // Runtime guard, not just type narrowing: a banner from another SDK copy or\n // version may have written a non-array flag here; leave that untouched.\n if (marker.bundler === undefined || Array.isArray(marker.bundler)) {\n const bundler = (marker.bundler ??= []);\n if (!bundler.includes(moduleName)) {\n bundler.push(moduleName);\n }\n }\n\n if (integrationFn) {\n (marker.integrations ??= new Map()).set(moduleName, integrationFn);\n }\n\n getClient()?.emit('orchestrion.module-injected', moduleName);\n}\n"],"names":[],"mappings":";;AAyBO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAoB,aAAA,CAAA,CAAyC;AAzBvG,CAAA,CAAA,IAAA,CAAA,CAAA;AA0BE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA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AA,CAAA,CACF;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,aAAA,CAAA,CAAe;AACjB,CAAA,CAAA,CAAA,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,iBAAP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAqB,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,aAAa,CAAA;AAAA,CAAA,CACnE;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B,UAAU,CAAA;AAC7D;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { createDiagnosticsPort, initialize, initializeSync, load, loadResult, loadSync, resolve, resolveSync } from '../../vendored/@apm-js-collab/tracing-hooks/hook.js';
|
|
2
|
+
import { d as diagnostics } from '../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const setDiagnosticsHook = diagnostics.setDiagnosticsHook;
|
|
7
|
+
export { setDiagnosticsHook };
|
|
8
|
+
//# sourceMappingURL=hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,60 +1,49 @@
|
|
|
1
|
-
import { GLOBAL_OBJ, debug } from '@sentry/core';
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { pathToFileURL } from 'node:url';
|
|
5
|
-
import { isMainThread, parentPort, MessageChannel } from 'node:worker_threads';
|
|
1
|
+
import { GLOBAL_OBJ, debug, getClient, parseSemver } from '@sentry/core';
|
|
2
|
+
import * as require$$1 from 'node:module';
|
|
3
|
+
import 'node:url';
|
|
6
4
|
import { SENTRY_INSTRUMENTATIONS } from '../config/index.js';
|
|
5
|
+
import ModulePatch from '../../vendored/@apm-js-collab/tracing-hooks/index.js';
|
|
6
|
+
import { initializeSync, loadSync, resolveSync, createDiagnosticsPort } from '../../vendored/@apm-js-collab/tracing-hooks/hook.js';
|
|
7
|
+
import { d as diagnostics } from '../../vendored/@apm-js-collab/tracing-hooks/lib/diagnostics.js';
|
|
7
8
|
|
|
8
|
-
function hasStableSyncModuleHooks(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const denoVersion = parseVersion(denoVersionString ?? "0.0.0");
|
|
12
|
-
return (nodeVersion[0] ?? 0) > 25 || nodeVersion[0] === 25 && (nodeVersion[1] ?? 0) >= 1 || nodeVersion[0] === 24 && (nodeVersion[1] ?? 0) >= 13 || (denoVersion[0] ?? 0) > 2 || denoVersion[0] === 2 && (denoVersion[1] ?? 0) >= 8;
|
|
13
|
-
}
|
|
14
|
-
function registerDiagnosticsChannelInjection(options) {
|
|
15
|
-
if (!isMainThread && !parentPort) {
|
|
16
|
-
return;
|
|
9
|
+
function hasStableSyncModuleHooks(isDeno) {
|
|
10
|
+
if (isDeno) {
|
|
11
|
+
return true;
|
|
17
12
|
}
|
|
13
|
+
const { major = 0, minor = 0 } = parseSemver(process.versions.node ?? "0.0.0");
|
|
14
|
+
return major > 25 || major === 25 && minor >= 1 || major === 24 && minor >= 13;
|
|
15
|
+
}
|
|
16
|
+
function registerDiagnosticsChannelInjection() {
|
|
18
17
|
if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {
|
|
19
18
|
return;
|
|
20
19
|
}
|
|
21
20
|
const globalAny = globalThis;
|
|
22
|
-
const stableSyncHooks = hasStableSyncModuleHooks(globalAny.Deno
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));
|
|
22
|
+
const mod = require$$1;
|
|
23
|
+
diagnostics.setDiagnosticsHook(({ moduleName, error }) => {
|
|
24
|
+
if (error) {
|
|
25
|
+
debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);
|
|
26
|
+
} else {
|
|
27
|
+
GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
|
|
28
|
+
GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
|
|
29
|
+
GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);
|
|
30
|
+
getClient()?.emit("orchestrion.module-injected", moduleName);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
30
33
|
try {
|
|
31
|
-
const { setDiagnosticsHook } = requireFromHooksDir ? requireFromHooksDir(`${tracingHooksDir}/lib/diagnostics.js`) : nodeRequire("@apm-js-collab/tracing-hooks/lib/diagnostics.js");
|
|
32
|
-
const onDiagnostics = ({ moduleName, error }) => {
|
|
33
|
-
if (error) {
|
|
34
|
-
debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);
|
|
35
|
-
} else {
|
|
36
|
-
GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};
|
|
37
|
-
GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];
|
|
38
|
-
GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
setDiagnosticsHook(onDiagnostics);
|
|
42
34
|
if (typeof mod.registerHooks === "function" && stableSyncHooks) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
mod.registerHooks({ resolve, load });
|
|
35
|
+
initializeSync({ instrumentations: SENTRY_INSTRUMENTATIONS });
|
|
36
|
+
mod.registerHooks({ resolve: resolveSync, load: loadSync });
|
|
46
37
|
debug.log("Registered diagnostics-channel injection via Module.registerHooks()");
|
|
47
38
|
} else if (typeof mod.register === "function" && !globalAny.Bun && !globalAny.Deno) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
transferList: [port2]
|
|
39
|
+
const diagnosticsPort = createDiagnosticsPort();
|
|
40
|
+
let parentURL;
|
|
41
|
+
parentURL = import.meta.url;
|
|
42
|
+
mod.register("@sentry/server-utils/orchestrion/hook", {
|
|
43
|
+
parentURL,
|
|
44
|
+
data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort },
|
|
45
|
+
transferList: [diagnosticsPort]
|
|
56
46
|
});
|
|
57
|
-
const ModulePatch = requireFromHooksDir && tracingHooksDir ? requireFromHooksDir(tracingHooksDir) : nodeRequire("@apm-js-collab/tracing-hooks");
|
|
58
47
|
new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();
|
|
59
48
|
debug.log("Registered diagnostics-channel injection via Module.register()");
|
|
60
49
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sources":["../../../../src/orchestrion/runtime/register.ts"],"sourcesContent":["import { debug, GLOBAL_OBJ } from '@sentry/core';\nimport { createRequire } from 'node:module';\nimport * as Module from 'node:module';\nimport { pathToFileURL } from 'node:url';\nimport { isMainThread, MessageChannel, parentPort } from 'node:worker_threads';\nimport { SENTRY_INSTRUMENTATIONS } from '../config';\nimport type { register } from 'node:module';\nimport type { InstrumentationConfig } from '..';\n\ntype DiagnosticsEvent = { url: string; moduleName: string; error?: Error };\n\ntype TracingHooksSync = {\n initialize: (opts: { instrumentations: InstrumentationConfig[] }) => void;\n resolve: Function;\n load: Function;\n};\n\ntype TracingHooksDiagnostics = {\n setDiagnosticsHook: (callback: (event: DiagnosticsEvent) => void) => void;\n};\n\ntype NodeModule = {\n registerHooks?: (options: unknown) => { deregister: () => void };\n register?: typeof register;\n};\n\nexport interface RegisterDiagnosticsChannelInjectionOptions {\n /**\n * Absolute directory of the `@apm-js-collab/tracing-hooks` package (forward slashes).\n *\n * Needed when SDK code is bundled into an app's server build: the default bare-specifier\n * require then resolves from the emitted chunk, which fails under isolated installs (pnpm).\n * Framework SDKs (e.g. `@sentry/nextjs`) resolve the package at build time and pass its\n * location here; it is loaded through an opaque `createRequire` that bundlers can't trace.\n */\n tracingHooksDir?: string;\n}\n\n/** `Module.registerHooks` only became stable in Node 24.13 / 25.1 and Deno 2.8. */\nfunction hasStableSyncModuleHooks(denoVersionString: string | undefined): boolean {\n const parseVersion = (v: string): number[] => v.split('.').map(n => parseInt(n, 10));\n const nodeVersion = parseVersion(process.versions.node ?? '0.0.0');\n const denoVersion = parseVersion(denoVersionString ?? '0.0.0');\n return (\n (nodeVersion[0] ?? 0) > 25 ||\n (nodeVersion[0] === 25 && (nodeVersion[1] ?? 0) >= 1) ||\n (nodeVersion[0] === 24 && (nodeVersion[1] ?? 0) >= 13) ||\n (denoVersion[0] ?? 0) > 2 ||\n (denoVersion[0] === 2 && (denoVersion[1] ?? 0) >= 8)\n );\n}\n\n/**\n * Synchronously register the diagnostics-channel injection module hooks.\n *\n * This is the single source of truth for the registration logic. It is used by:\n * - `Sentry.init()` (the Node SDK calls it directly — that's why this module\n * must be CJS-compatible / dual-built, so it can be `require()`d synchronously\n * before the app's `import`s resolve), and\n * - `import-hook.mjs`, the side-effecting `--import` entry, which just calls it.\n *\n * Libraries imported *after* this call publish the `tracingChannel` events that\n * the channel-based integrations subscribe to.\n */\nexport function registerDiagnosticsChannelInjection(options?: RegisterDiagnosticsChannelInjectionOptions): void {\n // Skip Node's internal loader (hooks) threads, recognizable as the only threads without a\n // `parentPort`. Node re-runs `--require` preloads (though not `--import` ones) on the loader\n // thread it spawns for `Module.register()`, so this function runs there too — but that thread\n // never executes app code, and its `register()` implementation (the in-thread `Hooks` class)\n // has no `transferList` parameter: our transfer array lands in its `isInternal` parameter and\n // Node crashes trying to load the hook as an internal builtin. User-created workers always\n // have a `parentPort` and register through `CustomizedModuleLoader`, which handles\n // `transferList` correctly, so they proceed and get their own instrumented loader.\n if (!isMainThread && !parentPort) {\n return;\n }\n\n if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {\n return;\n }\n\n const globalAny = globalThis as { Bun?: unknown; Deno?: { version?: { deno?: string } } };\n const stableSyncHooks = hasStableSyncModuleHooks(globalAny.Deno?.version?.deno);\n\n let thisModuleUrl: string;\n /*! rollup-include-cjs-only */\n thisModuleUrl = pathToFileURL(__filename).href;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n thisModuleUrl = import.meta.url;\n /*! rollup-include-esm-only-end */\n\n // Default: bare specifiers via a plain (aliased) `require`, so bundlers see and resolve them\n // like any other dependency. Override: with `tracingHooksDir`, absolute paths are loaded through\n // `createRequire`, which bundlers leave as a true runtime require — they must not statically\n // resolve these (Turbopack fails the build on an absolute request, and the machinery breaks when\n // bundled anyway). `createRequire` rather than ignore-comments because webpack only honors\n // `webpackIgnore` on `import()`, not `require()` (it compiles the call to a broken module stub).\n let nodeRequire: (specifier: string) => unknown;\n /*! rollup-include-cjs-only */\n nodeRequire = require;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n nodeRequire = createRequire(import.meta.url);\n /*! rollup-include-esm-only-end */\n\n const tracingHooksDir = options?.tracingHooksDir;\n const requireFromHooksDir = tracingHooksDir ? createRequire(thisModuleUrl) : undefined;\n\n // `Module.registerHooks` / `Module.register` are newer than the @types/node\n // we build against, hence the cast.\n const mod = Module as NodeModule;\n\n // runs both at `--import` time and (synchronously) inside `Sentry.init()`,\n // so an unguarded throw would either abort startup or make `init()` throw.\n // On any failure (e.g. dep resolution, `require(esm)` / Node-compat\n // incompatibility) we warn (DEBUG only) and continue without channel\n // injection\n try {\n // `lib/diagnostics.js` is plain CJS, so unlike the ESM hook entry points it can be\n // require()d on every supported Node version. It holds the hook state shared by\n // everything that can transform a module on this thread (the sync ESM hooks and the\n // `_compile` patch), so setting the hook once here covers both branches below.\n const { setDiagnosticsHook } = (\n requireFromHooksDir\n ? requireFromHooksDir(`${tracingHooksDir}/lib/diagnostics.js`)\n : nodeRequire('@apm-js-collab/tracing-hooks/lib/diagnostics.js')\n ) as TracingHooksDiagnostics;\n\n const onDiagnostics = ({ moduleName, error }: DiagnosticsEvent): void => {\n if (error) {\n debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);\n } else {\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);\n }\n };\n\n setDiagnosticsHook(onDiagnostics);\n\n if (typeof mod.registerHooks === 'function' && stableSyncHooks) {\n // Sync hooks cover CJS and ESM, no separate `_compile` patch needed.\n // We require() this ESM module so that we can synchronously load it,\n // including from a CommonJS Sentry build; all versions in\n // stableSyncHooks support require(esm).\n const { initialize, resolve, load } = (\n requireFromHooksDir\n ? requireFromHooksDir(`${tracingHooksDir}/hook-sync.mjs`)\n : nodeRequire('@apm-js-collab/tracing-hooks/hook-sync.mjs')\n ) as TracingHooksSync;\n\n initialize({ instrumentations: SENTRY_INSTRUMENTATIONS });\n mod.registerHooks({ resolve, load });\n debug.log('Registered diagnostics-channel injection via Module.registerHooks()');\n } else if (typeof mod.register === 'function' && !globalAny.Bun && !globalAny.Deno) {\n // `Module.register` + the `_compile` patch is Node 18.19–24.12 / 25.0\n // path. Bun/Deno are excluded: they don't support this combination and\n // must use the stable `registerHooks` path above (or none at all).\n // `Module.register` resolves ESM-style: a bare package specifier is resolved against\n // `parentURL`, but a filesystem path (the `tracingHooksDir` override) is not a valid ESM\n // specifier and must be passed as a file:// URL.\n const hookSpecifier = tracingHooksDir\n ? pathToFileURL(`${tracingHooksDir}/hook.mjs`).href\n : '@apm-js-collab/tracing-hooks/hook.mjs';\n\n // The `Module.register` hooks run on a loader thread with its own copy of\n // `lib/diagnostics.js`, so the hook set above never fires there; the loader thread\n // posts diagnostics back over a MessagePort instead. This replicates\n // `createDiagnosticsPort` from hook.mjs, which is ESM and therefore not\n // synchronously loadable on all Node versions that take this branch.\n const { port1, port2 } = new MessageChannel();\n port1.on('message', onDiagnostics);\n // The diagnostics channel must not keep the process alive.\n port1.unref();\n mod.register(hookSpecifier, {\n parentURL: thisModuleUrl,\n data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort: port2 },\n transferList: [port2],\n });\n\n // ALSO patch `Module.prototype._compile` for the CJS side: when an ESM\n // file `import`s a CJS package, the package's internal `require()` calls\n // are resolved through the CJS machinery and never reach the ESM\n // register hook, so without this patch the file we want to instrument\n // loads untransformed.\n const ModulePatch = (\n requireFromHooksDir && tracingHooksDir\n ? requireFromHooksDir(tracingHooksDir)\n : nodeRequire('@apm-js-collab/tracing-hooks')\n ) as new (opts: { instrumentations: unknown }) => {\n patch: () => void;\n };\n new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();\n debug.log('Registered diagnostics-channel injection via Module.register()');\n } else {\n debug.warn('No available Node API to register diagnostics-channel injection hooks; skipping.');\n return;\n }\n } catch (error) {\n debug.warn(\n 'Failed to register diagnostics-channel injection hooks; channel-based integrations will not record spans.',\n error,\n );\n return;\n }\n\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n}\n"],"names":[],"mappings":";;;;;;;AAuCA,SAAS,yBAAyB,iBAAA,EAAgD;AAChF,EAAA,MAAM,YAAA,GAAe,CAAC,CAAA,KAAwB,CAAA,CAAE,KAAA,CAAM,GAAG,CAAA,CAAE,GAAA,CAAI,CAAA,CAAA,KAAK,QAAA,CAAS,CAAA,EAAG,EAAE,CAAC,CAAA;AACnF,EAAA,MAAM,WAAA,GAAc,YAAA,CAAa,OAAA,CAAQ,QAAA,CAAS,QAAQ,OAAO,CAAA;AACjE,EAAA,MAAM,WAAA,GAAc,YAAA,CAAa,iBAAA,IAAqB,OAAO,CAAA;AAC7D,EAAA,OAAA,CACG,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,IAAK,MACvB,WAAA,CAAY,CAAC,CAAA,KAAM,EAAA,IAAA,CAAO,YAAY,CAAC,CAAA,IAAK,CAAA,KAAM,CAAA,IAClD,YAAY,CAAC,CAAA,KAAM,EAAA,IAAA,CAAO,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,KAAM,EAAA,IAAA,CAClD,WAAA,CAAY,CAAC,CAAA,IAAK,CAAA,IAAK,CAAA,IACvB,WAAA,CAAY,CAAC,CAAA,KAAM,CAAA,IAAA,CAAM,WAAA,CAAY,CAAC,KAAK,CAAA,KAAM,CAAA;AAEtD;AAcO,SAAS,oCAAoC,OAAA,EAA4D;AAS9G,EAAA,IAAI,CAAC,YAAA,IAAgB,CAAC,UAAA,EAAY;AAChC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,UA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,KAAA,CAAM,GAAE,CAAA,gEAAoC,CAAA;AAC5C,IAAA,CAAA,MAAA;AAEA,MAAA,KAAA,CAAM,IAAA,CAAA,kFAAM,CAAA;AACZ,MAAA;AAA4B,IAAA;AACf,EAAA,CAAA,CAAA,OACX,KAAQ,EAAA;AAAkE,IAAA,KAC1E,CAAA,IAAA;AAAoB,MACtB,2GAAC;AAOD,MAAA;AAOA,KAAA;AACA,IAAA;AAA0E,EAAA;AAE1E,EAAA,UAAM,uBAAK,GAAA,UAAA,CAAA,sBAAA,IAAA,EAAA;AACX,EAAA,UAAA,CAAA,sBAAA,CAAA,OAAA,GAAA,UAAA,CAAA,sBAAA,CAAA,OAAA,IAAA,EAAA;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"register.js","sources":["../../../../src/orchestrion/runtime/register.ts"],"sourcesContent":["import { debug, getClient, GLOBAL_OBJ, parseSemver } from '@sentry/core';\nimport * as Module from 'node:module';\nimport { pathToFileURL } from 'node:url';\nimport { SENTRY_INSTRUMENTATIONS } from '../config';\nimport type { register } from 'node:module';\nimport ModulePatch from '@apm-js-collab/tracing-hooks';\nimport { initialize, load, resolve, createDiagnosticsPort } from '@apm-js-collab/tracing-hooks/hook-sync.mjs';\nimport { setDiagnosticsHook } from '@apm-js-collab/tracing-hooks/lib/diagnostics.js';\n\ntype NodeModule = {\n registerHooks?: (options: { load: Function; resolve: Function }) => { deregister: () => void };\n register?: typeof register;\n};\n\n/** `Module.registerHooks` only became stable in Node 24.13 / 25.1. */\nfunction hasStableSyncModuleHooks(isDeno: boolean): boolean {\n // The minimum supported Deno (2.8.3) always has stable sync module hooks.\n if (isDeno) {\n return true;\n }\n\n const { major = 0, minor = 0 } = parseSemver(process.versions.node ?? '0.0.0');\n return major > 25 || (major === 25 && minor >= 1) || (major === 24 && minor >= 13);\n}\n\n/**\n * Synchronously register the diagnostics-channel injection module hooks.\n *\n * This is the single source of truth for the registration logic. It is used by:\n * - `Sentry.init()` (the Node SDK calls it directly — that's why this module\n * must be CJS-compatible / dual-built, so it can be `require()`d synchronously\n * before the app's `import`s resolve), and\n * - `import-hook.mjs`, the side-effecting `--import` entry, which just calls it.\n *\n * Libraries imported *after* this call publish the `tracingChannel` events that\n * the channel-based integrations subscribe to.\n */\nexport function registerDiagnosticsChannelInjection(): void {\n if (GLOBAL_OBJ?.__SENTRY_ORCHESTRION__?.runtime) {\n return;\n }\n\n const globalAny = globalThis as { Bun?: unknown; Deno?: { version?: { deno?: string } } };\n const stableSyncHooks = hasStableSyncModuleHooks(Boolean(globalAny.Deno));\n\n // `Module.registerHooks` / `Module.register` are newer than the @types/node\n // we build against, hence the cast.\n const mod = Module as NodeModule;\n\n setDiagnosticsHook(({ moduleName, error }): void => {\n if (error) {\n debug.warn(`[orchestrion] failed to inject diagnostics-channel into ${moduleName}:`, error);\n } else {\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime.push(moduleName);\n // Tell channel integrations their module just loaded, so they subscribe\n // now. They hold off at `init()` to avoid claiming channel slots for\n // modules that never load, because Node caps channels in use at 1024.\n getClient()?.emit('orchestrion.module-injected', moduleName);\n }\n });\n\n // runs both at `--import` time and (synchronously) inside `Sentry.init()`,\n // so an unguarded throw would either abort startup or make `init()` throw.\n // On any failure (e.g. dep resolution, `require(esm)` / Node-compat\n // incompatibility) we warn (DEBUG only) and continue without channel\n // injection\n try {\n if (typeof mod.registerHooks === 'function' && stableSyncHooks) {\n initialize({ instrumentations: SENTRY_INSTRUMENTATIONS });\n mod.registerHooks({ resolve, load });\n debug.log('Registered diagnostics-channel injection via Module.registerHooks()');\n } else if (typeof mod.register === 'function' && !globalAny.Bun && !globalAny.Deno) {\n // `Module.register` + the `_compile` patch is Node 18.19–24.12 / 25.0\n // path. Bun/Deno are excluded: they don't support this combination and\n // must use the stable `registerHooks` path above (or none at all).\n const diagnosticsPort = createDiagnosticsPort();\n\n let parentURL: string;\n /*! rollup-include-cjs-only */\n parentURL = pathToFileURL(__filename).href;\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n parentURL = import.meta.url;\n /*! rollup-include-esm-only-end */\n\n // Our own bundled copy of the tracing-hooks async hooks (see\n // `src/orchestrion/runtime/hook.mjs`) — the dependency itself is bundled into this package's\n // build and no longer resolvable as a bare specifier at runtime.\n mod.register('@sentry/server-utils/orchestrion/hook', {\n parentURL,\n data: { instrumentations: SENTRY_INSTRUMENTATIONS, diagnosticsPort },\n transferList: [diagnosticsPort],\n });\n\n // ALSO patch `Module.prototype._compile` for the CJS side: when an ESM\n // file `import`s a CJS package, the package's internal `require()` calls\n // are resolved through the CJS machinery and never reach the ESM\n // register hook, so without this patch the file we want to instrument\n // loads untransformed.\n new ModulePatch({ instrumentations: SENTRY_INSTRUMENTATIONS }).patch();\n debug.log('Registered diagnostics-channel injection via Module.register()');\n } else {\n debug.warn('No available Node API to register diagnostics-channel injection hooks; skipping.');\n return;\n }\n } catch (error) {\n debug.warn(\n 'Failed to register diagnostics-channel injection hooks; channel-based integrations will not record spans.',\n error,\n );\n return;\n }\n\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__ = GLOBAL_OBJ.__SENTRY_ORCHESTRION__ || {};\n GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime = GLOBAL_OBJ.__SENTRY_ORCHESTRION__.runtime || [];\n}\n"],"names":["Module","setDiagnosticsHook","initialize","resolve","load"],"mappings":";;;;;;;;AAeA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAyB,CAAA,CA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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,UAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { trace, isSpanContextValid } from '@opentelemetry/api';
|
|
2
|
+
import { defineIntegration, registerExternalPropagationContext, dsnFromString, SENTRY_API_VERSION } from '@sentry/core';
|
|
3
|
+
|
|
4
|
+
const INTEGRATION_NAME = "Otlp";
|
|
5
|
+
const _otlpIntegration = (() => {
|
|
6
|
+
return {
|
|
7
|
+
name: INTEGRATION_NAME,
|
|
8
|
+
setup() {
|
|
9
|
+
registerExternalPropagationContext(() => {
|
|
10
|
+
const activeSpan = trace.getActiveSpan();
|
|
11
|
+
if (!activeSpan) {
|
|
12
|
+
return void 0;
|
|
13
|
+
}
|
|
14
|
+
const spanContext = activeSpan.spanContext();
|
|
15
|
+
if (!isSpanContextValid(spanContext)) {
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
const { traceId, spanId } = spanContext;
|
|
19
|
+
return { traceId, spanId };
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
const otlpIntegration = defineIntegration(_otlpIntegration);
|
|
25
|
+
function getOtlpTracesEndpoint(dsn) {
|
|
26
|
+
const parsedDsn = dsnFromString(dsn);
|
|
27
|
+
if (!parsedDsn) {
|
|
28
|
+
return void 0;
|
|
29
|
+
}
|
|
30
|
+
const { protocol, host, port, path, projectId, publicKey } = parsedDsn;
|
|
31
|
+
const basePath = path ? `/${path}` : "";
|
|
32
|
+
const portSuffix = port ? `:${port}` : "";
|
|
33
|
+
return {
|
|
34
|
+
url: `${protocol}://${host}${portSuffix}${basePath}/api/${projectId}/integration/otlp/v1/traces/`,
|
|
35
|
+
headers: {
|
|
36
|
+
"X-Sentry-Auth": `Sentry sentry_version=${SENTRY_API_VERSION}, sentry_key=${publicKey}`
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { getOtlpTracesEndpoint, otlpIntegration };
|
|
42
|
+
//# sourceMappingURL=otlp.js.map
|