@sentry/server-utils 11.11.0 → 11.13.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/LICENSE +31 -0
- package/build/THIRD-PARTY-LICENSES.txt +94 -94
- package/build/cjs/chunks/config.js +3388 -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 +7012 -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 +10882 -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 +10409 -158
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.no-diagnostic-channels.js +30 -49
- 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 +79 -70
- 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 -137
- package/build/esm/ai/anthropic-ai/streaming.js.map +1 -1
- package/build/esm/ai/anthropic-ai/tool-runner.js +103 -81
- package/build/esm/ai/anthropic-ai/tool-runner.js.map +1 -1
- package/build/esm/ai/anthropic-ai/utils.js +74 -47
- 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 -136
- 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 +15 -8
- package/build/esm/ai/google-genai/constants.js.map +1 -1
- package/build/esm/ai/google-genai/index.js +240 -249
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/google-genai/streaming.js +90 -64
- 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 +327 -292
- package/build/esm/ai/langchain/utils.js.map +1 -1
- package/build/esm/ai/langgraph/agent-span.js +83 -0
- package/build/esm/ai/langgraph/agent-span.js.map +1 -0
- 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 +119 -159
- package/build/esm/ai/langgraph/index.js.map +1 -1
- package/build/esm/ai/langgraph/stream.js +89 -0
- package/build/esm/ai/langgraph/stream.js.map +1 -0
- 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 +111 -113
- package/build/esm/ai/mistral/index.js.map +1 -1
- package/build/esm/ai/mistral/streaming.js +183 -186
- package/build/esm/ai/mistral/streaming.js.map +1 -1
- package/build/esm/ai/mistral/utils.js +67 -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 -152
- 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 +55 -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 +82 -78
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +136 -140
- 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 +82 -73
- package/build/esm/index.js.map +1 -1
- package/build/esm/index.no-diagnostic-channels.js +21 -19
- 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 -133
- 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 +320 -405
- 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 +90 -82
- 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 +4 -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 +117 -81
- 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 +69 -11
- package/build/esm/integrations/hono/matchResult.js.map +1 -1
- package/build/esm/integrations/hono/middlewareHandlers.js +89 -73
- package/build/esm/integrations/hono/middlewareHandlers.js.map +1 -1
- package/build/esm/integrations/hono/patchAppRequest.js +77 -66
- 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 -63
- package/build/esm/integrations/hono/patchRoute.js.map +1 -1
- package/build/esm/integrations/hono/resolveRouteName.js +21 -26
- package/build/esm/integrations/hono/resolveRouteName.js.map +1 -1
- package/build/esm/integrations/hono/sentryOriginalTraps.js +26 -0
- package/build/esm/integrations/hono/sentryOriginalTraps.js.map +1 -0
- package/build/esm/integrations/hono/wrapMiddlewareSpan.js +45 -46
- 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 -75
- 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 +73 -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 +53 -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 +36 -0
- package/build/esm/integrations/serveTunnel.js.map +1 -0
- 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 +510 -509
- 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 +118 -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 +78 -67
- 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 +50 -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 -21
- 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 +152 -125
- package/build/esm/utils/cronMonitoring.js.map +1 -1
- package/build/esm/utils/diagnosticsChannel.js +27 -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 +17 -0
- package/build/esm/utils/runtime.js.map +1 -0
- 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 +31 -0
- package/build/esm/utils/tunnelServer.js.map +1 -0
- package/build/esm/utils/withCleanScopes.js +17 -12
- package/build/esm/utils/withCleanScopes.js.map +1 -1
- package/build/esm/utils/wrapServerRequestHandler.js +180 -196
- 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/tool-runner.d.ts +1 -1
- package/build/types/ai/anthropic-ai/tool-runner.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/index.d.ts +4 -0
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/google-genai/streaming.d.ts +1 -1
- package/build/types/ai/google-genai/streaming.d.ts.map +1 -1
- package/build/types/ai/langchain/utils.d.ts +6 -0
- package/build/types/ai/langchain/utils.d.ts.map +1 -1
- package/build/types/ai/langgraph/agent-span.d.ts +15 -0
- package/build/types/ai/langgraph/agent-span.d.ts.map +1 -0
- package/build/types/ai/langgraph/index.d.ts +7 -1
- package/build/types/ai/langgraph/index.d.ts.map +1 -1
- package/build/types/ai/langgraph/stream.d.ts +10 -0
- package/build/types/ai/langgraph/stream.d.ts.map +1 -0
- package/build/types/ai/langgraph/types.d.ts +1 -0
- package/build/types/ai/langgraph/types.d.ts.map +1 -1
- package/build/types/ai/mastra/utils.d.ts +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/workers-ai/index.d.ts.map +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/exports.d.ts +1 -0
- package/build/types/exports.d.ts.map +1 -1
- package/build/types/index.d.ts +4 -1
- 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/aws-sdk/types.d.ts +2 -0
- package/build/types/integrations/aws-sdk/types.d.ts.map +1 -1
- package/build/types/integrations/flue.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/hono/constants.d.ts +1 -0
- package/build/types/integrations/hono/constants.d.ts.map +1 -1
- package/build/types/integrations/hono/createHonoMiddleware.d.ts +0 -1
- package/build/types/integrations/hono/createHonoMiddleware.d.ts.map +1 -1
- package/build/types/integrations/hono/honoIntegration.d.ts.map +1 -1
- package/build/types/integrations/hono/matchResult.d.ts +21 -4
- package/build/types/integrations/hono/matchResult.d.ts.map +1 -1
- package/build/types/integrations/hono/middlewareHandlers.d.ts +1 -2
- package/build/types/integrations/hono/middlewareHandlers.d.ts.map +1 -1
- package/build/types/integrations/hono/patchAppRequest.d.ts.map +1 -1
- package/build/types/integrations/hono/patchRoute.d.ts.map +1 -1
- package/build/types/integrations/hono/resolveRouteName.d.ts +4 -7
- package/build/types/integrations/hono/resolveRouteName.d.ts.map +1 -1
- package/build/types/integrations/hono/sentryOriginalTraps.d.ts +9 -0
- package/build/types/integrations/hono/sentryOriginalTraps.d.ts.map +1 -0
- package/build/types/integrations/hono/wrapMiddlewareSpan.d.ts.map +1 -1
- package/build/types/integrations/index.d.ts.map +1 -1
- package/build/types/integrations/langgraph.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/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/serveTunnel.d.ts +14 -0
- package/build/types/integrations/serveTunnel.d.ts.map +1 -0
- 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/channels.d.ts +4 -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/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/orchestrion/detect.d.ts.map +1 -1
- package/build/types/orchestrion/instrumentation.d.ts.map +1 -1
- package/build/types/utils/diagnosticsChannel.d.ts.map +1 -1
- package/build/types/utils/runtime.d.ts +7 -0
- package/build/types/utils/runtime.d.ts.map +1 -0
- package/build/types/utils/tunnelServer.d.ts +10 -0
- package/build/types/utils/tunnelServer.d.ts.map +1 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts +5 -0
- package/build/types/utils/wrapServerRequestHandler.d.ts.map +1 -1
- package/package.json +27 -27
- 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 -158
- package/build/cjs/ai/anthropic-ai/streaming.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/tool-runner.js +0 -100
- package/build/cjs/ai/anthropic-ai/tool-runner.js.map +0 -1
- package/build/cjs/ai/anthropic-ai/utils.js +0 -62
- 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 -143
- 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 -275
- package/build/cjs/ai/google-genai/index.js.map +0 -1
- package/build/cjs/ai/google-genai/streaming.js +0 -76
- 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 -354
- package/build/cjs/ai/langchain/utils.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 -174
- package/build/cjs/ai/langgraph/index.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 -163
- 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 -145
- 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 -424
- 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 -99
- 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 -6
- package/build/cjs/integrations/hono/constants.js.map +0 -1
- package/build/cjs/integrations/hono/createHonoMiddleware.js +0 -44
- 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 -18
- package/build/cjs/integrations/hono/matchResult.js.map +0 -1
- package/build/cjs/integrations/hono/middlewareHandlers.js +0 -91
- package/build/cjs/integrations/hono/middlewareHandlers.js.map +0 -1
- package/build/cjs/integrations/hono/patchAppRequest.js +0 -82
- 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 -73
- package/build/cjs/integrations/hono/patchRoute.js.map +0 -1
- package/build/cjs/integrations/hono/resolveRouteName.js +0 -31
- package/build/cjs/integrations/hono/resolveRouteName.js.map +0 -1
- package/build/cjs/integrations/hono/wrapMiddlewareSpan.js +0 -52
- 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 -87
- 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/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 -581
- 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 -29
- 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 -47
- 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/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/withCleanScopes.js +0 -17
- package/build/cjs/utils/withCleanScopes.js.map +0 -1
- package/build/cjs/utils/wrapServerRequestHandler.js +0 -209
- 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,49 +1,30 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.openTelemetryIntegration =
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.instrumentMistralAiClient = index$6.instrumentMistralAiClient;
|
|
32
|
-
exports.instrumentTypeSafeClient = index$8.instrumentTypeSafeClient;
|
|
33
|
-
exports.instrumentWorkersAiClient = index$9.instrumentWorkersAiClient;
|
|
34
|
-
exports.createLangChainCallbackHandler = index$2.createLangChainCallbackHandler;
|
|
35
|
-
exports.instrumentCreateReactAgent = index$4.instrumentCreateReactAgent;
|
|
36
|
-
exports.instrumentStateGraph = index$4.instrumentStateGraph;
|
|
37
|
-
exports.instrumentStateGraphCompile = index$4.instrumentStateGraphCompile;
|
|
38
|
-
exports.SentryMastraExporter = index.SentryMastraExporter;
|
|
39
|
-
exports.createFlueInstrumentation = index$1.createFlueInstrumentation;
|
|
40
|
-
exports.getSqlQueryAttributes = sql.getSqlQueryAttributes;
|
|
41
|
-
exports.getSqlQuerySummary = sql.getSqlQuerySummary;
|
|
42
|
-
exports.getSqlSpanName = sql.getSqlSpanName;
|
|
43
|
-
exports.sanitizeSqlQuery = sql.sanitizeSqlQuery;
|
|
44
|
-
exports.instrumentPostgresJsSql = postgresjsWrapper.instrumentPostgresJsSql;
|
|
45
|
-
exports.applyHonoPatches = applyPatches.applyHonoPatches;
|
|
46
|
-
exports.earlyPatchHono = applyPatches.earlyPatchHono;
|
|
47
|
-
exports.createHonoRequestMiddleware = createHonoMiddleware.createHonoRequestMiddleware;
|
|
48
|
-
exports.instrumentLangChainEmbeddings = embeddings.instrumentLangChainEmbeddings;
|
|
49
|
-
//# sourceMappingURL=index.no-diagnostic-channels.js.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_exports = require("./chunks/exports.js");
|
|
3
|
+
exports.SentryMastraExporter = require_exports.SentryMastraExporter;
|
|
4
|
+
exports.applyHonoPatches = require_exports.applyHonoPatches;
|
|
5
|
+
exports.createFlueInstrumentation = require_exports.createFlueInstrumentation;
|
|
6
|
+
exports.createHonoRequestMiddleware = require_exports.createHonoRequestMiddleware;
|
|
7
|
+
exports.createLangChainCallbackHandler = require_exports.createLangChainCallbackHandler;
|
|
8
|
+
exports.earlyPatchHono = require_exports.earlyPatchHono;
|
|
9
|
+
exports.getOtlpTracesEndpoint = require_exports.getOtlpTracesEndpoint;
|
|
10
|
+
exports.getSqlQueryAttributes = require_exports.getSqlQueryAttributes;
|
|
11
|
+
exports.getSqlQuerySummary = require_exports.getSqlQuerySummary;
|
|
12
|
+
exports.getSqlSpanName = require_exports.getSqlSpanName;
|
|
13
|
+
exports.instrumentAnthropicAiClient = require_exports.instrumentAnthropicAiClient;
|
|
14
|
+
exports.instrumentCreateReactAgent = require_exports.instrumentCreateReactAgent;
|
|
15
|
+
exports.instrumentGoogleGenAIClient = require_exports.instrumentGoogleGenAIClient;
|
|
16
|
+
exports.instrumentLangChainEmbeddings = require_exports.instrumentLangChainEmbeddings;
|
|
17
|
+
exports.instrumentMistralAiClient = require_exports.instrumentMistralAiClient;
|
|
18
|
+
exports.instrumentOpenAiClient = require_exports.instrumentOpenAiClient;
|
|
19
|
+
exports.instrumentPostgresJsSql = require_exports.instrumentPostgresJsSql;
|
|
20
|
+
exports.instrumentStateGraph = require_exports.instrumentStateGraph;
|
|
21
|
+
exports.instrumentStateGraphCompile = require_exports.instrumentStateGraphCompile;
|
|
22
|
+
exports.instrumentTypeSafeClient = require_exports.instrumentTypeSafeClient;
|
|
23
|
+
exports.instrumentWorkersAiClient = require_exports.instrumentWorkersAiClient;
|
|
24
|
+
exports.isBun = require_exports.isBun;
|
|
25
|
+
exports.isCloudflareWorkers = require_exports.isCloudflareWorkers;
|
|
26
|
+
exports.isDeno = require_exports.isDeno;
|
|
27
|
+
exports.openTelemetryIntegration = require_exports.openTelemetryIntegration;
|
|
28
|
+
exports.sanitizeSqlQuery = require_exports.sanitizeSqlQuery;
|
|
29
|
+
exports.setAsyncLocalStorageAsyncContextStrategy = require_exports.setAsyncLocalStorageAsyncContextStrategy;
|
|
30
|
+
exports.setHttpServerSpanRouteAttribute = require_exports.setHttpServerSpanRouteAttribute;
|
|
@@ -1,8 +1,241 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_debug_build = require("./chunks/debug-build.js");
|
|
3
|
+
let _sentry_conventions_attributes = require("@sentry/conventions/attributes");
|
|
4
|
+
let _sentry_core = require("@sentry/core");
|
|
5
|
+
let _sentry_conventions_op = require("@sentry/conventions/op");
|
|
6
|
+
let _sentry_core_server = require("@sentry/core/server");
|
|
7
|
+
// src/utils/monitorStream.ts
|
|
8
|
+
/**
|
|
9
|
+
* Monitor the source without reading ahead or treating cancellation as a source failure.
|
|
10
|
+
*
|
|
11
|
+
* `onDone` runs once, while the returned stream is still open: before it closes, before it errors,
|
|
12
|
+
* or when the consumer cancels it. A runtime can end the request when the response body closes
|
|
13
|
+
* (Cloudflare Workers then reject `waitUntil`), so work that `onDone` starts must begin first.
|
|
14
|
+
*/
|
|
15
|
+
function monitorStream(stream, onDone, onError) {
|
|
16
|
+
let reader;
|
|
17
|
+
let finished = false;
|
|
18
|
+
const finish = (error) => {
|
|
19
|
+
if (finished) return;
|
|
20
|
+
finished = true;
|
|
21
|
+
try {
|
|
22
|
+
if (error && !((0, _sentry_core.isError)(error.error) && error.error.name === "AbortError")) onError(error.error);
|
|
23
|
+
onDone();
|
|
24
|
+
} catch (e) {
|
|
25
|
+
require_debug_build.DEBUG_BUILD && _sentry_core.debug.error("Error when a monitored stream finished:", e);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return new ReadableStream({
|
|
29
|
+
start() {
|
|
30
|
+
reader = stream.getReader();
|
|
31
|
+
reader.closed.then(() => finish(), (error) => finish({ error }));
|
|
32
|
+
},
|
|
33
|
+
async pull(controller) {
|
|
34
|
+
try {
|
|
35
|
+
const { done, value } = await reader.read();
|
|
36
|
+
if (done) {
|
|
37
|
+
finish();
|
|
38
|
+
controller.close();
|
|
39
|
+
reader.releaseLock();
|
|
40
|
+
} else controller.enqueue(value);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
finish({ error });
|
|
43
|
+
controller.error(error);
|
|
44
|
+
reader.releaseLock();
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
async cancel(reason) {
|
|
48
|
+
finish();
|
|
49
|
+
try {
|
|
50
|
+
await reader.cancel(reason);
|
|
51
|
+
} finally {
|
|
52
|
+
reader.releaseLock();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}, { highWaterMark: 0 });
|
|
56
|
+
}
|
|
57
|
+
// src/utils/wrapServerRequestHandler.ts
|
|
58
|
+
/**
|
|
59
|
+
* Wraps a handler of a web `Request`, as used by `Deno.serve`, `Bun.serve` and Cloudflare Workers.
|
|
60
|
+
*
|
|
61
|
+
* It records the request session, attaches the request data and body, continues the incoming
|
|
62
|
+
* trace, creates the `http.server` span, and captures errors that the handler throws. The rules
|
|
63
|
+
* follow core's `node:http` server code:
|
|
64
|
+
*
|
|
65
|
+
* - `OPTIONS` and `HEAD` requests get no span and no body capture.
|
|
66
|
+
* - The static asset filter applies only to `GET`.
|
|
67
|
+
* - The span and the session of a streamed response end when the stream finishes.
|
|
68
|
+
*
|
|
69
|
+
* The handler can return no response, as Bun's `fetch` does after a WebSocket upgrade.
|
|
70
|
+
*/
|
|
71
|
+
async function wrapServerRequestHandler(config, handler) {
|
|
72
|
+
const { request, client, isolationScope, options, mechanism } = config;
|
|
73
|
+
const method = request.method.toUpperCase();
|
|
74
|
+
const captureError = (error) => {
|
|
75
|
+
if (mechanism) (0, _sentry_core.captureException)(error, { mechanism });
|
|
76
|
+
};
|
|
77
|
+
const socketAddress = config.getSocketAddress?.();
|
|
78
|
+
isolationScope.setSDKProcessingMetadata({
|
|
79
|
+
normalizedRequest: {
|
|
80
|
+
...(0, _sentry_core.winterCGRequestToRequestData)(request),
|
|
81
|
+
data: void 0
|
|
82
|
+
},
|
|
83
|
+
ipAddress: socketAddress?.address
|
|
84
|
+
});
|
|
85
|
+
isolationScope.setContext("response", null);
|
|
86
|
+
if ((0, _sentry_core_server._INTERNAL_isServedTunnelRequest)(request, client)) {
|
|
87
|
+
let response;
|
|
88
|
+
try {
|
|
89
|
+
response = await handler();
|
|
90
|
+
return response;
|
|
91
|
+
} catch (e) {
|
|
92
|
+
captureError(e);
|
|
93
|
+
throw e;
|
|
94
|
+
} finally {
|
|
95
|
+
config.onDone?.(response);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const endSession = options?.sessions ? (0, _sentry_core_server.startRequestSession)(client, {
|
|
99
|
+
requestIsolationScope: isolationScope,
|
|
100
|
+
sessionFlushingDelayMS: options.sessionFlushingDelayMS
|
|
101
|
+
}) : void 0;
|
|
102
|
+
const finish = (response) => {
|
|
103
|
+
endSession?.();
|
|
104
|
+
config.onDone?.(response);
|
|
105
|
+
};
|
|
106
|
+
const isStreamingResponse = (response) => {
|
|
107
|
+
const classification = config.isStreamingResponse?.(response);
|
|
108
|
+
return typeof classification === "boolean" ? classification : (0, _sentry_core_server.classifyResponseStreaming)(response).isStreaming;
|
|
109
|
+
};
|
|
110
|
+
if (method === "OPTIONS" || method === "HEAD") {
|
|
111
|
+
let response;
|
|
112
|
+
try {
|
|
113
|
+
response = await handler();
|
|
114
|
+
return response;
|
|
115
|
+
} catch (e) {
|
|
116
|
+
captureError(e);
|
|
117
|
+
throw e;
|
|
118
|
+
} finally {
|
|
119
|
+
finish(response);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const dataCollection = client.getDataCollectionOptions();
|
|
123
|
+
const effectiveBodySize = options?.maxRequestBodySize ?? (dataCollection.httpBodies.includes("incomingRequest") ? "medium" : "none");
|
|
124
|
+
const ignoreRequestBody = options?.ignoreRequestBody;
|
|
125
|
+
if (method !== "GET" && effectiveBodySize !== "none" && !(ignoreRequestBody && (0, _sentry_core.safeCallback)(require_debug_build.DEBUG_BUILD ? "Error in `ignoreRequestBody`, skipping the body:" : "", () => ignoreRequestBody(request.url, request), () => true))) await (0, _sentry_core.captureBodyFromWinterCGRequest)(request, isolationScope, effectiveBodySize);
|
|
126
|
+
const urlObject = (0, _sentry_core.parseStringToURLObject)(request.url);
|
|
127
|
+
const createSpan = shouldCreateSpan(client, options, request, urlObject ? `${urlObject.pathname}${urlObject.search}` : "/");
|
|
128
|
+
return (0, _sentry_core.continueTrace)({
|
|
129
|
+
sentryTrace: request.headers.get("sentry-trace") || "",
|
|
130
|
+
baggage: request.headers.get("baggage")
|
|
131
|
+
}, async () => {
|
|
132
|
+
config.onTraceContinued?.();
|
|
133
|
+
if (!createSpan) {
|
|
134
|
+
let response;
|
|
135
|
+
try {
|
|
136
|
+
response = await handler();
|
|
137
|
+
} catch (e) {
|
|
138
|
+
captureError(e);
|
|
139
|
+
finish(void 0);
|
|
140
|
+
throw e;
|
|
141
|
+
}
|
|
142
|
+
if (response) isolationScope.setContext("response", { status_code: response.status });
|
|
143
|
+
const inRequestScope = bindToRequestScope(isolationScope);
|
|
144
|
+
return onResponseDone(response, !!response && isStreamingResponse(response), inRequestScope(() => finish(response)), inRequestScope(captureError));
|
|
145
|
+
}
|
|
146
|
+
const [rawName, attributes] = (0, _sentry_core.getHttpSpanDetailsFromUrlObject)(urlObject, "server", config.origin, request, config.routeName, client);
|
|
147
|
+
const name = attributes[_sentry_conventions_attributes.SENTRY_SEGMENT_NAME_SOURCE] === "route" || !(0, _sentry_core.hasSpanStreamingEnabled)(client) ? rawName : method || _sentry_core.HTTP_SPAN_NAME_FALLBACK;
|
|
148
|
+
const contentLength = request.headers.get("content-length");
|
|
149
|
+
if (contentLength) attributes[_sentry_conventions_attributes.HTTP_REQUEST_BODY_SIZE] = parseInt(contentLength, 10);
|
|
150
|
+
const userAgent = request.headers.get("user-agent");
|
|
151
|
+
if (userAgent) attributes[_sentry_conventions_attributes.USER_AGENT_ORIGINAL] = userAgent;
|
|
152
|
+
const headers = (0, _sentry_core.winterCGHeadersToDict)(request.headers);
|
|
153
|
+
if (dataCollection.userInfo) {
|
|
154
|
+
const forwardedAddress = (0, _sentry_core_server.getClientIPAddress)(headers);
|
|
155
|
+
if (forwardedAddress) attributes[_sentry_conventions_attributes.CLIENT_ADDRESS] = forwardedAddress;
|
|
156
|
+
else if (socketAddress) {
|
|
157
|
+
attributes[_sentry_conventions_attributes.CLIENT_ADDRESS] = socketAddress.address;
|
|
158
|
+
if (socketAddress.port !== void 0) attributes[_sentry_conventions_attributes.CLIENT_PORT] = socketAddress.port;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
attributes[_sentry_conventions_attributes.NETWORK_PROTOCOL_NAME] = "http";
|
|
162
|
+
Object.assign(attributes, (0, _sentry_core.httpHeadersToSpanAttributes)(headers, dataCollection));
|
|
163
|
+
Object.assign(attributes, config.attributes);
|
|
164
|
+
attributes[_sentry_conventions_attributes.SENTRY_OP] = _sentry_conventions_op.HTTP_SERVER;
|
|
165
|
+
return (0, _sentry_core.startSpanManual)({
|
|
166
|
+
name,
|
|
167
|
+
attributes
|
|
168
|
+
}, async (span) => {
|
|
169
|
+
const { onSpanCreated, onSpanEnd } = options ?? {};
|
|
170
|
+
if (onSpanCreated) (0, _sentry_core.safeCallback)(require_debug_build.DEBUG_BUILD ? "Error in `onSpanCreated`:" : "", () => onSpanCreated(span, request), () => void 0);
|
|
171
|
+
let response;
|
|
172
|
+
try {
|
|
173
|
+
response = await handler();
|
|
174
|
+
} catch (e) {
|
|
175
|
+
span.setStatus({
|
|
176
|
+
code: _sentry_core.SPAN_STATUS_ERROR,
|
|
177
|
+
message: "internal_error"
|
|
178
|
+
});
|
|
179
|
+
span.end();
|
|
180
|
+
captureError(e);
|
|
181
|
+
finish(void 0);
|
|
182
|
+
throw e;
|
|
183
|
+
}
|
|
184
|
+
if (response) {
|
|
185
|
+
(0, _sentry_core.setHttpStatus)(span, response.status);
|
|
186
|
+
isolationScope.setContext("response", { status_code: response.status });
|
|
187
|
+
span.setAttributes((0, _sentry_core.httpHeadersToSpanAttributes)(responseHeadersToDict(response.headers), dataCollection, "response"));
|
|
188
|
+
}
|
|
189
|
+
const inRequestScope = bindToRequestScope(isolationScope);
|
|
190
|
+
return onResponseDone(response, !!response && isStreamingResponse(response), inRequestScope(() => {
|
|
191
|
+
if (onSpanEnd && response) (0, _sentry_core.safeCallback)(require_debug_build.DEBUG_BUILD ? "Error in `onSpanEnd`:" : "", () => onSpanEnd(span, request, response), () => void 0);
|
|
192
|
+
span.end();
|
|
193
|
+
finish(response);
|
|
194
|
+
}), inRequestScope((error) => {
|
|
195
|
+
span.setStatus({
|
|
196
|
+
code: _sentry_core.SPAN_STATUS_ERROR,
|
|
197
|
+
message: "internal_error"
|
|
198
|
+
});
|
|
199
|
+
captureError(error);
|
|
200
|
+
}));
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Returns a function that binds a callback to the request's isolation scope and the current scope.
|
|
206
|
+
*
|
|
207
|
+
* A streamed body finishes after the handler returns. Without `AsyncLocalStorage` (Cloudflare
|
|
208
|
+
* Workers without `nodejs_compat`), its callbacks then run outside the request's scopes, where
|
|
209
|
+
* `getClient()` finds no client: the segment span would be sent as a transaction, and a captured
|
|
210
|
+
* error would not update the request session.
|
|
211
|
+
*/
|
|
212
|
+
function bindToRequestScope(isolationScope) {
|
|
213
|
+
const scope = (0, _sentry_core.getCurrentScope)();
|
|
214
|
+
return (fn) => (...args) => (0, _sentry_core.withIsolationScope)(isolationScope, () => (0, _sentry_core.withScope)(scope, () => fn(...args)));
|
|
215
|
+
}
|
|
216
|
+
function shouldCreateSpan(client, options, request, urlPath) {
|
|
217
|
+
if (!(options?.spans ?? (0, _sentry_core.hasSpansEnabled)(client.getOptions()))) return false;
|
|
218
|
+
if (options?.ignoreStaticAssets && request.method.toUpperCase() === "GET" && (0, _sentry_core_server.isStaticAssetRequest)(urlPath)) return false;
|
|
219
|
+
const ignoreIncomingRequests = options?.ignoreIncomingRequests;
|
|
220
|
+
return !(ignoreIncomingRequests && (0, _sentry_core.safeCallback)(require_debug_build.DEBUG_BUILD ? "Error in `ignoreIncomingRequests`, creating the span:" : "", () => ignoreIncomingRequests(urlPath, request), () => false));
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Calls `onDone` when the response is done: at once, or when a streamed body finishes.
|
|
224
|
+
* Returns the response to send.
|
|
225
|
+
*/
|
|
226
|
+
function onResponseDone(response, isStreaming, onDone, onStreamError) {
|
|
227
|
+
if (isStreaming && response?.body && !response.body.locked) try {
|
|
228
|
+
return new Response(monitorStream(response.body, onDone, onStreamError), response);
|
|
229
|
+
} catch {}
|
|
230
|
+
onDone();
|
|
231
|
+
return response;
|
|
232
|
+
}
|
|
233
|
+
function responseHeadersToDict(headers) {
|
|
234
|
+
const dict = (0, _sentry_core.winterCGHeadersToDict)(headers);
|
|
235
|
+
const setCookie = typeof headers.getSetCookie === "function" ? headers.getSetCookie() : [];
|
|
236
|
+
if (setCookie.length) dict["set-cookie"] = setCookie;
|
|
237
|
+
return dict;
|
|
238
|
+
}
|
|
239
|
+
exports.wrapServerRequestHandler = wrapServerRequestHandler;
|
|
2
240
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.wrapServerRequestHandler = wrapServerRequestHandler.wrapServerRequestHandler;
|
|
8
|
-
//# sourceMappingURL=index.request-handler.js.map
|
|
241
|
+
//# sourceMappingURL=index.request-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.request-handler.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.request-handler.js","names":["isError","DEBUG_BUILD","debug","captureException","winterCGRequestToRequestData","isServedTunnelRequest","startRequestSession","classifyResponseStreaming","safeCallback","DEBUG_BUILD","captureBodyFromWinterCGRequest","parseStringToURLObject","continueTrace","getHttpSpanDetailsFromUrlObject","SENTRY_SEGMENT_NAME_SOURCE","hasSpanStreamingEnabled","HTTP_SPAN_NAME_FALLBACK","HTTP_REQUEST_BODY_SIZE","USER_AGENT_ORIGINAL","winterCGHeadersToDict","getClientIPAddress","CLIENT_ADDRESS","CLIENT_PORT","NETWORK_PROTOCOL_NAME","httpHeadersToSpanAttributes","SENTRY_OP","HTTP_SERVER","startSpanManual","SPAN_STATUS_ERROR","setHttpStatus","getCurrentScope","withIsolationScope","withScope","hasSpansEnabled","isStaticAssetRequest"],"sources":["../../src/utils/monitorStream.ts","../../src/utils/wrapServerRequestHandler.ts"],"sourcesContent":["import { debug, isError } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\n\n/**\n * Monitor the source without reading ahead or treating cancellation as a source failure.\n *\n * `onDone` runs once, while the returned stream is still open: before it closes, before it errors,\n * or when the consumer cancels it. A runtime can end the request when the response body closes\n * (Cloudflare Workers then reject `waitUntil`), so work that `onDone` starts must begin first.\n */\nexport function monitorStream(\n stream: ReadableStream<Uint8Array>,\n onDone: () => void,\n onError: (error: unknown) => void,\n): ReadableStream<Uint8Array> {\n let reader: ReadableStreamDefaultReader<Uint8Array>;\n let finished = false;\n const finish = (error?: { error: unknown }): void => {\n if (finished) {\n return;\n }\n finished = true;\n // A callback that throws must not fail the response body.\n try {\n // A source that stops on `request.signal` errors with an `AbortError` when the client\n // disconnects, which is a cancellation too.\n if (error && !(isError(error.error) && error.error.name === 'AbortError')) {\n onError(error.error);\n }\n onDone();\n } catch (e) {\n DEBUG_BUILD && debug.error('Error when a monitored stream finished:', e);\n }\n };\n\n return new ReadableStream<Uint8Array>(\n {\n // Locks the source only once the stream exists, so a constructor that throws leaves it usable.\n start() {\n reader = stream.getReader();\n // A source can fail while no one reads from it. A cancelled reader closes normally; only a\n // source failure should be captured as an error.\n void reader.closed.then(\n () => finish(),\n error => finish({ error }),\n );\n },\n async pull(controller) {\n try {\n const { done, value } = await reader.read();\n if (done) {\n finish();\n controller.close();\n reader.releaseLock();\n } else {\n controller.enqueue(value);\n }\n } catch (error) {\n finish({ error });\n controller.error(error);\n reader.releaseLock();\n }\n },\n async cancel(reason) {\n finish();\n try {\n await reader.cancel(reason);\n } finally {\n reader.releaseLock();\n }\n },\n },\n { highWaterMark: 0 },\n );\n}\n","import {\n CLIENT_ADDRESS,\n CLIENT_PORT,\n HTTP_REQUEST_BODY_SIZE,\n NETWORK_PROTOCOL_NAME,\n SENTRY_OP,\n SENTRY_SEGMENT_NAME_SOURCE,\n USER_AGENT_ORIGINAL,\n} from '@sentry/conventions/attributes';\nimport { HTTP_SERVER } from '@sentry/conventions/op';\nimport type { Client, Mechanism, Scope, SpanAttributes } from '@sentry/core';\nimport {\n captureBodyFromWinterCGRequest,\n captureException,\n continueTrace,\n getCurrentScope,\n getHttpSpanDetailsFromUrlObject,\n hasSpansEnabled,\n hasSpanStreamingEnabled,\n httpHeadersToSpanAttributes,\n HTTP_SPAN_NAME_FALLBACK,\n parseStringToURLObject,\n safeCallback,\n setHttpStatus,\n SPAN_STATUS_ERROR,\n startSpanManual,\n winterCGHeadersToDict,\n winterCGRequestToRequestData,\n withIsolationScope,\n withScope,\n} from '@sentry/core';\nimport type { ServerRequestOptions } from '@sentry/core/server';\nimport {\n _INTERNAL_isServedTunnelRequest as isServedTunnelRequest,\n classifyResponseStreaming,\n getClientIPAddress,\n isStaticAssetRequest,\n startRequestSession,\n} from '@sentry/core/server';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { monitorStream } from './monitorStream';\n\nexport interface ServerRequestHandlerConfig {\n request: Request;\n client: Client;\n /** The isolation scope of this request. */\n isolationScope: Scope;\n /** The options of the runtime's integration for incoming requests. */\n options: ServerRequestOptions<Request, Response> | undefined;\n /** Origin of the span, e.g. `auto.http.deno`. */\n origin: string;\n /** Mechanism of errors that the handler or the response stream throws. Omit to not capture them. */\n mechanism?: Mechanism;\n /** The address and port of the socket, if the runtime knows them. */\n getSocketAddress?: () => { address: string; port?: number } | undefined;\n /** The matched route of the server framework, e.g. `/users/:id`. Sets `http.route` and the span name. */\n routeName?: string;\n /** Span attributes that only the runtime knows, e.g. the route parameters. */\n attributes?: SpanAttributes;\n /**\n * Called in the scope of the continued trace, before the span starts. Lets the runtime continue\n * its own trace, e.g. the trace that Cloudflare exports for the invocation.\n */\n onTraceContinued?: () => void;\n /** Whether the response streams. Return `undefined` to use the default classification. */\n isStreamingResponse?: (response: Response) => boolean | undefined;\n /**\n * Called once when the request is done: when the response is returned, when a streamed body\n * finishes, or when the handler throws (then without a response).\n */\n onDone?: (response: Response | undefined) => void;\n}\n\n/**\n * Wraps a handler of a web `Request`, as used by `Deno.serve`, `Bun.serve` and Cloudflare Workers.\n *\n * It records the request session, attaches the request data and body, continues the incoming\n * trace, creates the `http.server` span, and captures errors that the handler throws. The rules\n * follow core's `node:http` server code:\n *\n * - `OPTIONS` and `HEAD` requests get no span and no body capture.\n * - The static asset filter applies only to `GET`.\n * - The span and the session of a streamed response end when the stream finishes.\n *\n * The handler can return no response, as Bun's `fetch` does after a WebSocket upgrade.\n */\nexport async function wrapServerRequestHandler<R extends Response | undefined = Response>(\n config: ServerRequestHandlerConfig,\n handler: () => R | Promise<R>,\n): Promise<R> {\n const { request, client, isolationScope, options, mechanism } = config;\n\n const method = request.method.toUpperCase();\n const captureError = (error: unknown): void => {\n if (mechanism) {\n captureException(error, { mechanism });\n }\n };\n\n const socketAddress = config.getSocketAddress?.();\n // Without `AsyncLocalStorage`, all requests share one isolation scope, so clear what an earlier\n // request left on it: the merge keeps its body, and its response context would stay set.\n isolationScope.setSDKProcessingMetadata({\n normalizedRequest: { ...winterCGRequestToRequestData(request), data: undefined },\n ipAddress: socketAddress?.address,\n });\n isolationScope.setContext('response', null);\n\n // Tunnel requests get no session, body or span, whether the SDK or the app answers them. The app answers them with\n // `intercept: false`, from its own code, so its errors are still captured.\n if (isServedTunnelRequest(request, client)) {\n let response: R | undefined;\n try {\n response = await handler();\n return response;\n } catch (e) {\n captureError(e);\n throw e;\n } finally {\n config.onDone?.(response);\n }\n }\n\n const endSession = options?.sessions\n ? startRequestSession(client, {\n requestIsolationScope: isolationScope,\n sessionFlushingDelayMS: options.sessionFlushingDelayMS,\n })\n : undefined;\n const finish = (response: Response | undefined): void => {\n endSession?.();\n config.onDone?.(response);\n };\n const isStreamingResponse = (response: Response): boolean => {\n const classification = config.isStreamingResponse?.(response);\n return typeof classification === 'boolean' ? classification : classifyResponseStreaming(response).isStreaming;\n };\n\n if (method === 'OPTIONS' || method === 'HEAD') {\n let response: R | undefined;\n try {\n response = await handler();\n return response;\n } catch (e) {\n captureError(e);\n throw e;\n } finally {\n finish(response);\n }\n }\n\n const dataCollection = client.getDataCollectionOptions();\n const effectiveBodySize =\n options?.maxRequestBodySize ?? (dataCollection.httpBodies.includes('incomingRequest') ? 'medium' : 'none');\n const ignoreRequestBody = options?.ignoreRequestBody;\n if (\n method !== 'GET' &&\n effectiveBodySize !== 'none' &&\n // If the filter throws, skip the body so it cannot leak data the filter was meant to hide.\n !(\n ignoreRequestBody &&\n safeCallback(\n DEBUG_BUILD ? 'Error in `ignoreRequestBody`, skipping the body:' : '',\n () => ignoreRequestBody(request.url, request),\n () => true,\n )\n )\n ) {\n await captureBodyFromWinterCGRequest(request, isolationScope, effectiveBodySize);\n }\n\n const urlObject = parseStringToURLObject(request.url);\n const urlPath = urlObject ? `${urlObject.pathname}${urlObject.search}` : '/';\n const createSpan = shouldCreateSpan(client, options, request, urlPath);\n\n return continueTrace(\n {\n sentryTrace: request.headers.get('sentry-trace') || '',\n baggage: request.headers.get('baggage'),\n },\n async () => {\n config.onTraceContinued?.();\n\n if (!createSpan) {\n let response: R;\n try {\n response = await handler();\n } catch (e) {\n captureError(e);\n finish(undefined);\n throw e;\n }\n if (response) {\n isolationScope.setContext('response', { status_code: response.status });\n }\n const inRequestScope = bindToRequestScope(isolationScope);\n return onResponseDone(\n response,\n !!response && isStreamingResponse(response),\n inRequestScope(() => finish(response)),\n inRequestScope(captureError),\n );\n }\n\n const [rawName, attributes] = getHttpSpanDetailsFromUrlObject(\n urlObject,\n 'server',\n config.origin,\n request,\n config.routeName,\n client,\n );\n // With span streaming, span names have to be low cardinality, so we can't fall back to the URL.\n // A `route` source means the name already is (e.g. the `/` path), so it is kept as-is.\n const name =\n attributes[SENTRY_SEGMENT_NAME_SOURCE] === 'route' || !hasSpanStreamingEnabled(client)\n ? rawName\n : method || HTTP_SPAN_NAME_FALLBACK;\n\n const contentLength = request.headers.get('content-length');\n if (contentLength) {\n attributes[HTTP_REQUEST_BODY_SIZE] = parseInt(contentLength, 10);\n }\n const userAgent = request.headers.get('user-agent');\n if (userAgent) {\n attributes[USER_AGENT_ORIGINAL] = userAgent;\n }\n\n const headers = winterCGHeadersToDict(request.headers);\n if (dataCollection.userInfo) {\n // `client.address` is the originating client, so a forwarding header wins over the socket, which\n // behind a proxy holds the proxy's address. The socket port is the proxy's too, so `client.port`\n // stays unset then.\n const forwardedAddress = getClientIPAddress(headers);\n if (forwardedAddress) {\n attributes[CLIENT_ADDRESS] = forwardedAddress;\n } else if (socketAddress) {\n attributes[CLIENT_ADDRESS] = socketAddress.address;\n if (socketAddress.port !== undefined) {\n attributes[CLIENT_PORT] = socketAddress.port;\n }\n }\n }\n\n // describes the OSI application-layer protocol (http), not the scheme (might be https)\n attributes[NETWORK_PROTOCOL_NAME] = 'http';\n Object.assign(attributes, httpHeadersToSpanAttributes(headers, dataCollection));\n Object.assign(attributes, config.attributes);\n attributes[SENTRY_OP] = HTTP_SERVER;\n\n return startSpanManual({ name, attributes }, async span => {\n const { onSpanCreated, onSpanEnd } = options ?? {};\n if (onSpanCreated) {\n safeCallback(\n DEBUG_BUILD ? 'Error in `onSpanCreated`:' : '',\n () => onSpanCreated(span, request),\n () => undefined,\n );\n }\n\n let response: R;\n try {\n response = await handler();\n } catch (e) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n span.end();\n captureError(e);\n finish(undefined);\n throw e;\n }\n\n if (response) {\n setHttpStatus(span, response.status);\n isolationScope.setContext('response', { status_code: response.status });\n span.setAttributes(\n httpHeadersToSpanAttributes(responseHeadersToDict(response.headers), dataCollection, 'response'),\n );\n }\n\n const inRequestScope = bindToRequestScope(isolationScope);\n return onResponseDone(\n response,\n !!response && isStreamingResponse(response),\n inRequestScope(() => {\n if (onSpanEnd && response) {\n safeCallback(\n DEBUG_BUILD ? 'Error in `onSpanEnd`:' : '',\n () => onSpanEnd(span, request, response),\n () => undefined,\n );\n }\n span.end();\n finish(response);\n }),\n inRequestScope((error: unknown) => {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n captureError(error);\n }),\n );\n });\n },\n );\n}\n\n/**\n * Returns a function that binds a callback to the request's isolation scope and the current scope.\n *\n * A streamed body finishes after the handler returns. Without `AsyncLocalStorage` (Cloudflare\n * Workers without `nodejs_compat`), its callbacks then run outside the request's scopes, where\n * `getClient()` finds no client: the segment span would be sent as a transaction, and a captured\n * error would not update the request session.\n */\nfunction bindToRequestScope(\n isolationScope: Scope,\n): <A extends unknown[]>(fn: (...args: A) => void) => (...args: A) => void {\n const scope = getCurrentScope();\n return fn =>\n (...args) =>\n withIsolationScope(isolationScope, () => withScope(scope, () => fn(...args)));\n}\n\nfunction shouldCreateSpan(\n client: Client,\n options: ServerRequestOptions<Request, Response> | undefined,\n request: Request,\n urlPath: string,\n): boolean {\n if (!(options?.spans ?? hasSpansEnabled(client.getOptions()))) {\n return false;\n }\n if (options?.ignoreStaticAssets && request.method.toUpperCase() === 'GET' && isStaticAssetRequest(urlPath)) {\n return false;\n }\n const ignoreIncomingRequests = options?.ignoreIncomingRequests;\n return !(\n ignoreIncomingRequests &&\n safeCallback(\n DEBUG_BUILD ? 'Error in `ignoreIncomingRequests`, creating the span:' : '',\n () => ignoreIncomingRequests(urlPath, request),\n () => false,\n )\n );\n}\n\n/**\n * Calls `onDone` when the response is done: at once, or when a streamed body finishes.\n * Returns the response to send.\n */\nfunction onResponseDone<R extends Response | undefined>(\n response: R,\n isStreaming: boolean,\n onDone: () => void,\n onStreamError: (error: unknown) => void,\n): R {\n if (isStreaming && response?.body && !response.body.locked) {\n try {\n // Passing the original response as the init keeps its status, status text and headers, and\n // on Cloudflare also `encodeBody: 'manual'`, so workerd does not compress a compressed body again.\n return new Response(monitorStream(response.body, onDone, onStreamError), response) as R;\n } catch {\n // Workers with a compatibility date before 2022-11-30 and without the\n // `streams_enable_constructors` flag cannot construct a `ReadableStream`, so end at once.\n }\n }\n onDone();\n return response;\n}\n\n// `Headers.forEach` lists each `Set-Cookie` header on its own, so a plain dict keeps only the last one.\nfunction responseHeadersToDict(headers: Headers): Record<string, string | string[]> {\n const dict: Record<string, string | string[]> = winterCGHeadersToDict(headers);\n const setCookie = typeof headers.getSetCookie === 'function' ? headers.getSetCookie() : [];\n if (setCookie.length) {\n dict['set-cookie'] = setCookie;\n }\n return dict;\n}\n"],"mappings":";;;;;;;;;;;;;;AAUA,SAAgB,cACd,QACA,QACA,SAC4B;CAC5B,IAAI;CACJ,IAAI,WAAW;CACf,MAAM,UAAU,UAAqC;EACnD,IAAI,UACF;EAEF,WAAW;EAEX,IAAI;GAGF,IAAI,SAAS,GAAA,GAAEA,aAAAA,QAAAA,CAAQ,MAAM,KAAK,KAAK,MAAM,MAAM,SAAS,eAC1D,QAAQ,MAAM,KAAK;GAErB,OAAO;EACT,SAAS,GAAG;GACVC,oBAAAA,eAAeC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
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_core_BiWIBBjf = require("../../chunks/core-BiWIBBjf.js");
|
|
3
|
+
const require_config = require("../../chunks/config.js");
|
|
4
|
+
const require_moduleInjectedTransform = require("../../chunks/moduleInjectedTransform.js");
|
|
5
|
+
const require_options = require("../../chunks/options.js");
|
|
6
|
+
let node_fs = require("node:fs");
|
|
7
|
+
// ../../node_modules/.pnpm/@apm-js-collab+code-transformer-bundler-plugins@0.7.6_esbuild@0.28.1_rollup@4.68.3_vite_ba2d60d9522bfc1375bd8d747d2e3205/node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.mjs
|
|
8
|
+
function loaderForPath(path) {
|
|
9
|
+
if (path.endsWith(".tsx")) return "tsx";
|
|
10
|
+
if (path.endsWith(".jsx")) return "jsx";
|
|
11
|
+
if (path.endsWith(".ts") || path.endsWith(".cts") || path.endsWith(".mts")) return "ts";
|
|
12
|
+
return "js";
|
|
13
|
+
}
|
|
14
|
+
function buildFilter(options) {
|
|
15
|
+
const names = Array.from(new Set(options.instrumentations.map((i) => i.module.name))).map((n) => n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
16
|
+
if (names.length === 0) return /(?!)/;
|
|
17
|
+
const alt = names.join("|");
|
|
18
|
+
return new RegExp(`node_modules[/\\\\](?:${alt})[/\\\\].*\\.(?:cjs|mjs|cts|mts|tsx|jsx|ts|js)$`);
|
|
19
|
+
}
|
|
20
|
+
function codeTransformerBun(options) {
|
|
21
|
+
const filter = buildFilter(options);
|
|
22
|
+
return {
|
|
23
|
+
name: "code-transformer",
|
|
24
|
+
setup(build) {
|
|
25
|
+
let transformer = require_core_BiWIBBjf.createCodeTransformer(options);
|
|
26
|
+
const bunBuild = build;
|
|
27
|
+
if (typeof build.onStart === "function") build.onStart(() => {
|
|
28
|
+
transformer = require_core_BiWIBBjf.createCodeTransformer(options);
|
|
29
|
+
});
|
|
30
|
+
build.onLoad({
|
|
31
|
+
filter,
|
|
32
|
+
namespace: "file"
|
|
33
|
+
}, (args) => {
|
|
34
|
+
const contents = (0, node_fs.readFileSync)(args.path, "utf8");
|
|
35
|
+
const result = transformer.transform(contents, args.path);
|
|
36
|
+
const loader = loaderForPath(args.path);
|
|
37
|
+
return {
|
|
38
|
+
contents: result ? result.code : contents,
|
|
39
|
+
loader
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
if (!options.injectDiagnostics) return;
|
|
43
|
+
if (typeof bunBuild.onEnd !== "function") {
|
|
44
|
+
console.warn("'injectDiagnostics' is not supported when the plugin is registered at runtime via 'Bun.plugin()' because there is no bundle to inject into. Use it with 'Bun.build()'.");
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (!bunBuild.config?.outdir) {
|
|
48
|
+
console.warn("'injectDiagnostics' requires an 'outdir' in the 'Bun.build()' config because in-memory build outputs cannot be modified.");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
bunBuild.onEnd((result) => {
|
|
52
|
+
if (!result.success) return;
|
|
53
|
+
const injectCode = transformer.getCodeToInject();
|
|
54
|
+
if (!injectCode) return;
|
|
55
|
+
for (const artifact of result.outputs) {
|
|
56
|
+
if (artifact.kind !== "entry-point" || !require_core_BiWIBBjf.isJsFile(artifact.path)) continue;
|
|
57
|
+
const code = (0, node_fs.readFileSync)(artifact.path, "utf8");
|
|
58
|
+
(0, node_fs.writeFileSync)(artifact.path, injectCode + code);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
// src/orchestrion/bundler/bun.ts
|
|
65
|
+
/**
|
|
66
|
+
* Sentry orchestrion code-transform plugin for Bun's bundler (`bun build`), exposed to users via the
|
|
67
|
+
* `@sentry/bun/plugin` subpath (which re-exports this as `sentryBunPlugin`).
|
|
68
|
+
*
|
|
69
|
+
* This is BUILD-ONLY. Runtime instrumentation (`bun run`) is intentionally not offered: a module
|
|
70
|
+
* returned by a runtime `onLoad` plugin in Bun loses its CommonJS named exports. When
|
|
71
|
+
* https://github.com/oven-sh/bun/pull/31770 lands, we can revisit. Until then, Bun apps must bundle
|
|
72
|
+
* to get build-time instrumentation; in dev (`bun run`) there is simply no instrumentation, which is
|
|
73
|
+
* clearer than partial/inconsistent coverage.
|
|
74
|
+
*
|
|
75
|
+
* The plugin injects `diagnostics_channel.tracingChannel` calls into the instrumented libraries as
|
|
76
|
+
* `bun build` bundles them — plus, via the module-injected transform, the snippet that records each
|
|
77
|
+
* module on `globalThis.__SENTRY_ORCHESTRION__` when it is evaluated — and injects the marker banner
|
|
78
|
+
* so `bundler` is set (to an empty `Set`) from boot, which gates the SDK's channel-integration setup
|
|
79
|
+
* at `init()`.
|
|
80
|
+
*/
|
|
81
|
+
function sentryOrchestrionPlugin(options = {}) {
|
|
82
|
+
if (options.buildTimeInstrumentation === false) return {
|
|
83
|
+
name: "sentry-orchestrion-disabled",
|
|
84
|
+
setup: () => void 0
|
|
85
|
+
};
|
|
86
|
+
const transformer = codeTransformerBun(require_options.orchestrionTransformOptions(options, { injectDiagnostics: false }));
|
|
87
|
+
const moduleNames = require_config.instrumentedModuleNames(options.instrumentations);
|
|
88
|
+
return {
|
|
89
|
+
name: "sentry-orchestrion",
|
|
90
|
+
setup(build) {
|
|
91
|
+
if (build.config) {
|
|
92
|
+
const existing = build.config.banner ?? "";
|
|
93
|
+
build.config.banner = existing ? `${existing}\n${require_moduleInjectedTransform.ORCHESTRION_BUNDLER_MARKER_BANNER}` : require_moduleInjectedTransform.ORCHESTRION_BUNDLER_MARKER_BANNER;
|
|
94
|
+
build.config.external = require_config.withoutInstrumentedExternals(build.config.external, moduleNames);
|
|
95
|
+
const blanketExternal = build.config.packages === "external" ? "packages: 'external'" : build.config.external?.includes("*") ? "'*' in external" : void 0;
|
|
96
|
+
if (blanketExternal) console.warn(`[Sentry] This Bun build externalizes all dependencies (${blanketExternal}), so Sentry cannot instrument bundled libraries. Instrumentation will be missing for any of these packages your app uses: ${moduleNames.join(", ")}. To instrument them, externalize only the specific packages you need external instead of all of them.`);
|
|
97
|
+
}
|
|
98
|
+
transformer.setup(build);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
34
101
|
}
|
|
35
|
-
|
|
36
102
|
exports.sentryOrchestrionPlugin = sentryOrchestrionPlugin;
|
|
37
|
-
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=bun.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun.js","sources":["../../../../src/orchestrion/bundler/bun.ts"],"sourcesContent":["import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/bun';\nimport { instrumentedModuleNames, withoutInstrumentedExternals } from '../config';\nimport { ORCHESTRION_BUNDLER_MARKER_BANNER } from './moduleInjectedTransform';\nimport type { PluginOptions } from './options';\nimport { orchestrionTransformOptions } from './options';\n\n// oxlint-disable-next-line typescript/no-explicit-any\ntype UnknownPlugin = any;\n\n// Minimal shape of Bun's `PluginBuilder` that we touch. Typed locally instead\n// of depending on `bun-types`, which would pull Bun's globals into this build.\ninterface BunPluginBuilder {\n config?: { banner?: string; external?: string[]; packages?: 'bundle' | 'external' };\n}\n\n/**\n * Sentry orchestrion code-transform plugin for Bun's bundler (`bun build`), exposed to users via the\n * `@sentry/bun/plugin` subpath (which re-exports this as `sentryBunPlugin`).\n *\n * This is BUILD-ONLY. Runtime instrumentation (`bun run`) is intentionally not offered: a module\n * returned by a runtime `onLoad` plugin in Bun loses its CommonJS named exports. When\n * https://github.com/oven-sh/bun/pull/31770 lands, we can revisit. Until then, Bun apps must bundle\n * to get build-time instrumentation; in dev (`bun run`) there is simply no instrumentation, which is\n * clearer than partial/inconsistent coverage.\n *\n * The plugin injects `diagnostics_channel.tracingChannel` calls into the instrumented libraries as\n * `bun build` bundles them — plus, via the module-injected transform, the snippet that records each\n * module on `globalThis.__SENTRY_ORCHESTRION__` when it is evaluated — and injects the marker banner\n * so `bundler` is set (to an empty `Set`) from boot, which gates the SDK's channel-integration setup\n * at `init()`.\n */\nexport function sentryOrchestrionPlugin(options: PluginOptions = {}): UnknownPlugin {\n if (options.buildTimeInstrumentation === false) {\n // Inert plugin — no banner, no force-bundling, no code transform — so SDKs that\n // unconditionally push it into their plugin array can still opt out.\n return { name: 'sentry-orchestrion-disabled', setup: () => undefined };\n }\n\n // Route through the shared assembly point so any future option reaches Bun too, but opt out of\n // the transformer's own `injectDiagnostics` — Bun injects the marker banner via its native\n // `banner` config below (which, unlike the upstream path, needs no `outdir`).\n //\n // Typed upstream as an esbuild `Plugin`, but Bun passes its own `PluginBuilder` (which has the\n // `onLoad` the transform uses) to `setup`. Cast to the Bun-compatible shape so we can forward\n // Bun's builder to its `setup`.\n const transformer = codeTransformer(\n orchestrionTransformOptions(options, { injectDiagnostics: false }),\n ) as unknown as {\n setup: (build: BunPluginBuilder) => void;\n };\n\n // Custom `instrumentations` must be bundled too, otherwise those packages can stay externalized\n // and their transform never runs, so fold them into the names we un-externalize and warn about.\n const moduleNames = instrumentedModuleNames(options.instrumentations);\n\n return {\n name: 'sentry-orchestrion',\n setup(build: BunPluginBuilder): void {\n // Inject the marker banner via Bun's native `banner` config (unlike the upstream\n // `injectDiagnostics` path, it needs no `outdir`). `config` is the `Bun.build` config and is\n // present when this plugin is passed to `Bun.build({ plugins: [...] })`.\n if (build.config) {\n const existing = build.config.banner ?? '';\n build.config.banner = existing\n ? `${existing}\\n${ORCHESTRION_BUNDLER_MARKER_BANNER}`\n : ORCHESTRION_BUNDLER_MARKER_BANNER;\n\n // Force-bundle every instrumented package. An externalized dependency is resolved from\n // `node_modules` at runtime and never passes through the transform's `onLoad`, so its\n // diagnostics_channel calls would be silently never injected. Bun has no runtime fallback\n // here, so bundling is the only injection path.\n build.config.external = withoutInstrumentedExternals(build.config.external, moduleNames);\n\n // A blanket externalization strategy like `packages: 'external'` or `'*'` in `external`\n // externalizes instrumented packages too, and `withoutInstrumentedExternals` only strips\n // exact names/subpaths (not these), so those packages ship un-transformed with no runtime\n // fallback. Forcing them back in via `onResolve` is not an option: Bun ignores\n // `{ external: false }` against a blanket strategy, and returning a resolved `path` corrupts\n // the package's ESM/CJS interop. So warn instead. This runs in the user's build script,\n // where the Sentry debug logger isn't enabled, and `console` is the thing to use.\n const blanketExternal =\n build.config.packages === 'external'\n ? \"packages: 'external'\"\n : build.config.external?.includes('*')\n ? \"'*' in external\"\n : undefined;\n if (blanketExternal) {\n // oxlint-disable-next-line no-console\n console.warn(\n `[Sentry] This Bun build externalizes all dependencies (${blanketExternal}), so Sentry ` +\n 'cannot instrument bundled libraries. Instrumentation will be missing for any of ' +\n `these packages your app uses: ${moduleNames.join(', ')}. To instrument them, ` +\n 'externalize only the specific packages you need external instead of all of them.',\n );\n }\n }\n\n // Delegate to the upstream code-transformer, which registers the `onLoad` hook that does the\n // actual channel injection.\n transformer.setup(build);\n },\n };\n}\n"],"names":["options","codeTransformer","orchestrionTransformOptions","instrumentedModuleNames","ORCHESTRION_BUNDLER_MARKER_BANNER","withoutInstrumentedExternals"],"mappings":";;;;;;;AA+BO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAwBA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA,CAAA,CAAA,CAAyB,EAAC,CAAA,CAAkB;AAClF,CAAA,CAAA,IAAIA,CAAAA,CAAAA,CAAAA,CAAAA,CA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AAY,CAAA,CAAA,CAAA,CAAA,EAAM,KAAK,CAAA;AAAA,CAAA,CAAA,CAAA,CACzB;AAAA,CAAA,CAAA,CACF;AACF;;"}
|
|
1
|
+
{"version":3,"file":"bun.js","names":["createCodeTransformer","readFileSync","isJsFile","writeFileSync","codeTransformer","orchestrionTransformOptions","instrumentedModuleNames","ORCHESTRION_BUNDLER_MARKER_BANNER","withoutInstrumentedExternals"],"sources":["../../../../../../node_modules/.pnpm/@apm-js-collab+code-transformer-bundler-plugins@0.7.6_esbuild@0.28.1_rollup@4.68.3_vite_ba2d60d9522bfc1375bd8d747d2e3205/node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/esm/bun.mjs","../../../../src/orchestrion/bundler/bun.ts"],"sourcesContent":["import { i as isJsFile, r as createCodeTransformer } from \"./core-BiWIBBjf.mjs\";\nimport { readFileSync, writeFileSync } from \"node:fs\";\n//#region src/bun.ts\nfunction loaderForPath(path) {\n\tif (path.endsWith(\".tsx\")) return \"tsx\";\n\tif (path.endsWith(\".jsx\")) return \"jsx\";\n\tif (path.endsWith(\".ts\") || path.endsWith(\".cts\") || path.endsWith(\".mts\")) return \"ts\";\n\treturn \"js\";\n}\nfunction buildFilter(options) {\n\tconst names = Array.from(new Set(options.instrumentations.map((i) => i.module.name))).map((n) => n.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\"));\n\tif (names.length === 0) return /(?!)/;\n\tconst alt = names.join(\"|\");\n\treturn new RegExp(`node_modules[/\\\\\\\\](?:${alt})[/\\\\\\\\].*\\\\.(?:cjs|mjs|cts|mts|tsx|jsx|ts|js)$`);\n}\nfunction codeTransformerBun(options) {\n\tconst filter = buildFilter(options);\n\treturn {\n\t\tname: \"code-transformer\",\n\t\tsetup(build) {\n\t\t\tlet transformer = createCodeTransformer(options);\n\t\t\tconst bunBuild = build;\n\t\t\tif (typeof build.onStart === \"function\") build.onStart(() => {\n\t\t\t\ttransformer = createCodeTransformer(options);\n\t\t\t});\n\t\t\tbuild.onLoad({\n\t\t\t\tfilter,\n\t\t\t\tnamespace: \"file\"\n\t\t\t}, (args) => {\n\t\t\t\tconst contents = readFileSync(args.path, \"utf8\");\n\t\t\t\tconst result = transformer.transform(contents, args.path);\n\t\t\t\tconst loader = loaderForPath(args.path);\n\t\t\t\treturn {\n\t\t\t\t\tcontents: result ? result.code : contents,\n\t\t\t\t\tloader\n\t\t\t\t};\n\t\t\t});\n\t\t\tif (!options.injectDiagnostics) return;\n\t\t\tif (typeof bunBuild.onEnd !== \"function\") {\n\t\t\t\tconsole.warn(\"'injectDiagnostics' is not supported when the plugin is registered at runtime via 'Bun.plugin()' because there is no bundle to inject into. Use it with 'Bun.build()'.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!bunBuild.config?.outdir) {\n\t\t\t\tconsole.warn(\"'injectDiagnostics' requires an 'outdir' in the 'Bun.build()' config because in-memory build outputs cannot be modified.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tbunBuild.onEnd((result) => {\n\t\t\t\tif (!result.success) return;\n\t\t\t\tconst injectCode = transformer.getCodeToInject();\n\t\t\t\tif (!injectCode) return;\n\t\t\t\tfor (const artifact of result.outputs) {\n\t\t\t\t\tif (artifact.kind !== \"entry-point\" || !isJsFile(artifact.path)) continue;\n\t\t\t\t\tconst code = readFileSync(artifact.path, \"utf8\");\n\t\t\t\t\twriteFileSync(artifact.path, injectCode + code);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n}\n//#endregion\nexport { codeTransformerBun as default };\n\n//# sourceMappingURL=bun.mjs.map","import codeTransformer from '@apm-js-collab/code-transformer-bundler-plugins/bun';\nimport { instrumentedModuleNames, withoutInstrumentedExternals } from '../config';\nimport { ORCHESTRION_BUNDLER_MARKER_BANNER } from './moduleInjectedTransform';\nimport type { PluginOptions } from './options';\nimport { orchestrionTransformOptions } from './options';\n\n// oxlint-disable-next-line typescript/no-explicit-any\ntype UnknownPlugin = any;\n\n// Minimal shape of Bun's `PluginBuilder` that we touch. Typed locally instead\n// of depending on `bun-types`, which would pull Bun's globals into this build.\ninterface BunPluginBuilder {\n config?: { banner?: string; external?: string[]; packages?: 'bundle' | 'external' };\n}\n\n/**\n * Sentry orchestrion code-transform plugin for Bun's bundler (`bun build`), exposed to users via the\n * `@sentry/bun/plugin` subpath (which re-exports this as `sentryBunPlugin`).\n *\n * This is BUILD-ONLY. Runtime instrumentation (`bun run`) is intentionally not offered: a module\n * returned by a runtime `onLoad` plugin in Bun loses its CommonJS named exports. When\n * https://github.com/oven-sh/bun/pull/31770 lands, we can revisit. Until then, Bun apps must bundle\n * to get build-time instrumentation; in dev (`bun run`) there is simply no instrumentation, which is\n * clearer than partial/inconsistent coverage.\n *\n * The plugin injects `diagnostics_channel.tracingChannel` calls into the instrumented libraries as\n * `bun build` bundles them — plus, via the module-injected transform, the snippet that records each\n * module on `globalThis.__SENTRY_ORCHESTRION__` when it is evaluated — and injects the marker banner\n * so `bundler` is set (to an empty `Set`) from boot, which gates the SDK's channel-integration setup\n * at `init()`.\n */\nexport function sentryOrchestrionPlugin(options: PluginOptions = {}): UnknownPlugin {\n if (options.buildTimeInstrumentation === false) {\n // Inert plugin — no banner, no force-bundling, no code transform — so SDKs that\n // unconditionally push it into their plugin array can still opt out.\n return { name: 'sentry-orchestrion-disabled', setup: () => undefined };\n }\n\n // Route through the shared assembly point so any future option reaches Bun too, but opt out of\n // the transformer's own `injectDiagnostics` — Bun injects the marker banner via its native\n // `banner` config below (which, unlike the upstream path, needs no `outdir`).\n //\n // Typed upstream as an esbuild `Plugin`, but Bun passes its own `PluginBuilder` (which has the\n // `onLoad` the transform uses) to `setup`. Cast to the Bun-compatible shape so we can forward\n // Bun's builder to its `setup`.\n const transformer = codeTransformer(\n orchestrionTransformOptions(options, { injectDiagnostics: false }),\n ) as unknown as {\n setup: (build: BunPluginBuilder) => void;\n };\n\n // Custom `instrumentations` must be bundled too, otherwise those packages can stay externalized\n // and their transform never runs, so fold them into the names we un-externalize and warn about.\n const moduleNames = instrumentedModuleNames(options.instrumentations);\n\n return {\n name: 'sentry-orchestrion',\n setup(build: BunPluginBuilder): void {\n // Inject the marker banner via Bun's native `banner` config (unlike the upstream\n // `injectDiagnostics` path, it needs no `outdir`). `config` is the `Bun.build` config and is\n // present when this plugin is passed to `Bun.build({ plugins: [...] })`.\n if (build.config) {\n const existing = build.config.banner ?? '';\n build.config.banner = existing\n ? `${existing}\\n${ORCHESTRION_BUNDLER_MARKER_BANNER}`\n : ORCHESTRION_BUNDLER_MARKER_BANNER;\n\n // Force-bundle every instrumented package. An externalized dependency is resolved from\n // `node_modules` at runtime and never passes through the transform's `onLoad`, so its\n // diagnostics_channel calls would be silently never injected. Bun has no runtime fallback\n // here, so bundling is the only injection path.\n build.config.external = withoutInstrumentedExternals(build.config.external, moduleNames);\n\n // A blanket externalization strategy like `packages: 'external'` or `'*'` in `external`\n // externalizes instrumented packages too, and `withoutInstrumentedExternals` only strips\n // exact names/subpaths (not these), so those packages ship un-transformed with no runtime\n // fallback. Forcing them back in via `onResolve` is not an option: Bun ignores\n // `{ external: false }` against a blanket strategy, and returning a resolved `path` corrupts\n // the package's ESM/CJS interop. So warn instead. This runs in the user's build script,\n // where the Sentry debug logger isn't enabled, and `console` is the thing to use.\n const blanketExternal =\n build.config.packages === 'external'\n ? \"packages: 'external'\"\n : build.config.external?.includes('*')\n ? \"'*' in external\"\n : undefined;\n if (blanketExternal) {\n // oxlint-disable-next-line no-console\n console.warn(\n `[Sentry] This Bun build externalizes all dependencies (${blanketExternal}), so Sentry ` +\n 'cannot instrument bundled libraries. Instrumentation will be missing for any of ' +\n `these packages your app uses: ${moduleNames.join(', ')}. To instrument them, ` +\n 'externalize only the specific packages you need external instead of all of them.',\n );\n }\n }\n\n // Delegate to the upstream code-transformer, which registers the `onLoad` hook that does the\n // actual channel injection.\n transformer.setup(build);\n },\n };\n}\n"],"ignoreList":[0],"mappings":";;;;;;;AAGA,SAAS,cAAc,MAAM;CAC5B,IAAI,KAAK,SAAS,MA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