@sentry/server-utils 11.12.0 → 11.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/THIRD-PARTY-LICENSES.txt +94 -94
- package/build/cjs/chunks/config.js +3402 -0
- package/build/cjs/chunks/config.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js → chunks/core-BiWIBBjf.js} +40 -23
- package/build/cjs/chunks/core-BiWIBBjf.js.map +1 -0
- package/build/cjs/chunks/core.js +2 -0
- package/build/cjs/chunks/debug-build.js +15 -0
- package/build/cjs/chunks/debug-build.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/esbuild.js +20 -18
- package/build/cjs/chunks/esbuild.js.map +1 -0
- package/build/cjs/chunks/exports.js +7058 -0
- package/build/cjs/chunks/exports.js.map +1 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm → chunks}/instrumentation-serde-C-Xxv-jj.js +14 -6
- package/build/cjs/chunks/instrumentation-serde-C-Xxv-jj.js.map +1 -0
- package/build/cjs/chunks/module-details-from-path.js +15969 -0
- package/build/cjs/chunks/module-details-from-path.js.map +1 -0
- package/build/cjs/chunks/moduleInjectedTransform.js +10883 -0
- package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -0
- package/build/cjs/chunks/options.js +66 -0
- package/build/cjs/chunks/options.js.map +1 -0
- package/build/cjs/chunks/pi-ai.js +80 -0
- package/build/cjs/chunks/pi-ai.js.map +1 -0
- package/build/cjs/chunks/registration-only.js +38 -0
- package/build/cjs/chunks/registration-only.js.map +1 -0
- package/build/cjs/chunks/resolve.js +75 -0
- package/build/cjs/chunks/resolve.js.map +1 -0
- package/build/cjs/chunks/rolldown-runtime.js +48 -0
- package/build/cjs/{vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js → chunks/rollup-CzqrjlS4.js} +17 -19
- package/build/cjs/chunks/rollup-CzqrjlS4.js.map +1 -0
- package/build/cjs/index.js +10505 -167
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +30 -53
- package/build/cjs/index.request-handler.js +240 -7
- package/build/cjs/index.request-handler.js.map +1 -1
- package/build/cjs/orchestrion/bundler/bun.js +102 -35
- package/build/cjs/orchestrion/bundler/bun.js.map +1 -1
- package/build/cjs/orchestrion/bundler/esbuild.js +59 -50
- package/build/cjs/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/cjs/orchestrion/bundler/load-hook.js +24 -21
- package/build/cjs/orchestrion/bundler/load-hook.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +80 -71
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/cjs/orchestrion/bundler/vite.js +212 -165
- package/build/cjs/orchestrion/bundler/vite.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack-loader.js +134 -16
- package/build/cjs/orchestrion/bundler/webpack-loader.js.map +1 -1
- package/build/cjs/orchestrion/bundler/webpack.js +157 -77
- package/build/cjs/orchestrion/bundler/webpack.js.map +1 -1
- package/build/cjs/orchestrion/config/index.js +12 -129
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/defineProperty.js +17 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/assertClassBrand.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/checkPrivateRedeclaration.js +8 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldGet2.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldInitSpec.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateFieldSet2.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/classPrivateMethodInitSpec.js +9 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/defineProperty.js +11 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPrimitive.js +13 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPropertyKey.js +8 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/typeof.js +10 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPrimitive.js +19 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/toPropertyKey.js +15 -0
- package/build/esm/_virtual/_@oxc-project_runtime@0.158.0/helpers/typeof.js +15 -0
- package/build/esm/_virtual/_cjs/require_array_set.js +2 -0
- package/build/esm/_virtual/_cjs/require_astring.js +2 -0
- package/build/esm/_virtual/_cjs/require_base64.js +2 -0
- package/build/esm/_virtual/_cjs/require_base64_vlq.js +2 -0
- package/build/esm/_virtual/_cjs/require_binary_search.js +2 -0
- package/build/esm/_virtual/_cjs/require_esquery_min.js +2 -0
- package/build/esm/_virtual/_cjs/require_mapping_list.js +2 -0
- package/build/esm/_virtual/_cjs/require_meriyah.js +2 -0
- package/build/esm/_virtual/_cjs/require_quick_sort.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map_consumer.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_map_generator.js +2 -0
- package/build/esm/_virtual/_cjs/require_source_node.js +2 -0
- package/build/esm/_virtual/_cjs/require_util.js +2 -0
- package/build/esm/_virtual/_rolldown/runtime.js +35 -0
- package/build/esm/ai/anthropic-ai/constants.js +10 -6
- package/build/esm/ai/anthropic-ai/constants.js.map +1 -1
- package/build/esm/ai/anthropic-ai/index.js +183 -199
- package/build/esm/ai/anthropic-ai/index.js.map +1 -1
- package/build/esm/ai/anthropic-ai/streaming.js +176 -140
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +99 -125
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/esm/ai/anthropic-ai/utils.js +72 -52
- package/build/esm/ai/anthropic-ai/utils.js.map +1 -1
- package/build/esm/ai/core/apiPromise.js +35 -47
- package/build/esm/ai/core/apiPromise.js.map +1 -1
- package/build/esm/ai/core/gen-ai-attributes.js +29 -2
- package/build/esm/ai/core/gen-ai-attributes.js.map +1 -1
- package/build/esm/ai/core/streaming-tool-calls.js +37 -0
- package/build/esm/ai/core/streaming-tool-calls.js.map +1 -0
- package/build/esm/ai/core/utils.js +200 -144
- package/build/esm/ai/core/utils.js.map +1 -1
- package/build/esm/ai/flue/constants.js +31 -6
- package/build/esm/ai/flue/constants.js.map +1 -1
- package/build/esm/ai/flue/index.js +140 -134
- package/build/esm/ai/flue/index.js.map +1 -1
- package/build/esm/ai/flue/utils.js +93 -179
- package/build/esm/ai/flue/utils.js.map +1 -1
- package/build/esm/ai/google-genai/constants.js +16 -8
- package/build/esm/ai/google-genai/constants.js.map +1 -1
- package/build/esm/ai/google-genai/decisions.js +25 -0
- package/build/esm/ai/google-genai/decisions.js.map +1 -0
- package/build/esm/ai/google-genai/index.js +252 -255
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/google-genai/streaming.js +89 -66
- package/build/esm/ai/google-genai/streaming.js.map +1 -1
- package/build/esm/ai/google-genai/utils.js +115 -102
- package/build/esm/ai/google-genai/utils.js.map +1 -1
- package/build/esm/ai/index.js +12 -0
- package/build/esm/ai/langchain/constants.js +9 -8
- package/build/esm/ai/langchain/constants.js.map +1 -1
- package/build/esm/ai/langchain/embeddings.js +83 -67
- package/build/esm/ai/langchain/embeddings.js.map +1 -1
- package/build/esm/ai/langchain/index.js +249 -307
- package/build/esm/ai/langchain/index.js.map +1 -1
- package/build/esm/ai/langchain/typesafe-classifier.js +43 -43
- package/build/esm/ai/langchain/typesafe-classifier.js.map +1 -1
- package/build/esm/ai/langchain/utils.js +323 -288
- package/build/esm/ai/langchain/utils.js.map +1 -1
- package/build/esm/ai/langgraph/agent-span.js +73 -79
- package/build/esm/ai/langgraph/agent-span.js.map +1 -1
- package/build/esm/ai/langgraph/constants.js +3 -2
- package/build/esm/ai/langgraph/constants.js.map +1 -1
- package/build/esm/ai/langgraph/index.js +111 -109
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/langgraph/stream.js +84 -110
- package/build/esm/ai/langgraph/stream.js.map +1 -1
- package/build/esm/ai/langgraph/utils.js +171 -195
- package/build/esm/ai/langgraph/utils.js.map +1 -1
- package/build/esm/ai/mastra/classifier-evaluation.js +25 -18
- package/build/esm/ai/mastra/classifier-evaluation.js.map +1 -1
- package/build/esm/ai/mastra/constants.js +63 -18
- package/build/esm/ai/mastra/constants.js.map +1 -1
- package/build/esm/ai/mastra/index.js +164 -190
- package/build/esm/ai/mastra/index.js.map +1 -1
- package/build/esm/ai/mastra/span-registry.js +17 -8
- package/build/esm/ai/mastra/span-registry.js.map +1 -1
- package/build/esm/ai/mastra/utils.js +110 -137
- package/build/esm/ai/mastra/utils.js.map +1 -1
- package/build/esm/ai/mistral/constants.js +19 -9
- package/build/esm/ai/mistral/constants.js.map +1 -1
- package/build/esm/ai/mistral/index.js +112 -113
- package/build/esm/ai/mistral/index.js.map +1 -1
- package/build/esm/ai/mistral/streaming.js +180 -187
- package/build/esm/ai/mistral/streaming.js.map +1 -1
- package/build/esm/ai/mistral/utils.js +75 -73
- package/build/esm/ai/mistral/utils.js.map +1 -1
- package/build/esm/ai/openai/constants.js +20 -22
- package/build/esm/ai/openai/constants.js.map +1 -1
- package/build/esm/ai/openai/index.js +151 -159
- package/build/esm/ai/openai/index.js.map +1 -1
- package/build/esm/ai/openai/mapping.js +76 -53
- package/build/esm/ai/openai/mapping.js.map +1 -1
- package/build/esm/ai/openai/streaming.js +151 -155
- package/build/esm/ai/openai/streaming.js.map +1 -1
- package/build/esm/ai/openai/utils.js +94 -110
- package/build/esm/ai/openai/utils.js.map +1 -1
- package/build/esm/ai/pi-ai/chat.js +74 -0
- package/build/esm/ai/pi-ai/chat.js.map +1 -0
- package/build/esm/ai/pi-ai/constants.js +6 -0
- package/build/esm/ai/pi-ai/constants.js.map +1 -0
- package/build/esm/ai/pi-ai/messages.js +114 -107
- package/build/esm/ai/pi-ai/messages.js.map +1 -1
- package/build/esm/ai/pi-ai/providers.js +21 -18
- package/build/esm/ai/pi-ai/providers.js.map +1 -1
- package/build/esm/ai/pi-ai/recording.js +28 -0
- package/build/esm/ai/pi-ai/recording.js.map +1 -0
- package/build/esm/ai/pi-ai/usage.js +31 -27
- package/build/esm/ai/pi-ai/usage.js.map +1 -1
- package/build/esm/ai/pi-durable/constants.js +15 -5
- package/build/esm/ai/pi-durable/constants.js.map +1 -1
- package/build/esm/ai/pi-durable/index.js +164 -165
- package/build/esm/ai/pi-durable/index.js.map +1 -1
- package/build/esm/ai/pi-durable/runs.js +134 -136
- package/build/esm/ai/pi-durable/runs.js.map +1 -1
- package/build/esm/ai/pi-durable/tools.js +152 -160
- package/build/esm/ai/pi-durable/tools.js.map +1 -1
- package/build/esm/ai/pi-durable/utils.js +6 -4
- package/build/esm/ai/pi-durable/utils.js.map +1 -1
- package/build/esm/ai/typesafe/constants.js +3 -2
- package/build/esm/ai/typesafe/constants.js.map +1 -1
- package/build/esm/ai/typesafe/index.js +82 -94
- package/build/esm/ai/typesafe/index.js.map +1 -1
- package/build/esm/ai/vercel-ai/index.js +57 -60
- package/build/esm/ai/vercel-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/constants.js +15 -2
- package/build/esm/ai/workers-ai/constants.js.map +1 -1
- package/build/esm/ai/workers-ai/index.js +83 -78
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +133 -141
- package/build/esm/ai/workers-ai/streaming.js.map +1 -1
- package/build/esm/ai/workers-ai/utils.js +131 -143
- package/build/esm/ai/workers-ai/utils.js.map +1 -1
- package/build/esm/async-context.js +74 -63
- package/build/esm/async-context.js.map +1 -1
- package/build/esm/debug-build.js +9 -3
- package/build/esm/debug-build.js.map +1 -1
- package/build/esm/eve.js +61 -22
- package/build/esm/eve.js.map +1 -1
- package/build/esm/exports.js +21 -0
- package/build/esm/index.js +83 -76
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +21 -20
- package/build/esm/index.request-handler.js +1 -2
- package/build/esm/integrations/amqplib.js +338 -349
- package/build/esm/integrations/amqplib.js.map +1 -1
- package/build/esm/integrations/anthropic.js +154 -120
- package/build/esm/integrations/anthropic.js.map +1 -1
- package/build/esm/integrations/aws-sdk/constants.js +11 -2
- package/build/esm/integrations/aws-sdk/constants.js.map +1 -1
- package/build/esm/integrations/aws-sdk/index.js +118 -134
- package/build/esm/integrations/aws-sdk/index.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/MessageAttributes.js +30 -31
- package/build/esm/integrations/aws-sdk/services/MessageAttributes.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js +38 -44
- package/build/esm/integrations/aws-sdk/services/ServicesExtensions.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js +144 -0
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime-content.js.map +1 -0
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js +316 -454
- package/build/esm/integrations/aws-sdk/services/bedrock-runtime.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/dynamodb.js +67 -125
- package/build/esm/integrations/aws-sdk/services/dynamodb.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/index.js +1 -0
- package/build/esm/integrations/aws-sdk/services/kinesis.js +12 -16
- package/build/esm/integrations/aws-sdk/services/kinesis.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/lambda.js +51 -57
- package/build/esm/integrations/aws-sdk/services/lambda.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/s3.js +12 -16
- package/build/esm/integrations/aws-sdk/services/s3.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/secretsmanager.js +16 -22
- package/build/esm/integrations/aws-sdk/services/secretsmanager.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/sns.js +66 -70
- package/build/esm/integrations/aws-sdk/services/sns.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/sqs.js +104 -124
- package/build/esm/integrations/aws-sdk/services/sqs.js.map +1 -1
- package/build/esm/integrations/aws-sdk/services/stepfunctions.js +14 -20
- package/build/esm/integrations/aws-sdk/services/stepfunctions.js.map +1 -1
- package/build/esm/integrations/aws-sdk/utils.js +18 -19
- package/build/esm/integrations/aws-sdk/utils.js.map +1 -1
- package/build/esm/integrations/cron.js +33 -35
- package/build/esm/integrations/cron.js.map +1 -1
- package/build/esm/integrations/dataloader.js +101 -93
- package/build/esm/integrations/dataloader.js.map +1 -1
- package/build/esm/integrations/express/error-handled.js +13 -8
- package/build/esm/integrations/express/error-handled.js.map +1 -1
- package/build/esm/integrations/express/error-handler.js +49 -31
- package/build/esm/integrations/express/error-handler.js.map +1 -1
- package/build/esm/integrations/express/index.js +26 -17
- package/build/esm/integrations/express/index.js.map +1 -1
- package/build/esm/integrations/express/instrumentation.js +182 -196
- package/build/esm/integrations/express/instrumentation.js.map +1 -1
- package/build/esm/integrations/express/route.js +70 -45
- package/build/esm/integrations/express/route.js.map +1 -1
- package/build/esm/integrations/express/utils.js +11 -5
- package/build/esm/integrations/express/utils.js.map +1 -1
- package/build/esm/integrations/fastify/errors.js +33 -26
- package/build/esm/integrations/fastify/errors.js.map +1 -1
- package/build/esm/integrations/fastify/index.js +41 -21
- package/build/esm/integrations/fastify/index.js.map +1 -1
- package/build/esm/integrations/fastify/instrumentation.js +188 -208
- package/build/esm/integrations/fastify/instrumentation.js.map +1 -1
- package/build/esm/integrations/fastify/utils.js +21 -15
- package/build/esm/integrations/fastify/utils.js.map +1 -1
- package/build/esm/integrations/firebase/firestore.js +69 -70
- package/build/esm/integrations/firebase/firestore.js.map +1 -1
- package/build/esm/integrations/firebase/functions.js +66 -68
- package/build/esm/integrations/firebase/functions.js.map +1 -1
- package/build/esm/integrations/firebase/index.js +21 -13
- package/build/esm/integrations/firebase/index.js.map +1 -1
- package/build/esm/integrations/firebase/instrumentation.js +86 -47
- package/build/esm/integrations/firebase/instrumentation.js.map +1 -1
- package/build/esm/integrations/flue.js +46 -33
- package/build/esm/integrations/flue.js.map +1 -1
- package/build/esm/integrations/generic-pool.js +30 -27
- package/build/esm/integrations/generic-pool.js.map +1 -1
- package/build/esm/integrations/google-genai.js +93 -87
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/graphql/constants.js +6 -4
- package/build/esm/integrations/graphql/constants.js.map +1 -1
- package/build/esm/integrations/graphql/graphql-dc-subscriber.js +95 -99
- package/build/esm/integrations/graphql/graphql-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/graphql/index.js +38 -47
- package/build/esm/integrations/graphql/index.js.map +1 -1
- package/build/esm/integrations/graphql/resolvers.js +117 -142
- package/build/esm/integrations/graphql/resolvers.js.map +1 -1
- package/build/esm/integrations/graphql/spans.js +110 -93
- package/build/esm/integrations/graphql/spans.js.map +1 -1
- package/build/esm/integrations/graphql/utils.js +84 -79
- package/build/esm/integrations/graphql/utils.js.map +1 -1
- package/build/esm/integrations/groq.js +22 -16
- package/build/esm/integrations/groq.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-error-handler.js +47 -38
- package/build/esm/integrations/hapi/hapi-error-handler.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-types.js +20 -13
- package/build/esm/integrations/hapi/hapi-types.js.map +1 -1
- package/build/esm/integrations/hapi/hapi-utils.js +165 -166
- package/build/esm/integrations/hapi/hapi-utils.js.map +1 -1
- package/build/esm/integrations/hapi/index.js +53 -64
- package/build/esm/integrations/hapi/index.js.map +1 -1
- package/build/esm/integrations/hono/applyPatches.js +43 -26
- package/build/esm/integrations/hono/applyPatches.js.map +1 -1
- package/build/esm/integrations/hono/connInfo.js +39 -30
- package/build/esm/integrations/hono/connInfo.js.map +1 -1
- package/build/esm/integrations/hono/constants.js +3 -2
- package/build/esm/integrations/hono/constants.js.map +1 -1
- package/build/esm/integrations/hono/createHonoMiddleware.js +59 -36
- package/build/esm/integrations/hono/createHonoMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/defaultShouldHandleError.js +17 -9
- package/build/esm/integrations/hono/defaultShouldHandleError.js.map +1 -1
- package/build/esm/integrations/hono/hono-context.js +13 -9
- package/build/esm/integrations/hono/hono-context.js.map +1 -1
- package/build/esm/integrations/hono/honoIntegration.js +114 -78
- package/build/esm/integrations/hono/honoIntegration.js.map +1 -1
- package/build/esm/integrations/hono/index.js +3 -0
- package/build/esm/integrations/hono/isMiddleware.js +26 -13
- package/build/esm/integrations/hono/isMiddleware.js.map +1 -1
- package/build/esm/integrations/hono/matchResult.js +59 -64
- package/build/esm/integrations/hono/matchResult.js.map +1 -1
- package/build/esm/integrations/hono/middlewareHandlers.js +88 -82
- package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/esm/integrations/hono/patchAppRequest.js +77 -62
- package/build/esm/integrations/hono/patchAppRequest.js.map +1 -1
- package/build/esm/integrations/hono/patchAppUse.js +71 -56
- package/build/esm/integrations/hono/patchAppUse.js.map +1 -1
- package/build/esm/integrations/hono/patchRoute.js +73 -59
- package/build/esm/integrations/hono/patchRoute.js.map +1 -1
- package/build/esm/integrations/hono/resolveRouteName.js +19 -22
- package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
- package/build/esm/integrations/hono/sentryOriginalTraps.js +23 -16
- package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -1
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js +45 -42
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js.map +1 -1
- package/build/esm/integrations/index.js +92 -85
- package/build/esm/integrations/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/consumer.js +58 -60
- package/build/esm/integrations/kafkajs/consumer.js.map +1 -1
- package/build/esm/integrations/kafkajs/index.js +53 -57
- package/build/esm/integrations/kafkajs/index.js.map +1 -1
- package/build/esm/integrations/kafkajs/semconv.js +4 -2
- package/build/esm/integrations/kafkajs/semconv.js.map +1 -1
- package/build/esm/integrations/kafkajs/spans.js +107 -101
- package/build/esm/integrations/kafkajs/spans.js.map +1 -1
- package/build/esm/integrations/knex.js +133 -157
- package/build/esm/integrations/knex.js.map +1 -1
- package/build/esm/integrations/koa/index.js +122 -133
- package/build/esm/integrations/koa/index.js.map +1 -1
- package/build/esm/integrations/koa/koa-error-handler.js +43 -25
- package/build/esm/integrations/koa/koa-error-handler.js.map +1 -1
- package/build/esm/integrations/langchain.js +66 -75
- package/build/esm/integrations/langchain.js.map +1 -1
- package/build/esm/integrations/langgraph.js +55 -61
- package/build/esm/integrations/langgraph.js.map +1 -1
- package/build/esm/integrations/lru-memoizer.js +22 -20
- package/build/esm/integrations/lru-memoizer.js.map +1 -1
- package/build/esm/integrations/mastra-classifier.js +47 -50
- package/build/esm/integrations/mastra-classifier.js.map +1 -1
- package/build/esm/integrations/mastra.js +208 -209
- package/build/esm/integrations/mastra.js.map +1 -1
- package/build/esm/integrations/mcp-server.js +28 -28
- package/build/esm/integrations/mcp-server.js.map +1 -1
- package/build/esm/integrations/mistral.js +74 -56
- package/build/esm/integrations/mistral.js.map +1 -1
- package/build/esm/integrations/mongodb/index.js +101 -76
- package/build/esm/integrations/mongodb/index.js.map +1 -1
- package/build/esm/integrations/mongodb/mongodb-span.js +110 -106
- package/build/esm/integrations/mongodb/mongodb-span.js.map +1 -1
- package/build/esm/integrations/mongoose/index.js +82 -89
- package/build/esm/integrations/mongoose/index.js.map +1 -1
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js +85 -72
- package/build/esm/integrations/mongoose/mongoose-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/mongoose/mongoose-legacy-span.js +39 -36
- package/build/esm/integrations/mongoose/mongoose-legacy-span.js.map +1 -1
- package/build/esm/integrations/mysql.js +74 -83
- package/build/esm/integrations/mysql.js.map +1 -1
- package/build/esm/integrations/mysql2/index.js +86 -61
- package/build/esm/integrations/mysql2/index.js.map +1 -1
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js +51 -38
- package/build/esm/integrations/mysql2/mysql2-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/neon.js +84 -86
- package/build/esm/integrations/neon.js.map +1 -1
- package/build/esm/integrations/nitro/captureStorageEvents.js +97 -111
- package/build/esm/integrations/nitro/captureStorageEvents.js.map +1 -1
- package/build/esm/integrations/nitro/captureTracingEvents.js +139 -181
- package/build/esm/integrations/nitro/captureTracingEvents.js.map +1 -1
- package/build/esm/integrations/nitro/index.js +26 -20
- package/build/esm/integrations/nitro/index.js.map +1 -1
- package/build/esm/integrations/nitro/setServerTimingHeaders.js +31 -33
- package/build/esm/integrations/nitro/setServerTimingHeaders.js.map +1 -1
- package/build/esm/integrations/node-cron.js +54 -48
- package/build/esm/integrations/node-cron.js.map +1 -1
- package/build/esm/integrations/node-schedule.js +45 -51
- package/build/esm/integrations/node-schedule.js.map +1 -1
- package/build/esm/integrations/openai-compatible.js +84 -79
- package/build/esm/integrations/openai-compatible.js.map +1 -1
- package/build/esm/integrations/openai.js +85 -75
- package/build/esm/integrations/openai.js.map +1 -1
- package/build/esm/integrations/pg.js +147 -130
- package/build/esm/integrations/pg.js.map +1 -1
- package/build/esm/integrations/pi-ai.js +69 -0
- package/build/esm/integrations/pi-ai.js.map +1 -0
- package/build/esm/integrations/pi-durable.js +46 -42
- package/build/esm/integrations/pi-durable.js.map +1 -1
- package/build/esm/integrations/postgresjs/index.js +124 -126
- package/build/esm/integrations/postgresjs/index.js.map +1 -1
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js +72 -64
- package/build/esm/integrations/postgresjs/postgresjs-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/postgresjs-wrapper.js +232 -187
- package/build/esm/integrations/postgresjs-wrapper.js.map +1 -1
- package/build/esm/integrations/prisma/global.js +6 -5
- package/build/esm/integrations/prisma/global.js.map +1 -1
- package/build/esm/integrations/prisma/index.js +44 -26
- package/build/esm/integrations/prisma/index.js.map +1 -1
- package/build/esm/integrations/prisma/orchestrion.js +96 -115
- package/build/esm/integrations/prisma/orchestrion.js.map +1 -1
- package/build/esm/integrations/prisma/tracing-helper.js +192 -208
- package/build/esm/integrations/prisma/tracing-helper.js.map +1 -1
- package/build/esm/integrations/redis/index.js +173 -190
- package/build/esm/integrations/redis/index.js.map +1 -1
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js +78 -72
- package/build/esm/integrations/redis/ioredis-channel-subscriber.js.map +1 -1
- package/build/esm/integrations/redis/redis-cache.js +110 -111
- package/build/esm/integrations/redis/redis-cache.js.map +1 -1
- package/build/esm/integrations/redis/redis-dc-subscriber.js +79 -84
- package/build/esm/integrations/redis/redis-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/redis/redis-span-name.js +31 -21
- package/build/esm/integrations/redis/redis-span-name.js.map +1 -1
- package/build/esm/integrations/redis/redis-statement-serializer.js +38 -27
- package/build/esm/integrations/redis/redis-statement-serializer.js.map +1 -1
- package/build/esm/integrations/serveTunnel.js +30 -24
- package/build/esm/integrations/serveTunnel.js.map +1 -1
- package/build/esm/integrations/tedious.js +132 -132
- package/build/esm/integrations/tedious.js.map +1 -1
- package/build/esm/integrations/together-ai.js +22 -16
- package/build/esm/integrations/together-ai.js.map +1 -1
- package/build/esm/integrations/typesafe.js +32 -37
- package/build/esm/integrations/typesafe.js.map +1 -1
- package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js +20 -4
- package/build/esm/integrations/vercel-ai/gen-ai-recording-mode.js.map +1 -1
- package/build/esm/integrations/vercel-ai/index.js +29 -26
- package/build/esm/integrations/vercel-ai/index.js.map +1 -1
- package/build/esm/integrations/vercel-ai/util.js +86 -92
- package/build/esm/integrations/vercel-ai/util.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +515 -514
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +386 -361
- package/build/esm/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js +61 -34
- package/build/esm/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +1 -1
- package/build/esm/opentelemetry.js +70 -35
- package/build/esm/opentelemetry.js.map +1 -1
- package/build/esm/orchestrion/bundler/bun.js +42 -32
- package/build/esm/orchestrion/bundler/bun.js.map +1 -1
- package/build/esm/orchestrion/bundler/esbuild.js +57 -47
- package/build/esm/orchestrion/bundler/esbuild.js.map +1 -1
- package/build/esm/orchestrion/bundler/externalRequire.js +65 -62
- package/build/esm/orchestrion/bundler/externalRequire.js.map +1 -1
- package/build/esm/orchestrion/bundler/load-hook.js +23 -19
- package/build/esm/orchestrion/bundler/load-hook.js.map +1 -1
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +119 -44
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
- package/build/esm/orchestrion/bundler/options.js +42 -13
- package/build/esm/orchestrion/bundler/options.js.map +1 -1
- package/build/esm/orchestrion/bundler/resolve.js +43 -13
- package/build/esm/orchestrion/bundler/resolve.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +79 -68
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/bundler/vite.js +122 -160
- package/build/esm/orchestrion/bundler/vite.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack-loader.js +18 -14
- package/build/esm/orchestrion/bundler/webpack-loader.js.map +1 -1
- package/build/esm/orchestrion/bundler/webpack.js +57 -71
- package/build/esm/orchestrion/bundler/webpack.js.map +1 -1
- package/build/esm/orchestrion/channels.js +105 -87
- package/build/esm/orchestrion/channels.js.map +1 -1
- package/build/esm/orchestrion/config/amqplib.js +152 -83
- package/build/esm/orchestrion/config/amqplib.js.map +1 -1
- package/build/esm/orchestrion/config/anthropic-ai.js +96 -43
- package/build/esm/orchestrion/config/anthropic-ai.js.map +1 -1
- package/build/esm/orchestrion/config/aws-sdk.js +46 -22
- package/build/esm/orchestrion/config/aws-sdk.js.map +1 -1
- package/build/esm/orchestrion/config/channel-integration-definitions.js +193 -51
- package/build/esm/orchestrion/config/channel-integration-definitions.js.map +1 -1
- package/build/esm/orchestrion/config/cron.js +27 -18
- package/build/esm/orchestrion/config/cron.js.map +1 -1
- package/build/esm/orchestrion/config/dataloader.js +62 -45
- package/build/esm/orchestrion/config/dataloader.js.map +1 -1
- package/build/esm/orchestrion/config/express.js +80 -71
- package/build/esm/orchestrion/config/express.js.map +1 -1
- package/build/esm/orchestrion/config/firebase.js +133 -70
- package/build/esm/orchestrion/config/firebase.js.map +1 -1
- package/build/esm/orchestrion/config/flue.js +15 -7
- package/build/esm/orchestrion/config/flue.js.map +1 -1
- package/build/esm/orchestrion/config/generic-pool.js +29 -19
- package/build/esm/orchestrion/config/generic-pool.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +64 -33
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/orchestrion/config/graphql.js +43 -22
- package/build/esm/orchestrion/config/graphql.js.map +1 -1
- package/build/esm/orchestrion/config/groq.js +9 -9
- package/build/esm/orchestrion/config/groq.js.map +1 -1
- package/build/esm/orchestrion/config/hapi.js +56 -38
- package/build/esm/orchestrion/config/hapi.js.map +1 -1
- package/build/esm/orchestrion/config/hono.js +23 -26
- package/build/esm/orchestrion/config/hono.js.map +1 -1
- package/build/esm/orchestrion/config/index.js +177 -111
- package/build/esm/orchestrion/config/index.js.map +1 -1
- package/build/esm/orchestrion/config/ioredis.js +65 -31
- package/build/esm/orchestrion/config/ioredis.js.map +1 -1
- package/build/esm/orchestrion/config/kafkajs.js +29 -26
- package/build/esm/orchestrion/config/kafkajs.js.map +1 -1
- package/build/esm/orchestrion/config/knex.js +57 -29
- package/build/esm/orchestrion/config/knex.js.map +1 -1
- package/build/esm/orchestrion/config/koa.js +31 -24
- package/build/esm/orchestrion/config/koa.js.map +1 -1
- package/build/esm/orchestrion/config/langchain.js +78 -49
- package/build/esm/orchestrion/config/langchain.js.map +1 -1
- package/build/esm/orchestrion/config/langgraph.js +25 -20
- package/build/esm/orchestrion/config/langgraph.js.map +1 -1
- package/build/esm/orchestrion/config/lru-memoizer.js +17 -15
- package/build/esm/orchestrion/config/lru-memoizer.js.map +1 -1
- package/build/esm/orchestrion/config/mastra.js +44 -44
- package/build/esm/orchestrion/config/mastra.js.map +1 -1
- package/build/esm/orchestrion/config/mcp-server.js +24 -32
- package/build/esm/orchestrion/config/mcp-server.js.map +1 -1
- package/build/esm/orchestrion/config/mistral.js +87 -47
- package/build/esm/orchestrion/config/mistral.js.map +1 -1
- package/build/esm/orchestrion/config/module-names.js +9 -3
- package/build/esm/orchestrion/config/module-names.js.map +1 -1
- package/build/esm/orchestrion/config/mongodb.js +101 -61
- package/build/esm/orchestrion/config/mongodb.js.map +1 -1
- package/build/esm/orchestrion/config/mongoose.js +131 -100
- package/build/esm/orchestrion/config/mongoose.js.map +1 -1
- package/build/esm/orchestrion/config/mysql.js +17 -14
- package/build/esm/orchestrion/config/mysql.js.map +1 -1
- package/build/esm/orchestrion/config/mysql2.js +64 -28
- package/build/esm/orchestrion/config/mysql2.js.map +1 -1
- package/build/esm/orchestrion/config/neon.js +33 -36
- package/build/esm/orchestrion/config/neon.js.map +1 -1
- package/build/esm/orchestrion/config/nestjs.js +151 -120
- package/build/esm/orchestrion/config/nestjs.js.map +1 -1
- package/build/esm/orchestrion/config/nitro.js +25 -7
- package/build/esm/orchestrion/config/nitro.js.map +1 -1
- package/build/esm/orchestrion/config/node-cron.js +74 -43
- package/build/esm/orchestrion/config/node-cron.js.map +1 -1
- package/build/esm/orchestrion/config/node-schedule.js +26 -21
- package/build/esm/orchestrion/config/node-schedule.js.map +1 -1
- package/build/esm/orchestrion/config/openai-compatible.js +42 -15
- package/build/esm/orchestrion/config/openai-compatible.js.map +1 -1
- package/build/esm/orchestrion/config/openai.js +72 -39
- package/build/esm/orchestrion/config/openai.js.map +1 -1
- package/build/esm/orchestrion/config/pg.js +70 -45
- package/build/esm/orchestrion/config/pg.js.map +1 -1
- package/build/esm/orchestrion/config/pi-ai.js +49 -0
- package/build/esm/orchestrion/config/pi-ai.js.map +1 -0
- package/build/esm/orchestrion/config/pi-durable.js +36 -26
- package/build/esm/orchestrion/config/pi-durable.js.map +1 -1
- package/build/esm/orchestrion/config/postgres.js +63 -48
- package/build/esm/orchestrion/config/postgres.js.map +1 -1
- package/build/esm/orchestrion/config/prisma.js +46 -36
- package/build/esm/orchestrion/config/prisma.js.map +1 -1
- package/build/esm/orchestrion/config/redis.js +133 -72
- package/build/esm/orchestrion/config/redis.js.map +1 -1
- package/build/esm/orchestrion/config/registration-only.js +23 -8
- package/build/esm/orchestrion/config/registration-only.js.map +1 -1
- package/build/esm/orchestrion/config/remix-v3.js +68 -47
- package/build/esm/orchestrion/config/remix-v3.js.map +1 -1
- package/build/esm/orchestrion/config/remix.js +77 -45
- package/build/esm/orchestrion/config/remix.js.map +1 -1
- package/build/esm/orchestrion/config/tedious.js +31 -16
- package/build/esm/orchestrion/config/tedious.js.map +1 -1
- package/build/esm/orchestrion/config/together-ai.js +17 -15
- package/build/esm/orchestrion/config/together-ai.js.map +1 -1
- package/build/esm/orchestrion/config/typesafe.js +16 -10
- package/build/esm/orchestrion/config/typesafe.js.map +1 -1
- package/build/esm/orchestrion/config/vercel-ai.js +54 -44
- package/build/esm/orchestrion/config/vercel-ai.js.map +1 -1
- package/build/esm/orchestrion/detect.js +50 -34
- package/build/esm/orchestrion/detect.js.map +1 -1
- package/build/esm/orchestrion/instrumentation.js +90 -70
- package/build/esm/orchestrion/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/tracing-channel.js +143 -135
- package/build/esm/tracing-channel.js.map +1 -1
- package/build/esm/utils/cronMonitoring.js +237 -132
- package/build/esm/utils/cronMonitoring.js.map +1 -1
- package/build/esm/utils/diagnosticsChannel.js +26 -21
- package/build/esm/utils/diagnosticsChannel.js.map +1 -1
- package/build/esm/utils/moduleInjected.js +35 -13
- package/build/esm/utils/moduleInjected.js.map +1 -1
- package/build/esm/utils/monitorStream.js +52 -58
- package/build/esm/utils/monitorStream.js.map +1 -1
- package/build/esm/utils/runtime.js +10 -8
- package/build/esm/utils/runtime.js.map +1 -1
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js +22 -21
- package/build/esm/utils/setHttpServerSpanRouteAttribute.js.map +1 -1
- package/build/esm/utils/sql.js +260 -225
- package/build/esm/utils/sql.js.map +1 -1
- package/build/esm/utils/tunnelServer.js +27 -23
- package/build/esm/utils/tunnelServer.js.map +1 -1
- package/build/esm/utils/withCleanScopes.js +17 -12
- package/build/esm/utils/withCleanScopes.js.map +1 -1
- package/build/esm/utils/wrapServerRequestHandler.js +180 -208
- package/build/esm/utils/wrapServerRequestHandler.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js +9 -5
- package/build/esm/vendored/@apm-js-collab/code-transformer/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js +21 -9
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/index.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js +80 -83
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js +289 -313
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js +488 -284
- package/build/esm/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +5 -6
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{core-Bd0h-mo3.js → core-BiWIBBjf.js} +15 -14
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-BiWIBBjf.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core.js +3 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js +6 -7
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js +3 -3
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/{rollup-DCG8HLmh.js → rollup-CzqrjlS4.js} +8 -13
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-CzqrjlS4.js.map +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup.js +1 -0
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +4 -5
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +13 -12
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +1 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +7 -8
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +1 -1
- package/build/esm/vendored/astring/dist/astring.js +910 -1065
- package/build/esm/vendored/astring/dist/astring.js.map +1 -1
- package/build/esm/vendored/esquery/dist/esquery.min.js +1312 -0
- package/build/esm/vendored/esquery/dist/esquery.min.js.map +1 -0
- package/build/esm/vendored/meriyah/dist/meriyah.js +10539 -9189
- package/build/esm/vendored/meriyah/dist/meriyah.js.map +1 -1
- package/build/esm/vendored/meriyah/dist/meriyah2.js +10122 -8806
- package/build/esm/vendored/meriyah/dist/meriyah2.js.map +1 -1
- package/build/esm/vendored/module-details-from-path/index.js +31 -40
- package/build/esm/vendored/module-details-from-path/index.js.map +1 -1
- package/build/esm/vendored/semifies/index.js +106 -108
- package/build/esm/vendored/semifies/index.js.map +1 -1
- package/build/esm/vendored/source-map/lib/array-set.js +100 -70
- package/build/esm/vendored/source-map/lib/array-set.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64-vlq.js +71 -54
- package/build/esm/vendored/source-map/lib/base64-vlq.js.map +1 -1
- package/build/esm/vendored/source-map/lib/base64.js +38 -39
- package/build/esm/vendored/source-map/lib/base64.js.map +1 -1
- package/build/esm/vendored/source-map/lib/binary-search.js +61 -50
- package/build/esm/vendored/source-map/lib/binary-search.js.map +1 -1
- package/build/esm/vendored/source-map/lib/mapping-list.js +75 -39
- package/build/esm/vendored/source-map/lib/mapping-list.js.map +1 -1
- package/build/esm/vendored/source-map/lib/quick-sort.js +73 -33
- package/build/esm/vendored/source-map/lib/quick-sort.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-consumer.js +763 -609
- package/build/esm/vendored/source-map/lib/source-map-consumer.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-map-generator.js +281 -282
- package/build/esm/vendored/source-map/lib/source-map-generator.js.map +1 -1
- package/build/esm/vendored/source-map/lib/source-node.js +294 -267
- package/build/esm/vendored/source-map/lib/source-node.js.map +1 -1
- package/build/esm/vendored/source-map/lib/util.js +241 -252
- package/build/esm/vendored/source-map/lib/util.js.map +1 -1
- package/build/esm/vendored/source-map/source-map.js +17 -13
- package/build/esm/vendored/source-map/source-map.js.map +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts +1 -1
- package/build/types/ai/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/streaming.d.ts +2 -1
- package/build/types/ai/anthropic-ai/streaming.d.ts.map +1 -1
- package/build/types/ai/anthropic-ai/utils.d.ts +7 -2
- package/build/types/ai/anthropic-ai/utils.d.ts.map +1 -1
- package/build/types/ai/core/streaming-tool-calls.d.ts +19 -0
- package/build/types/ai/core/streaming-tool-calls.d.ts.map +1 -0
- package/build/types/ai/core/utils.d.ts +18 -1
- package/build/types/ai/core/utils.d.ts.map +1 -1
- package/build/types/ai/flue/constants.d.ts +5 -7
- package/build/types/ai/flue/constants.d.ts.map +1 -1
- package/build/types/ai/flue/index.d.ts +7 -4
- package/build/types/ai/flue/index.d.ts.map +1 -1
- package/build/types/ai/flue/types.d.ts +1 -38
- package/build/types/ai/flue/types.d.ts.map +1 -1
- package/build/types/ai/flue/utils.d.ts +1 -13
- package/build/types/ai/flue/utils.d.ts.map +1 -1
- package/build/types/ai/google-genai/constants.d.ts +3 -0
- package/build/types/ai/google-genai/constants.d.ts.map +1 -1
- package/build/types/ai/google-genai/decisions.d.ts +8 -0
- package/build/types/ai/google-genai/decisions.d.ts.map +1 -0
- package/build/types/ai/google-genai/index.d.ts +7 -1
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
- package/build/types/ai/mistral/index.d.ts.map +1 -1
- package/build/types/ai/mistral/streaming.d.ts +1 -1
- package/build/types/ai/mistral/streaming.d.ts.map +1 -1
- package/build/types/ai/mistral/utils.d.ts +5 -0
- package/build/types/ai/mistral/utils.d.ts.map +1 -1
- package/build/types/ai/openai/index.d.ts.map +1 -1
- package/build/types/ai/openai/streaming.d.ts.map +1 -1
- package/build/types/ai/pi-ai/chat.d.ts +20 -0
- package/build/types/ai/pi-ai/chat.d.ts.map +1 -0
- package/build/types/ai/pi-ai/constants.d.ts +3 -0
- package/build/types/ai/pi-ai/constants.d.ts.map +1 -0
- package/build/types/ai/pi-ai/providers.d.ts +9 -6
- package/build/types/ai/pi-ai/providers.d.ts.map +1 -1
- package/build/types/ai/pi-ai/recording.d.ts +15 -0
- package/build/types/ai/pi-ai/recording.d.ts.map +1 -0
- package/build/types/ai/pi-ai/types.d.ts +31 -0
- package/build/types/ai/pi-ai/types.d.ts.map +1 -0
- package/build/types/ai/pi-durable/index.d.ts +5 -5
- package/build/types/ai/pi-durable/index.d.ts.map +1 -1
- package/build/types/ai/pi-durable/types.d.ts +3 -43
- package/build/types/ai/pi-durable/types.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +3 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
- package/build/types/ai/workers-ai/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
- package/build/types/ai/workers-ai/types.d.ts +13 -0
- package/build/types/ai/workers-ai/types.d.ts.map +1 -1
- package/build/types/ai/workers-ai/utils.d.ts.map +1 -1
- package/build/types/eve.d.ts +13 -0
- package/build/types/eve.d.ts.map +1 -1
- package/build/types/index.d.ts +5 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/anthropic.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/index.d.ts +3 -1
- package/build/types/integrations/aws-sdk/index.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts +2 -0
- package/build/types/integrations/aws-sdk/services/ServicesExtensions.d.ts.map +1 -1
- package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts +30 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime-content.d.ts.map +1 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts +5 -0
- package/build/types/integrations/aws-sdk/services/bedrock-runtime.d.ts.map +1 -1
- package/build/types/integrations/cron.d.ts.map +1 -1
- package/build/types/integrations/flue.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts +3 -3
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/mistral.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureStorageEvents.d.ts.map +1 -1
- package/build/types/integrations/nitro/captureTracingEvents.d.ts.map +1 -1
- package/build/types/integrations/nitro/setServerTimingHeaders.d.ts.map +1 -1
- package/build/types/integrations/node-cron.d.ts +1 -1
- package/build/types/integrations/node-cron.d.ts.map +1 -1
- package/build/types/integrations/node-schedule.d.ts.map +1 -1
- package/build/types/integrations/openai-compatible.d.ts.map +1 -1
- package/build/types/integrations/openai.d.ts.map +1 -1
- package/build/types/integrations/pi-ai.d.ts +19 -0
- package/build/types/integrations/pi-ai.d.ts.map +1 -0
- package/build/types/integrations/pi-durable.d.ts +3 -4
- package/build/types/integrations/pi-durable.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts +5 -1
- package/build/types/integrations/vercel-ai/gen-ai-recording-mode.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts +6 -4
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts +3 -3
- package/build/types/integrations/vercel-ai/vercel-ai-tool-telemetry.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts +5 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/options.d.ts +6 -0
- package/build/types/orchestrion/bundler/options.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts +3 -3
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +5 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/anthropic-ai.d.ts +1 -0
- package/build/types/orchestrion/config/anthropic-ai.d.ts.map +1 -1
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts +3 -0
- package/build/types/orchestrion/config/channel-integration-definitions.d.ts.map +1 -1
- package/build/types/orchestrion/config/flue.d.ts +1 -1
- package/build/types/orchestrion/config/google-genai.d.ts +13 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
- package/build/types/orchestrion/config/index.d.ts.map +1 -1
- package/build/types/orchestrion/config/pi-ai.d.ts +8 -0
- package/build/types/orchestrion/config/pi-ai.d.ts.map +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts +1 -0
- package/build/types/orchestrion/config/vercel-ai.d.ts.map +1 -1
- package/build/types/utils/cronMonitoring.d.ts +4 -5
- package/build/types/utils/cronMonitoring.d.ts.map +1 -1
- package/build/types/utils/wrapServerRequestHandler.d.ts +5 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
- package/package.json +9 -12
- package/build/cjs/_virtual/_commonjsHelpers.js +0 -8
- package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
- package/build/cjs/_virtual/array-set.js +0 -6
- package/build/cjs/_virtual/array-set.js.map +0 -1
- package/build/cjs/_virtual/astring.js +0 -6
- package/build/cjs/_virtual/astring.js.map +0 -1
- package/build/cjs/_virtual/base64-vlq.js +0 -6
- package/build/cjs/_virtual/base64-vlq.js.map +0 -1
- package/build/cjs/_virtual/base64.js +0 -6
- package/build/cjs/_virtual/base64.js.map +0 -1
- package/build/cjs/_virtual/binary-search.js +0 -6
- package/build/cjs/_virtual/binary-search.js.map +0 -1
- package/build/cjs/_virtual/mapping-list.js +0 -6
- package/build/cjs/_virtual/mapping-list.js.map +0 -1
- package/build/cjs/_virtual/meriyah.js +0 -6
- package/build/cjs/_virtual/meriyah.js.map +0 -1
- package/build/cjs/_virtual/quick-sort.js +0 -6
- package/build/cjs/_virtual/quick-sort.js.map +0 -1
- package/build/cjs/_virtual/source-map-consumer.js +0 -6
- package/build/cjs/_virtual/source-map-consumer.js.map +0 -1
- package/build/cjs/_virtual/source-map-generator.js +0 -6
- package/build/cjs/_virtual/source-map-generator.js.map +0 -1
- package/build/cjs/_virtual/source-map.js +0 -6
- package/build/cjs/_virtual/source-map.js.map +0 -1
- package/build/cjs/_virtual/source-node.js +0 -6
- package/build/cjs/_virtual/source-node.js.map +0 -1
- package/build/cjs/_virtual/util.js +0 -6
- package/build/cjs/_virtual/util.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/constants.js +0 -15
- package/build/cjs/ai/anthropic-ai/constants.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/index.js +0 -225
- package/build/cjs/ai/anthropic-ai/index.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/streaming.js +0 -161
- package/build/cjs/ai/anthropic-ai/streaming.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +0 -148
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/utils.js +0 -69
- package/build/cjs/ai/anthropic-ai/utils.js.map +0 -1
- package/build/cjs/ai/core/apiPromise.js +0 -54
- package/build/cjs/ai/core/apiPromise.js.map +0 -1
- package/build/cjs/ai/core/gen-ai-attributes.js +0 -14
- package/build/cjs/ai/core/gen-ai-attributes.js.map +0 -1
- package/build/cjs/ai/core/utils.js +0 -182
- package/build/cjs/ai/core/utils.js.map +0 -1
- package/build/cjs/ai/flue/constants.js +0 -20
- package/build/cjs/ai/flue/constants.js.map +0 -1
- package/build/cjs/ai/flue/index.js +0 -141
- package/build/cjs/ai/flue/index.js.map +0 -1
- package/build/cjs/ai/flue/utils.js +0 -200
- package/build/cjs/ai/flue/utils.js.map +0 -1
- package/build/cjs/ai/google-genai/constants.js +0 -17
- package/build/cjs/ai/google-genai/constants.js.map +0 -1
- package/build/cjs/ai/google-genai/index.js +0 -280
- package/build/cjs/ai/google-genai/index.js.map +0 -1
- package/build/cjs/ai/google-genai/streaming.js +0 -79
- package/build/cjs/ai/google-genai/streaming.js.map +0 -1
- package/build/cjs/ai/google-genai/utils.js +0 -131
- package/build/cjs/ai/google-genai/utils.js.map +0 -1
- package/build/cjs/ai/langchain/constants.js +0 -19
- package/build/cjs/ai/langchain/constants.js.map +0 -1
- package/build/cjs/ai/langchain/embeddings.js +0 -82
- package/build/cjs/ai/langchain/embeddings.js.map +0 -1
- package/build/cjs/ai/langchain/index.js +0 -312
- package/build/cjs/ai/langchain/index.js.map +0 -1
- package/build/cjs/ai/langchain/typesafe-classifier.js +0 -62
- package/build/cjs/ai/langchain/typesafe-classifier.js.map +0 -1
- package/build/cjs/ai/langchain/utils.js +0 -355
- package/build/cjs/ai/langchain/utils.js.map +0 -1
- package/build/cjs/ai/langgraph/agent-span.js +0 -94
- package/build/cjs/ai/langgraph/agent-span.js.map +0 -1
- package/build/cjs/ai/langgraph/constants.js +0 -8
- package/build/cjs/ai/langgraph/constants.js.map +0 -1
- package/build/cjs/ai/langgraph/index.js +0 -134
- package/build/cjs/ai/langgraph/index.js.map +0 -1
- package/build/cjs/ai/langgraph/stream.js +0 -117
- package/build/cjs/ai/langgraph/stream.js.map +0 -1
- package/build/cjs/ai/langgraph/utils.js +0 -221
- package/build/cjs/ai/langgraph/utils.js.map +0 -1
- package/build/cjs/ai/mastra/classifier-evaluation.js +0 -30
- package/build/cjs/ai/mastra/classifier-evaluation.js.map +0 -1
- package/build/cjs/ai/mastra/constants.js +0 -41
- package/build/cjs/ai/mastra/constants.js.map +0 -1
- package/build/cjs/ai/mastra/index.js +0 -195
- package/build/cjs/ai/mastra/index.js.map +0 -1
- package/build/cjs/ai/mastra/span-registry.js +0 -20
- package/build/cjs/ai/mastra/span-registry.js.map +0 -1
- package/build/cjs/ai/mastra/utils.js +0 -177
- package/build/cjs/ai/mastra/utils.js.map +0 -1
- package/build/cjs/ai/mistral/constants.js +0 -20
- package/build/cjs/ai/mistral/constants.js.map +0 -1
- package/build/cjs/ai/mistral/index.js +0 -130
- package/build/cjs/ai/mistral/index.js.map +0 -1
- package/build/cjs/ai/mistral/streaming.js +0 -208
- package/build/cjs/ai/mistral/streaming.js.map +0 -1
- package/build/cjs/ai/mistral/utils.js +0 -87
- package/build/cjs/ai/mistral/utils.js.map +0 -1
- package/build/cjs/ai/openai/constants.js +0 -35
- package/build/cjs/ai/openai/constants.js.map +0 -1
- package/build/cjs/ai/openai/index.js +0 -176
- package/build/cjs/ai/openai/index.js.map +0 -1
- package/build/cjs/ai/openai/mapping.js +0 -67
- package/build/cjs/ai/openai/mapping.js.map +0 -1
- package/build/cjs/ai/openai/streaming.js +0 -166
- package/build/cjs/ai/openai/streaming.js.map +0 -1
- package/build/cjs/ai/openai/utils.js +0 -128
- package/build/cjs/ai/openai/utils.js.map +0 -1
- package/build/cjs/ai/pi-ai/messages.js +0 -135
- package/build/cjs/ai/pi-ai/messages.js.map +0 -1
- package/build/cjs/ai/pi-ai/providers.js +0 -22
- package/build/cjs/ai/pi-ai/providers.js.map +0 -1
- package/build/cjs/ai/pi-ai/usage.js +0 -34
- package/build/cjs/ai/pi-ai/usage.js.map +0 -1
- package/build/cjs/ai/pi-durable/constants.js +0 -22
- package/build/cjs/ai/pi-durable/constants.js.map +0 -1
- package/build/cjs/ai/pi-durable/index.js +0 -176
- package/build/cjs/ai/pi-durable/index.js.map +0 -1
- package/build/cjs/ai/pi-durable/models.js +0 -140
- package/build/cjs/ai/pi-durable/models.js.map +0 -1
- package/build/cjs/ai/pi-durable/runs.js +0 -159
- package/build/cjs/ai/pi-durable/runs.js.map +0 -1
- package/build/cjs/ai/pi-durable/tools.js +0 -178
- package/build/cjs/ai/pi-durable/tools.js.map +0 -1
- package/build/cjs/ai/pi-durable/utils.js +0 -9
- package/build/cjs/ai/pi-durable/utils.js.map +0 -1
- package/build/cjs/ai/typesafe/constants.js +0 -10
- package/build/cjs/ai/typesafe/constants.js.map +0 -1
- package/build/cjs/ai/typesafe/index.js +0 -112
- package/build/cjs/ai/typesafe/index.js.map +0 -1
- package/build/cjs/ai/vercel-ai/index.js +0 -70
- package/build/cjs/ai/vercel-ai/index.js.map +0 -1
- package/build/cjs/ai/workers-ai/constants.js +0 -10
- package/build/cjs/ai/workers-ai/constants.js.map +0 -1
- package/build/cjs/ai/workers-ai/index.js +0 -85
- package/build/cjs/ai/workers-ai/index.js.map +0 -1
- package/build/cjs/ai/workers-ai/streaming.js +0 -149
- package/build/cjs/ai/workers-ai/streaming.js.map +0 -1
- package/build/cjs/ai/workers-ai/utils.js +0 -166
- package/build/cjs/ai/workers-ai/utils.js.map +0 -1
- package/build/cjs/async-context.js +0 -68
- package/build/cjs/async-context.js.map +0 -1
- package/build/cjs/debug-build.js +0 -6
- package/build/cjs/debug-build.js.map +0 -1
- package/build/cjs/eve.js +0 -30
- package/build/cjs/eve.js.map +0 -1
- package/build/cjs/index.no-diagnostic-channels.js.map +0 -1
- package/build/cjs/integrations/amqplib.js +0 -417
- package/build/cjs/integrations/amqplib.js.map +0 -1
- package/build/cjs/integrations/anthropic.js +0 -145
- package/build/cjs/integrations/anthropic.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/constants.js +0 -16
- package/build/cjs/integrations/aws-sdk/constants.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/index.js +0 -146
- package/build/cjs/integrations/aws-sdk/index.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js +0 -46
- package/build/cjs/integrations/aws-sdk/services/MessageAttributes.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js +0 -47
- package/build/cjs/integrations/aws-sdk/services/ServicesExtensions.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js +0 -477
- package/build/cjs/integrations/aws-sdk/services/bedrock-runtime.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/dynamodb.js +0 -130
- package/build/cjs/integrations/aws-sdk/services/dynamodb.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/kinesis.js +0 -19
- package/build/cjs/integrations/aws-sdk/services/kinesis.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/lambda.js +0 -63
- package/build/cjs/integrations/aws-sdk/services/lambda.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/s3.js +0 -19
- package/build/cjs/integrations/aws-sdk/services/s3.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/secretsmanager.js +0 -25
- package/build/cjs/integrations/aws-sdk/services/secretsmanager.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/sns.js +0 -79
- package/build/cjs/integrations/aws-sdk/services/sns.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/sqs.js +0 -135
- package/build/cjs/integrations/aws-sdk/services/sqs.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/services/stepfunctions.js +0 -23
- package/build/cjs/integrations/aws-sdk/services/stepfunctions.js.map +0 -1
- package/build/cjs/integrations/aws-sdk/utils.js +0 -30
- package/build/cjs/integrations/aws-sdk/utils.js.map +0 -1
- package/build/cjs/integrations/cron.js +0 -49
- package/build/cjs/integrations/cron.js.map +0 -1
- package/build/cjs/integrations/dataloader.js +0 -118
- package/build/cjs/integrations/dataloader.js.map +0 -1
- package/build/cjs/integrations/express/error-handled.js +0 -17
- package/build/cjs/integrations/express/error-handled.js.map +0 -1
- package/build/cjs/integrations/express/error-handler.js +0 -43
- package/build/cjs/integrations/express/error-handler.js.map +0 -1
- package/build/cjs/integrations/express/index.js +0 -24
- package/build/cjs/integrations/express/index.js.map +0 -1
- package/build/cjs/integrations/express/instrumentation.js +0 -222
- package/build/cjs/integrations/express/instrumentation.js.map +0 -1
- package/build/cjs/integrations/express/route.js +0 -76
- package/build/cjs/integrations/express/route.js.map +0 -1
- package/build/cjs/integrations/express/utils.js +0 -12
- package/build/cjs/integrations/express/utils.js.map +0 -1
- package/build/cjs/integrations/fastify/errors.js +0 -36
- package/build/cjs/integrations/fastify/errors.js.map +0 -1
- package/build/cjs/integrations/fastify/index.js +0 -28
- package/build/cjs/integrations/fastify/index.js.map +0 -1
- package/build/cjs/integrations/fastify/instrumentation.js +0 -252
- package/build/cjs/integrations/fastify/instrumentation.js.map +0 -1
- package/build/cjs/integrations/fastify/utils.js +0 -26
- package/build/cjs/integrations/fastify/utils.js.map +0 -1
- package/build/cjs/integrations/firebase/firestore.js +0 -93
- package/build/cjs/integrations/firebase/firestore.js.map +0 -1
- package/build/cjs/integrations/firebase/functions.js +0 -79
- package/build/cjs/integrations/firebase/functions.js.map +0 -1
- package/build/cjs/integrations/firebase/index.js +0 -20
- package/build/cjs/integrations/firebase/index.js.map +0 -1
- package/build/cjs/integrations/firebase/instrumentation.js +0 -56
- package/build/cjs/integrations/firebase/instrumentation.js.map +0 -1
- package/build/cjs/integrations/flue.js +0 -40
- package/build/cjs/integrations/flue.js.map +0 -1
- package/build/cjs/integrations/generic-pool.js +0 -36
- package/build/cjs/integrations/generic-pool.js.map +0 -1
- package/build/cjs/integrations/google-genai.js +0 -105
- package/build/cjs/integrations/google-genai.js.map +0 -1
- package/build/cjs/integrations/graphql/constants.js +0 -36
- package/build/cjs/integrations/graphql/constants.js.map +0 -1
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js +0 -122
- package/build/cjs/integrations/graphql/graphql-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/graphql/index.js +0 -60
- package/build/cjs/integrations/graphql/index.js.map +0 -1
- package/build/cjs/integrations/graphql/resolvers.js +0 -175
- package/build/cjs/integrations/graphql/resolvers.js.map +0 -1
- package/build/cjs/integrations/graphql/spans.js +0 -114
- package/build/cjs/integrations/graphql/spans.js.map +0 -1
- package/build/cjs/integrations/graphql/utils.js +0 -98
- package/build/cjs/integrations/graphql/utils.js.map +0 -1
- package/build/cjs/integrations/groq.js +0 -21
- package/build/cjs/integrations/groq.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-error-handler.js +0 -46
- package/build/cjs/integrations/hapi/hapi-error-handler.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-types.js +0 -23
- package/build/cjs/integrations/hapi/hapi-types.js.map +0 -1
- package/build/cjs/integrations/hapi/hapi-utils.js +0 -202
- package/build/cjs/integrations/hapi/hapi-utils.js.map +0 -1
- package/build/cjs/integrations/hapi/index.js +0 -73
- package/build/cjs/integrations/hapi/index.js.map +0 -1
- package/build/cjs/integrations/hono/applyPatches.js +0 -38
- package/build/cjs/integrations/hono/applyPatches.js.map +0 -1
- package/build/cjs/integrations/hono/connInfo.js +0 -37
- package/build/cjs/integrations/hono/connInfo.js.map +0 -1
- package/build/cjs/integrations/hono/constants.js +0 -8
- package/build/cjs/integrations/hono/constants.js.map +0 -1
- package/build/cjs/integrations/hono/createHonoMiddleware.js +0 -43
- package/build/cjs/integrations/hono/createHonoMiddleware.js.map +0 -1
- package/build/cjs/integrations/hono/defaultShouldHandleError.js +0 -14
- package/build/cjs/integrations/hono/defaultShouldHandleError.js.map +0 -1
- package/build/cjs/integrations/hono/hono-context.js +0 -14
- package/build/cjs/integrations/hono/hono-context.js.map +0 -1
- package/build/cjs/integrations/hono/honoIntegration.js +0 -98
- package/build/cjs/integrations/hono/honoIntegration.js.map +0 -1
- package/build/cjs/integrations/hono/isMiddleware.js +0 -22
- package/build/cjs/integrations/hono/isMiddleware.js.map +0 -1
- package/build/cjs/integrations/hono/matchResult.js +0 -85
- package/build/cjs/integrations/hono/matchResult.js.map +0 -1
- package/build/cjs/integrations/hono/middlewareHandlers.js +0 -101
- package/build/cjs/integrations/hono/middlewareHandlers.js.map +0 -1
- package/build/cjs/integrations/hono/patchAppRequest.js +0 -78
- package/build/cjs/integrations/hono/patchAppRequest.js.map +0 -1
- package/build/cjs/integrations/hono/patchAppUse.js +0 -70
- package/build/cjs/integrations/hono/patchAppUse.js.map +0 -1
- package/build/cjs/integrations/hono/patchRoute.js +0 -69
- package/build/cjs/integrations/hono/patchRoute.js.map +0 -1
- package/build/cjs/integrations/hono/resolveRouteName.js +0 -29
- package/build/cjs/integrations/hono/resolveRouteName.js.map +0 -1
- package/build/cjs/integrations/hono/sentryOriginalTraps.js +0 -21
- package/build/cjs/integrations/hono/sentryOriginalTraps.js.map +0 -1
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +0 -48
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js.map +0 -1
- package/build/cjs/integrations/index.js +0 -93
- package/build/cjs/integrations/index.js.map +0 -1
- package/build/cjs/integrations/kafkajs/consumer.js +0 -71
- package/build/cjs/integrations/kafkajs/consumer.js.map +0 -1
- package/build/cjs/integrations/kafkajs/index.js +0 -70
- package/build/cjs/integrations/kafkajs/index.js.map +0 -1
- package/build/cjs/integrations/kafkajs/semconv.js +0 -14
- package/build/cjs/integrations/kafkajs/semconv.js.map +0 -1
- package/build/cjs/integrations/kafkajs/spans.js +0 -127
- package/build/cjs/integrations/kafkajs/spans.js.map +0 -1
- package/build/cjs/integrations/knex.js +0 -187
- package/build/cjs/integrations/knex.js.map +0 -1
- package/build/cjs/integrations/koa/index.js +0 -155
- package/build/cjs/integrations/koa/index.js.map +0 -1
- package/build/cjs/integrations/koa/koa-error-handler.js +0 -33
- package/build/cjs/integrations/koa/koa-error-handler.js.map +0 -1
- package/build/cjs/integrations/langchain.js +0 -92
- package/build/cjs/integrations/langchain.js.map +0 -1
- package/build/cjs/integrations/langgraph.js +0 -73
- package/build/cjs/integrations/langgraph.js.map +0 -1
- package/build/cjs/integrations/lru-memoizer.js +0 -29
- package/build/cjs/integrations/lru-memoizer.js.map +0 -1
- package/build/cjs/integrations/mastra-classifier.js +0 -57
- package/build/cjs/integrations/mastra-classifier.js.map +0 -1
- package/build/cjs/integrations/mastra.js +0 -247
- package/build/cjs/integrations/mastra.js.map +0 -1
- package/build/cjs/integrations/mcp-server.js +0 -37
- package/build/cjs/integrations/mcp-server.js.map +0 -1
- package/build/cjs/integrations/mistral.js +0 -69
- package/build/cjs/integrations/mistral.js.map +0 -1
- package/build/cjs/integrations/mongodb/index.js +0 -94
- package/build/cjs/integrations/mongodb/index.js.map +0 -1
- package/build/cjs/integrations/mongodb/mongodb-span.js +0 -135
- package/build/cjs/integrations/mongodb/mongodb-span.js.map +0 -1
- package/build/cjs/integrations/mongoose/index.js +0 -109
- package/build/cjs/integrations/mongoose/index.js.map +0 -1
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js +0 -101
- package/build/cjs/integrations/mongoose/mongoose-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/mongoose/mongoose-legacy-span.js +0 -41
- package/build/cjs/integrations/mongoose/mongoose-legacy-span.js.map +0 -1
- package/build/cjs/integrations/mysql.js +0 -101
- package/build/cjs/integrations/mysql.js.map +0 -1
- package/build/cjs/integrations/mysql2/index.js +0 -80
- package/build/cjs/integrations/mysql2/index.js.map +0 -1
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js +0 -57
- package/build/cjs/integrations/mysql2/mysql2-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/neon.js +0 -107
- package/build/cjs/integrations/neon.js.map +0 -1
- package/build/cjs/integrations/nitro/captureStorageEvents.js +0 -132
- package/build/cjs/integrations/nitro/captureStorageEvents.js.map +0 -1
- package/build/cjs/integrations/nitro/captureTracingEvents.js +0 -202
- package/build/cjs/integrations/nitro/captureTracingEvents.js.map +0 -1
- package/build/cjs/integrations/nitro/index.js +0 -27
- package/build/cjs/integrations/nitro/index.js.map +0 -1
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js +0 -40
- package/build/cjs/integrations/nitro/setServerTimingHeaders.js.map +0 -1
- package/build/cjs/integrations/node-cron.js +0 -68
- package/build/cjs/integrations/node-cron.js.map +0 -1
- package/build/cjs/integrations/node-schedule.js +0 -76
- package/build/cjs/integrations/node-schedule.js.map +0 -1
- package/build/cjs/integrations/openai-compatible.js +0 -90
- package/build/cjs/integrations/openai-compatible.js.map +0 -1
- package/build/cjs/integrations/openai.js +0 -93
- package/build/cjs/integrations/openai.js.map +0 -1
- package/build/cjs/integrations/pg.js +0 -171
- package/build/cjs/integrations/pg.js.map +0 -1
- package/build/cjs/integrations/pi-durable.js +0 -50
- package/build/cjs/integrations/pi-durable.js.map +0 -1
- package/build/cjs/integrations/postgresjs/index.js +0 -147
- package/build/cjs/integrations/postgresjs/index.js.map +0 -1
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js +0 -81
- package/build/cjs/integrations/postgresjs/postgresjs-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/postgresjs-wrapper.js +0 -219
- package/build/cjs/integrations/postgresjs-wrapper.js.map +0 -1
- package/build/cjs/integrations/prisma/global.js +0 -14
- package/build/cjs/integrations/prisma/global.js.map +0 -1
- package/build/cjs/integrations/prisma/index.js +0 -36
- package/build/cjs/integrations/prisma/index.js.map +0 -1
- package/build/cjs/integrations/prisma/orchestrion.js +0 -137
- package/build/cjs/integrations/prisma/orchestrion.js.map +0 -1
- package/build/cjs/integrations/prisma/tracing-helper.js +0 -241
- package/build/cjs/integrations/prisma/tracing-helper.js.map +0 -1
- package/build/cjs/integrations/redis/index.js +0 -223
- package/build/cjs/integrations/redis/index.js.map +0 -1
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js +0 -87
- package/build/cjs/integrations/redis/ioredis-channel-subscriber.js.map +0 -1
- package/build/cjs/integrations/redis/redis-cache.js +0 -144
- package/build/cjs/integrations/redis/redis-cache.js.map +0 -1
- package/build/cjs/integrations/redis/redis-dc-subscriber.js +0 -107
- package/build/cjs/integrations/redis/redis-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/redis/redis-span-name.js +0 -32
- package/build/cjs/integrations/redis/redis-span-name.js.map +0 -1
- package/build/cjs/integrations/redis/redis-statement-serializer.js +0 -34
- package/build/cjs/integrations/redis/redis-statement-serializer.js.map +0 -1
- package/build/cjs/integrations/serveTunnel.js +0 -33
- package/build/cjs/integrations/serveTunnel.js.map +0 -1
- package/build/cjs/integrations/tedious.js +0 -160
- package/build/cjs/integrations/tedious.js.map +0 -1
- package/build/cjs/integrations/together-ai.js +0 -19
- package/build/cjs/integrations/together-ai.js.map +0 -1
- package/build/cjs/integrations/typesafe.js +0 -45
- package/build/cjs/integrations/typesafe.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js +0 -13
- package/build/cjs/integrations/vercel-ai/gen-ai-recording-mode.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/index.js +0 -34
- package/build/cjs/integrations/vercel-ai/index.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/util.js +0 -108
- package/build/cjs/integrations/vercel-ai/util.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js +0 -589
- package/build/cjs/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js +0 -409
- package/build/cjs/integrations/vercel-ai/vercel-ai-orchestrion-subscriber.js.map +0 -1
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js +0 -40
- package/build/cjs/integrations/vercel-ai/vercel-ai-tool-telemetry.js.map +0 -1
- package/build/cjs/opentelemetry.js +0 -45
- package/build/cjs/opentelemetry.js.map +0 -1
- package/build/cjs/orchestrion/bundler/externalRequire.js +0 -82
- package/build/cjs/orchestrion/bundler/externalRequire.js.map +0 -1
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js +0 -55
- package/build/cjs/orchestrion/bundler/moduleInjectedTransform.js.map +0 -1
- package/build/cjs/orchestrion/bundler/options.js +0 -25
- package/build/cjs/orchestrion/bundler/options.js.map +0 -1
- package/build/cjs/orchestrion/bundler/resolve.js +0 -27
- package/build/cjs/orchestrion/bundler/resolve.js.map +0 -1
- package/build/cjs/orchestrion/channels.js +0 -92
- package/build/cjs/orchestrion/channels.js.map +0 -1
- package/build/cjs/orchestrion/config/amqplib.js +0 -93
- package/build/cjs/orchestrion/config/amqplib.js.map +0 -1
- package/build/cjs/orchestrion/config/anthropic-ai.js +0 -53
- package/build/cjs/orchestrion/config/anthropic-ai.js.map +0 -1
- package/build/cjs/orchestrion/config/aws-sdk.js +0 -32
- package/build/cjs/orchestrion/config/aws-sdk.js.map +0 -1
- package/build/cjs/orchestrion/config/channel-integration-definitions.js +0 -59
- package/build/cjs/orchestrion/config/channel-integration-definitions.js.map +0 -1
- package/build/cjs/orchestrion/config/cron.js +0 -26
- package/build/cjs/orchestrion/config/cron.js.map +0 -1
- package/build/cjs/orchestrion/config/dataloader.js +0 -53
- package/build/cjs/orchestrion/config/dataloader.js.map +0 -1
- package/build/cjs/orchestrion/config/express.js +0 -81
- package/build/cjs/orchestrion/config/express.js.map +0 -1
- package/build/cjs/orchestrion/config/firebase.js +0 -85
- package/build/cjs/orchestrion/config/firebase.js.map +0 -1
- package/build/cjs/orchestrion/config/flue.js +0 -10
- package/build/cjs/orchestrion/config/flue.js.map +0 -1
- package/build/cjs/orchestrion/config/generic-pool.js +0 -25
- package/build/cjs/orchestrion/config/generic-pool.js.map +0 -1
- package/build/cjs/orchestrion/config/google-genai.js +0 -43
- package/build/cjs/orchestrion/config/google-genai.js.map +0 -1
- package/build/cjs/orchestrion/config/graphql.js +0 -32
- package/build/cjs/orchestrion/config/graphql.js.map +0 -1
- package/build/cjs/orchestrion/config/groq.js +0 -19
- package/build/cjs/orchestrion/config/groq.js.map +0 -1
- package/build/cjs/orchestrion/config/hapi.js +0 -48
- package/build/cjs/orchestrion/config/hapi.js.map +0 -1
- package/build/cjs/orchestrion/config/hono.js +0 -34
- package/build/cjs/orchestrion/config/hono.js.map +0 -1
- package/build/cjs/orchestrion/config/index.js.map +0 -1
- package/build/cjs/orchestrion/config/ioredis.js +0 -41
- package/build/cjs/orchestrion/config/ioredis.js.map +0 -1
- package/build/cjs/orchestrion/config/kafkajs.js +0 -34
- package/build/cjs/orchestrion/config/kafkajs.js.map +0 -1
- package/build/cjs/orchestrion/config/knex.js +0 -43
- package/build/cjs/orchestrion/config/knex.js.map +0 -1
- package/build/cjs/orchestrion/config/koa.js +0 -32
- package/build/cjs/orchestrion/config/koa.js.map +0 -1
- package/build/cjs/orchestrion/config/langchain.js +0 -66
- package/build/cjs/orchestrion/config/langchain.js.map +0 -1
- package/build/cjs/orchestrion/config/langgraph.js +0 -32
- package/build/cjs/orchestrion/config/langgraph.js.map +0 -1
- package/build/cjs/orchestrion/config/lru-memoizer.js +0 -21
- package/build/cjs/orchestrion/config/lru-memoizer.js.map +0 -1
- package/build/cjs/orchestrion/config/mastra.js +0 -54
- package/build/cjs/orchestrion/config/mastra.js.map +0 -1
- package/build/cjs/orchestrion/config/mcp-server.js +0 -41
- package/build/cjs/orchestrion/config/mcp-server.js.map +0 -1
- package/build/cjs/orchestrion/config/mistral.js +0 -57
- package/build/cjs/orchestrion/config/mistral.js.map +0 -1
- package/build/cjs/orchestrion/config/module-names.js +0 -8
- package/build/cjs/orchestrion/config/module-names.js.map +0 -1
- package/build/cjs/orchestrion/config/mongodb.js +0 -71
- package/build/cjs/orchestrion/config/mongodb.js.map +0 -1
- package/build/cjs/orchestrion/config/mongoose.js +0 -113
- package/build/cjs/orchestrion/config/mongoose.js.map +0 -1
- package/build/cjs/orchestrion/config/mysql.js +0 -20
- package/build/cjs/orchestrion/config/mysql.js.map +0 -1
- package/build/cjs/orchestrion/config/mysql2.js +0 -38
- package/build/cjs/orchestrion/config/mysql2.js.map +0 -1
- package/build/cjs/orchestrion/config/neon.js +0 -46
- package/build/cjs/orchestrion/config/neon.js.map +0 -1
- package/build/cjs/orchestrion/config/nestjs.js +0 -130
- package/build/cjs/orchestrion/config/nestjs.js.map +0 -1
- package/build/cjs/orchestrion/config/nitro.js +0 -10
- package/build/cjs/orchestrion/config/nitro.js.map +0 -1
- package/build/cjs/orchestrion/config/node-cron.js +0 -53
- package/build/cjs/orchestrion/config/node-cron.js.map +0 -1
- package/build/cjs/orchestrion/config/node-schedule.js +0 -29
- package/build/cjs/orchestrion/config/node-schedule.js.map +0 -1
- package/build/cjs/orchestrion/config/openai-compatible.js +0 -19
- package/build/cjs/orchestrion/config/openai-compatible.js.map +0 -1
- package/build/cjs/orchestrion/config/openai.js +0 -49
- package/build/cjs/orchestrion/config/openai.js.map +0 -1
- package/build/cjs/orchestrion/config/pg.js +0 -55
- package/build/cjs/orchestrion/config/pg.js.map +0 -1
- package/build/cjs/orchestrion/config/pi-durable.js +0 -34
- package/build/cjs/orchestrion/config/pi-durable.js.map +0 -1
- package/build/cjs/orchestrion/config/postgres.js +0 -58
- package/build/cjs/orchestrion/config/postgres.js.map +0 -1
- package/build/cjs/orchestrion/config/prisma.js +0 -53
- package/build/cjs/orchestrion/config/prisma.js.map +0 -1
- package/build/cjs/orchestrion/config/redis.js +0 -82
- package/build/cjs/orchestrion/config/redis.js.map +0 -1
- package/build/cjs/orchestrion/config/registration-only.js +0 -15
- package/build/cjs/orchestrion/config/registration-only.js.map +0 -1
- package/build/cjs/orchestrion/config/remix-v3.js +0 -55
- package/build/cjs/orchestrion/config/remix-v3.js.map +0 -1
- package/build/cjs/orchestrion/config/remix.js +0 -54
- package/build/cjs/orchestrion/config/remix.js.map +0 -1
- package/build/cjs/orchestrion/config/tedious.js +0 -28
- package/build/cjs/orchestrion/config/tedious.js.map +0 -1
- package/build/cjs/orchestrion/config/together-ai.js +0 -23
- package/build/cjs/orchestrion/config/together-ai.js.map +0 -1
- package/build/cjs/orchestrion/config/typesafe.js +0 -18
- package/build/cjs/orchestrion/config/typesafe.js.map +0 -1
- package/build/cjs/orchestrion/config/vercel-ai.js +0 -56
- package/build/cjs/orchestrion/config/vercel-ai.js.map +0 -1
- package/build/cjs/orchestrion/detect.js +0 -42
- package/build/cjs/orchestrion/detect.js.map +0 -1
- package/build/cjs/orchestrion/instrumentation.js +0 -80
- package/build/cjs/orchestrion/instrumentation.js.map +0 -1
- package/build/cjs/tracing-channel.js +0 -152
- package/build/cjs/tracing-channel.js.map +0 -1
- package/build/cjs/utils/cronMonitoring.js +0 -160
- package/build/cjs/utils/cronMonitoring.js.map +0 -1
- package/build/cjs/utils/diagnosticsChannel.js +0 -48
- package/build/cjs/utils/diagnosticsChannel.js.map +0 -1
- package/build/cjs/utils/moduleInjected.js +0 -18
- package/build/cjs/utils/moduleInjected.js.map +0 -1
- package/build/cjs/utils/monitorStream.js +0 -63
- package/build/cjs/utils/monitorStream.js.map +0 -1
- package/build/cjs/utils/runtime.js +0 -19
- package/build/cjs/utils/runtime.js.map +0 -1
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js +0 -26
- package/build/cjs/utils/setHttpServerSpanRouteAttribute.js.map +0 -1
- package/build/cjs/utils/sql.js +0 -285
- package/build/cjs/utils/sql.js.map +0 -1
- package/build/cjs/utils/tunnelServer.js +0 -29
- package/build/cjs/utils/tunnelServer.js.map +0 -1
- package/build/cjs/utils/withCleanScopes.js +0 -17
- package/build/cjs/utils/withCleanScopes.js.map +0 -1
- package/build/cjs/utils/wrapServerRequestHandler.js +0 -221
- package/build/cjs/utils/wrapServerRequestHandler.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js +0 -8
- package/build/cjs/vendored/@apm-js-collab/code-transformer/index.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js +0 -12
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/index.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js +0 -86
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/matcher.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js +0 -316
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transformer.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js +0 -470
- package/build/cjs/vendored/@apm-js-collab/code-transformer/lib/transforms.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js +0 -65
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/esbuild.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/instrumentation-serde-C-Xxv-jj.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js +0 -14
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/vite.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js +0 -117
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack-loader-factory.js.map +0 -1
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js +0 -103
- package/build/cjs/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/webpack.js.map +0 -1
- package/build/cjs/vendored/astring/dist/astring.js +0 -1068
- package/build/cjs/vendored/astring/dist/astring.js.map +0 -1
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js +0 -847
- package/build/cjs/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
- package/build/cjs/vendored/meriyah/dist/meriyah.js +0 -9192
- package/build/cjs/vendored/meriyah/dist/meriyah.js.map +0 -1
- package/build/cjs/vendored/meriyah/dist/meriyah2.js +0 -9209
- package/build/cjs/vendored/meriyah/dist/meriyah2.js.map +0 -1
- package/build/cjs/vendored/module-details-from-path/index.js +0 -43
- package/build/cjs/vendored/module-details-from-path/index.js.map +0 -1
- package/build/cjs/vendored/semifies/index.js +0 -111
- package/build/cjs/vendored/semifies/index.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/array-set.js +0 -73
- package/build/cjs/vendored/source-map/lib/array-set.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/base64-vlq.js +0 -57
- package/build/cjs/vendored/source-map/lib/base64-vlq.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/base64.js +0 -42
- package/build/cjs/vendored/source-map/lib/base64.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/binary-search.js +0 -55
- package/build/cjs/vendored/source-map/lib/binary-search.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/mapping-list.js +0 -42
- package/build/cjs/vendored/source-map/lib/mapping-list.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/quick-sort.js +0 -36
- package/build/cjs/vendored/source-map/lib/quick-sort.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js +0 -612
- package/build/cjs/vendored/source-map/lib/source-map-consumer.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-map-generator.js +0 -285
- package/build/cjs/vendored/source-map/lib/source-map-generator.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/source-node.js +0 -270
- package/build/cjs/vendored/source-map/lib/source-node.js.map +0 -1
- package/build/cjs/vendored/source-map/lib/util.js +0 -300
- package/build/cjs/vendored/source-map/lib/util.js.map +0 -1
- package/build/cjs/vendored/source-map/source-map.js +0 -16
- package/build/cjs/vendored/source-map/source-map.js.map +0 -1
- package/build/esm/_virtual/_commonjsHelpers.js +0 -6
- package/build/esm/_virtual/_commonjsHelpers.js.map +0 -1
- package/build/esm/_virtual/array-set.js +0 -4
- package/build/esm/_virtual/array-set.js.map +0 -1
- package/build/esm/_virtual/astring.js +0 -4
- package/build/esm/_virtual/astring.js.map +0 -1
- package/build/esm/_virtual/base64-vlq.js +0 -4
- package/build/esm/_virtual/base64-vlq.js.map +0 -1
- package/build/esm/_virtual/base64.js +0 -4
- package/build/esm/_virtual/base64.js.map +0 -1
- package/build/esm/_virtual/binary-search.js +0 -4
- package/build/esm/_virtual/binary-search.js.map +0 -1
- package/build/esm/_virtual/mapping-list.js +0 -4
- package/build/esm/_virtual/mapping-list.js.map +0 -1
- package/build/esm/_virtual/meriyah.js +0 -4
- package/build/esm/_virtual/meriyah.js.map +0 -1
- package/build/esm/_virtual/quick-sort.js +0 -4
- package/build/esm/_virtual/quick-sort.js.map +0 -1
- package/build/esm/_virtual/source-map-consumer.js +0 -4
- package/build/esm/_virtual/source-map-consumer.js.map +0 -1
- package/build/esm/_virtual/source-map-generator.js +0 -4
- package/build/esm/_virtual/source-map-generator.js.map +0 -1
- package/build/esm/_virtual/source-map.js +0 -4
- package/build/esm/_virtual/source-map.js.map +0 -1
- package/build/esm/_virtual/source-node.js +0 -4
- package/build/esm/_virtual/source-node.js.map +0 -1
- package/build/esm/_virtual/util.js +0 -4
- package/build/esm/_virtual/util.js.map +0 -1
- package/build/esm/ai/pi-durable/models.js +0 -138
- package/build/esm/ai/pi-durable/models.js.map +0 -1
- package/build/esm/index.no-diagnostic-channels.js.map +0 -1
- package/build/esm/index.request-handler.js.map +0 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/core-Bd0h-mo3.js.map +0 -1
- package/build/esm/vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-DCG8HLmh.js.map +0 -1
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js +0 -845
- package/build/esm/vendored/esquery/dist/esquery.esm.min.js.map +0 -1
- package/build/types/ai/pi-durable/models.d.ts +0 -10
- package/build/types/ai/pi-durable/models.d.ts.map +0 -1
|
@@ -1,52 +1,127 @@
|
|
|
1
|
-
import { parse } from
|
|
2
|
-
import { subscriberExportForModule } from
|
|
3
|
-
import { MODULE_REGISTRATION_TRANSFORM } from
|
|
4
|
-
|
|
1
|
+
import { parse } from "../../vendored/meriyah/dist/meriyah2.js";
|
|
2
|
+
import { subscriberExportForModule } from "../config/channel-integration-definitions.js";
|
|
3
|
+
import { MODULE_REGISTRATION_TRANSFORM } from "../config/registration-only.js";
|
|
4
|
+
import { stringifyForCodeInjection } from "@sentry/core";
|
|
5
|
+
// src/orchestrion/bundler/moduleInjectedTransform.ts
|
|
5
6
|
const injectedPrograms = /* @__PURE__ */ new WeakSet();
|
|
6
7
|
const DEFAULT_IMPORT_SPECIFIER = "@sentry/server-utils";
|
|
8
|
+
/**
|
|
9
|
+
* Assignment target that keeps the injected call from being tree-shaken. See
|
|
10
|
+
* {@link moduleInjectedSnippet}. The value written is always `undefined`; only
|
|
11
|
+
* the assignment matters.
|
|
12
|
+
*/
|
|
7
13
|
const MODULE_INJECTED_SINK = "globalThis.__SENTRY_ORCHESTRION_INJECT__";
|
|
14
|
+
/**
|
|
15
|
+
* Entry-chunk banner that marks "the bundler plugin ran" for
|
|
16
|
+
* `detectOrchestrionSetup()`. Merge-only (`g.bundler = g.bundler || new Set()`)
|
|
17
|
+
* so it can never clobber module names already recorded by an injected snippet
|
|
18
|
+
* that happened to run first; the names themselves arrive per module, when each
|
|
19
|
+
* transformed module is evaluated and its snippet calls
|
|
20
|
+
* `orchestrionModuleInjected`.
|
|
21
|
+
*/
|
|
8
22
|
const ORCHESTRION_BUNDLER_MARKER_BANNER = ";(function(){var g=globalThis.__SENTRY_ORCHESTRION__=globalThis.__SENTRY_ORCHESTRION__||{};g.bundler=g.bundler||new Set();})();";
|
|
23
|
+
/**
|
|
24
|
+
* Snippet injected into each instrumented module. It imports the
|
|
25
|
+
* `orchestrionModuleInjected` helper — plus the module's channel-subscriber
|
|
26
|
+
* factory, when it has one — from `@sentry/server-utils` and calls the helper
|
|
27
|
+
* with the module's real name. The helper records the module on the global
|
|
28
|
+
* marker, stores the factory, and emits the `orchestrion.module-injected` client
|
|
29
|
+
* event, so it runs exactly when the module is evaluated — the moment its
|
|
30
|
+
* channels can start publishing. That per-module timing is what keeps
|
|
31
|
+
* subscriptions lazy (Node caps diagnostics channels in use at 1024).
|
|
32
|
+
*
|
|
33
|
+
* Importing the single named factory (rather than a central dispatch that pulls
|
|
34
|
+
* in every subscriber) is what makes this tree-shake: a bundle carries only the
|
|
35
|
+
* subscriber code for packages actually transformed into it. The helper is
|
|
36
|
+
* generic (references no factory), so importing it alongside doesn't pull
|
|
37
|
+
* siblings.
|
|
38
|
+
*
|
|
39
|
+
* The specifier is parameterized for bundlers where the bare import emitted
|
|
40
|
+
* inside a transformed `node_modules` file can't resolve (Turbopack under
|
|
41
|
+
* isolated installs); it's embedded via `stringifyForCodeInjection` so
|
|
42
|
+
* absolute Windows paths survive.
|
|
43
|
+
*
|
|
44
|
+
* The call result is assigned to a global rather than discarded. The helper
|
|
45
|
+
* returns `void` and `@sentry/server-utils` is `sideEffects: false`, so a bare
|
|
46
|
+
* call statement is something a bundler can prove droppable: rollup >= 4.63.0
|
|
47
|
+
* does exactly that and removes the whole registration, leaving the module
|
|
48
|
+
* instrumented but unsubscribed. Writing to a property of `globalThis` is a
|
|
49
|
+
* side effect no bundler can shake out, so the call survives.
|
|
50
|
+
*/
|
|
9
51
|
function moduleInjectedSnippet(moduleName, exportName, esm, importSpecifier) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
${MODULE_INJECTED_SINK} = orchestrionModuleInjected(${args});`;
|
|
52
|
+
const bindings = exportName ? `orchestrionModuleInjected, ${exportName}` : "orchestrionModuleInjected";
|
|
53
|
+
const importStmt = esm ? `import { ${bindings} } from ${stringifyForCodeInjection(importSpecifier)};` : `const { ${bindings} } = require(${stringifyForCodeInjection(importSpecifier)});`;
|
|
54
|
+
const args = exportName ? `${stringifyForCodeInjection(moduleName)}, () => ${exportName}()` : stringifyForCodeInjection(moduleName);
|
|
55
|
+
return `${importStmt}\n${MODULE_INJECTED_SINK} = orchestrionModuleInjected(${args});`;
|
|
15
56
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Publishes the module's own namespace on `providedModules`. For `@flue/runtime`'s `dist/index.mjs`,
|
|
59
|
+
* this prepends roughly:
|
|
60
|
+
*
|
|
61
|
+
* ```js
|
|
62
|
+
* import * as __SENTRY_SELF_PROVIDED__ from "./index.mjs";
|
|
63
|
+
* globalThis.__SENTRY_ORCHESTRION__.providedModules["@flue/runtime"] = __SENTRY_SELF_PROVIDED__; // as a getter
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* A self-import adds no edge to the module graph; importing the package into a Sentry module would
|
|
67
|
+
* close a cycle through every instrumented dependency, since those all import `@sentry/server-utils`.
|
|
68
|
+
*/
|
|
69
|
+
function selfProvidedSnippet(moduleName, filePath) {
|
|
70
|
+
const marker = "globalThis.__SENTRY_ORCHESTRION__";
|
|
71
|
+
const self = `./${filePath.split("/").pop()}`;
|
|
72
|
+
return `import * as __SENTRY_SELF_PROVIDED__ from ${stringifyForCodeInjection(self)};\n(${marker} = ${marker} || {});\n(${marker}.providedModules = ${marker}.providedModules || {});\nObject.defineProperty(${marker}.providedModules, ${stringifyForCodeInjection(moduleName)}, { configurable: true, enumerable: true, get() { return __SENTRY_SELF_PROVIDED__; } });`;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The unified `customTransforms` every orchestrion bundler plugin (and the
|
|
76
|
+
* webpack/Turbopack loader) applies: an override for orchestrion's built-in
|
|
77
|
+
* `tracingChannelImport` transform, which runs (via `tracingChannelDeclaration`)
|
|
78
|
+
* for every file that gets a channel wrapped — the one hook that reaches every
|
|
79
|
+
* instrumented module without any extra instrumentation configs. It chains the
|
|
80
|
+
* default (which splices the `diagnostics_channel` import and bails when it is
|
|
81
|
+
* already present), then splices the module-injected snippet in after any
|
|
82
|
+
* `'use strict'` directive.
|
|
83
|
+
*
|
|
84
|
+
* Invoked once per wrapped channel, so the `WeakSet` keeps the snippet to one
|
|
85
|
+
* per file. Requires `@apm-js-collab/code-transformer` >= 0.18.1, where
|
|
86
|
+
* built-ins dispatch through the override map and expose the originals on
|
|
87
|
+
* `state.transforms.defaults`.
|
|
88
|
+
*
|
|
89
|
+
* Also carries the registration-only operator, which splices the same snippet
|
|
90
|
+
* without any channel injection — for library versions whose tracing channels
|
|
91
|
+
* are native.
|
|
92
|
+
*/
|
|
93
|
+
function moduleInjectedTransforms(importSpecifier, { selfProvidedModules = [] } = {}) {
|
|
94
|
+
const spliceModuleInjected = (state, program) => {
|
|
95
|
+
const { moduleType, module } = state;
|
|
96
|
+
const node = program;
|
|
97
|
+
if (injectedPrograms.has(node)) return;
|
|
98
|
+
const moduleName = module?.name;
|
|
99
|
+
if (!moduleName) return;
|
|
100
|
+
injectedPrograms.add(node);
|
|
101
|
+
const specifier = (typeof importSpecifier === "function" ? importSpecifier() : importSpecifier) ?? DEFAULT_IMPORT_SPECIFIER;
|
|
102
|
+
const exportName = subscriberExportForModule(moduleName);
|
|
103
|
+
const esm = moduleType === "esm";
|
|
104
|
+
const selfProvided = esm && typeof module?.filePath === "string" && selfProvidedModules.includes(moduleName) ? `${selfProvidedSnippet(moduleName, module.filePath)}\n` : "";
|
|
105
|
+
const statements = parse(selfProvided + moduleInjectedSnippet(moduleName, exportName, esm, specifier), {
|
|
106
|
+
module: esm,
|
|
107
|
+
next: true
|
|
108
|
+
}).body;
|
|
109
|
+
const directiveIndex = node.body.findIndex((n) => n.type === "ExpressionStatement" && n.directive === "use strict");
|
|
110
|
+
node.body.splice(directiveIndex + 1, 0, ...statements);
|
|
111
|
+
};
|
|
112
|
+
const injectModuleInjected = (state, program, parent, ancestry) => {
|
|
113
|
+
const { transforms } = state;
|
|
114
|
+
transforms.defaults.tracingChannelImport(state, program, parent, ancestry);
|
|
115
|
+
spliceModuleInjected(state, program);
|
|
116
|
+
};
|
|
117
|
+
const injectRegistrationOnly = (state, node) => {
|
|
118
|
+
spliceModuleInjected(state, node);
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
tracingChannelImport: injectModuleInjected,
|
|
122
|
+
[MODULE_REGISTRATION_TRANSFORM]: injectRegistrationOnly
|
|
123
|
+
};
|
|
49
124
|
}
|
|
50
|
-
|
|
51
125
|
export { ORCHESTRION_BUNDLER_MARKER_BANNER, moduleInjectedTransforms };
|
|
52
|
-
|
|
126
|
+
|
|
127
|
+
//# sourceMappingURL=moduleInjectedTransform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moduleInjectedTransform.js","sources":["../../../../src/orchestrion/bundler/moduleInjectedTransform.ts"],"sourcesContent":["import type { CustomTransform } from '../apmTypes';\nimport { parse } from 'meriyah';\nimport { subscriberExportForModule } from '../config/channel-integration-definitions';\nimport { MODULE_REGISTRATION_TRANSFORM } from '../config/registration-only';\n\n// Tracks Program nodes we already injected into, so a package with several\n// instrumented files (or several configs pointing at one file) is injected only\n// once per file. A `WeakSet` keyed by the node avoids mutating the emitted AST.\nconst injectedPrograms = new WeakSet<object>();\n\ninterface ProgramNode {\n type: string;\n body: Array<{ type: string; directive?: string }>;\n}\n\n// Where the injected snippet imports from: the `orchestrionModuleInjected`\n// helper and the module's channel-subscriber factory both live on the main\n// `@sentry/server-utils` entry, so a single import serves both. The ESM barrel\n// tree-shakes to just the helper and the factories actually referenced.\nconst DEFAULT_IMPORT_SPECIFIER = '@sentry/server-utils';\n\n/**\n * Assignment target that keeps the injected call from being tree-shaken. See\n * {@link moduleInjectedSnippet}. The value written is always `undefined`; only\n * the assignment matters.\n */\nconst MODULE_INJECTED_SINK = 'globalThis.__SENTRY_ORCHESTRION_INJECT__';\n\n/**\n * Entry-chunk banner that marks \"the bundler plugin ran\" for\n * `detectOrchestrionSetup()`. Merge-only (`g.bundler = g.bundler || new Set()`)\n * so it can never clobber module names already recorded by an injected snippet\n * that happened to run first; the names themselves arrive per module, when each\n * transformed module is evaluated and its snippet calls\n * `orchestrionModuleInjected`.\n */\nexport const ORCHESTRION_BUNDLER_MARKER_BANNER =\n ';(function(){var g=globalThis.__SENTRY_ORCHESTRION__=globalThis.__SENTRY_ORCHESTRION__||{};g.bundler=g.bundler||new Set();})();';\n\n/**\n * Snippet injected into each instrumented module. It imports the\n * `orchestrionModuleInjected` helper — plus the module's channel-subscriber\n * factory, when it has one — from `@sentry/server-utils` and calls the helper\n * with the module's real name. The helper records the module on the global\n * marker, stores the factory, and emits the `orchestrion.module-injected` client\n * event, so it runs exactly when the module is evaluated — the moment its\n * channels can start publishing. That per-module timing is what keeps\n * subscriptions lazy (Node caps diagnostics channels in use at 1024).\n *\n * Importing the single named factory (rather than a central dispatch that pulls\n * in every subscriber) is what makes this tree-shake: a bundle carries only the\n * subscriber code for packages actually transformed into it. The helper is\n * generic (references no factory), so importing it alongside doesn't pull\n * siblings.\n *\n * The specifier is parameterized for bundlers where the bare import emitted\n * inside a transformed `node_modules` file can't resolve (Turbopack under\n * isolated installs); it's embedded via `JSON.stringify` so absolute Windows\n * paths survive.\n *\n * The call result is assigned to a global rather than discarded. The helper\n * returns `void` and `@sentry/server-utils` is `sideEffects: false`, so a bare\n * call statement is something a bundler can prove droppable: rollup >= 4.63.0\n * does exactly that and removes the whole registration, leaving the module\n * instrumented but unsubscribed. Writing to a property of `globalThis` is a\n * side effect no bundler can shake out, so the call survives.\n */\nfunction moduleInjectedSnippet(\n moduleName: string,\n exportName: string | undefined,\n esm: boolean,\n importSpecifier: string,\n): string {\n const bindings = exportName ? `orchestrionModuleInjected, ${exportName}` : 'orchestrionModuleInjected';\n const importStmt = esm\n ? `import { ${bindings} } from ${JSON.stringify(importSpecifier)};`\n : `const { ${bindings} } = require(${JSON.stringify(importSpecifier)});`;\n\n // `exportName` is itself an integration factory, invoked inside the arrow (`() => exportName()`), so\n // `orchestrionModuleInjected`'s consumer still gets an Integration back from calling the stored\n // thunk. The point of the arrow is to defer the read of the `exportName` binding to when that thunk\n // runs (at `init()`), instead of reading it by reference the moment this snippet evaluates. A\n // provided-module integration (e.g. `flueIntegration`) is imported back into its own instrumented\n // package by `@sentry/*/vite`, so a direct reference here would close an import cycle and touch the\n // binding in its TDZ (\"Cannot access '…' before initialization\"); deferring the read breaks that.\n const args = exportName ? `${JSON.stringify(moduleName)}, () => ${exportName}()` : JSON.stringify(moduleName);\n return `${importStmt}\\n${MODULE_INJECTED_SINK} = orchestrionModuleInjected(${args});`;\n}\n\n/**\n * The unified `customTransforms` every orchestrion bundler plugin (and the\n * webpack/Turbopack loader) applies: an override for orchestrion's built-in\n * `tracingChannelImport` transform, which runs (via `tracingChannelDeclaration`)\n * for every file that gets a channel wrapped — the one hook that reaches every\n * instrumented module without any extra instrumentation configs. It chains the\n * default (which splices the `diagnostics_channel` import and bails when it is\n * already present), then splices the module-injected snippet in after any\n * `'use strict'` directive.\n *\n * Invoked once per wrapped channel, so the `WeakSet` keeps the snippet to one\n * per file. Requires `@apm-js-collab/code-transformer` >= 0.18.1, where\n * built-ins dispatch through the override map and expose the originals on\n * `state.transforms.defaults`.\n *\n * Also carries the registration-only operator, which splices the same snippet\n * without any channel injection — for library versions whose tracing channels\n * are native.\n */\nexport function moduleInjectedTransforms(\n // A function is read per injected file — the webpack/Turbopack loader uses it\n // to supply a per-file relative specifier (Turbopack supports neither\n // absolute-path imports nor bare specifiers that don't resolve from the\n // importing file's location).\n importSpecifier?: string | (() => string | undefined),\n): Record<string, CustomTransform> {\n const spliceModuleInjected = (state: unknown, program: unknown): void => {\n const { moduleType, module } = state as {\n moduleType?: string;\n module?: { name?: string };\n };\n\n const node = program as ProgramNode;\n if (injectedPrograms.has(node)) {\n return;\n }\n\n const moduleName = module?.name;\n if (!moduleName) {\n return;\n }\n\n injectedPrograms.add(node);\n\n const specifier =\n (typeof importSpecifier === 'function' ? importSpecifier() : importSpecifier) ?? DEFAULT_IMPORT_SPECIFIER;\n const exportName = subscriberExportForModule(moduleName);\n const statements = parse(moduleInjectedSnippet(moduleName, exportName, moduleType === 'esm', specifier), {\n module: moduleType === 'esm',\n next: true,\n }).body as ProgramNode['body'];\n\n const directiveIndex = node.body.findIndex(n => n.type === 'ExpressionStatement' && n.directive === 'use strict');\n node.body.splice(directiveIndex + 1, 0, ...statements);\n };\n\n const injectModuleInjected: CustomTransform = (state, program, parent, ancestry) => {\n const { transforms } = state as {\n transforms: { defaults: { tracingChannelImport: CustomTransform } };\n };\n\n transforms.defaults.tracingChannelImport(state, program, parent, ancestry);\n spliceModuleInjected(state, program);\n };\n\n // Operator for registration-only configs (`transform` field, see\n // `config/registration-only.ts`): dispatched INSTEAD of `traceSync`, so no\n // channel is declared and no function is wrapped. Their `astQuery: 'Program'`\n // matches only the file root, so `node` is the Program itself.\n const injectRegistrationOnly: CustomTransform = (state, node) => {\n spliceModuleInjected(state, node);\n };\n\n return {\n tracingChannelImport: injectModuleInjected,\n [MODULE_REGISTRATION_TRANSFORM]: injectRegistrationOnly,\n };\n}\n"],"names":[],"mappings":";;;;AAQA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,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,KAAuB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB;AAW7C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAA2B,CAA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,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,IAAA,CAAA,CAAA,CAAA,CAAA,CAAS;AAC/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,GAAO,IAAI,CAAA;AAAA,CAAA,CAClC,CAAA;AAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO;AAAA,CAAA,CAAA,CAAA,CACL,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAsB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACtB,CAAC,6BAA6B,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CAAA,CAAA,CACnC;AACF;;"}
|
|
1
|
+
{"version":3,"file":"moduleInjectedTransform.js","names":[],"sources":["../../../../src/orchestrion/bundler/moduleInjectedTransform.ts"],"sourcesContent":["import type { CustomTransform } from '../apmTypes';\nimport { parse } from 'meriyah';\nimport { subscriberExportForModule } from '../config/channel-integration-definitions';\nimport { MODULE_REGISTRATION_TRANSFORM } from '../config/registration-only';\nimport { stringifyForCodeInjection } from '@sentry/core';\n\n// Tracks Program nodes we already injected into, so a package with several\n// instrumented files (or several configs pointing at one file) is injected only\n// once per file. A `WeakSet` keyed by the node avoids mutating the emitted AST.\nconst injectedPrograms = new WeakSet<object>();\n\ninterface ProgramNode {\n type: string;\n body: Array<{ type: string; directive?: string }>;\n}\n\n// Where the injected snippet imports from: the `orchestrionModuleInjected`\n// helper and the module's channel-subscriber factory both live on the main\n// `@sentry/server-utils` entry, so a single import serves both. The ESM barrel\n// tree-shakes to just the helper and the factories actually referenced.\nconst DEFAULT_IMPORT_SPECIFIER = '@sentry/server-utils';\n\n/**\n * Assignment target that keeps the injected call from being tree-shaken. See\n * {@link moduleInjectedSnippet}. The value written is always `undefined`; only\n * the assignment matters.\n */\nconst MODULE_INJECTED_SINK = 'globalThis.__SENTRY_ORCHESTRION_INJECT__';\n\n/**\n * Entry-chunk banner that marks \"the bundler plugin ran\" for\n * `detectOrchestrionSetup()`. Merge-only (`g.bundler = g.bundler || new Set()`)\n * so it can never clobber module names already recorded by an injected snippet\n * that happened to run first; the names themselves arrive per module, when each\n * transformed module is evaluated and its snippet calls\n * `orchestrionModuleInjected`.\n */\nexport const ORCHESTRION_BUNDLER_MARKER_BANNER =\n ';(function(){var g=globalThis.__SENTRY_ORCHESTRION__=globalThis.__SENTRY_ORCHESTRION__||{};g.bundler=g.bundler||new Set();})();';\n\n/**\n * Snippet injected into each instrumented module. It imports the\n * `orchestrionModuleInjected` helper — plus the module's channel-subscriber\n * factory, when it has one — from `@sentry/server-utils` and calls the helper\n * with the module's real name. The helper records the module on the global\n * marker, stores the factory, and emits the `orchestrion.module-injected` client\n * event, so it runs exactly when the module is evaluated — the moment its\n * channels can start publishing. That per-module timing is what keeps\n * subscriptions lazy (Node caps diagnostics channels in use at 1024).\n *\n * Importing the single named factory (rather than a central dispatch that pulls\n * in every subscriber) is what makes this tree-shake: a bundle carries only the\n * subscriber code for packages actually transformed into it. The helper is\n * generic (references no factory), so importing it alongside doesn't pull\n * siblings.\n *\n * The specifier is parameterized for bundlers where the bare import emitted\n * inside a transformed `node_modules` file can't resolve (Turbopack under\n * isolated installs); it's embedded via `stringifyForCodeInjection` so\n * absolute Windows paths survive.\n *\n * The call result is assigned to a global rather than discarded. The helper\n * returns `void` and `@sentry/server-utils` is `sideEffects: false`, so a bare\n * call statement is something a bundler can prove droppable: rollup >= 4.63.0\n * does exactly that and removes the whole registration, leaving the module\n * instrumented but unsubscribed. Writing to a property of `globalThis` is a\n * side effect no bundler can shake out, so the call survives.\n */\nfunction moduleInjectedSnippet(\n moduleName: string,\n exportName: string | undefined,\n esm: boolean,\n importSpecifier: string,\n): string {\n const bindings = exportName ? `orchestrionModuleInjected, ${exportName}` : 'orchestrionModuleInjected';\n const importStmt = esm\n ? `import { ${bindings} } from ${stringifyForCodeInjection(importSpecifier)};`\n : `const { ${bindings} } = require(${stringifyForCodeInjection(importSpecifier)});`;\n\n // The arrow defers reading `exportName` to `init()`. `@sentry/*/vite` imports some packages into\n // their own integration module (e.g. Mastra's), and in that cycle a direct read would hit the TDZ.\n const args = exportName\n ? `${stringifyForCodeInjection(moduleName)}, () => ${exportName}()`\n : stringifyForCodeInjection(moduleName);\n return `${importStmt}\\n${MODULE_INJECTED_SINK} = orchestrionModuleInjected(${args});`;\n}\n\n/**\n * Publishes the module's own namespace on `providedModules`. For `@flue/runtime`'s `dist/index.mjs`,\n * this prepends roughly:\n *\n * ```js\n * import * as __SENTRY_SELF_PROVIDED__ from \"./index.mjs\";\n * globalThis.__SENTRY_ORCHESTRION__.providedModules[\"@flue/runtime\"] = __SENTRY_SELF_PROVIDED__; // as a getter\n * ```\n *\n * A self-import adds no edge to the module graph; importing the package into a Sentry module would\n * close a cycle through every instrumented dependency, since those all import `@sentry/server-utils`.\n */\nfunction selfProvidedSnippet(moduleName: string, filePath: string): string {\n const marker = 'globalThis.__SENTRY_ORCHESTRION__';\n const self = `./${filePath.split('/').pop()}`;\n return (\n `import * as __SENTRY_SELF_PROVIDED__ from ${stringifyForCodeInjection(self)};\\n` +\n `(${marker} = ${marker} || {});\\n` +\n `(${marker}.providedModules = ${marker}.providedModules || {});\\n` +\n `Object.defineProperty(${marker}.providedModules, ${stringifyForCodeInjection(moduleName)}, ` +\n '{ configurable: true, enumerable: true, get() { return __SENTRY_SELF_PROVIDED__; } });'\n );\n}\n\nexport interface ModuleInjectedTransformsOptions {\n /** Packages whose ESM entry publishes its own namespace on `providedModules`. */\n selfProvidedModules?: readonly string[];\n}\n\n/**\n * The unified `customTransforms` every orchestrion bundler plugin (and the\n * webpack/Turbopack loader) applies: an override for orchestrion's built-in\n * `tracingChannelImport` transform, which runs (via `tracingChannelDeclaration`)\n * for every file that gets a channel wrapped — the one hook that reaches every\n * instrumented module without any extra instrumentation configs. It chains the\n * default (which splices the `diagnostics_channel` import and bails when it is\n * already present), then splices the module-injected snippet in after any\n * `'use strict'` directive.\n *\n * Invoked once per wrapped channel, so the `WeakSet` keeps the snippet to one\n * per file. Requires `@apm-js-collab/code-transformer` >= 0.18.1, where\n * built-ins dispatch through the override map and expose the originals on\n * `state.transforms.defaults`.\n *\n * Also carries the registration-only operator, which splices the same snippet\n * without any channel injection — for library versions whose tracing channels\n * are native.\n */\nexport function moduleInjectedTransforms(\n // A function is read per injected file — the webpack/Turbopack loader uses it\n // to supply a per-file relative specifier (Turbopack supports neither\n // absolute-path imports nor bare specifiers that don't resolve from the\n // importing file's location).\n importSpecifier?: string | (() => string | undefined),\n { selfProvidedModules = [] }: ModuleInjectedTransformsOptions = {},\n): Record<string, CustomTransform> {\n const spliceModuleInjected = (state: unknown, program: unknown): void => {\n const { moduleType, module } = state as {\n moduleType?: string;\n module?: { name?: string; filePath?: string | RegExp };\n };\n\n const node = program as ProgramNode;\n if (injectedPrograms.has(node)) {\n return;\n }\n\n const moduleName = module?.name;\n if (!moduleName) {\n return;\n }\n\n injectedPrograms.add(node);\n\n const specifier =\n (typeof importSpecifier === 'function' ? importSpecifier() : importSpecifier) ?? DEFAULT_IMPORT_SPECIFIER;\n const exportName = subscriberExportForModule(moduleName);\n const esm = moduleType === 'esm';\n const selfProvided =\n esm && typeof module?.filePath === 'string' && selfProvidedModules.includes(moduleName)\n ? `${selfProvidedSnippet(moduleName, module.filePath)}\\n`\n : '';\n const statements = parse(selfProvided + moduleInjectedSnippet(moduleName, exportName, esm, specifier), {\n module: esm,\n next: true,\n }).body as ProgramNode['body'];\n\n const directiveIndex = node.body.findIndex(n => n.type === 'ExpressionStatement' && n.directive === 'use strict');\n node.body.splice(directiveIndex + 1, 0, ...statements);\n };\n\n const injectModuleInjected: CustomTransform = (state, program, parent, ancestry) => {\n const { transforms } = state as {\n transforms: { defaults: { tracingChannelImport: CustomTransform } };\n };\n\n transforms.defaults.tracingChannelImport(state, program, parent, ancestry);\n spliceModuleInjected(state, program);\n };\n\n // Operator for registration-only configs (`transform` field, see\n // `config/registration-only.ts`): dispatched INSTEAD of `traceSync`, so no\n // channel is declared and no function is wrapped. Their `astQuery: 'Program'`\n // matches only the file root, so `node` is the Program itself.\n const injectRegistrationOnly: CustomTransform = (state, node) => {\n spliceModuleInjected(state, node);\n };\n\n return {\n tracingChannelImport: injectModuleInjected,\n [MODULE_REGISTRATION_TRANSFORM]: injectRegistrationOnly,\n };\n}\n"],"mappings":";;;;;AASA,MAAM,mCAAmB,IAAI,QAAgB;AAW7C,MAAM,2BAA2B;;;;;;AAOjC,MAAM,uBAAuB;;;;;;;;;AAU7B,MAAa,oCACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BF,SAAS,sBACP,YACA,YACA,KACA,iBACQ;CACR,MAAM,WAAW,aAAa,8BAA8B,eAAe;CAC3E,MAAM,aAAa,MACf,YAAY,SAAS,UAAU,0BAA0B,eAAe,EAAE,KAC1E,WAAW,SAAS,eAAe,0BAA0B,eAAe,EAAE;CAIlF,MAAM,OAAO,aACT,GAAG,0BAA0B,UAAU,EAAE,UAAU,WAAW,MAC9D,0BAA0B,UAAU;CACxC,OAAO,GAAG,WAAW,IAAI,qBAAqB,+BAA+B,KAAK;AACpF;;;;;;;;;;;;;AAcA,SAAS,oBA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AO,IAAI;CAClC;CAEA,OAAO;EACL,sBAAsB;GACrB,gCAAgC;CACnC;AACF"}
|
|
@@ -1,20 +1,49 @@
|
|
|
1
|
-
import { SENTRY_INSTRUMENTATIONS } from
|
|
2
|
-
import { ORCHESTRION_BUNDLER_MARKER_BANNER, moduleInjectedTransforms } from
|
|
3
|
-
|
|
1
|
+
import { SENTRY_INSTRUMENTATIONS } from "../config/index.js";
|
|
2
|
+
import { ORCHESTRION_BUNDLER_MARKER_BANNER, moduleInjectedTransforms } from "./moduleInjectedTransform.js";
|
|
3
|
+
// src/orchestrion/bundler/options.ts
|
|
4
|
+
/**
|
|
5
|
+
* Whether an "external" config entry covers an instrumented module: an exact
|
|
6
|
+
* package name (`'mysql'`) or a subpath (`'mysql/lib/...'`) — the transform may
|
|
7
|
+
* target exactly the file a subpath entry externalizes. Mirrors the matching in
|
|
8
|
+
* `withoutInstrumentedExternals`.
|
|
9
|
+
*/
|
|
4
10
|
function externalEntryMatchesModule(entry, moduleName) {
|
|
5
|
-
|
|
11
|
+
return entry === moduleName || entry.startsWith(`${moduleName}/`);
|
|
6
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Warning emitted when a bundler config externalizes packages that orchestrion
|
|
15
|
+
* needs to transform. An externalized dependency is resolved from
|
|
16
|
+
* `node_modules` at runtime and never passes through the code transform, so
|
|
17
|
+
* its diagnostics_channel calls are silently never injected.
|
|
18
|
+
*/
|
|
7
19
|
function externalizedModulesWarning(externalizedModules) {
|
|
8
|
-
|
|
20
|
+
return `The following packages are marked as external in your bundler configuration but need to be bundled for Sentry instrumentation to work: ${externalizedModules.join(", ")}. Remove them from your bundler's "external" configuration, or use the Sentry Node SDK's runtime instrumentation instead.`;
|
|
9
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every
|
|
24
|
+
* orchestrion bundler plugin. This is the single assembly point for the plugin
|
|
25
|
+
* options, so a new field added here reaches every bundler at once.
|
|
26
|
+
*
|
|
27
|
+
* The module-injected `tracingChannelImport` override is always on: it is how
|
|
28
|
+
* every transformed module announces itself (and its channel-subscriber
|
|
29
|
+
* factory) at evaluation time, on every bundler. It is spread last so a user
|
|
30
|
+
* transform can't clobber it.
|
|
31
|
+
*
|
|
32
|
+
* `injectDiagnostics` returns the marker banner the upstream transformer prepends
|
|
33
|
+
* to the output. Bun opts out (`{ injectDiagnostics: false }`) because it injects
|
|
34
|
+
* the same banner via its native `banner` build config instead — see `bun.ts`.
|
|
35
|
+
*/
|
|
10
36
|
function orchestrionTransformOptions(options, { injectDiagnostics = true } = {}) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
37
|
+
return {
|
|
38
|
+
instrumentations: [...SENTRY_INSTRUMENTATIONS, ...options.instrumentations || []],
|
|
39
|
+
customTransforms: {
|
|
40
|
+
...options.customTransforms,
|
|
41
|
+
...moduleInjectedTransforms(void 0, { selfProvidedModules: options.selfProvidedModules })
|
|
42
|
+
},
|
|
43
|
+
...options.dcModule && { dcModule: options.dcModule },
|
|
44
|
+
...injectDiagnostics && { injectDiagnostics: () => ";(function(){var g=globalThis.__SENTRY_ORCHESTRION__=globalThis.__SENTRY_ORCHESTRION__||{};g.bundler=g.bundler||new Set();})();" }
|
|
45
|
+
};
|
|
17
46
|
}
|
|
18
|
-
|
|
19
47
|
export { ORCHESTRION_BUNDLER_MARKER_BANNER, externalEntryMatchesModule, externalizedModulesWarning, orchestrionTransformOptions };
|
|
20
|
-
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sources":["../../../../src/orchestrion/bundler/options.ts"],"sourcesContent":["import { SENTRY_INSTRUMENTATIONS } from '../config';\nimport { moduleInjectedTransforms, ORCHESTRION_BUNDLER_MARKER_BANNER } from './moduleInjectedTransform';\nimport type { CodeTransformerPluginOptions, InstrumentationConfig, CustomTransform } from '../apmTypes';\n\nexport { ORCHESTRION_BUNDLER_MARKER_BANNER };\n\nexport type PluginOptions = {\n /**\n * Additional instrumentations to include with the default instrumentation.\n */\n instrumentations?: InstrumentationConfig[];\n /**\n * Automatic instrumentation of server-side dependencies at build time.\n *\n * Set to `false` to make the plugin inert, so no instrumentation code is injected.\n *\n * @default true\n */\n buildTimeInstrumentation?: boolean;\n /**\n * Custom transforms that can be applied using the `transform` option in each\n * `InstrumentationConfig`.\n *\n * Only applied by the vite/rollup/esbuild/webpack plugins. Turbopack\n * serializes loader options as JSON, so functions can't reach its loader;\n * there, only the built-in Sentry transforms (baked into the loader module)\n * run.\n */\n customTransforms?: Record<string, CustomTransform>;\n /**\n * Module specifier the transformed code imports its `tracingChannel` from, in\n * place of `node:diagnostics_channel`. The Cloudflare build points this at a\n * workerd-safe façade so channels wrapped at module scope don't throw. This is\n * global — `code-transformer` ignores per-config `dcModule` (the matcher's value\n * overwrites it) — but the façade delegates transparently in a request, so\n * routing every channel through it is harmless.\n */\n dcModule?: string;\n /**\n * When `true`, the Vite plugin also runs the transform in the dependency optimizer of server environments in\n * `vite dev`. Needed for `@cloudflare/vite-plugin`, which pre-bundles the dependencies of a Worker there.\n *\n * @default false\n */\n transformOptimizedDeps?: boolean;\n};\n\n/**\n * Whether an \"external\" config entry covers an instrumented module: an exact\n * package name (`'mysql'`) or a subpath (`'mysql/lib/...'`) — the transform may\n * target exactly the file a subpath entry externalizes. Mirrors the matching in\n * `withoutInstrumentedExternals`.\n */\nexport function externalEntryMatchesModule(entry: string, moduleName: string): boolean {\n return entry === moduleName || entry.startsWith(`${moduleName}/`);\n}\n\n/**\n * Warning emitted when a bundler config externalizes packages that orchestrion\n * needs to transform. An externalized dependency is resolved from\n * `node_modules` at runtime and never passes through the code transform, so\n * its diagnostics_channel calls are silently never injected.\n */\nexport function externalizedModulesWarning(externalizedModules: string[]): string {\n return (\n `The following packages are marked as external in your bundler configuration but need to be bundled for Sentry ` +\n `instrumentation to work: ${externalizedModules.join(', ')}. Remove them from your bundler's \"external\" ` +\n `configuration, or use the Sentry Node SDK's runtime instrumentation instead.`\n );\n}\n\n/**\n * The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every\n * orchestrion bundler plugin. This is the single assembly point for the plugin\n * options, so a new field added here reaches every bundler at once.\n *\n * The module-injected `tracingChannelImport` override is always on: it is how\n * every transformed module announces itself (and its channel-subscriber\n * factory) at evaluation time, on every bundler. It is spread last so a user\n * transform can't clobber it.\n *\n * `injectDiagnostics` returns the marker banner the upstream transformer prepends\n * to the output. Bun opts out (`{ injectDiagnostics: false }`) because it injects\n * the same banner via its native `banner` build config instead — see `bun.ts`.\n */\nexport function orchestrionTransformOptions(\n options: PluginOptions,\n { injectDiagnostics = true }: { injectDiagnostics?: boolean } = {},\n): CodeTransformerPluginOptions {\n return {\n instrumentations: [...SENTRY_INSTRUMENTATIONS, ...(options.instrumentations || [])],\n customTransforms: {
|
|
1
|
+
{"version":3,"file":"options.js","names":[],"sources":["../../../../src/orchestrion/bundler/options.ts"],"sourcesContent":["import { SENTRY_INSTRUMENTATIONS } from '../config';\nimport { moduleInjectedTransforms, ORCHESTRION_BUNDLER_MARKER_BANNER } from './moduleInjectedTransform';\nimport type { CodeTransformerPluginOptions, InstrumentationConfig, CustomTransform } from '../apmTypes';\n\nexport { ORCHESTRION_BUNDLER_MARKER_BANNER };\n\nexport type PluginOptions = {\n /**\n * Additional instrumentations to include with the default instrumentation.\n */\n instrumentations?: InstrumentationConfig[];\n /**\n * Automatic instrumentation of server-side dependencies at build time.\n *\n * Set to `false` to make the plugin inert, so no instrumentation code is injected.\n *\n * @default true\n */\n buildTimeInstrumentation?: boolean;\n /**\n * Custom transforms that can be applied using the `transform` option in each\n * `InstrumentationConfig`.\n *\n * Only applied by the vite/rollup/esbuild/webpack plugins. Turbopack\n * serializes loader options as JSON, so functions can't reach its loader;\n * there, only the built-in Sentry transforms (baked into the loader module)\n * run.\n */\n customTransforms?: Record<string, CustomTransform>;\n /**\n * Module specifier the transformed code imports its `tracingChannel` from, in\n * place of `node:diagnostics_channel`. The Cloudflare build points this at a\n * workerd-safe façade so channels wrapped at module scope don't throw. This is\n * global — `code-transformer` ignores per-config `dcModule` (the matcher's value\n * overwrites it) — but the façade delegates transparently in a request, so\n * routing every channel through it is harmless.\n */\n dcModule?: string;\n /**\n * When `true`, the Vite plugin also runs the transform in the dependency optimizer of server environments in\n * `vite dev`. Needed for `@cloudflare/vite-plugin`, which pre-bundles the dependencies of a Worker there.\n *\n * @default false\n */\n transformOptimizedDeps?: boolean;\n /**\n * Packages that publish their own namespace on `providedModules`, for integrations that register\n * with a package instead of patching it. Opt-in, as apps that register it themselves would clash.\n * Only for packages with a single ESM entry file, matched by a string `filePath`.\n */\n selfProvidedModules?: string[];\n};\n\n/**\n * Whether an \"external\" config entry covers an instrumented module: an exact\n * package name (`'mysql'`) or a subpath (`'mysql/lib/...'`) — the transform may\n * target exactly the file a subpath entry externalizes. Mirrors the matching in\n * `withoutInstrumentedExternals`.\n */\nexport function externalEntryMatchesModule(entry: string, moduleName: string): boolean {\n return entry === moduleName || entry.startsWith(`${moduleName}/`);\n}\n\n/**\n * Warning emitted when a bundler config externalizes packages that orchestrion\n * needs to transform. An externalized dependency is resolved from\n * `node_modules` at runtime and never passes through the code transform, so\n * its diagnostics_channel calls are silently never injected.\n */\nexport function externalizedModulesWarning(externalizedModules: string[]): string {\n return (\n `The following packages are marked as external in your bundler configuration but need to be bundled for Sentry ` +\n `instrumentation to work: ${externalizedModules.join(', ')}. Remove them from your bundler's \"external\" ` +\n `configuration, or use the Sentry Node SDK's runtime instrumentation instead.`\n );\n}\n\n/**\n * The `@apm-js-collab/code-transformer-bundler-plugins` options shared by every\n * orchestrion bundler plugin. This is the single assembly point for the plugin\n * options, so a new field added here reaches every bundler at once.\n *\n * The module-injected `tracingChannelImport` override is always on: it is how\n * every transformed module announces itself (and its channel-subscriber\n * factory) at evaluation time, on every bundler. It is spread last so a user\n * transform can't clobber it.\n *\n * `injectDiagnostics` returns the marker banner the upstream transformer prepends\n * to the output. Bun opts out (`{ injectDiagnostics: false }`) because it injects\n * the same banner via its native `banner` build config instead — see `bun.ts`.\n */\nexport function orchestrionTransformOptions(\n options: PluginOptions,\n { injectDiagnostics = true }: { injectDiagnostics?: boolean } = {},\n): CodeTransformerPluginOptions {\n return {\n instrumentations: [...SENTRY_INSTRUMENTATIONS, ...(options.instrumentations || [])],\n customTransforms: {\n ...options.customTransforms,\n ...moduleInjectedTransforms(undefined, { selfProvidedModules: options.selfProvidedModules }),\n },\n ...(options.dcModule && { dcModule: options.dcModule }),\n ...(injectDiagnostics && { injectDiagnostics: () => ORCHESTRION_BUNDLER_MARKER_BANNER }),\n };\n}\n"],"mappings":";;;;;;;;;AA2DA,SAAgB,2BAA2B,OAAe,YAA6B;CACrF,OAAO,UAAU,cAAc,MAAM,WAAW,GAAG,WAAW,EAAE;AAClE;;;;;;;AAQA,SAAgB,2BAA2B,qBAAuC;CAChF,OACE,0IAC4B,oBAAoB,KAAK,IAAI,EAAE;AAG/D;;;;;;;;;;;;;;;AAgBA,SAAgB,4BACd,SACA,EAAE,oBAAoB,SAA0C,CAAC,GACnC;CAC9B,OAAO;EACL,kBAAkB,CAAC,GAAG,yBAAyB,GAAI,QAAQ,oBAAoB,CAAC,CAAE;EAClF,kBAAkB;GAChB,GAAG,QAAQ;GACX,GAAG,yBAAyB,KAAA,GAAW,EAAE,qBAAqB,QAAQ,oBAAoB,CAAC;EAC7F;EACA,GAAI,QAAQ,YAAY,EAAE,UAAU,QAAQ,SAAS;EACrD,GAAI,qBAAqB,EAAE,yBAAA,kIAA2D;CACxF;AACF"}
|
|
@@ -1,22 +1,52 @@
|
|
|
1
|
-
import { createRequire } from
|
|
2
|
-
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
// src/orchestrion/bundler/resolve.ts
|
|
3
|
+
/**
|
|
4
|
+
* The specifier the module-injected snippet imports from — the
|
|
5
|
+
* `orchestrionModuleInjected` helper and the module's channel-subscriber factory
|
|
6
|
+
* both live on the main `@sentry/server-utils` entry. It is emitted INSIDE
|
|
7
|
+
* transformed `node_modules` files, where a bare specifier can't resolve from
|
|
8
|
+
* the importing package's location under isolated installs (pnpm), so every
|
|
9
|
+
* bundler plugin gives it build-time resolution help.
|
|
10
|
+
*/
|
|
3
11
|
const SNIPPET_IMPORT_SPECIFIER = "@sentry/server-utils";
|
|
12
|
+
/** esbuild `onResolve` filter matching the snippet import specifier exactly. */
|
|
4
13
|
const SNIPPET_IMPORT_SPECIFIER_FILTER = /^@sentry\/server-utils$/;
|
|
5
14
|
function getOrchestrionRequire() {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
15
|
+
let nodeRequire;
|
|
16
|
+
nodeRequire = createRequire(import.meta.url);
|
|
17
|
+
return nodeRequire;
|
|
9
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader).
|
|
21
|
+
* Resolved via self-reference to this package's own bundled copy — the `@apm-js-collab` packages
|
|
22
|
+
* are bundled devDependencies and not resolvable on user installs.
|
|
23
|
+
*/
|
|
10
24
|
function getOrchestrionLoaderPath() {
|
|
11
|
-
|
|
25
|
+
return getOrchestrionRequire().resolve("@sentry/server-utils/orchestrion/webpack-loader");
|
|
12
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Resolves a request for one of the orchestrion runtime packages (`@sentry/server-utils` itself, via
|
|
29
|
+
* self-reference, or its `@apm-js-collab/*` dependencies) to an absolute path, from this package's
|
|
30
|
+
* own on-disk location — where the whole dependency graph always resolves, regardless of the
|
|
31
|
+
* consuming app's install layout. Returns `undefined` when the request can't be resolved.
|
|
32
|
+
*
|
|
33
|
+
* BUILD-TIME resolver only: the path is handed back to the bundler to load and bundle, never
|
|
34
|
+
* emitted into the output. An absolute path in emitted output doesn't survive the build directory
|
|
35
|
+
* being relocated (Vercel, Docker, `output: 'standalone'`), so a consumer that needs one of these
|
|
36
|
+
* packages to stay EXTERNAL must emit a bare specifier instead — see `@sentry/nextjs`'s
|
|
37
|
+
* `externalizeOrchestrionRuntimePackages`.
|
|
38
|
+
*
|
|
39
|
+
* The specific case it covers: the `@sentry/server-utils/orchestrion` import the module-injected
|
|
40
|
+
* snippet places INSIDE transformed `node_modules` files, which a bundler resolving from the
|
|
41
|
+
* importing file's location can't find under isolated installs.
|
|
42
|
+
*/
|
|
13
43
|
function resolveOrchestrionRuntimeRequest(request) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
44
|
+
try {
|
|
45
|
+
return getOrchestrionRequire().resolve(request);
|
|
46
|
+
} catch {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
19
49
|
}
|
|
20
|
-
|
|
21
50
|
export { SNIPPET_IMPORT_SPECIFIER, SNIPPET_IMPORT_SPECIFIER_FILTER, getOrchestrionLoaderPath, resolveOrchestrionRuntimeRequest };
|
|
22
|
-
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.js","sources":["../../../../src/orchestrion/bundler/resolve.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n/**\n * The specifier the module-injected snippet imports from — the\n * `orchestrionModuleInjected` helper and the module's channel-subscriber factory\n * both live on the main `@sentry/server-utils` entry. It is emitted INSIDE\n * transformed `node_modules` files, where a bare specifier can't resolve from\n * the importing package's location under isolated installs (pnpm), so every\n * bundler plugin gives it build-time resolution help.\n */\nexport const SNIPPET_IMPORT_SPECIFIER = '@sentry/server-utils';\n\n/** esbuild `onResolve` filter matching the snippet import specifier exactly. */\nexport const SNIPPET_IMPORT_SPECIFIER_FILTER = /^@sentry\\/server-utils$/;\n\n// Both branches use `createRequire` (never alias the CJS `require`) so bundlers consuming this\n// module don't emit a \"Critical dependency\" warning.\nfunction getOrchestrionRequire(): ReturnType<typeof createRequire> {\n let nodeRequire: ReturnType<typeof createRequire>;\n /*! rollup-include-cjs-only */\n nodeRequire = createRequire(__filename);\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n nodeRequire = createRequire(import.meta.url);\n /*! rollup-include-esm-only-end */\n return nodeRequire;\n}\n\n/**\n * Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader).\n * Resolved via self-reference to this package's own bundled copy — the `@apm-js-collab` packages\n * are bundled devDependencies and not resolvable on user installs.\n */\nexport function getOrchestrionLoaderPath(): string {\n return getOrchestrionRequire().resolve('@sentry/server-utils/orchestrion/webpack-loader');\n}\n\n/**\n * Resolves a request for one of the orchestrion runtime packages (`@sentry/server-utils` itself, via\n * self-reference, or its `@apm-js-collab/*` dependencies) to an absolute path, from this package's\n * own on-disk location — where the whole dependency graph always resolves, regardless of the\n * consuming app's install layout. Returns `undefined` when the request can't be resolved.\n *\n * BUILD-TIME resolver only: the path is handed back to the bundler to load and bundle, never\n * emitted into the output. An absolute path in emitted output doesn't survive the build directory\n * being relocated (Vercel, Docker, `output: 'standalone'`), so a consumer that needs one of these\n * packages to stay EXTERNAL must emit a bare specifier instead — see `@sentry/nextjs`'s\n * `externalizeOrchestrionRuntimePackages`.\n *\n * The specific case it covers: the `@sentry/server-utils/orchestrion` import the module-injected\n * snippet places INSIDE transformed `node_modules` files, which a bundler resolving from the\n * importing file's location can't find under isolated installs.\n */\nexport function resolveOrchestrionRuntimeRequest(request: string): string | undefined {\n try {\n return getOrchestrionRequire().resolve(request);\n } catch {\n return undefined;\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"resolve.js","names":[],"sources":["../../../../src/orchestrion/bundler/resolve.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n/**\n * The specifier the module-injected snippet imports from — the\n * `orchestrionModuleInjected` helper and the module's channel-subscriber factory\n * both live on the main `@sentry/server-utils` entry. It is emitted INSIDE\n * transformed `node_modules` files, where a bare specifier can't resolve from\n * the importing package's location under isolated installs (pnpm), so every\n * bundler plugin gives it build-time resolution help.\n */\nexport const SNIPPET_IMPORT_SPECIFIER = '@sentry/server-utils';\n\n/** esbuild `onResolve` filter matching the snippet import specifier exactly. */\nexport const SNIPPET_IMPORT_SPECIFIER_FILTER = /^@sentry\\/server-utils$/;\n\n// Both branches use `createRequire` (never alias the CJS `require`) so bundlers consuming this\n// module don't emit a \"Critical dependency\" warning.\nfunction getOrchestrionRequire(): ReturnType<typeof createRequire> {\n let nodeRequire: ReturnType<typeof createRequire>;\n /*! rollup-include-cjs-only */\n nodeRequire = createRequire(__filename);\n /*! rollup-include-cjs-only-end */\n /*! rollup-include-esm-only */\n nodeRequire = createRequire(import.meta.url);\n /*! rollup-include-esm-only-end */\n return nodeRequire;\n}\n\n/**\n * Absolute path to the code-transform loader (a webpack loader; also usable as a Turbopack loader).\n * Resolved via self-reference to this package's own bundled copy — the `@apm-js-collab` packages\n * are bundled devDependencies and not resolvable on user installs.\n */\nexport function getOrchestrionLoaderPath(): string {\n return getOrchestrionRequire().resolve('@sentry/server-utils/orchestrion/webpack-loader');\n}\n\n/**\n * Resolves a request for one of the orchestrion runtime packages (`@sentry/server-utils` itself, via\n * self-reference, or its `@apm-js-collab/*` dependencies) to an absolute path, from this package's\n * own on-disk location — where the whole dependency graph always resolves, regardless of the\n * consuming app's install layout. Returns `undefined` when the request can't be resolved.\n *\n * BUILD-TIME resolver only: the path is handed back to the bundler to load and bundle, never\n * emitted into the output. An absolute path in emitted output doesn't survive the build directory\n * being relocated (Vercel, Docker, `output: 'standalone'`), so a consumer that needs one of these\n * packages to stay EXTERNAL must emit a bare specifier instead — see `@sentry/nextjs`'s\n * `externalizeOrchestrionRuntimePackages`.\n *\n * The specific case it covers: the `@sentry/server-utils/orchestrion` import the module-injected\n * snippet places INSIDE transformed `node_modules` files, which a bundler resolving from the\n * importing file's location can't find under isolated installs.\n */\nexport function resolveOrchestrionRuntimeRequest(request: string): string | undefined {\n try {\n return getOrchestrionRequire().resolve(request);\n } catch {\n return undefined;\n }\n}\n"],"mappings":";;;;;;;;;;AAUA,MAAa,2BAA2B;;AAGxC,MAAa,kCAAkC;AAI/C,SAAS,wBAA0D;CACjE,IAAI;CACJ,cAAc,cAAc,YAAY,GAAG;CAC3C,OAAO;AACT;;;;;;AAOA,SAAgB,2BAAmC;CACjD,OAAO,sBAAsB,CAAC,CAAC,QAAQ,iDAAiD;AAC1F;;;;;;;;;;;;;;;;;AAkBA,SAAgB,iCAAiC,SAAqC;CACpF,IAAI;EACF,OAAO,sBAAsB,CAAC,CAAC,QAAQ,OAAO;CAChD,QAAQ;EACN;CACF;AACF"}
|
|
@@ -1,79 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as codeTransformerRollup } from
|
|
3
|
-
import { instrumentedModuleNames } from
|
|
4
|
-
import { externalizedModulesWarning, orchestrionTransformOptions
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import "../../vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup.js";
|
|
2
|
+
import { t as codeTransformerRollup } from "../../vendored/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/rollup-CzqrjlS4.js";
|
|
3
|
+
import { instrumentedModuleNames } from "../config/index.js";
|
|
4
|
+
import { externalEntryMatchesModule, externalizedModulesWarning, orchestrionTransformOptions } from "./options.js";
|
|
5
|
+
import { resolveOrchestrionRuntimeRequest } from "./resolve.js";
|
|
6
|
+
import { isBuiltin } from "node:module";
|
|
7
|
+
// src/orchestrion/bundler/rollup.ts
|
|
8
|
+
/**
|
|
9
|
+
* Whether a raw (un-normalized) `external` input option marks `name` as
|
|
10
|
+
* external. String entries use the shared subpath-aware matching so a
|
|
11
|
+
* `'mysql/lib/...'` entry flags `mysql`, consistent with the esbuild and
|
|
12
|
+
* webpack plugins.
|
|
13
|
+
*/
|
|
7
14
|
function rawExternalMatchesModule(external, name) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
const entries = Array.isArray(external) ? external : [external];
|
|
12
|
-
return entries.some(
|
|
13
|
-
(entry) => typeof entry === "string" ? externalEntryMatchesModule(entry, name) : entry.test(name)
|
|
14
|
-
);
|
|
15
|
+
if (typeof external === "function") return !!external(name, void 0, false);
|
|
16
|
+
return (Array.isArray(external) ? external : [external]).some((entry) => typeof entry === "string" ? externalEntryMatchesModule(entry, name) : entry.test(name));
|
|
15
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* `@rollup/plugin-commonjs` options for builds that bundle CommonJS packages while their
|
|
20
|
+
* dependencies stay external. Builtin `require()`s unwrap to the module (a namespace breaks
|
|
21
|
+
* direct calls) and convert inside `try` blocks (a bare `require` throws in ESM output).
|
|
22
|
+
* Externals keep `'auto'`, which {@link sentryCommonJSInteropPlugin} fixes for Node >= 23, Deno and Bun.
|
|
23
|
+
*/
|
|
16
24
|
function commonJSInteropOptions() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
return {
|
|
26
|
+
requireReturnsDefault: (id) => isBuiltin(id) ? true : "auto",
|
|
27
|
+
ignoreTryCatch: (id) => !isBuiltin(id)
|
|
28
|
+
};
|
|
21
29
|
}
|
|
22
30
|
const COMMONJS_HELPERS_ID = "\0commonjsHelpers.js";
|
|
23
31
|
const BROKEN_NAMESPACE_CHECK = "Object.keys(n).length === 1";
|
|
24
|
-
const FIXED_NAMESPACE_CHECK = "Object.keys(n).filter(k => k !== 'module.exports').length === 1";
|
|
32
|
+
const FIXED_NAMESPACE_CHECK = "(Object.keys(n).filter(k => k !== 'module.exports').length === 1 || (typeof n['default'] === 'function' && Object.keys(n).every(k => k === 'default' || k === 'module.exports' || n[k] === n['default'][k]) && Object.keys(n).some(k => Object.getOwnPropertyDescriptor(n['default'], k)?.enumerable === false)))";
|
|
33
|
+
/**
|
|
34
|
+
* Fixes `@rollup/plugin-commonjs`' `'auto'` interop for Node >= 23, Deno and Bun by patching the
|
|
35
|
+
* broken namespace check in its helpers module. The patch applies only while the exact broken
|
|
36
|
+
* expression exists, so it retires itself once the plugin is fixed upstream.
|
|
37
|
+
*/
|
|
25
38
|
function sentryCommonJSInteropPlugin() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
return {
|
|
40
|
+
name: "sentry-commonjs-interop",
|
|
41
|
+
transform(code, id) {
|
|
42
|
+
if (id !== COMMONJS_HELPERS_ID || !code.includes(BROKEN_NAMESPACE_CHECK)) return null;
|
|
43
|
+
return {
|
|
44
|
+
code: code.replace(BROKEN_NAMESPACE_CHECK, FIXED_NAMESPACE_CHECK),
|
|
45
|
+
map: null
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
};
|
|
35
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Rollup plugin that runs the orchestrion code transform on the bundled output.
|
|
52
|
+
*
|
|
53
|
+
* Use when bundling a Node app with Rollup. For unbundled Node processes use the
|
|
54
|
+
* runtime hook instead (`node --import @sentry/node/orchestrion app.js`).
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* // rollup.config.js
|
|
59
|
+
* import { sentryOrchestrionPlugin } from '@sentry/server-utils/orchestrion/rollup';
|
|
60
|
+
* export default { plugins: [sentryOrchestrionPlugin()] };
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
36
63
|
function sentryOrchestrionPlugin(options = {}) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
const resolved = await this.resolve(source, importer, { ...options2, skipSelf: true });
|
|
62
|
-
if (resolved) {
|
|
63
|
-
return resolved;
|
|
64
|
-
}
|
|
65
|
-
return resolveOrchestrionRuntimeRequest(source) ?? null;
|
|
66
|
-
},
|
|
67
|
-
buildStart(rollupOptions) {
|
|
68
|
-
const externalizedModules = moduleNames.filter(
|
|
69
|
-
(name) => typeof rollupOptions.external === "function" ? rollupOptions.external(name, void 0, false) : rawExternal != null && rawExternalMatchesModule(rawExternal, name)
|
|
70
|
-
);
|
|
71
|
-
if (externalizedModules.length > 0) {
|
|
72
|
-
this.warn(externalizedModulesWarning(externalizedModules));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
};
|
|
64
|
+
if (options.buildTimeInstrumentation === false) return { name: "sentry-orchestrion-disabled" };
|
|
65
|
+
const moduleNames = instrumentedModuleNames(options.instrumentations);
|
|
66
|
+
let rawExternal;
|
|
67
|
+
return {
|
|
68
|
+
...codeTransformerRollup(orchestrionTransformOptions(options)),
|
|
69
|
+
options(inputOptions) {
|
|
70
|
+
rawExternal = inputOptions.external;
|
|
71
|
+
return null;
|
|
72
|
+
},
|
|
73
|
+
async resolveId(source, importer, options) {
|
|
74
|
+
if (source !== "@sentry/server-utils") return null;
|
|
75
|
+
const resolved = await this.resolve(source, importer, {
|
|
76
|
+
...options,
|
|
77
|
+
skipSelf: true
|
|
78
|
+
});
|
|
79
|
+
if (resolved) return resolved;
|
|
80
|
+
return resolveOrchestrionRuntimeRequest(source) ?? null;
|
|
81
|
+
},
|
|
82
|
+
buildStart(rollupOptions) {
|
|
83
|
+
const externalizedModules = moduleNames.filter((name) => typeof rollupOptions.external === "function" ? rollupOptions.external(name, void 0, false) : rawExternal != null && rawExternalMatchesModule(rawExternal, name));
|
|
84
|
+
if (externalizedModules.length > 0) this.warn(externalizedModulesWarning(externalizedModules));
|
|
85
|
+
}
|
|
86
|
+
};
|
|
76
87
|
}
|
|
77
|
-
|
|
78
88
|
export { commonJSInteropOptions, sentryCommonJSInteropPlugin, sentryOrchestrionPlugin };
|
|
79
|
-
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=rollup.js.map
|