@sentry/server-utils 11.20.0 → 11.21.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.
Files changed (40) hide show
  1. package/build/cjs/chunks/config.js +28 -0
  2. package/build/cjs/chunks/config.js.map +1 -1
  3. package/build/cjs/chunks/exports.js +6 -0
  4. package/build/cjs/index.js +328 -0
  5. package/build/cjs/index.js.map +1 -1
  6. package/build/esm/ai/tanstack-ai/constants.js +11 -0
  7. package/build/esm/ai/tanstack-ai/constants.js.map +1 -0
  8. package/build/esm/ai/tanstack-ai/index.js +206 -0
  9. package/build/esm/ai/tanstack-ai/index.js.map +1 -0
  10. package/build/esm/ai/tanstack-ai/utils.js +81 -0
  11. package/build/esm/ai/tanstack-ai/utils.js.map +1 -0
  12. package/build/esm/index.js +2 -1
  13. package/build/esm/index.js.map +1 -1
  14. package/build/esm/integrations/tanstack-ai.js +59 -0
  15. package/build/esm/integrations/tanstack-ai.js.map +1 -0
  16. package/build/esm/orchestrion/channels.js +2 -0
  17. package/build/esm/orchestrion/channels.js.map +1 -1
  18. package/build/esm/orchestrion/config/index.js +2 -0
  19. package/build/esm/orchestrion/config/index.js.map +1 -1
  20. package/build/esm/orchestrion/config/tanstack-ai.js +19 -0
  21. package/build/esm/orchestrion/config/tanstack-ai.js.map +1 -0
  22. package/build/esm/package.json +1 -1
  23. package/build/types/ai/tanstack-ai/constants.d.ts +8 -0
  24. package/build/types/ai/tanstack-ai/constants.d.ts.map +1 -0
  25. package/build/types/ai/tanstack-ai/index.d.ts +18 -0
  26. package/build/types/ai/tanstack-ai/index.d.ts.map +1 -0
  27. package/build/types/ai/tanstack-ai/types.d.ts +127 -0
  28. package/build/types/ai/tanstack-ai/types.d.ts.map +1 -0
  29. package/build/types/ai/tanstack-ai/utils.d.ts +21 -0
  30. package/build/types/ai/tanstack-ai/utils.d.ts.map +1 -0
  31. package/build/types/index.d.ts +2 -0
  32. package/build/types/index.d.ts.map +1 -1
  33. package/build/types/integrations/tanstack-ai.d.ts +18 -0
  34. package/build/types/integrations/tanstack-ai.d.ts.map +1 -0
  35. package/build/types/orchestrion/channels.d.ts +1 -0
  36. package/build/types/orchestrion/channels.d.ts.map +1 -1
  37. package/build/types/orchestrion/config/index.d.ts.map +1 -1
  38. package/build/types/orchestrion/config/tanstack-ai.d.ts +17 -0
  39. package/build/types/orchestrion/config/tanstack-ai.d.ts.map +1 -0
  40. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":["getModuleNames","module","getModuleNames","getModuleNames","METHODS","getModuleNames","getModuleNames","module","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","getModuleNames","MODULE_NAME","getModuleNames","getModuleNames","module","getModuleNames","getModuleNames","registrationOnly","getModuleNames","module","getModuleNames","getModuleNames","getModuleNames","module","getModuleNames","module","registrationOnly","getModuleNames","registrationOnly","getModuleNames","getModuleNames","module","getModuleNames","registrationOnly","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","MODULE_NAME","VERSION_RANGE","getModuleNames","registrationOnly","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","piAiConfig","uniq"],"sources":["../../../src/orchestrion/config/aws-sdk.ts","../../../src/orchestrion/config/amqplib.ts","../../../src/orchestrion/config/anthropic-ai.ts","../../../src/orchestrion/config/clickhouse.ts","../../../src/orchestrion/config/cron.ts","../../../src/orchestrion/config/dataloader.ts","../../../src/orchestrion/config/express.ts","../../../src/orchestrion/config/firebase.ts","../../../src/orchestrion/config/generic-pool.ts","../../../src/orchestrion/config/google-genai.ts","../../../src/orchestrion/config/graphql.ts","../../../src/orchestrion/config/openai-compatible.ts","../../../src/orchestrion/config/groq.ts","../../../src/orchestrion/config/hapi.ts","../../../src/orchestrion/config/hono.ts","../../../src/orchestrion/config/ioredis.ts","../../../src/orchestrion/config/kafkajs.ts","../../../src/orchestrion/config/knex.ts","../../../src/orchestrion/config/koa.ts","../../../src/orchestrion/config/langchain.ts","../../../src/orchestrion/config/langgraph.ts","../../../src/orchestrion/config/lru-memoizer.ts","../../../src/orchestrion/config/flue.ts","../../../src/orchestrion/config/mastra.ts","../../../src/orchestrion/config/pi-durable.ts","../../../src/orchestrion/config/mcp-server.ts","../../../src/orchestrion/config/mistral.ts","../../../src/orchestrion/config/mongodb.ts","../../../src/orchestrion/config/mongoose.ts","../../../src/orchestrion/config/mysql2.ts","../../../src/orchestrion/config/mysql.ts","../../../src/orchestrion/config/neon.ts","../../../src/orchestrion/config/nestjs.ts","../../../src/orchestrion/config/nitro.ts","../../../src/orchestrion/config/node-cron.ts","../../../src/orchestrion/config/node-schedule.ts","../../../src/orchestrion/config/openai.ts","../../../src/orchestrion/config/pg.ts","../../../src/orchestrion/config/postgres.ts","../../../src/orchestrion/config/prisma.ts","../../../src/orchestrion/config/redis.ts","../../../src/orchestrion/config/remix.ts","../../../src/orchestrion/config/remix-v3.ts","../../../src/orchestrion/config/tedious.ts","../../../src/orchestrion/config/together-ai.ts","../../../src/orchestrion/config/typesafe.ts","../../../src/orchestrion/config/vercel-ai.ts","../../../src/orchestrion/config/index.ts"],"sourcesContent":["import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// The AWS SDK (v3) routes every command through the smithy `Client.prototype.send` method. Which\n// package hosts that `Client` class changed across versions, so we target all of them; only the one\n// the app's client actually extends is ever invoked.\n//\n// - `@smithy/core` >= 3.24.0: the `Client` class moved into the `client` submodule bundle.\n// - `@smithy/smithy-client`: the `Client` class for aws-sdk v3.363.0+ (pre-`@smithy/core` stack).\n// - `@aws-sdk/smithy-client`: the `Client` class for older aws-sdk v3 releases.\n//\n// `send` is `async send(command, options)` (returns a promise), so `kind: 'Async'`.\nexport const awsSdkConfig = [\n {\n channelName: 'send',\n module: { name: '@smithy/core', versionRange: '>=3.24.0 <4', filePath: 'dist-cjs/submodules/client/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@smithy/smithy-client', versionRange: '>=1.0.3 <5', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@aws-sdk/smithy-client', versionRange: '^3.1.0', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const awsSdkModuleNames = getModuleNames(awsSdkConfig);\n\nexport const awsSdkChannels = {\n AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send',\n AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send',\n AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `amqplib` splits its API across these files:\n// - `lib/channel_model.js` (promise API) and `lib/callback_model.js` (callback API) each hold a\n// `class Channel` (publish/consume/ack/nack/reject/…) and a `class ConfirmChannel extends Channel`\n// (a `publish` that takes a broker-confirm callback). The method signatures match, so both files\n// publish to the same channels.\n// - `lib/channel.js` holds `class BaseChannel` whose `dispatchMessage` invokes the registered\n// consumer callback once per delivered message — the natural per-message hook for consumer spans\n// (`Channel.consume` itself only registers the callback, it isn't called per message).\n// - `lib/connect.js` holds the `connect` function whose callback receives the open connection, used\n// to capture connection attributes.\n//\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'amqplib', versionRange: '>=0.5.5 <3' } as const;\n\nexport const amqplibConfig = [\n ...['lib/channel_model.js', 'lib/callback_model.js'].flatMap((filePath): InstrumentationConfig[] => [\n // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.\n {\n channelName: 'publish',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'publish', kind: 'Sync' },\n },\n // Confirm-channel producer span; the trailing broker-confirm callback ends the span when the\n // broker acks/nacks. It internally calls the base `publish`, so the subscriber skips that nested call.\n {\n channelName: 'confirmPublish',\n module: { ...module, filePath },\n functionQuery: { className: 'ConfirmChannel', methodName: 'publish', kind: 'Callback' },\n },\n // `consume` knows the queue and `noAck`, and `registerConsumer` knows the tag. Together they tell the\n // dispatch hook how to name the consumer span and when to end it. `Sync`, because the callback API\n // returns the channel and only a synchronous throw leaves the channel open.\n {\n channelName: 'consume',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'consume', kind: 'Sync' },\n },\n // End the consumer span when the user settles the message.\n {\n channelName: 'ack',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'ack', kind: 'Sync' },\n },\n {\n channelName: 'nack',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'nack', kind: 'Sync' },\n },\n {\n channelName: 'reject',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'reject', kind: 'Sync' },\n },\n {\n channelName: 'ackAll',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'ackAll', kind: 'Sync' },\n },\n {\n channelName: 'nackAll',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'nackAll', kind: 'Sync' },\n },\n ]),\n {\n channelName: 'registerConsumer',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'registerConsumer', kind: 'Sync' },\n },\n // Per delivered message: creates the consumer span and runs the user callback under it.\n {\n channelName: 'dispatch',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'dispatchMessage', kind: 'Sync' },\n },\n // Stashes connection attributes (url/host/port/protocol/server product) on the connection object\n // for span-time reads via `channel.connection`.\n {\n channelName: 'connect',\n module: { ...module, filePath: 'lib/connect.js' },\n functionQuery: { functionName: 'connect', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const amqplibModuleNames = getModuleNames(amqplibConfig);\n\nexport const amqplibChannels = {\n AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish',\n AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish',\n AMQPLIB_CONSUME: 'orchestrion:amqplib:consume',\n AMQPLIB_REGISTER_CONSUMER: 'orchestrion:amqplib:registerConsumer',\n AMQPLIB_DISPATCH: 'orchestrion:amqplib:dispatch',\n AMQPLIB_ACK: 'orchestrion:amqplib:ack',\n AMQPLIB_NACK: 'orchestrion:amqplib:nack',\n AMQPLIB_REJECT: 'orchestrion:amqplib:reject',\n AMQPLIB_ACK_ALL: 'orchestrion:amqplib:ackAll',\n AMQPLIB_NACK_ALL: 'orchestrion:amqplib:nackAll',\n AMQPLIB_CONNECT: 'orchestrion:amqplib:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const anthropicAiConfig = [\n // One entry each for CJS/ESM\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n })),\n // Removed in 1.0.\n ...['resources/completions.js', 'resources/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n })),\n // `messages.stream()` returns a synchronous emitter, not a promise, so `kind: 'Sync'` is required:\n // `Auto`'s promise wrapper never publishes `end` for a non-thenable return, so the span would never end.\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'messages-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'stream', kind: 'Sync' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'tool-runner',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.63.0 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'toolRunner', kind: 'Sync' as const },\n })),\n // The constructor, not `sessions.events.toolRunner()`, so runners built directly (e.g. by `EnvironmentWorker`) are covered.\n ...['lib/tools/SessionToolRunner.js', 'lib/tools/SessionToolRunner.mjs'].map(filePath => ({\n channelName: 'session-tool-runner',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.97.0 <2', filePath },\n functionQuery: { className: 'SessionToolRunner' },\n })),\n // Thread and tool-runner streams parse the response of their `create()` call themselves, so the chat channel\n // never sees that stream.\n ...['lib/BetaMessageStream.js', 'lib/BetaMessageStream.mjs'].map(filePath => ({\n channelName: 'thread-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=1.2.0 <2', filePath },\n functionQuery: { className: 'BetaMessageStream', methodName: '_start', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const anthropicAiModuleNames = getModuleNames(anthropicAiConfig);\n\nexport const anthropicAiChannels = {\n ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat',\n ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream',\n ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner',\n ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner',\n ANTHROPIC_THREAD_STREAM: 'orchestrion:@anthropic-ai/sdk:thread-stream',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `ClickHouseClient` sends every statement through four `async` methods: `query`, `command`, `exec`\n// and `insert`. None of them calls another, so each call is traced as exactly one db span. `ping`\n// and `close` carry no statement and are left alone.\n//\n// Two file layouts across the supported range:\n// - `< 1.23.0` → the class lives in the separate `@clickhouse/client-common` package (`dist/client.js`)\n// - `>= 1.23.0` → `@clickhouse/client` and `@clickhouse/client-web` each ship that code in\n// `dist/common/client.js`\n//\n// Starts at 1.1.0: before it, `command` delegated to `exec` (two spans per command) and the client\n// did not keep the `connectionParams` the span attributes are read from.\n//\n// The Node.js `NodeClickHouseClient` subclass only forwards `query` to `super`, and its class name\n// doesn't match `className`, so it doesn't add a second span.\nconst METHODS = ['query', 'command', 'exec', 'insert'] as const;\n\nconst MODULES = [\n { name: '@clickhouse/client-common', versionRange: '>=1.1.0 <1.23.0', filePath: 'dist/client.js' },\n { name: '@clickhouse/client', versionRange: '>=1.23.0 <2', filePath: 'dist/common/client.js' },\n { name: '@clickhouse/client-web', versionRange: '>=1.23.0 <2', filePath: 'dist/common/client.js' },\n];\n\nexport const clickhouseConfig: InstrumentationConfig[] = MODULES.flatMap(module =>\n METHODS.map(methodName => ({\n channelName: methodName,\n module,\n functionQuery: { className: 'ClickHouseClient', methodName, kind: 'Async' as const },\n })),\n);\n\nexport const clickhouseModuleNames = getModuleNames(clickhouseConfig);\n\nexport const clickhouseChannels = {\n CLICKHOUSE_QUERY: 'orchestrion:@clickhouse/client:query',\n CLICKHOUSE_COMMAND: 'orchestrion:@clickhouse/client:command',\n CLICKHOUSE_EXEC: 'orchestrion:@clickhouse/client:exec',\n CLICKHOUSE_INSERT: 'orchestrion:@clickhouse/client:insert',\n CLICKHOUSE_WEB_QUERY: 'orchestrion:@clickhouse/client-web:query',\n CLICKHOUSE_WEB_COMMAND: 'orchestrion:@clickhouse/client-web:command',\n CLICKHOUSE_WEB_EXEC: 'orchestrion:@clickhouse/client-web:exec',\n CLICKHOUSE_WEB_INSERT: 'orchestrion:@clickhouse/client-web:insert',\n CLICKHOUSE_COMMON_QUERY: 'orchestrion:@clickhouse/client-common:query',\n CLICKHOUSE_COMMON_COMMAND: 'orchestrion:@clickhouse/client-common:command',\n CLICKHOUSE_COMMON_EXEC: 'orchestrion:@clickhouse/client-common:exec',\n CLICKHOUSE_COMMON_INSERT: 'orchestrion:@clickhouse/client-common:insert',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `CronJob.from()` calls the constructor. Job names were added in 4.3.0.\nexport const cronConfig = [\n {\n channelName: 'cronJobConstructor',\n module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n functionQuery: { className: 'CronJob' },\n },\n {\n channelName: 'cronJobSetTime',\n module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n functionQuery: { className: 'CronJob', methodName: 'setTime', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const cronModuleNames = getModuleNames(cronConfig);\n\nexport const cronChannels = {\n CRON_JOB_CONSTRUCTOR: 'orchestrion:cron:cronJobConstructor',\n CRON_JOB_SET_TIME: 'orchestrion:cron:cronJobSetTime',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// `dataloader` ships a single transpiled CommonJS `index.js`. Its class methods are emitted as\n// `_proto.<name> = function <name>() {}` (named function *expressions*), so they match on\n// `expressionName` rather than `methodName`. The constructor is a named function declaration.\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'dataloader', versionRange: '>=2.0.0 <3', filePath: 'index.js' } as const;\n\nexport const dataloaderConfig = [\n // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span\n // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the\n // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.\n {\n channelName: 'construct',\n module,\n functionQuery: { functionName: 'DataLoader', kind: 'Sync' },\n },\n // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the\n // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the\n // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.\n {\n channelName: 'load',\n module,\n functionQuery: { expressionName: 'load', kind: 'Async' },\n },\n {\n channelName: 'loadMany',\n module,\n functionQuery: { expressionName: 'loadMany', kind: 'Async' },\n },\n {\n channelName: 'prime',\n module,\n functionQuery: { expressionName: 'prime', kind: 'Sync' },\n },\n {\n channelName: 'clear',\n module,\n functionQuery: { expressionName: 'clear', kind: 'Sync' },\n },\n {\n channelName: 'clearAll',\n module,\n functionQuery: { expressionName: 'clearAll', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const dataloaderChannels = {\n DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct',\n DATALOADER_LOAD: 'orchestrion:dataloader:load',\n DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany',\n DATALOADER_PRIME: 'orchestrion:dataloader:prime',\n DATALOADER_CLEAR: 'orchestrion:dataloader:clear',\n DATALOADER_CLEAR_ALL: 'orchestrion:dataloader:clearAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const expressConfig = [\n // Express funnels every middleware/route handler through a single method on\n // its routing `Layer`, so instrumenting that one method covers the whole\n // request pipeline. The `expressIntegration` opens one span per layer\n // invocation. Both are `Layer.prototype.<method> = function <fn>(req, res, next)`\n // prototype assignments (not `class` methods), so `expressionName` (matching\n // the assignment's `left.property.name`) is used. `Callback`: the handler's\n // last argument is `next`, so the transform ends the traced operation when\n // `next` is invoked (and publishes `error` when it's called with an error).\n //\n // Express v4 ships its own router in `express/lib/router/layer.js`.\n {\n channelName: 'handle',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/layer.js' },\n // v4's method is `Layer.prototype.handle_request = function handle(...)` —\n // match the assigned property name, not the function name.\n functionQuery: { expressionName: 'handle_request', kind: 'Callback' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'handle',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'lib/layer.js' },\n functionQuery: { expressionName: 'handleRequest', kind: 'Callback' },\n },\n // Layer *registration* methods. `Router.prototype.route`/`.use` are called\n // once per registered route/middleware (including internally by `app.get`/\n // `app.use`), so subscribing here lets us record each layer's registered path\n // *pattern* — which the handler path (`req.baseUrl`) can't recover for\n // parameterized mounts. `Sync`: these return synchronously and, unlike a\n // handler, `use`'s trailing function argument is a registration payload, not a\n // callback — so `Callback` would misclassify it and never fire `end`.\n //\n // `route` and `use` share one `register` channel because the subscriber handles\n // them identically, saving a channel per module.\n //\n // Express v4 ships its own router in `express/lib/router/index.js`.\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const expressModuleNames = getModuleNames(expressConfig);\n\nexport const expressChannels = {\n // Express v4 runs each layer's handler through `Layer.prototype.handle_request`\n // in the `express` module.\n EXPRESS_HANDLE: 'orchestrion:express:handle',\n // Express v5 delegates routing to the standalone `router` package, where the\n // equivalent method is `Layer.prototype.handleRequest`.\n ROUTER_HANDLE: 'orchestrion:router:handle',\n // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each\n // layer's registered path pattern so the matched route can be reconstructed\n // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).\n EXPRESS_REGISTER: 'orchestrion:express:register',\n ROUTER_REGISTER: 'orchestrion:router:register',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// firebase 9+ ships firestore as `@firebase/firestore` (matches the OTel integration's range). Only the\n// `lite` SDK exposes the free `addDoc`/`getDocs`/`setDoc`/`deleteDoc` functions we trace, and only the\n// `node` entry points (CJS `require`, ESM `import`) are reachable from `@sentry/node`; the\n// browser/react-native builds are irrelevant here. `addDoc` & co. are top-level `function <name>`\n// declarations, so `functionName` matches; they return promises, so `Auto` settles the span on\n// `asyncEnd`. firebase <12.8 declares them in `index.node.{cjs.js,mjs}`; firebase >=12.8 (firestore\n// >=4.10) moved them into a hash-named shared chunk `common-<hash>.node.{cjs.js,mjs}` — the RegExp\n// matches both, so injection keeps working across the version range without pinning a build hash.\nconst FIRESTORE_VERSION_RANGE = '>=3.0.0 <5';\nconst FIRESTORE_FILE = /dist\\/lite\\/(index|common-[^/]+)\\.node\\.(cjs\\.js|mjs)$/;\nconst FIRESTORE_OPERATIONS = [\n { functionName: 'addDoc', channelName: 'add-doc' },\n { functionName: 'getDocs', channelName: 'get-docs' },\n { functionName: 'setDoc', channelName: 'set-doc' },\n { functionName: 'deleteDoc', channelName: 'delete-doc' },\n] as const;\n\n// firebase-functions v2 (CJS-only). The `onX` provider functions *register* a handler and return a\n// synchronous cloud function, so `Sync` is required — the span itself is opened later, when the handler\n// runs, by rewrapping the handler argument in the channel's `start` (see `./firebase/functions`). One\n// channel per faas trigger so the subscriber knows the trigger type without inspecting arguments.\nconst FUNCTIONS_VERSION_RANGE = '>=6.0.0 <7';\nconst FUNCTIONS_TRIGGERS = [\n { file: 'lib/v2/providers/https.js', functionName: 'onRequest', channelName: 'http-request' },\n { file: 'lib/v2/providers/https.js', functionName: 'onCall', channelName: 'http-call' },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentCreated', channelName: 'firestore-created' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentCreatedWithAuthContext',\n channelName: 'firestore-created',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentUpdated', channelName: 'firestore-updated' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentUpdatedWithAuthContext',\n channelName: 'firestore-updated',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentDeleted', channelName: 'firestore-deleted' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentDeletedWithAuthContext',\n channelName: 'firestore-deleted',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentWritten', channelName: 'firestore-written' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentWrittenWithAuthContext',\n channelName: 'firestore-written',\n },\n { file: 'lib/v2/providers/scheduler.js', functionName: 'onSchedule', channelName: 'scheduler' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectFinalized', channelName: 'storage-finalized' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectArchived', channelName: 'storage-archived' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectDeleted', channelName: 'storage-deleted' },\n {\n file: 'lib/v2/providers/storage.js',\n functionName: 'onObjectMetadataUpdated',\n channelName: 'storage-metadata-updated',\n },\n] as const;\n\nexport const firebaseConfig = [\n ...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({\n channelName,\n module: { name: '@firebase/firestore', versionRange: FIRESTORE_VERSION_RANGE, filePath: FIRESTORE_FILE },\n functionQuery: { functionName, kind: 'Auto' as const },\n })),\n ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({\n channelName,\n module: { name: 'firebase-functions', versionRange: FUNCTIONS_VERSION_RANGE, filePath: file },\n functionQuery: { functionName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const firebaseModuleNames = getModuleNames(firebaseConfig);\n\nexport const firebaseChannels = {\n FIREBASE_FIRESTORE_ADD_DOC: 'orchestrion:@firebase/firestore:add-doc',\n FIREBASE_FIRESTORE_GET_DOCS: 'orchestrion:@firebase/firestore:get-docs',\n FIREBASE_FIRESTORE_SET_DOC: 'orchestrion:@firebase/firestore:set-doc',\n FIREBASE_FIRESTORE_DELETE_DOC: 'orchestrion:@firebase/firestore:delete-doc',\n FIREBASE_FUNCTIONS_HTTP_REQUEST: 'orchestrion:firebase-functions:http-request',\n FIREBASE_FUNCTIONS_HTTP_CALL: 'orchestrion:firebase-functions:http-call',\n FIREBASE_FUNCTIONS_FIRESTORE_CREATED: 'orchestrion:firebase-functions:firestore-created',\n FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: 'orchestrion:firebase-functions:firestore-updated',\n FIREBASE_FUNCTIONS_FIRESTORE_DELETED: 'orchestrion:firebase-functions:firestore-deleted',\n FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: 'orchestrion:firebase-functions:firestore-written',\n FIREBASE_FUNCTIONS_SCHEDULER: 'orchestrion:firebase-functions:scheduler',\n FIREBASE_FUNCTIONS_STORAGE_FINALIZED: 'orchestrion:firebase-functions:storage-finalized',\n FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: 'orchestrion:firebase-functions:storage-archived',\n FIREBASE_FUNCTIONS_STORAGE_DELETED: 'orchestrion:firebase-functions:storage-deleted',\n FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: 'orchestrion:firebase-functions:storage-metadata-updated',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// Two shapes of `acquire`, both publishing to the same `orchestrion:generic-pool:acquire` channel:\n// - v3+: `class Pool { acquire(priority) }` returns a promise, so `kind: 'Auto'` resolves to `wrapPromise`.\n// - v2.4–v3: `Pool.prototype.acquire = function acquire(callback, priority)` is callback-based.\n// Versions before 2.4 assigned an anonymous `acquire` per pool instance (a factory), which a static\n// transform can't target, so they're out of scope (matching how the OTel instrumentation split them).\nexport const genericPoolConfig = [\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=3.0.0 <4', filePath: 'lib/Pool.js' },\n functionQuery: { className: 'Pool', methodName: 'acquire', kind: 'Auto' },\n },\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=2.4.0 <3', filePath: 'lib/generic-pool.js' },\n functionQuery: { expressionName: 'acquire', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const genericPoolModuleNames = getModuleNames(genericPoolConfig);\n\nexport const genericPoolChannels = {\n GENERIC_POOL_ACQUIRE: 'orchestrion:generic-pool:acquire',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@google/genai` ships one bundled file per module format and the matcher compares `filePath` exactly,\n// so we list every file the `node` export condition resolves to across the supported range: `index.js`\n// (ESM+CJS for <0.15.0, CJS for <1.1.0), `index.mjs` (ESM for >=0.15.0), and `index.cjs` (CJS for >=1.1.0).\n// A file that doesn't exist in a given version simply never matches, so listing all three is safe.\nconst NODE_DIST_FILES = ['dist/node/index.js', 'dist/node/index.mjs', 'dist/node/index.cjs'];\n\nexport const googleGenAiConfig = [\n // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class\n // methods, so they need `expressionName` rather than `className`/`methodName`.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['generateContent', 'generateContentStream'] as const).map(expressionName => ({\n channelName: 'generate-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { expressionName, kind: 'Auto' as const },\n })),\n ),\n // `embedContent` is a real class method in v1 but a constructor-assigned arrow in v2; the\n // `className`/`methodName` selector matches both shapes.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'embed-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { className: 'Models', methodName: 'embedContent', kind: 'Auto' as const },\n })),\n // `sendMessage`/`sendMessageStream` internally delegate to `Models.generateContent(Stream)`; the\n // subscriber suppresses that nested `generate-content` event so a chat call yields a single span.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['sendMessage', 'sendMessageStream'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { className: 'Chat', methodName, kind: 'Auto' as const },\n })),\n ),\n // `client.decisions` (`@google/genai` >= 3.2.0) returns typed answers rather than generated content.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'decide',\n module: { name: '@google/genai', versionRange: '>=3.2.0 <4', filePath },\n functionQuery: { className: 'GeminiNextGenDecisions', methodName: 'create', kind: 'Async' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const googleGenAiModuleNames = getModuleNames(googleGenAiConfig);\n\nexport const googleGenAiChannels = {\n GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content',\n GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content',\n GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat',\n GOOGLE_GENAI_DECIDE: 'orchestrion:@google/genai:decide',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `parse`/`validate`/`execute` are top-level named `function` declarations in graphql's compiled\n// files, stable across the supported majors, so `functionName` matches. `execute` returns\n// `PromiseOrValue`, so `Auto` covers both async (settles on `asyncEnd`) and sync (`end`) schemas.\n// graphql ships dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built\n// file (`.js` for `require`, `.mjs` for `import`) — a bundler resolving the ESM build (e.g. webpack\n// with `outputModule`) would otherwise never be transformed.\nexport const graphqlConfig = [\n ...['language/parser.js', 'language/parser.mjs'].map(filePath => ({\n channelName: 'parse',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'parse', kind: 'Sync' as const },\n })),\n ...['validation/validate.js', 'validation/validate.mjs'].map(filePath => ({\n channelName: 'validate',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'validate', kind: 'Sync' as const },\n })),\n ...['execution/execute.js', 'execution/execute.mjs'].map(filePath => ({\n channelName: 'execute',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'execute', kind: 'Auto' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const graphqlChannels = {\n GRAPHQL_PARSE: 'orchestrion:graphql:parse',\n GRAPHQL_VALIDATE: 'orchestrion:graphql:validate',\n GRAPHQL_EXECUTE: 'orchestrion:graphql:execute',\n} as const;\n\nexport const graphqlModuleNames = getModuleNames(graphqlConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Many providers (Groq, Together, ...) ship a Stainless-generated SDK that mirrors the classic `openai`\n * file layout: `resources/chat/completions.{js,mjs}` (class `Completions`) and\n * `resources/embeddings.{js,mjs}` (class `Embeddings`), each with a `create(body, options)` that returns\n * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.\n * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These\n * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.\n * `classNames` covers SDKs that moved `create` onto a base class while keeping this layout.\n *\n * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all\n * reused from `ai/openai`; only the module name, channels and `gen_ai.provider.name` differ per provider.\n */\nexport function openAiCompatibleConfig(\n module: { name: string; versionRange: string },\n classNames = { chat: 'Completions', embeddings: 'Embeddings' },\n): InstrumentationConfig[] {\n return [\n ...['resources/chat/completions.js', 'resources/chat/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { ...module, filePath },\n functionQuery: { className: classNames.chat, methodName: 'create', kind: 'Sync' as const },\n })),\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { ...module, filePath },\n functionQuery: { className: classNames.embeddings, methodName: 'create', kind: 'Sync' as const },\n })),\n ];\n}\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `groq-sdk` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const groqConfig = openAiCompatibleConfig({\n name: 'groq-sdk',\n versionRange: '>=0.3.0 <2',\n}) satisfies InstrumentationConfig[];\n\nexport const groqModuleNames = getModuleNames(groqConfig);\n\nexport const groqChannels = {\n GROQ_CHAT: 'orchestrion:groq-sdk:chat',\n GROQ_EMBEDDINGS: 'orchestrion:groq-sdk:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const hapiConfig = [\n // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),\n // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both\n // are synchronous void methods, so `Sync` suffices: we only use `start` to swap\n // handlers in `ctx.arguments`. Shape verified across the whole range.\n {\n channelName: 'route',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'ext',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'ext', kind: 'Sync' },\n },\n // `start`/`initialize` give us the live server via `ctx.self` so we can attach\n // the error listener automatically. We hook both because `start()` calls the\n // private `_core._start()` (never the public `initialize` method), while\n // test/serverless flows may only call `initialize()`. Only the synchronous\n // `start` event is used — to read `ctx.self` — so `Sync` suffices even though\n // both methods return a promise.\n {\n channelName: 'start',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'start', kind: 'Sync' },\n },\n {\n channelName: 'initialize',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'initialize', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const hapiModuleNames = getModuleNames(hapiConfig);\n\nexport const hapiChannels = {\n HAPI_ROUTE: 'orchestrion:@hapi/hapi:route',\n HAPI_EXT: 'orchestrion:@hapi/hapi:ext',\n HAPI_START: 'orchestrion:@hapi/hapi:start',\n HAPI_INITIALIZE: 'orchestrion:@hapi/hapi:initialize',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Hono is hooked through per-request internals only — never at module scope — which is what lets the\n// same config run on Cloudflare Workers, where workerd forbids `diagnostics_channel` at module scope.\n// The subscribers live in `honoIntegration`.\nconst honoInstrumentationConfig: InstrumentationConfig[] = [\n {\n // `new Context()` runs once per request: where the Sentry middleware is injected and matched\n // middleware handlers are wrapped for spans.\n // TODO(v12): Raise the minimum Hono version to 4.4.9, here and in the `@sentry/hono` peer range.\n // Before 4.4.9, Hono passes `matchResult` to `new HonoRequest()`, so this hook does nothing.\n channelName: 'context',\n module: { name: 'hono', versionRange: '>=4.0.0 <6', filePath: /^dist\\/(?:cjs\\/)?context\\.js$/ },\n functionQuery: { className: 'Context' },\n },\n {\n // `app.request(...)` — Hono's internal dispatch for sub-app-to-sub-app fetches. A class-field\n // arrow, hence `astQuery` instead of `methodName`.\n channelName: 'request',\n module: { name: 'hono', versionRange: '>=4.0.0 <6', filePath: /^dist\\/(?:cjs\\/)?hono-base\\.js$/ },\n astQuery: \"PropertyDefinition[key.name='request'] > ArrowFunctionExpression\",\n functionQuery: { kind: 'Auto' },\n },\n];\n\nexport const honoConfig = honoInstrumentationConfig satisfies InstrumentationConfig[];\n\nexport const honoModuleNames = getModuleNames(honoConfig);\n\nexport const honoChannels = {\n HONO_CONTEXT: 'orchestrion:hono:context',\n HONO_REQUEST: 'orchestrion:hono:request',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const ioredisConfig = [\n registrationOnly({ name: 'ioredis', versionRange: '>=5.11.0', filePath: 'built/Redis.js' }),\n // ioredis `<5.11.0` (>=5.11.0 publishes its own `ioredis:*` diagnostics_channel)\n ...['lib/redis.js', 'built/redis.js', 'built/redis/index.js'].flatMap((filePath): InstrumentationConfig[] => [\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'connect', kind: 'Async' },\n },\n ]),\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'connect', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const ioredisModuleNames = getModuleNames(ioredisConfig);\n\nexport const ioredisChannels = {\n IOREDIS_COMMAND: 'orchestrion:ioredis:command',\n IOREDIS_CONNECT: 'orchestrion:ioredis:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const kafkajsConfig = [\n {\n channelName: 'send_batch',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n // `producer.sendBatch` and their transactional variants all flow through this one channel.\n // Instrumenting `send` too would double-count spans.\n functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n },\n {\n channelName: 'consumer_run',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n // span-creating wrappers before the original runs. This works because the transform re-reads\n // `ctx.arguments` when invoking the original.\n functionQuery: { expressionName: 'run', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsModuleNames = getModuleNames(kafkajsConfig);\n\nexport const kafkajsChannels = {\n KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: 'query',\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n ),\n];\n\nexport const knexChannels = {\n KNEX_QUERY: 'orchestrion:knex:query',\n KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nexport const koaConfig = [\n {\n channelName: 'use',\n module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n functionQuery: { className: 'Application', methodName: 'use', kind: 'Sync' },\n },\n // `callback()` gives us the live app via `ctx.self` so we can auto-register the\n // error listener. We act on the channel's `end` (after the method body runs):\n // koa registers its own default `error` listener inside `callback()` only when\n // none exist yet, so attaching before that would suppress koa's default error\n // logging. `app.listen()` funnels through `callback()`, so this covers both\n // `app.listen()` and `http.createServer(app.callback())`.\n {\n channelName: 'callback',\n module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n functionQuery: { className: 'Application', methodName: 'callback', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const koaModuleNames = getModuleNames(koaConfig);\n\nexport const koaChannels = {\n KOA_USE: 'orchestrion:koa:use',\n KOA_CALLBACK: 'orchestrion:koa:callback',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/*` packages ship dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file.\n\n// LangChain's chat model methods live on `BaseChatModel` in `@langchain/core` and are inherited by\n// every provider class (`ChatAnthropic`, `ChatOpenAI`, …), so a single hook there covers all\n// providers. `invoke` also backs `.batch()` (which calls `invoke` per item); `_streamIterator`\n// backs `.stream()`. The vendored OTel instrumentation instead patched each provider package to\n// dodge `@langchain/core` being bundled, but orchestrion transforms its source directly regardless\n// of bundling.\nconst chatModelConfig = ['dist/language_models/chat_models.cjs', 'dist/language_models/chat_models.js'].flatMap(\n filePath => {\n const module = { name: '@langchain/core', versionRange: '>=0.1.0 <2.0.0', filePath };\n\n return [\n {\n channelName: 'chatModelInvoke',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: 'invoke', kind: 'Async' as const },\n },\n {\n channelName: 'chatModelStream',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: '_streamIterator', kind: 'Async' as const },\n },\n ];\n },\n);\n\n// Embeddings have no shared concrete method on the base class (each provider implements\n// `embedQuery`/`embedDocuments`), so they're hooked per package. These are the provider packages the\n// vendored OTel instrumentation covered that actually ship an `Embeddings` subclass: `@langchain/openai`,\n// `@langchain/google-genai` and `@langchain/mistralai` define the two methods on their own class, while\n// `@langchain/google-vertexai` inherits them from the shared `@langchain/google-common` base, so that base\n// is the module hooked for it. (anthropic and groq are chat-only — they ship no embeddings class.) The\n// `embedQuery`/`embedDocuments` channel names are per-method; orchestrion prefixes them with the module\n// name, so the full channel strings stay distinct across packages.\nconst EMBED_QUERY = 'embedQuery';\nconst EMBED_DOCUMENTS = 'embedDocuments';\n\nconst EMBEDDINGS_PROVIDERS = [\n { name: '@langchain/openai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/google-genai', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/mistralai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's\n // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both\n // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.\n { name: '@langchain/google-common', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_DOCUMENTS] },\n];\n\nconst embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) =>\n ['dist/embeddings.cjs', 'dist/embeddings.js'].flatMap(filePath =>\n methods.map(method => ({\n channelName: method,\n module: { name, versionRange, filePath },\n functionQuery: { methodName: method, kind: 'Async' as const },\n })),\n ),\n);\n\n// `TypeSafeClassifier` (`@langchain/typesafe`) is a plain `Runnable`, not a chat model, so the chat-model\n// hooks never add the Sentry callback handler to its runs.\nconst typesafeClassifierConfig = ['dist/classifier.cjs', 'dist/classifier.js'].map(filePath => ({\n channelName: 'typesafeClassifierInvoke',\n module: { name: '@langchain/typesafe', versionRange: '>=0.0.1 <1.0.0', filePath },\n functionQuery: { className: 'TypeSafeClassifier', methodName: 'invoke', kind: 'Async' as const },\n}));\n\nexport const langchainConfig = [\n ...chatModelConfig,\n ...embeddingsConfig,\n ...typesafeClassifierConfig,\n] satisfies InstrumentationConfig[];\n\n// The embeddings channel strings the subscriber binds to, derived from the provider list above so that\n// adding a provider is a single edit that both instruments it and subscribes the listener to it.\nexport const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) =>\n methods.map(method => `orchestrion:${name}:${method}`),\n);\n\nexport const langchainModuleNames = getModuleNames(langchainConfig);\n\nexport const langchainChannels = {\n LANGCHAIN_CHAT_MODEL_INVOKE: 'orchestrion:@langchain/core:chatModelInvoke',\n LANGCHAIN_CHAT_MODEL_STREAM: 'orchestrion:@langchain/core:chatModelStream',\n LANGCHAIN_TYPESAFE_CLASSIFIER_INVOKE: 'orchestrion:@langchain/typesafe:typesafeClassifierInvoke',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/langgraph` ships dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file. `StateGraph.compile`\n// and `createReactAgent` both return synchronously; the subscriber wraps the returned compiled graph's\n// `invoke` (mirroring the vendored OTel instrumentation, which patched these on the module exports).\nconst module = (filePath: string): InstrumentationConfig['module'] => ({\n name: '@langchain/langgraph',\n versionRange: '>=0.0.0 <2.0.0',\n filePath,\n});\n\nconst compileConfig = ['dist/graph/state.cjs', 'dist/graph/state.js'].map(filePath => ({\n channelName: 'stateGraphCompile',\n module: module(filePath),\n functionQuery: { className: 'StateGraph', methodName: 'compile', kind: 'Sync' as const },\n}));\n\n// `createReactAgent` is a single function declaration re-exported from both `@langchain/langgraph` and\n// `@langchain/langgraph/prebuilt`; hooking its definition file covers every import path.\nconst createReactAgentConfig = ['dist/prebuilt/react_agent_executor.cjs', 'dist/prebuilt/react_agent_executor.js'].map(\n filePath => ({\n channelName: 'createReactAgent',\n module: module(filePath),\n functionQuery: { functionName: 'createReactAgent', kind: 'Sync' as const },\n }),\n);\n\nexport const langgraphConfig = [...compileConfig, ...createReactAgentConfig] satisfies InstrumentationConfig[];\n\nexport const langgraphModuleNames = getModuleNames(langgraphConfig);\n\nexport const langgraphChannels = {\n LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile',\n LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const lruMemoizerConfig = [\n {\n channelName: 'load',\n // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerModuleNames = getModuleNames(lruMemoizerConfig);\n\nexport const lruMemoizerChannels = {\n LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Flue publishes no diagnostics channels and needs none: it is instrumented by registering with\n * `instrument()`, not by patching call sites. Transforming the entry is only how the module's\n * integration gets registered at evaluation time, which is what installs it on a bundler-only SDK\n * like `@sentry/cloudflare`. With `selfProvidedModules`, the entry also publishes its namespace.\n */\nexport const flueConfig = [\n registrationOnly({ name: '@flue/runtime', versionRange: '>=2.0.0 <3.0.0', filePath: 'dist/index.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `class Mastra` lives only in tsdown's content-hashed chunk (`dist/mastra-RpLTNzL-.js` and\n// `dist/mastra-Dzmadbjh.cjs` in 1.63.2). The stable files (`dist/index.js`, `dist/mastra/index.js`)\n// are one-line re-exports, so an exact `filePath` cannot wrap the constructor.\n// The pattern therefore matches any `mastra*` chunk, in `dist/` or one level below, so a rename or\n// relocation within the supported range does not silently stop the instrumentation. `className`\n// remains the real selector, and `attachExporter` rejects anything without `registerExporter`.\n// `registerExporter()` exists since 1.63.2.\nconst mastraConstructorConfig: InstrumentationConfig[] = [\n {\n channelName: 'mastraConstructor',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/(?:[\\w.-]+\\/)?mastra[\\w.-]*\\.(?:cjs|mjs|js)$/,\n },\n // No `methodName` → class constructor. The `end` message's `self` is the instance.\n functionQuery: { className: 'Mastra' },\n },\n];\n\n// Mastra runs each operation's work inside `executeWithContext({ span, fn })` /\n// `executeWithContextSync` (its own async-context helper: `spanContextStorage.run(span, fn)`), passing\n// the operation's AISpan. Wrapping these lets us make the *exporter's* matching Sentry span active for\n// the duration, so work Mastra does inside — an outgoing model `fetch`, a `dataloader.load` in a tool —\n// nests under it. Both live in the stable, unhashed `observability/context-storage` entry (a real\n// package export, not a content-hashed chunk), so an exact-ish path match is safe. `functionName`\n// selects the exported functions.\nconst mastraContextConfig: InstrumentationConfig[] = ['executeWithContext', 'executeWithContextSync'].map(\n functionName => ({\n channelName: 'mastraExecuteWithContext',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/observability\\/context-storage\\.(?:cjs|mjs|js)$/,\n },\n functionQuery: { functionName, kind: 'Auto' as const },\n }),\n);\n\n// Mastra's `classifier_evaluation` span carries no input or output, so we read them from the\n// `Classifier.evaluate()` call. `Classifier` lives in the stable, unhashed `classifier` entry.\nconst mastraClassifierConfig: InstrumentationConfig[] = [\n {\n channelName: 'mastraClassifierEvaluate',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/classifier\\/index\\.(?:cjs|mjs|js)$/,\n },\n functionQuery: { className: 'Classifier', methodName: 'evaluate', kind: 'Async' },\n },\n];\n\nexport const mastraConfig = [\n ...mastraConstructorConfig,\n ...mastraContextConfig,\n ...mastraClassifierConfig,\n] satisfies InstrumentationConfig[];\n\nexport const mastraModuleNames = getModuleNames(mastraConfig);\n\nexport const mastraChannels = {\n MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor',\n MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext',\n MASTRA_CLASSIFIER_EVALUATE: 'orchestrion:@mastra/core:mastraClassifierEvaluate',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst module = { name: '@earendil-works/pi-durable', versionRange: '>=1.0.0 <2.0.0' };\n\n// `Harness.open(storage, options, context)` is a method of the exported `Harness` object literal, the\n// one entry point to a Harness. Its `options` carry the `models` and `registry` every model request\n// and task phase goes through, so wrapping them at `start` covers the whole Harness.\nexport const piDurableConfig = [\n {\n channelName: 'harnessOpen',\n module: { ...module, filePath: 'dist/harness/harness.js' },\n functionQuery: { methodName: 'open', kind: 'Async' as const },\n },\n // The factories of the built-in coding tools. Their tools throw to report expected failures to the\n // model, so the integration must know them wherever an app registers them.\n ...[\n ['bash', 'createBashTool'],\n ['read', 'createReadTool'],\n ['edit', 'createEditTool'],\n ['write', 'createWriteTool'],\n ].map(([file, functionName]) => ({\n channelName: 'codingTool',\n module: { ...module, filePath: `dist/tools/${file}.js` },\n functionQuery: { functionName: functionName as string, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const piDurableModuleNames = getModuleNames(piDurableConfig);\n\nexport const piDurableChannels = {\n PI_DURABLE_HARNESS_OPEN: 'orchestrion:@earendil-works/pi-durable:harnessOpen',\n PI_DURABLE_CODING_TOOL: 'orchestrion:@earendil-works/pi-durable:codingTool',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@modelcontextprotocol/server` v2 ships pre-bundled (tsdown) in content-hashed chunks:\n// `class McpServer` lives only in `dist/mcp-<hash>.{mjs,cjs}` (2.0.0: `mcp-DXXb3Vv3.mjs`,\n// `mcp-D7GmuPnv.cjs`), while the stable `dist/index.mjs` is a pure re-export. An exact\n// `filePath` therefore cannot target the constructor, so the pattern matches any `mcp-*`\n// chunk in `dist/` and `className: 'McpServer'` stays the real selector — the same shape\n// `mastra.ts` uses for its hashed `Mastra` chunk. `McpServer.connect()` delegates to the\n// underlying `Server`/`Protocol`, so hooking the constructor is enough to reach everything.\nconst mcpServerV2Config: InstrumentationConfig[] = [\n {\n channelName: 'mcpServerConstructor',\n module: {\n name: '@modelcontextprotocol/server',\n versionRange: '>=2.0.0 <3',\n filePath: /^dist\\/mcp-[\\w-]+\\.(?:cjs|mjs)$/,\n },\n // No `methodName` → class constructor. The `end` message's `self` is the new instance.\n functionQuery: { className: 'McpServer' },\n },\n];\n\n// `@modelcontextprotocol/sdk` v1 ships unbundled, so `McpServer` sits at a stable path — the\n// subpath export `.../server/mcp.js` resolves to `dist/{cjs,esm}/server/mcp.js`. The regex\n// matches both build flavors from the module root without hard-coding the `dist/esm` vs\n// `dist/cjs` prefix, and `className: 'McpServer'` stays the real selector.\nconst mcpServerV1Config: InstrumentationConfig[] = [\n {\n channelName: 'mcpServerConstructor',\n module: {\n name: '@modelcontextprotocol/sdk',\n versionRange: '>=1.9.0 <2',\n filePath: /(?:^|\\/)server\\/mcp\\.js$/,\n },\n functionQuery: { className: 'McpServer' },\n },\n];\n\nexport const mcpServerConfig = [...mcpServerV2Config, ...mcpServerV1Config] satisfies InstrumentationConfig[];\n\nexport const mcpServerModuleNames = getModuleNames(mcpServerConfig);\n\nexport const mcpServerChannels = {\n // Orchestrion prefixes each `channelName` with `orchestrion:${module.name}:`, so v1 and v2\n // publish to distinct channels even though the suffix is shared — the integration subscribes\n // to both.\n MCP_SERVER_V2_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/server:mcpServerConstructor',\n MCP_SERVER_V1_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/sdk:mcpServerConstructor',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@mistralai/mistralai` v2+ is ESM-only, so there is a single built file per resource (no dual CJS/ESM\n// variants). Each SDK resource class exposes async methods that return a thenable, so `kind: 'Auto'`\n// resolves to `wrapPromise`; the `.stream` methods resolve to an async-iterable `EventStream`.\nconst MODULE = { name: '@mistralai/mistralai', versionRange: '>=2.0.0 <4' } as const;\n\nconst CHAT_FILE = { ...MODULE, filePath: 'esm/sdk/chat.js' } as const;\nconst AGENTS_FILE = { ...MODULE, filePath: 'esm/sdk/agents.js' } as const;\n\n// Streaming methods get their own channel so both the span attributes and the stream handling can be\n// driven by the method that fired, instead of duck-typing the resolved value.\nexport const mistralConfig = [\n {\n channelName: 'chat',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'complete', kind: 'Auto' as const },\n },\n {\n channelName: 'chat',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'parse', kind: 'Auto' as const },\n },\n {\n channelName: 'chat-stream',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'stream', kind: 'Auto' as const },\n },\n {\n channelName: 'chat-stream',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'parseStream', kind: 'Auto' as const },\n },\n {\n channelName: 'embeddings',\n module: { ...MODULE, filePath: 'esm/sdk/embeddings.js' },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n },\n {\n channelName: 'agents',\n module: AGENTS_FILE,\n functionQuery: { className: 'Agents', methodName: 'complete', kind: 'Auto' as const },\n },\n {\n channelName: 'agents-stream',\n module: AGENTS_FILE,\n functionQuery: { className: 'Agents', methodName: 'stream', kind: 'Auto' as const },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mistralModuleNames = getModuleNames(mistralConfig);\n\nexport const mistralChannels = {\n MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat',\n MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream',\n MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings',\n MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents',\n MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// The mongodb driver's command architecture changed across majors, mirrored in the vendored OTel\n// instrumentation's version bands:\n// - >= 6.4: promise-based `Connection.prototype.command`\n// - >= 4.0 < 6.4: callback-based `Connection.prototype.command` + `ConnectionPool.checkOut`\n// (the pool runs the checkout callback in a detached context, so the channel re-propagates the\n// caller's async context to it — see the subscriber)\n// - >= 3.3 < 4: the `lib/core/wireprotocol` module functions\nconst module = { name: 'mongodb' } as const;\n\nexport const mongodbConfig = [\n // Band 1: mongodb >= 6.4 — promise-based command.\n // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes\n // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see\n // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=6.4.0 <8', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Async' },\n },\n // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Callback' },\n },\n // Band 2: the pool runs the checkout callback in a detached async context, so the operation's\n // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates\n // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).\n // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.\n {\n channelName: 'checkout',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection_pool.js' },\n functionQuery: { methodName: 'checkOut', kind: 'Callback' },\n },\n // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate\n // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named\n // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);\n // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).\n ...(['insert', 'update', 'remove'] as const).map(op => ({\n channelName: `v3_${op}`,\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/index.js' },\n functionQuery: { expressionName: op, kind: 'Callback' as const },\n })),\n {\n channelName: 'v3_command',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/command.js' },\n functionQuery: { functionName: 'command', kind: 'Callback' },\n },\n {\n channelName: 'v3_query',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/query.js' },\n functionQuery: { functionName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'v3_get_more',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/get_more.js' },\n functionQuery: { functionName: 'getMore', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mongodbModuleNames = getModuleNames(mongodbConfig);\n\nexport const mongodbChannels = {\n MONGODB_COMMAND: 'orchestrion:mongodb:command',\n MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout',\n MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert',\n MONGODB_V3_UPDATE: 'orchestrion:mongodb:v3_update',\n MONGODB_V3_REMOVE: 'orchestrion:mongodb:v3_remove',\n MONGODB_V3_COMMAND: 'orchestrion:mongodb:v3_command',\n MONGODB_V3_QUERY: 'orchestrion:mongodb:v3_query',\n MONGODB_V3_GET_MORE: 'orchestrion:mongodb:v3_get_more',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// mongoose >= 9.7.0 publishes via its own `node:diagnostics_channel` tracing channels (handled by\n// `subscribeMongooseDiagnosticChannels`), so this transform is gated to `< 9.7.0` to avoid emitting\n// two spans per operation. The lower bound mirrors the vendored OTel IITM patcher's supported range.\nconst module = { name: 'mongoose', versionRange: '>=5.9.7 <9.7.0' } as const;\n\n// mongoose defines its prototype/static methods as assignments\n// (`Query.prototype.find = function(...)`, most of them anonymous), so the\n// transform matches the assigned property name via `expressionName`\n// rather than the function name. Entries whose method does not exist in a\n// given major are simply inert.\n\n// Builder methods that run synchronously and return a `Query`/`Aggregate`.\n// They don't get their own span; the subscriber only reads the active span\n// at build time and stashes it on the query so the later `exec()` can parent\n// to where the query was *built*, not where it is awaited. `kind: 'Sync'`\n// so the returned thenable isn't mistaken for the traced operation's result.\nconst CONTEXT_CAPTURE_QUERY_METHODS = [\n 'find',\n 'findOne',\n 'deleteOne',\n 'deleteMany',\n 'estimatedDocumentCount',\n 'countDocuments',\n 'distinct',\n 'where',\n '$where',\n 'findOneAndUpdate',\n 'findOneAndDelete',\n 'findOneAndReplace',\n // 5/6/7 only (removed in 8), inert in recent versions\n 'remove',\n 'count',\n 'findOneAndRemove',\n] as const;\n\nexport const mongooseConfig = [\n registrationOnly({ name: 'mongoose', versionRange: '>=9.7.0', filePath: 'lib/query.js' }),\n // Query execution\n // the span for most read/write operations. `op`, collection and model are\n // read off the `Query` at exec time.\n {\n channelName: 'query_exec',\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // Aggregation pipeline execution.\n {\n channelName: 'aggregate_exec',\n module: { ...module, filePath: 'lib/aggregate.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // `doc.save()` (and its `$save` alias, which mongoose points at `save` on\n // require. the alias picks up the transformed body automatically, so no\n // separate entry is needed).\n {\n channelName: 'model_save',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'save', kind: 'Auto' },\n },\n // Static batch operations.\n {\n channelName: 'model_insert_many',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'insertMany', kind: 'Auto' },\n },\n {\n channelName: 'model_bulk_write',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'bulkWrite', kind: 'Auto' },\n },\n // `doc.remove()` (a document method, deprecated in 6 and removed in 7)\n // `expressionName: 'remove'` also matches the sibling `Model.remove`\n // *static* in this file, which no matcher can tell apart from the prototype\n // method; that static is deprecated and would just produce a redundant span\n // so the collision is accepted rather than dropping the doc-method span.\n {\n channelName: 'model_remove',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'remove', kind: 'Auto' },\n },\n // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately\n // NOT hooked here. The vendored OTel/IITM patcher wraps\n // `Model.prototype.updateOne`/`deleteOne`, but those delegate to\n // `Query.exec`, which the `query_exec` channel above already instruments\n // (its `this.op` is the right operation). Verified by the `mongoose-v8`\n // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook\n // is also not possible cleanly: `expressionName: 'updateOne'` in\n // `lib/model.js` can't be told apart from the same-named `Model.updateOne`\n // *static* (the common query-builder form), so hooking it would double-span\n // every `Model.updateOne(...)` call.\n //\n // `Model.aggregate()` builds an `Aggregate` with no method to hook for\n // context capture, so hook the static itself and stash the active span\n // on the returned aggregate. `Sync`: it returns the aggregate.\n {\n channelName: 'model_aggregate',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'aggregate', kind: 'Sync' },\n },\n ...CONTEXT_CAPTURE_QUERY_METHODS.map(methodName => ({\n channelName: `ctx_${methodName}`,\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: methodName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const mongooseModuleNames = getModuleNames(mongooseConfig);\n\nexport const mongooseChannels = {\n MONGOOSE_QUERY_EXEC: 'orchestrion:mongoose:query_exec',\n MONGOOSE_AGGREGATE_EXEC: 'orchestrion:mongoose:aggregate_exec',\n MONGOOSE_MODEL_SAVE: 'orchestrion:mongoose:model_save',\n MONGOOSE_MODEL_INSERT_MANY: 'orchestrion:mongoose:model_insert_many',\n MONGOOSE_MODEL_BULK_WRITE: 'orchestrion:mongoose:model_bulk_write',\n MONGOOSE_MODEL_REMOVE: 'orchestrion:mongoose:model_remove',\n MONGOOSE_MODEL_AGGREGATE: 'orchestrion:mongoose:model_aggregate',\n} as const;\n\n/**\n * Fully-qualified names of the context-capture channels, derived from the\n * same method list the transform config uses so the two can't drift. The\n * subscriber subscribes to all of them uniformly to stash the build-time\n * parent span (see `mongooseChannels` for the span-creating channels).\n */\nexport const MONGOOSE_CONTEXT_CAPTURE_CHANNELS: string[] = CONTEXT_CAPTURE_QUERY_METHODS.map(\n methodName => `orchestrion:mongoose:ctx_${methodName}`,\n);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n registrationOnly({ name: 'mysql2', versionRange: '>=3.20.0', filePath: 'lib/base/connection.js' }),\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2ModuleNames = getModuleNames(mysql2Config);\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const mysqlConfig = [\n {\n channelName: 'query',\n module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlModuleNames = getModuleNames(mysqlConfig);\n\nexport const mysqlChannels = {\n MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@neondatabase/serverless` ships as two minified esbuild bundles (`index.js` for CJS,\n// `index.mjs` for ESM) that inline their own copy of `pg`. Class and function identifiers are\n// mangled and differ between the two builds, so the name-based `functionQuery` matchers can't\n// find anything. Every selector below keys on property names and string literals, which survive\n// minification and are identical in both bundles.\nconst module = { name: '@neondatabase/serverless', versionRange: '>=1.0.0 <2', filePath: /^index\\.m?js$/ };\n\nexport const neonConfig = [\n // The bundled pg `Client.prototype.query` (WebSocket driver). `_pulseQueryQueue` is a pg\n // internal that only `Client` defines, which keeps the pool and wire-protocol `query` methods\n // out. `methodName` is ignored for matching (`astQuery` wins) but makes the transformer emit a\n // method wrapper that exposes `self`, which carries `connectionParameters`.\n {\n channelName: 'query',\n module,\n astQuery:\n 'ClassBody:has(MethodDefinition[key.name=\"_pulseQueryQueue\"]) > MethodDefinition[key.name=\"query\"] > FunctionExpression',\n functionQuery: { methodName: 'query', kind: 'Auto' },\n },\n // The HTTP executor nested inside `neon()`. Every HTTP query funnels through it: lazy\n // `NeonQueryPromise`s call it from `then`/`catch`/`finally`, and `transaction()` calls it once\n // with the whole batch, so wrapping it gives one span per request with no double counting.\n {\n channelName: 'http-query',\n module,\n astQuery: 'FunctionDeclaration[async=true]:has(Literal[value=\"Neon-Connection-String\"])',\n functionQuery: { kind: 'Async' },\n },\n // `resolveConnectionParams`, awaited by the HTTP executor. The connection string lives in the\n // `neon()` closure and never reaches the executor's channel context, so the subscriber reads\n // `server.address`/`db.namespace` from this call's result instead, inside the query span.\n {\n channelName: 'resolve-connection',\n module,\n astQuery:\n 'FunctionDeclaration[async=true]:has(ReturnStatement > ObjectExpression > Property[key.name=\"resolvedURL\"])',\n functionQuery: { kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const neonModuleNames = getModuleNames(neonConfig);\n\nexport const neonChannels = {\n NEON_QUERY: 'orchestrion:@neondatabase/serverless:query',\n NEON_HTTP_QUERY: 'orchestrion:@neondatabase/serverless:http-query',\n NEON_RESOLVE_CONNECTION: 'orchestrion:@neondatabase/serverless:resolve-connection',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: 'Sync' | 'Async' | 'Callback' | 'Auto' };\n}): InstrumentationConfig {\n return config;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <13',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <13', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // The function `ScheduleExplorer` returns here is what `@nestjs/schedule` passes to `CronJob` as `onTick`.\n // From 6.0.0 it uses `cron` 4.3+, whose jobs have names.\n channelName: 'scheduleExplorerWrap',\n module: { name: '@nestjs/schedule', versionRange: '>=6.0.0', filePath: 'dist/schedule.explorer.js' },\n functionQuery: { className: 'ScheduleExplorer', methodName: 'wrapFunctionInTryCatchBlocks', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_SCHEDULE_EXPLORER_WRAP: 'orchestrion:@nestjs/schedule:scheduleExplorerWrap',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so\n * no channels are injected: transforming h3's entry file only registers `nitroIntegration` at\n * evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On\n * `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.\n *\n * Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers\n * registration; the integration then subscribes to all of its channels (including unstorage's),\n * independent of which module loaded it.\n *\n * The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease\n * (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader\n * and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching\n * across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops\n * prereleases of a higher patch tuple.)\n */\nexport const nitroConfig = [\n registrationOnly({ name: 'h3', versionRange: '>=2.0.0-0', filePath: 'dist/h3.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nconst createTask = { functionName: 'createTask', kind: 'Sync' } as const;\n\n// `schedule()` calls `createTask(expression, func, options)`, so wrapping `createTask` covers both.\n// Before 4.6, node-cron reads weekday ranges like `sat-sun` differently, so those versions get their own channel.\nexport const nodeCronConfig = [\n {\n channelName: 'createTask',\n module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.cjs' },\n functionQuery: createTask,\n },\n {\n channelName: 'createTask',\n module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.3.0 <4.6.0', filePath: 'dist/node-cron.cjs' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.6.0', filePath: 'dist/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/cjs/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/esm/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v3_createTask',\n module: { name: 'node-cron', versionRange: '>=3.0.0 <4', filePath: 'src/node-cron.js' },\n functionQuery: createTask,\n },\n] satisfies InstrumentationConfig[];\n\nexport const nodeCronModuleNames = getModuleNames(nodeCronConfig);\n\nexport const nodeCronChannels = {\n NODE_CRON_CREATE_TASK: 'orchestrion:node-cron:createTask',\n NODE_CRON_V4_CREATE_TASK: 'orchestrion:node-cron:v4_createTask',\n NODE_CRON_V3_CREATE_TASK: 'orchestrion:node-cron:v3_createTask',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `scheduleJob`, `rescheduleJob` and `job.reschedule` all call `job.schedule(spec)`. `Job` moved from\n// `lib/schedule.js` to `lib/Job.js` in 2.0.0.\nconst schedule = {\n channelName: 'schedule',\n astQuery:\n \"AssignmentExpression[left.object.property.name='prototype'][left.property.name='schedule'] > FunctionExpression\",\n // `methodName` gives subscribers `self` before the call, not just after. `astQuery` still picks the function.\n functionQuery: { methodName: 'schedule', kind: 'Sync' },\n} as const;\n\nexport const nodeScheduleConfig = [\n {\n ...schedule,\n module: { name: 'node-schedule', versionRange: '>=1.3.0 <2', filePath: 'lib/schedule.js' },\n },\n {\n ...schedule,\n module: { name: 'node-schedule', versionRange: '>=2.0.0 <3', filePath: 'lib/Job.js' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nodeScheduleModuleNames = getModuleNames(nodeScheduleConfig);\n\nexport const nodeScheduleChannels = {\n NODE_SCHEDULE_SCHEDULE: 'orchestrion:node-schedule:schedule',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const openaiConfig = [\n // Sync tracing preserves APIPromise's lazy body parsing; Auto would trigger it via .then().\n ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI responses API — same `create(body, options)` shape as chat completions.\n ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Responses', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI decisions API (`openai` >= 7.30.0), which returns typed answers rather than generated text.\n ...['resources/decisions.js', 'resources/decisions.mjs'].map(filePath => ({\n channelName: 'decide',\n module: { name: 'openai', versionRange: '>=7.30.0 <8', filePath },\n functionQuery: { className: 'Decisions', methodName: 'create', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiModuleNames = getModuleNames(openaiConfig);\n\nexport const openaiChannels = {\n // Chat completions, the responses API, and the conversations API all report a `chat` operation with\n // identical span handling, so they share one channel.\n OPENAI_CHAT: 'orchestrion:openai:chat',\n OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n OPENAI_DECIDE: 'orchestrion:openai:decide',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const pgConfig = [\n // `pg` (node-postgres).\n // instruments `Client.prototype.query`/`connect` (both the JS and native\n // clients) plus `pg-pool`'s `Pool.prototype.connect`.\n // `Auto` covers the callback, promise, and streamable-`Submittable`\n // call shapes (like mysql).\n // `pg/lib/client.js` is `class Client { query() {...} connect() {...} }`,\n // so `className`+`methodName` matches directly.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'connect', kind: 'Auto' },\n },\n // The native client (`pg/lib/native/client.js`) is a constructor function,\n // not a class.\n // `Client.prototype.query = function (config, values, callback) {...}`\n // so it needs `expressionName` (the mysql shape), publishing to the SAME\n // `orchestrion:pg:query`/`:connect` channels as the JS client.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'connect', kind: 'Auto' },\n },\n // `pg-pool` is `class Pool extends EventEmitter { connect(cb) {...} }`.\n {\n channelName: 'connect',\n module: { name: 'pg-pool', versionRange: '>=2.0.0 <4', filePath: 'index.js' },\n functionQuery: { className: 'Pool', methodName: 'connect', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const pgModuleNames = getModuleNames(pgConfig);\n\nexport const pgChannels = {\n PG_QUERY: 'orchestrion:pg:query',\n PG_CONNECT: 'orchestrion:pg:connect',\n PGPOOL_CONNECT: 'orchestrion:pg-pool:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// postgres.js (`postgres` npm package). Named after the npm package;\n// `postgres` doesn't collide with `pg.ts` (that file instruments `pg`/`pg-pool`).\n//\n// The ESM build lives under `src/*`, the CJS build under `cjs/src/*` (the\n// `cf/*` workerd build has no channel subscribers, see the integration).\n// Both builds share the same class/function shapes, so a single `flatMap`\n// over the two dirs emits one entry per (dir, target).\nconst postgresJsInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n // `Query.prototype.handle` (`class Query extends Promise`) is the single\n // funnel every query passes through (`then`/`catch`/`finally`/`.execute()`/\n // `.forEach()`/cursor all call it), guarded by `this.executed`. `Async`\n // because `handle` is `async`.\n {\n channelName: 'handle',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/query.js` },\n functionQuery: { className: 'Query', methodName: 'handle', kind: 'Async' },\n },\n // `function Connection(options, ...)` (default export of `connection.js`)\n // returns the connection object; used to build the endpoint registry that\n // resolves `server.address`/`server.port`/`db.namespace`.\n {\n channelName: 'connection',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { functionName: 'Connection', kind: 'Sync' },\n },\n // The nested `function execute(q)` inside `Connection`; the per-connection\n // hook that attaches connection attributes to the query's span.\n {\n channelName: 'execute',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { functionName: 'execute', kind: 'Sync' },\n },\n // The connection object's `connect(query)` method. Matched by `methodName`\n // (an object-literal method): `functionName` would hit the unrelated\n // socket-level `async function connect()` in the same file. `self` is the\n // connection object and `arguments[0]` the query, so the first query that\n // opens a connection (dispatched via a bare `execute` with no `self`) still\n // gets connection attributes in multi-endpoint apps.\n {\n channelName: 'connect',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { methodName: 'connect', kind: 'Sync' },\n },\n];\n\n// Gated to `< 4`: from 4.0.0 postgres publishes `postgres:query` natively, which\n// `subscribePostgresJsDiagnosticChannels` instruments. The registration-only entry\n// lets bundler-only SDKs detect v4 and register the integration.\nexport const postgresJsConfig = [\n registrationOnly({ name: 'postgres', versionRange: '>=4.0.0', filePath: 'src/query.js' }),\n ...['src', 'cjs/src'].flatMap(postgresJsInstrumentationConfig),\n];\n\nexport const postgresJsModuleNames = getModuleNames(postgresJsConfig);\n\nexport const postgresJsChannels = {\n POSTGRESJS_HANDLE: 'orchestrion:postgres:handle',\n POSTGRESJS_CONNECTION: 'orchestrion:postgres:connection',\n POSTGRESJS_EXECUTE: 'orchestrion:postgres:execute',\n POSTGRESJS_CONNECT: 'orchestrion:postgres:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Prisma 8 has no tracing surface, so its ORM terminals are wrapped directly. Apps install\n// `@prisma/orm-postgres`, but `CollectionBase` lives in the transitive `@prisma/orm-family-sql`.\nconst MODULE_NAME = '@prisma/orm-family-sql';\nconst ORM_CLIENT_FILE = 'dist/orm-client.mjs';\n\nconst VERSION_RANGE = '>=8.0.0-rc.15 <9';\n\nexport const PRISMA_ASYNC_TERMINALS = [\n 'aggregate',\n 'first',\n 'create',\n 'createAndCount',\n 'upsert',\n 'update',\n 'updateAndCount',\n 'delete',\n 'deleteAndCount',\n] as const;\n\n// These return a single-use thenable whose query runs on consumption. `Sync` on purpose: the `Async`/`Auto`\n// wrapper calls `.then()` on non-native thenables and would consume the result before the app does.\nexport const PRISMA_LAZY_TERMINALS = ['all', 'createAll', 'updateAll', 'deleteAll'] as const;\n\ntype PrismaTerminal = (typeof PRISMA_ASYNC_TERMINALS)[number] | (typeof PRISMA_LAZY_TERMINALS)[number];\n\nfunction terminalConfig(methodName: PrismaTerminal, kind: 'Async' | 'Sync'): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: ORM_CLIENT_FILE },\n functionQuery: { className: 'CollectionBase', methodName, kind },\n };\n}\n\nexport const prismaConfig: InstrumentationConfig[] = [\n ...PRISMA_ASYNC_TERMINALS.map(methodName => terminalConfig(methodName, 'Async')),\n ...PRISMA_LAZY_TERMINALS.map(methodName => terminalConfig(methodName, 'Sync')),\n];\n\nexport const prismaModuleNames = getModuleNames(prismaConfig);\n\nexport const prismaChannels = {\n PRISMA_AGGREGATE: 'orchestrion:@prisma/orm-family-sql:aggregate',\n PRISMA_FIRST: 'orchestrion:@prisma/orm-family-sql:first',\n PRISMA_CREATE: 'orchestrion:@prisma/orm-family-sql:create',\n PRISMA_CREATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:createAndCount',\n PRISMA_UPSERT: 'orchestrion:@prisma/orm-family-sql:upsert',\n PRISMA_UPDATE: 'orchestrion:@prisma/orm-family-sql:update',\n PRISMA_UPDATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:updateAndCount',\n PRISMA_DELETE: 'orchestrion:@prisma/orm-family-sql:delete',\n PRISMA_DELETE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:deleteAndCount',\n PRISMA_ALL: 'orchestrion:@prisma/orm-family-sql:all',\n PRISMA_CREATE_ALL: 'orchestrion:@prisma/orm-family-sql:createAll',\n PRISMA_UPDATE_ALL: 'orchestrion:@prisma/orm-family-sql:updateAll',\n PRISMA_DELETE_ALL: 'orchestrion:@prisma/orm-family-sql:deleteAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const redisConfig = [\n registrationOnly({ name: '@redis/client', versionRange: '>=5.12.0', filePath: 'dist/lib/client/index.js' }),\n // redis `>=2.6.0 <4` (standalone `redis`). `internal_send_command` is an\n // anonymous prototype assignment (`expressionName`); it settles via the nested\n // `command_obj.callback`, so `kind: 'Sync'` and the subscriber wraps that callback.\n {\n channelName: 'command',\n module: { name: 'redis', versionRange: '>=2.6.0 <4', filePath: 'index.js' },\n functionQuery: { expressionName: 'internal_send_command', kind: 'Sync' },\n },\n // node-redis v4 (`@redis/client` v1). The real chokepoint (private `#sendCommand`)\n // isn't matchable, so wrap both public entry points: `commandsExecutor` (friendly\n // commands) and `sendCommand` (direct calls). They never overlap, so no double span.\n {\n channelName: 'executor',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'commandsExecutor', kind: 'Async' },\n },\n {\n channelName: 'command',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n },\n // node-redis `>=5.0.0 <5.12.0` (`@redis/client` v5; >=5.12.0 has its own\n // `node-redis:*` diagnostics_channel, see `redis-dc-subscriber.ts`). Friendly\n // commands route through the public `sendCommand`, so it covers them all — no\n // `executor` entry (would double-count).\n {\n channelName: 'command',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n },\n // Batch (multi/pipeline) — one span per `exec`. Batched commands bypass `sendCommand`,\n // so they go through the client's batch executors, which receive the queued commands\n // array (→ batch size). v5 splits MULTI/PIPELINE into two methods; v4's single\n // `multiExecutor` is MULTI when a `chainId` arg is present, PIPELINE otherwise.\n {\n channelName: 'multi',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: '_executeMulti', kind: 'Async' },\n },\n {\n channelName: 'pipeline',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: '_executePipeline', kind: 'Async' },\n },\n {\n channelName: 'batch',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'multiExecutor', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const redisModuleNames = getModuleNames(redisConfig);\n\nexport const redisChannels = {\n REDIS_COMMAND: 'orchestrion:redis:command',\n NODE_REDIS_COMMAND: 'orchestrion:@redis/client:command',\n NODE_REDIS_EXECUTOR: 'orchestrion:@redis/client:executor',\n NODE_REDIS_CONNECT: 'orchestrion:@redis/client:connect',\n NODE_REDIS_MULTI: 'orchestrion:@redis/client:multi',\n NODE_REDIS_PIPELINE: 'orchestrion:@redis/client:pipeline',\n NODE_REDIS_BATCH: 'orchestrion:@redis/client:batch',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Four concepts, one channel each:\n// - `requestHandler` → the async handler returned by `createRequestHandler` (the server span)\n// - `matchServerRoutes` → sync route match; enriches the active span (creates no span of its own)\n// - `callRouteLoader` → LOADER span. Remix 2.0–2.8 named it `callRouteLoaderRR`\n// - `callRouteAction` → ACTION span. Remix 2.0–2.8 named it `callRouteActionRR`\n//\n// Emitted for both the CJS (`dist/*`) and ESM (`dist/esm/*`) builds, which share function shapes.\nconst remixInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n // `createRequestHandler` returns `async function requestHandler(request, loadContext)` — the main\n // server span. We target the returned handler (so the span wraps each request, not the one-time\n // handler construction). It's a *named function expression*, which name-based `functionQuery`\n // can't match (that only sees declarations), so we select it with `astQuery`; `functionQuery`\n // then just carries the behaviour (`kind: 'Async'`).\n {\n channelName: 'requestHandler',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/server.js` },\n astQuery: 'FunctionExpression[id.name=\"requestHandler\"]',\n functionQuery: { kind: 'Async' },\n },\n // Sync; the subscriber reads its result to set `http.route` on the active request span.\n {\n channelName: 'matchServerRoutes',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/routeMatching.js` },\n functionQuery: { functionName: 'matchServerRoutes', kind: 'Sync' },\n },\n // Remix >= 2.9.0\n {\n channelName: 'callRouteLoader',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteLoader', kind: 'Async' },\n },\n {\n channelName: 'callRouteAction',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteAction', kind: 'Async' },\n },\n // Remix 2.0.0 – 2.8.x: the same functions were suffixed `…RR`. Same channels as above.\n {\n channelName: 'callRouteLoader',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteLoaderRR', kind: 'Async' },\n },\n {\n channelName: 'callRouteAction',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteActionRR', kind: 'Async' },\n },\n];\n\nexport const remixConfig = ['dist', 'dist/esm'].flatMap(remixInstrumentationConfig);\n\nexport const remixChannels = {\n REMIX_REQUEST_HANDLER: 'orchestrion:@remix-run/server-runtime:requestHandler',\n REMIX_MATCH_SERVER_ROUTES: 'orchestrion:@remix-run/server-runtime:matchServerRoutes',\n REMIX_CALL_ROUTE_LOADER: 'orchestrion:@remix-run/server-runtime:callRouteLoader',\n REMIX_CALL_ROUTE_ACTION: 'orchestrion:@remix-run/server-runtime:callRouteAction',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Remix 3 is a ground up rewrite sharing no modules with Remix 2, so it gets its own config rather\n// than a widened `versionRange` on `./remix.ts`. The two never collide: this matches the\n// `@remix-run/*` packages, that one `@remix-run/server-runtime`. Ranges start at the release\n// candidates and end before 2.0.0, because the packages went 0.x to 1.0.0 with Remix 3.0.0.\n//\n// `remix/router` is a one line `export * from '@remix-run/fetch-router'`, so matching the real module\n// covers both import styles.\nexport const remixV3Config: InstrumentationConfig[] = [\n // The only construction point routing needs: `router.mount()` does not create a sub-router, it\n // builds a prefixed route builder over the same matcher and dispatch.\n {\n channelName: 'createRouter',\n module: {\n name: '@remix-run/fetch-router',\n versionRange: '>=0.21.0 <2',\n filePath: 'dist/lib/router.js',\n },\n functionQuery: { functionName: 'createRouter', kind: 'Sync' },\n },\n // The subscriber rewrites the options before the asset server reads them and wraps the server it\n // returns, so browser modules carry debug IDs without any config from the app.\n {\n channelName: 'createAssetServer',\n module: { name: '@remix-run/assets', versionRange: '>=0.6.0 <2', filePath: 'dist/lib/asset-server.js' },\n functionQuery: { functionName: 'createAssetServer', kind: 'Sync' },\n },\n // The only error hook that covers an app whose fetch handler is not a router.\n {\n channelName: 'createRequestListener',\n module: {\n name: '@remix-run/node-fetch-server',\n versionRange: '>=0.14.0 <2',\n filePath: 'dist/lib/request-listener.js',\n },\n functionQuery: { functionName: 'createRequestListener', kind: 'Sync' },\n },\n // Browser side, applied by the asset server's loader chain. The only way to see component render\n // errors without application code. `@remix-run/ui` was renamed to `@remix-run/component` in 1.0.0.\n {\n channelName: 'run',\n module: { name: '@remix-run/ui', versionRange: '>=0.8.0 <1', filePath: 'dist/runtime/run.js' },\n functionQuery: { functionName: 'run', kind: 'Sync' },\n },\n {\n channelName: 'run',\n module: { name: '@remix-run/component', versionRange: '>=1.0.0 <2', filePath: 'dist/runtime/run.js' },\n functionQuery: { functionName: 'run', kind: 'Sync' },\n },\n];\n\nexport const remixV3Channels = {\n REMIX_V3_CREATE_ROUTER: 'orchestrion:@remix-run/fetch-router:createRouter',\n REMIX_V3_CREATE_ASSET_SERVER: 'orchestrion:@remix-run/assets:createAssetServer',\n REMIX_V3_CREATE_REQUEST_LISTENER: 'orchestrion:@remix-run/node-fetch-server:createRequestListener',\n REMIX_V3_UI_RUN: 'orchestrion:@remix-run/ui:run',\n REMIX_V3_COMPONENT_RUN: 'orchestrion:@remix-run/component:run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst MODULE_NAME = 'tedious';\n\n// `Connection` has lived in `lib/connection.js` across the whole supported range (matches the vendored\n// OTel `supportedVersions`). Orchestrion never matches a file that doesn't exist, so a single entry is\n// safe even for versions that shipped extra layouts.\nconst FILE_PATH = 'lib/connection.js';\nconst VERSION_RANGE = '>=1.11.0 <21';\n\n// `Connection` methods that dispatch a request (each traced as one db span) plus `connect`, which the\n// subscriber wraps for bookkeeping only (tracking the connection's active database, read into `db.name`).\n// All return synchronously; the request completes later via its callback/events, so the subscriber owns\n// span-ending rather than the channel lifecycle.\nconst METHODS = ['connect', 'execSql', 'execSqlBatch', 'callProcedure', 'execBulkLoad', 'prepare', 'execute'] as const;\n\nexport const tediousConfig: InstrumentationConfig[] = METHODS.map(methodName => ({\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: FILE_PATH },\n functionQuery: { className: 'Connection', methodName, kind: 'Sync' },\n}));\n\nexport const tediousModuleNames = getModuleNames(tediousConfig);\n\nexport const tediousChannels = {\n TEDIOUS_CONNECT: 'orchestrion:tedious:connect',\n TEDIOUS_EXEC_SQL: 'orchestrion:tedious:execSql',\n TEDIOUS_EXEC_SQL_BATCH: 'orchestrion:tedious:execSqlBatch',\n TEDIOUS_CALL_PROCEDURE: 'orchestrion:tedious:callProcedure',\n TEDIOUS_EXEC_BULK_LOAD: 'orchestrion:tedious:execBulkLoad',\n TEDIOUS_PREPARE: 'orchestrion:tedious:prepare',\n TEDIOUS_EXECUTE: 'orchestrion:tedious:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `together-ai` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const togetherAiConfig = [\n ...openAiCompatibleConfig({ name: 'together-ai', versionRange: '>=0.6.0 <1' }),\n // 1.x defines `create` on `BaseCompletions`/`BaseEmbeddings`; `Completions`/`Embeddings` are empty subclasses.\n ...openAiCompatibleConfig(\n { name: 'together-ai', versionRange: '>=1.0.0 <2' },\n { chat: 'BaseCompletions', embeddings: 'BaseEmbeddings' },\n ),\n] satisfies InstrumentationConfig[];\n\nexport const togetherAiModuleNames = getModuleNames(togetherAiConfig);\n\nexport const togetherAiChannels = {\n TOGETHER_CHAT: 'orchestrion:together-ai:chat',\n TOGETHER_EMBEDDINGS: 'orchestrion:together-ai:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `systemOne` returns a lazy `APIPromise` whose body is parsed on the first `.then()`. `kind: 'Sync'`\n// keeps orchestrion from calling `.then()` on it (which `Auto` would), so a caller's `asResponse()`\n// still gets an unread body. The SDK ships one bundled file per module format.\nexport const typesafeConfig = ['dist/index.mjs', 'dist/index.cjs'].map(filePath => ({\n channelName: 'system-one',\n module: { name: '@typesafe-ai/sdk', versionRange: '>=0.5.0 <1', filePath },\n functionQuery: { className: 'TypeSafeClient', methodName: 'systemOne', kind: 'Sync' as const },\n})) satisfies InstrumentationConfig[];\n\nexport const typesafeModuleNames = getModuleNames(typesafeConfig);\n\nexport const typesafeChannels = {\n TYPESAFE_SYSTEM_ONE: 'orchestrion:@typesafe-ai/sdk:system-one',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const vercelAiConfig = [\n ...['dist/index.js', 'dist/index.mjs'].map(filePath =>\n registrationOnly({ name: 'ai', versionRange: '>=7.0.0', filePath }),\n ),\n // Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting\n // channels into the top-level entry points. `resolveLanguageModel` is wrapped\n // not to span it, but so the subscriber can monkey-patch `doGenerate`/\n // `doStream` on the returned model (the only way to span the model call,\n // which is an inline call with no injectable definition in `ai`).\n // `streamText` and `streamObject` return their result synchronously (streaming\n // is lazy), so they're `Sync`; the subscriber binds the span via\n // `bindTracingChannelToSpan`, which ends it when the (synchronous) call returns.\n\n // The majority of entrypoints are present in all versions we support\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateText', 'generateText', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamText', 'streamText', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamObject', 'streamObject', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateObject', 'generateObject', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embed', 'embed', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embedMany', 'embedMany', 'Async'),\n\n // The following entry is only present in v5 and later\n ...vercelAiEntries('>=5.0.0 <7.0.0', 'resolveLanguageModel', 'resolveLanguageModel', 'Sync'),\n\n // The following entry is only present in v6 and later\n ...vercelAiEntries('>=6.0.0 <7.0.0', 'executeToolCall', 'executeToolCall', 'Async'),\n] satisfies InstrumentationConfig[];\n\nexport const vercelAiChannels = {\n // Vercel AI (`ai`): orchestrion injects these so the same channel-based\n // integration that consumes `ai`'s native `ai:telemetry` channel (v7) can\n // also instrument v4/v5/v6. Each maps to a top-level function in `ai`'s bundle.\n // All three versions share the same channel names (the subscriber is version-agnostic);\n // `VERCEL_AI_EXECUTE_TOOL_CALL` is v6-only (v4/v5 have no `executeToolCall` export) and\n // `VERCEL_AI_RESOLVE_LANGUAGE_MODEL` is v5/v6-only (v4 has no such chokepoint).\n VERCEL_AI_GENERATE_TEXT: 'orchestrion:ai:generateText',\n VERCEL_AI_STREAM_TEXT: 'orchestrion:ai:streamText',\n VERCEL_AI_STREAM_OBJECT: 'orchestrion:ai:streamObject',\n VERCEL_AI_GENERATE_OBJECT: 'orchestrion:ai:generateObject',\n VERCEL_AI_EMBED: 'orchestrion:ai:embed',\n VERCEL_AI_EMBED_MANY: 'orchestrion:ai:embedMany',\n VERCEL_AI_EXECUTE_TOOL_CALL: 'orchestrion:ai:executeToolCall',\n VERCEL_AI_RESOLVE_LANGUAGE_MODEL: 'orchestrion:ai:resolveLanguageModel',\n} as const;\n\n/**\n * The central list of channel injections orchestrion should perform.\n *\n * This module has NO side effects — it's the only thing both the runtime hook\n * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)\n * import from. Adding a new instrumented method is one entry here plus one\n * subscriber in `integrations/<lib>/tracing-channel.ts`.\n *\n * `channelName` here is the unprefixed suffix; the actual diagnostics_channel\n * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).\n */\n/**\n * `ai` ships a single bundled entry per module system, so each instrumented\n * function needs one config entry per file (the app loads whichever matches its\n * module system). This expands a single target into both.\n */\nfunction vercelAiEntries(\n versionRange: string,\n channelName: string,\n functionName: string,\n kind: 'Async' | 'Sync',\n): InstrumentationConfig[] {\n return ['dist/index.js', 'dist/index.mjs'].map(filePath => ({\n channelName,\n module: { name: 'ai', versionRange, filePath },\n functionQuery: { functionName, kind },\n }));\n}\n\nexport const vercelAiModuleNames = getModuleNames(vercelAiConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { uniq } from '@sentry/core';\n\nimport { awsSdkConfig } from './aws-sdk';\nimport { amqplibConfig } from './amqplib';\nimport { anthropicAiConfig } from './anthropic-ai';\nimport { clickhouseConfig } from './clickhouse';\nimport { cronConfig } from './cron';\nimport { dataloaderConfig } from './dataloader';\nimport { expressConfig } from './express';\nimport { firebaseConfig } from './firebase';\nimport { genericPoolConfig } from './generic-pool';\nimport { googleGenAiConfig } from './google-genai';\nimport { graphqlConfig } from './graphql';\nimport { groqConfig } from './groq';\nimport { hapiConfig } from './hapi';\nimport { honoConfig } from './hono';\nimport { ioredisConfig } from './ioredis';\nimport { kafkajsConfig } from './kafkajs';\nimport { knexConfig } from './knex';\nimport { koaConfig } from './koa';\nimport { langchainConfig } from './langchain';\nimport { langgraphConfig } from './langgraph';\nimport { lruMemoizerConfig } from './lru-memoizer';\nimport { flueConfig } from './flue';\nimport { mastraConfig } from './mastra';\nimport { piAiConfig } from './pi-ai';\nimport { piDurableConfig } from './pi-durable';\nimport { mcpServerConfig } from './mcp-server';\nimport { mistralConfig } from './mistral';\nimport { mongodbConfig } from './mongodb';\nimport { mongooseConfig } from './mongoose';\nimport { mysql2Config } from './mysql2';\nimport { mysqlConfig } from './mysql';\nimport { neonConfig } from './neon';\nimport { nestjsConfig } from './nestjs';\nimport { nitroConfig } from './nitro';\nimport { nodeCronConfig } from './node-cron';\nimport { nodeScheduleConfig } from './node-schedule';\nimport { openaiConfig } from './openai';\nimport { pgConfig } from './pg';\nimport { postgresJsConfig } from './postgres';\nimport { prismaConfig } from './prisma';\nimport { redisConfig } from './redis';\nimport { remixConfig } from './remix';\nimport { remixV3Config } from './remix-v3';\nimport { tediousConfig } from './tedious';\nimport { togetherAiConfig } from './together-ai';\nimport { typesafeConfig } from './typesafe';\nimport { vercelAiConfig } from './vercel-ai';\n// Kept sorted alphabetically by module so concurrent additions insert at different\n// points rather than all appending to the end (fewer merge conflicts).\n\n/**\n * The orchestrion code-transform configs. Every instrumentable library is here\n * so the transform is all-or-nothing: whenever orchestrion is enabled, all of\n * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS\n * one lives in `@sentry/nestjs`), but the config that decides what gets\n * transformed is centralized here.\n *\n * This module MUST stay pure, stateless data. It is loaded in more than one realm\n * at once — the build-time bundler plugin inlines it into the server chunk, while\n * `@sentry/server-runtime-injection`'s external `register` loads its own copy from\n * `node_modules` at runtime. Two identical, side-effect-free arrays are harmless;\n * any module-level mutable state here would silently diverge between those copies.\n */\nexport const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[] = [\n ...amqplibConfig,\n ...anthropicAiConfig,\n ...awsSdkConfig,\n ...clickhouseConfig,\n ...cronConfig,\n ...dataloaderConfig,\n ...expressConfig,\n ...firebaseConfig,\n ...genericPoolConfig,\n ...googleGenAiConfig,\n ...graphqlConfig,\n ...groqConfig,\n ...hapiConfig,\n ...honoConfig,\n ...ioredisConfig,\n ...kafkajsConfig,\n ...knexConfig,\n ...koaConfig,\n ...langchainConfig,\n ...langgraphConfig,\n ...lruMemoizerConfig,\n ...flueConfig,\n ...mastraConfig,\n ...mcpServerConfig,\n ...mistralConfig,\n ...mongodbConfig,\n ...mongooseConfig,\n ...mysql2Config,\n ...mysqlConfig,\n ...neonConfig,\n ...nestjsConfig,\n ...nitroConfig,\n ...nodeCronConfig,\n ...nodeScheduleConfig,\n ...openaiConfig,\n ...pgConfig,\n ...piAiConfig,\n ...piDurableConfig,\n ...postgresJsConfig,\n ...prismaConfig,\n ...redisConfig,\n ...remixConfig,\n ...remixV3Config,\n ...tediousConfig,\n ...togetherAiConfig,\n ...typesafeConfig,\n ...vercelAiConfig,\n];\n\n/**\n * The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader\n * (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or\n * `Sentry.init()`) can actually apply.\n *\n * Registration-only configs (native-channel libraries such as `ai` v7,\n * `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom\n * `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the\n * BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,\n * applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's\n * `initialize()` receives no custom transforms. Attempting one of these at\n * runtime therefore throws `TypeError: transform is not a function`, which the\n * loader misreports as the always-on \"`@sentry/server-runtime-injection` was\n * bundled ... loads uninstrumented\" warning even though nothing is wrong.\n *\n * Excluding them at runtime is correct, not just a way to silence the warning:\n * these libraries publish their own tracing channels, and their integrations\n * subscribe through `setupOnce()` / `waitForTracingChannelBinding`,\n * independently of the module-injected snippet. That snippet only fires\n * `orchestrion.module-injected`, which drives the `setup()` /\n * `invokeOrchestrionInstrumentation` path; for a native-channel version that\n * path subscribes to the injected `orchestrion:*` channels the library never\n * publishes — a no-op. So running these at runtime would add no spans. The\n * snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs\n * (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to\n * instantiate its integration factory. `@sentry/node` registers its\n * integrations statically, so it does not need it.\n */\nexport const SENTRY_RUNTIME_INSTRUMENTATIONS: InstrumentationConfig[] = SENTRY_INSTRUMENTATIONS.filter(\n config => !config.transform,\n);\n\n/**\n * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`\n * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).\n *\n * Bundler plugins MUST ensure these are actually bundled rather than\n * externalized: an externalized dependency is resolved from `node_modules` at\n * runtime and never passes through the code transform's `onLoad`, so its\n * diagnostics_channel calls are silently never injected. This includes a\n * plugin's custom `instrumentations`, otherwise those extra packages can stay\n * externalized and their transform never runs.\n */\nexport function instrumentedModuleNames(instrumentations: InstrumentationConfig[] = []): string[] {\n return [\n ...uniq([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map(i => i.module.name)),\n // Additional things that need to be bundled but are not covered by the above\n // Remix needs to bundle this so @remix-run/server-runtime is _also_ bundled\n '@remix-run/node',\n ];\n}\n\n/** The instrumented module names from the default Sentry config, with no custom additions. */\nexport const INSTRUMENTED_MODULE_NAMES: string[] = instrumentedModuleNames();\n\n/**\n * The package names the SDK instruments through the orchestrion module transform (its\n * diagnostics-channel injection). Pass these to a server bundler's \"keep external\" option so the\n * packages load through Node's module loader — the only path the transform can hook — instead of\n * being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via\n * `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply\n * ignored by the bundler.\n *\n * Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only\n * additions — those force a helper package to be *bundled*, the opposite of keeping it external.\n */\nexport function getInstrumentedModuleNames(): string[] {\n return uniq(SENTRY_INSTRUMENTATIONS.map(instrumentation => instrumentation.module.name));\n}\n\n/**\n * Returns `external` with any instrumented packages removed, so a bundler that\n * uses an \"external\" denylist (esbuild, Bun, Rollup) still bundles — and thus\n * transforms — them. Matches an exact package name (`'mysql'`) or a subpath\n * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`\n * is returned unchanged.\n *\n * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so\n * custom instrumentations are stripped too; it defaults to the Sentry config\n * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes\n * `instrumentedModuleNames` directly rather than this helper.)\n */\nexport function withoutInstrumentedExternals(\n external: readonly string[] | undefined,\n moduleNames: string[] = INSTRUMENTED_MODULE_NAMES,\n): string[] | undefined {\n if (!external) {\n return undefined;\n }\n return external.filter(entry => !moduleNames.some(name => entry === name || entry.startsWith(`${name}/`)));\n}\n\n// This is exported so that the nestjs package can use it to subscribe to the channels.\nexport { nestjsChannels } from './nestjs';\n// This is exported so that the remix package can use it to subscribe to the channels.\nexport { remixChannels } from './remix';\n// Exported so the remix package can subscribe to the Remix 3 channels, and hand only these configs to\n// the browser transform.\nexport { remixV3Channels, remixV3Config } from './remix-v3';\n"],"mappings":";;;;AAYA,MAAa,eAAe;CAC1B;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAAgB,cAAc;GAAe,UAAU;EAAsC;EAC7G,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CAC1E;CACA;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAAyB,cAAc;GAAc,UAAU;EAAoB;EACnG,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CAC1E;CACA;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAA0B,cAAc;GAAU,UAAU;EAAoB;EAChG,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CAC1E;AACF;AAEA,MAAa,oBAAoBA,cAAAA,eAAe,YAAY;AAE5D,MAAa,iBAAiB;CAC5B,sBAAsB;CACtB,wBAAwB;CACxB,4BAA4B;AAC9B;;ACpBA,MAAMC,WAAS;CAAE,MAAM;CAAW,cAAc;AAAa;AAE7D,MAAa,gBAAgB;CAC3B,GAAG,CAAC,wBAAwB,uBAAuB,CAAC,CAAC,SAAS,aAAsC;EAElG;GACE,aAAa;GACb,QAAQ;IAAE,GAAGA;IAAQ;GAAS;GAC9B,eAAe;IAAE,WAAW;IAAW,YAAY;IAAW,MAAM;GAAO;EAC7E;EAGA;GACE,aAAa;GACb,QAAQ;IAAE,GAAGA;IAAQ;GAAS;GAC9B,eAAe;IAAE,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;;;;;;;;;;;;;AAcA,SAAgB,6BACd,UACA,cAAwB,2BACF;CACtB,IAAI,CAAC,UACH;CAEF,OAAO,SAAS,QAAO,UAAS,CAAC,YAAY,MAAK,SAAQ,UAAU,QAAQ,MAAM,WAAW,GAAG,KAAK,EAAE,CAAC,CAAC;AAC3G"}
1
+ {"version":3,"file":"config.js","names":["getModuleNames","module","getModuleNames","getModuleNames","METHODS","getModuleNames","getModuleNames","module","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","getModuleNames","MODULE_NAME","getModuleNames","getModuleNames","module","getModuleNames","getModuleNames","registrationOnly","getModuleNames","module","getModuleNames","getModuleNames","getModuleNames","module","getModuleNames","module","registrationOnly","getModuleNames","registrationOnly","getModuleNames","getModuleNames","module","getModuleNames","registrationOnly","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","MODULE_NAME","VERSION_RANGE","getModuleNames","registrationOnly","getModuleNames","getModuleNames","getModuleNames","getModuleNames","getModuleNames","registrationOnly","getModuleNames","piAiConfig","uniq"],"sources":["../../../src/orchestrion/config/aws-sdk.ts","../../../src/orchestrion/config/amqplib.ts","../../../src/orchestrion/config/anthropic-ai.ts","../../../src/orchestrion/config/clickhouse.ts","../../../src/orchestrion/config/cron.ts","../../../src/orchestrion/config/dataloader.ts","../../../src/orchestrion/config/express.ts","../../../src/orchestrion/config/firebase.ts","../../../src/orchestrion/config/generic-pool.ts","../../../src/orchestrion/config/google-genai.ts","../../../src/orchestrion/config/graphql.ts","../../../src/orchestrion/config/openai-compatible.ts","../../../src/orchestrion/config/groq.ts","../../../src/orchestrion/config/hapi.ts","../../../src/orchestrion/config/hono.ts","../../../src/orchestrion/config/ioredis.ts","../../../src/orchestrion/config/kafkajs.ts","../../../src/orchestrion/config/knex.ts","../../../src/orchestrion/config/koa.ts","../../../src/orchestrion/config/langchain.ts","../../../src/orchestrion/config/langgraph.ts","../../../src/orchestrion/config/lru-memoizer.ts","../../../src/orchestrion/config/flue.ts","../../../src/orchestrion/config/mastra.ts","../../../src/orchestrion/config/pi-durable.ts","../../../src/orchestrion/config/mcp-server.ts","../../../src/orchestrion/config/mistral.ts","../../../src/orchestrion/config/mongodb.ts","../../../src/orchestrion/config/mongoose.ts","../../../src/orchestrion/config/mysql2.ts","../../../src/orchestrion/config/mysql.ts","../../../src/orchestrion/config/neon.ts","../../../src/orchestrion/config/nestjs.ts","../../../src/orchestrion/config/nitro.ts","../../../src/orchestrion/config/node-cron.ts","../../../src/orchestrion/config/node-schedule.ts","../../../src/orchestrion/config/openai.ts","../../../src/orchestrion/config/pg.ts","../../../src/orchestrion/config/postgres.ts","../../../src/orchestrion/config/prisma.ts","../../../src/orchestrion/config/redis.ts","../../../src/orchestrion/config/remix.ts","../../../src/orchestrion/config/remix-v3.ts","../../../src/orchestrion/config/tanstack-ai.ts","../../../src/orchestrion/config/tedious.ts","../../../src/orchestrion/config/together-ai.ts","../../../src/orchestrion/config/typesafe.ts","../../../src/orchestrion/config/vercel-ai.ts","../../../src/orchestrion/config/index.ts"],"sourcesContent":["import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// The AWS SDK (v3) routes every command through the smithy `Client.prototype.send` method. Which\n// package hosts that `Client` class changed across versions, so we target all of them; only the one\n// the app's client actually extends is ever invoked.\n//\n// - `@smithy/core` >= 3.24.0: the `Client` class moved into the `client` submodule bundle.\n// - `@smithy/smithy-client`: the `Client` class for aws-sdk v3.363.0+ (pre-`@smithy/core` stack).\n// - `@aws-sdk/smithy-client`: the `Client` class for older aws-sdk v3 releases.\n//\n// `send` is `async send(command, options)` (returns a promise), so `kind: 'Async'`.\nexport const awsSdkConfig = [\n {\n channelName: 'send',\n module: { name: '@smithy/core', versionRange: '>=3.24.0 <4', filePath: 'dist-cjs/submodules/client/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@smithy/smithy-client', versionRange: '>=1.0.3 <5', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n {\n channelName: 'send',\n module: { name: '@aws-sdk/smithy-client', versionRange: '^3.1.0', filePath: 'dist-cjs/index.js' },\n functionQuery: { className: 'Client', methodName: 'send', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const awsSdkModuleNames = getModuleNames(awsSdkConfig);\n\nexport const awsSdkChannels = {\n AWS_SMITHY_CORE_SEND: 'orchestrion:@smithy/core:send',\n AWS_SMITHY_CLIENT_SEND: 'orchestrion:@smithy/smithy-client:send',\n AWS_SDK_SMITHY_CLIENT_SEND: 'orchestrion:@aws-sdk/smithy-client:send',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `amqplib` splits its API across these files:\n// - `lib/channel_model.js` (promise API) and `lib/callback_model.js` (callback API) each hold a\n// `class Channel` (publish/consume/ack/nack/reject/…) and a `class ConfirmChannel extends Channel`\n// (a `publish` that takes a broker-confirm callback). The method signatures match, so both files\n// publish to the same channels.\n// - `lib/channel.js` holds `class BaseChannel` whose `dispatchMessage` invokes the registered\n// consumer callback once per delivered message — the natural per-message hook for consumer spans\n// (`Channel.consume` itself only registers the callback, it isn't called per message).\n// - `lib/connect.js` holds the `connect` function whose callback receives the open connection, used\n// to capture connection attributes.\n//\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'amqplib', versionRange: '>=0.5.5 <3' } as const;\n\nexport const amqplibConfig = [\n ...['lib/channel_model.js', 'lib/callback_model.js'].flatMap((filePath): InstrumentationConfig[] => [\n // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.\n {\n channelName: 'publish',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'publish', kind: 'Sync' },\n },\n // Confirm-channel producer span; the trailing broker-confirm callback ends the span when the\n // broker acks/nacks. It internally calls the base `publish`, so the subscriber skips that nested call.\n {\n channelName: 'confirmPublish',\n module: { ...module, filePath },\n functionQuery: { className: 'ConfirmChannel', methodName: 'publish', kind: 'Callback' },\n },\n // `consume` knows the queue and `noAck`, and `registerConsumer` knows the tag. Together they tell the\n // dispatch hook how to name the consumer span and when to end it. `Sync`, because the callback API\n // returns the channel and only a synchronous throw leaves the channel open.\n {\n channelName: 'consume',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'consume', kind: 'Sync' },\n },\n // End the consumer span when the user settles the message.\n {\n channelName: 'ack',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'ack', kind: 'Sync' },\n },\n {\n channelName: 'nack',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'nack', kind: 'Sync' },\n },\n {\n channelName: 'reject',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'reject', kind: 'Sync' },\n },\n {\n channelName: 'ackAll',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'ackAll', kind: 'Sync' },\n },\n {\n channelName: 'nackAll',\n module: { ...module, filePath },\n functionQuery: { className: 'Channel', methodName: 'nackAll', kind: 'Sync' },\n },\n ]),\n {\n channelName: 'registerConsumer',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'registerConsumer', kind: 'Sync' },\n },\n // Per delivered message: creates the consumer span and runs the user callback under it.\n {\n channelName: 'dispatch',\n module: { ...module, filePath: 'lib/channel.js' },\n functionQuery: { className: 'BaseChannel', methodName: 'dispatchMessage', kind: 'Sync' },\n },\n // Stashes connection attributes (url/host/port/protocol/server product) on the connection object\n // for span-time reads via `channel.connection`.\n {\n channelName: 'connect',\n module: { ...module, filePath: 'lib/connect.js' },\n functionQuery: { functionName: 'connect', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const amqplibModuleNames = getModuleNames(amqplibConfig);\n\nexport const amqplibChannels = {\n AMQPLIB_PUBLISH: 'orchestrion:amqplib:publish',\n AMQPLIB_CONFIRM_PUBLISH: 'orchestrion:amqplib:confirmPublish',\n AMQPLIB_CONSUME: 'orchestrion:amqplib:consume',\n AMQPLIB_REGISTER_CONSUMER: 'orchestrion:amqplib:registerConsumer',\n AMQPLIB_DISPATCH: 'orchestrion:amqplib:dispatch',\n AMQPLIB_ACK: 'orchestrion:amqplib:ack',\n AMQPLIB_NACK: 'orchestrion:amqplib:nack',\n AMQPLIB_REJECT: 'orchestrion:amqplib:reject',\n AMQPLIB_ACK_ALL: 'orchestrion:amqplib:ackAll',\n AMQPLIB_NACK_ALL: 'orchestrion:amqplib:nackAll',\n AMQPLIB_CONNECT: 'orchestrion:amqplib:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const anthropicAiConfig = [\n // One entry each for CJS/ESM\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n })),\n // Removed in 1.0.\n ...['resources/completions.js', 'resources/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <1', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'create', kind: 'Sync' as const },\n })),\n // `messages.stream()` returns a synchronous emitter, not a promise, so `kind: 'Sync'` is required:\n // `Auto`'s promise wrapper never publishes `end` for a non-thenable return, so the span would never end.\n ...['resources/messages/messages.js', 'resources/messages/messages.mjs'].map(filePath => ({\n channelName: 'messages-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.19.2 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'stream', kind: 'Sync' as const },\n })),\n ...['resources/beta/messages/messages.js', 'resources/beta/messages/messages.mjs'].map(filePath => ({\n channelName: 'tool-runner',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.63.0 <2', filePath },\n functionQuery: { className: 'Messages', methodName: 'toolRunner', kind: 'Sync' as const },\n })),\n // The constructor, not `sessions.events.toolRunner()`, so runners built directly (e.g. by `EnvironmentWorker`) are covered.\n ...['lib/tools/SessionToolRunner.js', 'lib/tools/SessionToolRunner.mjs'].map(filePath => ({\n channelName: 'session-tool-runner',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=0.97.0 <2', filePath },\n functionQuery: { className: 'SessionToolRunner' },\n })),\n // Thread and tool-runner streams parse the response of their `create()` call themselves, so the chat channel\n // never sees that stream.\n ...['lib/BetaMessageStream.js', 'lib/BetaMessageStream.mjs'].map(filePath => ({\n channelName: 'thread-stream',\n module: { name: '@anthropic-ai/sdk', versionRange: '>=1.2.0 <2', filePath },\n functionQuery: { className: 'BetaMessageStream', methodName: '_start', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const anthropicAiModuleNames = getModuleNames(anthropicAiConfig);\n\nexport const anthropicAiChannels = {\n ANTHROPIC_CHAT: 'orchestrion:@anthropic-ai/sdk:chat',\n ANTHROPIC_MESSAGES_STREAM: 'orchestrion:@anthropic-ai/sdk:messages-stream',\n ANTHROPIC_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:tool-runner',\n ANTHROPIC_SESSION_TOOL_RUNNER: 'orchestrion:@anthropic-ai/sdk:session-tool-runner',\n ANTHROPIC_THREAD_STREAM: 'orchestrion:@anthropic-ai/sdk:thread-stream',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `ClickHouseClient` sends every statement through four `async` methods: `query`, `command`, `exec`\n// and `insert`. None of them calls another, so each call is traced as exactly one db span. `ping`\n// and `close` carry no statement and are left alone.\n//\n// Two file layouts across the supported range:\n// - `< 1.23.0` → the class lives in the separate `@clickhouse/client-common` package (`dist/client.js`)\n// - `>= 1.23.0` → `@clickhouse/client` and `@clickhouse/client-web` each ship that code in\n// `dist/common/client.js`\n//\n// Starts at 1.1.0: before it, `command` delegated to `exec` (two spans per command) and the client\n// did not keep the `connectionParams` the span attributes are read from.\n//\n// The Node.js `NodeClickHouseClient` subclass only forwards `query` to `super`, and its class name\n// doesn't match `className`, so it doesn't add a second span.\nconst METHODS = ['query', 'command', 'exec', 'insert'] as const;\n\nconst MODULES = [\n { name: '@clickhouse/client-common', versionRange: '>=1.1.0 <1.23.0', filePath: 'dist/client.js' },\n { name: '@clickhouse/client', versionRange: '>=1.23.0 <2', filePath: 'dist/common/client.js' },\n { name: '@clickhouse/client-web', versionRange: '>=1.23.0 <2', filePath: 'dist/common/client.js' },\n];\n\nexport const clickhouseConfig: InstrumentationConfig[] = MODULES.flatMap(module =>\n METHODS.map(methodName => ({\n channelName: methodName,\n module,\n functionQuery: { className: 'ClickHouseClient', methodName, kind: 'Async' as const },\n })),\n);\n\nexport const clickhouseModuleNames = getModuleNames(clickhouseConfig);\n\nexport const clickhouseChannels = {\n CLICKHOUSE_QUERY: 'orchestrion:@clickhouse/client:query',\n CLICKHOUSE_COMMAND: 'orchestrion:@clickhouse/client:command',\n CLICKHOUSE_EXEC: 'orchestrion:@clickhouse/client:exec',\n CLICKHOUSE_INSERT: 'orchestrion:@clickhouse/client:insert',\n CLICKHOUSE_WEB_QUERY: 'orchestrion:@clickhouse/client-web:query',\n CLICKHOUSE_WEB_COMMAND: 'orchestrion:@clickhouse/client-web:command',\n CLICKHOUSE_WEB_EXEC: 'orchestrion:@clickhouse/client-web:exec',\n CLICKHOUSE_WEB_INSERT: 'orchestrion:@clickhouse/client-web:insert',\n CLICKHOUSE_COMMON_QUERY: 'orchestrion:@clickhouse/client-common:query',\n CLICKHOUSE_COMMON_COMMAND: 'orchestrion:@clickhouse/client-common:command',\n CLICKHOUSE_COMMON_EXEC: 'orchestrion:@clickhouse/client-common:exec',\n CLICKHOUSE_COMMON_INSERT: 'orchestrion:@clickhouse/client-common:insert',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `CronJob.from()` calls the constructor. Job names were added in 4.3.0.\nexport const cronConfig = [\n {\n channelName: 'cronJobConstructor',\n module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n functionQuery: { className: 'CronJob' },\n },\n {\n channelName: 'cronJobSetTime',\n module: { name: 'cron', versionRange: '>=4.3.0 <5', filePath: 'dist/job.js' },\n functionQuery: { className: 'CronJob', methodName: 'setTime', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const cronModuleNames = getModuleNames(cronConfig);\n\nexport const cronChannels = {\n CRON_JOB_CONSTRUCTOR: 'orchestrion:cron:cronJobConstructor',\n CRON_JOB_SET_TIME: 'orchestrion:cron:cronJobSetTime',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// `dataloader` ships a single transpiled CommonJS `index.js`. Its class methods are emitted as\n// `_proto.<name> = function <name>() {}` (named function *expressions*), so they match on\n// `expressionName` rather than `methodName`. The constructor is a named function declaration.\n// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.\nconst module = { name: 'dataloader', versionRange: '>=2.0.0 <3', filePath: 'index.js' } as const;\n\nexport const dataloaderConfig = [\n // Wrap the constructor so the subscriber can wrap the user's `batchLoadFn` (arg 0). The batch span\n // is opened when that wrapped function actually runs (on the deferred dispatch tick), mirroring the\n // vendored OTel instrumentation which also wraps `batchLoadFn` at construction time.\n {\n channelName: 'construct',\n module,\n functionQuery: { functionName: 'DataLoader', kind: 'Sync' },\n },\n // `load`/`loadMany` return Promises, so they're `Async`: the span ends on `asyncEnd` (when the\n // load resolves), capturing the real latency and enclosing the deferred `batch` span — matching the\n // vendored OTel `startSpan`. `prime`/`clear`/`clearAll` return `this` synchronously, so they stay `Sync`.\n {\n channelName: 'load',\n module,\n functionQuery: { expressionName: 'load', kind: 'Async' },\n },\n {\n channelName: 'loadMany',\n module,\n functionQuery: { expressionName: 'loadMany', kind: 'Async' },\n },\n {\n channelName: 'prime',\n module,\n functionQuery: { expressionName: 'prime', kind: 'Sync' },\n },\n {\n channelName: 'clear',\n module,\n functionQuery: { expressionName: 'clear', kind: 'Sync' },\n },\n {\n channelName: 'clearAll',\n module,\n functionQuery: { expressionName: 'clearAll', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const dataloaderChannels = {\n DATALOADER_CONSTRUCT: 'orchestrion:dataloader:construct',\n DATALOADER_LOAD: 'orchestrion:dataloader:load',\n DATALOADER_LOAD_MANY: 'orchestrion:dataloader:loadMany',\n DATALOADER_PRIME: 'orchestrion:dataloader:prime',\n DATALOADER_CLEAR: 'orchestrion:dataloader:clear',\n DATALOADER_CLEAR_ALL: 'orchestrion:dataloader:clearAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const expressConfig = [\n // Express funnels every middleware/route handler through a single method on\n // its routing `Layer`, so instrumenting that one method covers the whole\n // request pipeline. The `expressIntegration` opens one span per layer\n // invocation. Both are `Layer.prototype.<method> = function <fn>(req, res, next)`\n // prototype assignments (not `class` methods), so `expressionName` (matching\n // the assignment's `left.property.name`) is used. `Callback`: the handler's\n // last argument is `next`, so the transform ends the traced operation when\n // `next` is invoked (and publishes `error` when it's called with an error).\n //\n // Express v4 ships its own router in `express/lib/router/layer.js`.\n {\n channelName: 'handle',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/layer.js' },\n // v4's method is `Layer.prototype.handle_request = function handle(...)` —\n // match the assigned property name, not the function name.\n functionQuery: { expressionName: 'handle_request', kind: 'Callback' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'handle',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'lib/layer.js' },\n functionQuery: { expressionName: 'handleRequest', kind: 'Callback' },\n },\n // Layer *registration* methods. `Router.prototype.route`/`.use` are called\n // once per registered route/middleware (including internally by `app.get`/\n // `app.use`), so subscribing here lets us record each layer's registered path\n // *pattern* — which the handler path (`req.baseUrl`) can't recover for\n // parameterized mounts. `Sync`: these return synchronously and, unlike a\n // handler, `use`'s trailing function argument is a registration payload, not a\n // callback — so `Callback` would misclassify it and never fire `end`.\n //\n // `route` and `use` share one `register` channel because the subscriber handles\n // them identically, saving a channel per module.\n //\n // Express v4 ships its own router in `express/lib/router/index.js`.\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'express', versionRange: '>=4.0.0 <5', filePath: 'lib/router/index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n // Express v5 delegates routing to the standalone `router` package.\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'register',\n module: { name: 'router', versionRange: '>=2.0.0 <3', filePath: 'index.js' },\n functionQuery: { expressionName: 'use', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const expressModuleNames = getModuleNames(expressConfig);\n\nexport const expressChannels = {\n // Express v4 runs each layer's handler through `Layer.prototype.handle_request`\n // in the `express` module.\n EXPRESS_HANDLE: 'orchestrion:express:handle',\n // Express v5 delegates routing to the standalone `router` package, where the\n // equivalent method is `Layer.prototype.handleRequest`.\n ROUTER_HANDLE: 'orchestrion:router:handle',\n // Layer *registration* (`Router.prototype.route`/`.use`), used to capture each\n // layer's registered path pattern so the matched route can be reconstructed\n // with its parameters intact (`req.baseUrl` only exposes the resolved prefix).\n EXPRESS_REGISTER: 'orchestrion:express:register',\n ROUTER_REGISTER: 'orchestrion:router:register',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// firebase 9+ ships firestore as `@firebase/firestore` (matches the OTel integration's range). Only the\n// `lite` SDK exposes the free `addDoc`/`getDocs`/`setDoc`/`deleteDoc` functions we trace, and only the\n// `node` entry points (CJS `require`, ESM `import`) are reachable from `@sentry/node`; the\n// browser/react-native builds are irrelevant here. `addDoc` & co. are top-level `function <name>`\n// declarations, so `functionName` matches; they return promises, so `Auto` settles the span on\n// `asyncEnd`. firebase <12.8 declares them in `index.node.{cjs.js,mjs}`; firebase >=12.8 (firestore\n// >=4.10) moved them into a hash-named shared chunk `common-<hash>.node.{cjs.js,mjs}` — the RegExp\n// matches both, so injection keeps working across the version range without pinning a build hash.\nconst FIRESTORE_VERSION_RANGE = '>=3.0.0 <5';\nconst FIRESTORE_FILE = /dist\\/lite\\/(index|common-[^/]+)\\.node\\.(cjs\\.js|mjs)$/;\nconst FIRESTORE_OPERATIONS = [\n { functionName: 'addDoc', channelName: 'add-doc' },\n { functionName: 'getDocs', channelName: 'get-docs' },\n { functionName: 'setDoc', channelName: 'set-doc' },\n { functionName: 'deleteDoc', channelName: 'delete-doc' },\n] as const;\n\n// firebase-functions v2 (CJS-only). The `onX` provider functions *register* a handler and return a\n// synchronous cloud function, so `Sync` is required — the span itself is opened later, when the handler\n// runs, by rewrapping the handler argument in the channel's `start` (see `./firebase/functions`). One\n// channel per faas trigger so the subscriber knows the trigger type without inspecting arguments.\nconst FUNCTIONS_VERSION_RANGE = '>=6.0.0 <7';\nconst FUNCTIONS_TRIGGERS = [\n { file: 'lib/v2/providers/https.js', functionName: 'onRequest', channelName: 'http-request' },\n { file: 'lib/v2/providers/https.js', functionName: 'onCall', channelName: 'http-call' },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentCreated', channelName: 'firestore-created' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentCreatedWithAuthContext',\n channelName: 'firestore-created',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentUpdated', channelName: 'firestore-updated' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentUpdatedWithAuthContext',\n channelName: 'firestore-updated',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentDeleted', channelName: 'firestore-deleted' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentDeletedWithAuthContext',\n channelName: 'firestore-deleted',\n },\n { file: 'lib/v2/providers/firestore.js', functionName: 'onDocumentWritten', channelName: 'firestore-written' },\n {\n file: 'lib/v2/providers/firestore.js',\n functionName: 'onDocumentWrittenWithAuthContext',\n channelName: 'firestore-written',\n },\n { file: 'lib/v2/providers/scheduler.js', functionName: 'onSchedule', channelName: 'scheduler' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectFinalized', channelName: 'storage-finalized' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectArchived', channelName: 'storage-archived' },\n { file: 'lib/v2/providers/storage.js', functionName: 'onObjectDeleted', channelName: 'storage-deleted' },\n {\n file: 'lib/v2/providers/storage.js',\n functionName: 'onObjectMetadataUpdated',\n channelName: 'storage-metadata-updated',\n },\n] as const;\n\nexport const firebaseConfig = [\n ...FIRESTORE_OPERATIONS.map(({ functionName, channelName }) => ({\n channelName,\n module: { name: '@firebase/firestore', versionRange: FIRESTORE_VERSION_RANGE, filePath: FIRESTORE_FILE },\n functionQuery: { functionName, kind: 'Auto' as const },\n })),\n ...FUNCTIONS_TRIGGERS.map(({ file, functionName, channelName }) => ({\n channelName,\n module: { name: 'firebase-functions', versionRange: FUNCTIONS_VERSION_RANGE, filePath: file },\n functionQuery: { functionName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const firebaseModuleNames = getModuleNames(firebaseConfig);\n\nexport const firebaseChannels = {\n FIREBASE_FIRESTORE_ADD_DOC: 'orchestrion:@firebase/firestore:add-doc',\n FIREBASE_FIRESTORE_GET_DOCS: 'orchestrion:@firebase/firestore:get-docs',\n FIREBASE_FIRESTORE_SET_DOC: 'orchestrion:@firebase/firestore:set-doc',\n FIREBASE_FIRESTORE_DELETE_DOC: 'orchestrion:@firebase/firestore:delete-doc',\n FIREBASE_FUNCTIONS_HTTP_REQUEST: 'orchestrion:firebase-functions:http-request',\n FIREBASE_FUNCTIONS_HTTP_CALL: 'orchestrion:firebase-functions:http-call',\n FIREBASE_FUNCTIONS_FIRESTORE_CREATED: 'orchestrion:firebase-functions:firestore-created',\n FIREBASE_FUNCTIONS_FIRESTORE_UPDATED: 'orchestrion:firebase-functions:firestore-updated',\n FIREBASE_FUNCTIONS_FIRESTORE_DELETED: 'orchestrion:firebase-functions:firestore-deleted',\n FIREBASE_FUNCTIONS_FIRESTORE_WRITTEN: 'orchestrion:firebase-functions:firestore-written',\n FIREBASE_FUNCTIONS_SCHEDULER: 'orchestrion:firebase-functions:scheduler',\n FIREBASE_FUNCTIONS_STORAGE_FINALIZED: 'orchestrion:firebase-functions:storage-finalized',\n FIREBASE_FUNCTIONS_STORAGE_ARCHIVED: 'orchestrion:firebase-functions:storage-archived',\n FIREBASE_FUNCTIONS_STORAGE_DELETED: 'orchestrion:firebase-functions:storage-deleted',\n FIREBASE_FUNCTIONS_STORAGE_METADATA_UPDATED: 'orchestrion:firebase-functions:storage-metadata-updated',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// Two shapes of `acquire`, both publishing to the same `orchestrion:generic-pool:acquire` channel:\n// - v3+: `class Pool { acquire(priority) }` returns a promise, so `kind: 'Auto'` resolves to `wrapPromise`.\n// - v2.4–v3: `Pool.prototype.acquire = function acquire(callback, priority)` is callback-based.\n// Versions before 2.4 assigned an anonymous `acquire` per pool instance (a factory), which a static\n// transform can't target, so they're out of scope (matching how the OTel instrumentation split them).\nexport const genericPoolConfig = [\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=3.0.0 <4', filePath: 'lib/Pool.js' },\n functionQuery: { className: 'Pool', methodName: 'acquire', kind: 'Auto' },\n },\n {\n channelName: 'acquire',\n module: { name: 'generic-pool', versionRange: '>=2.4.0 <3', filePath: 'lib/generic-pool.js' },\n functionQuery: { expressionName: 'acquire', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const genericPoolModuleNames = getModuleNames(genericPoolConfig);\n\nexport const genericPoolChannels = {\n GENERIC_POOL_ACQUIRE: 'orchestrion:generic-pool:acquire',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@google/genai` ships one bundled file per module format and the matcher compares `filePath` exactly,\n// so we list every file the `node` export condition resolves to across the supported range: `index.js`\n// (ESM+CJS for <0.15.0, CJS for <1.1.0), `index.mjs` (ESM for >=0.15.0), and `index.cjs` (CJS for >=1.1.0).\n// A file that doesn't exist in a given version simply never matches, so listing all three is safe.\nconst NODE_DIST_FILES = ['dist/node/index.js', 'dist/node/index.mjs', 'dist/node/index.cjs'];\n\nexport const googleGenAiConfig = [\n // `generateContent`/`generateContentStream` are arrow properties assigned in the constructor, not class\n // methods, so they need `expressionName` rather than `className`/`methodName`.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['generateContent', 'generateContentStream'] as const).map(expressionName => ({\n channelName: 'generate-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { expressionName, kind: 'Auto' as const },\n })),\n ),\n // `embedContent` is a real class method in v1 but a constructor-assigned arrow in v2; the\n // `className`/`methodName` selector matches both shapes.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'embed-content',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { className: 'Models', methodName: 'embedContent', kind: 'Auto' as const },\n })),\n // `sendMessage`/`sendMessageStream` internally delegate to `Models.generateContent(Stream)`; the\n // subscriber suppresses that nested `generate-content` event so a chat call yields a single span.\n ...NODE_DIST_FILES.flatMap(filePath =>\n (['sendMessage', 'sendMessageStream'] as const).map(methodName => ({\n channelName: 'chat',\n module: { name: '@google/genai', versionRange: '>=0.10.0 <4', filePath },\n functionQuery: { className: 'Chat', methodName, kind: 'Auto' as const },\n })),\n ),\n // `client.decisions` (`@google/genai` >= 3.2.0) returns typed answers rather than generated content.\n ...NODE_DIST_FILES.map(filePath => ({\n channelName: 'decide',\n module: { name: '@google/genai', versionRange: '>=3.2.0 <4', filePath },\n functionQuery: { className: 'GeminiNextGenDecisions', methodName: 'create', kind: 'Async' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const googleGenAiModuleNames = getModuleNames(googleGenAiConfig);\n\nexport const googleGenAiChannels = {\n GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content',\n GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content',\n GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat',\n GOOGLE_GENAI_DECIDE: 'orchestrion:@google/genai:decide',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `parse`/`validate`/`execute` are top-level named `function` declarations in graphql's compiled\n// files, stable across the supported majors, so `functionName` matches. `execute` returns\n// `PromiseOrValue`, so `Auto` covers both async (settles on `asyncEnd`) and sync (`end`) schemas.\n// graphql ships dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built\n// file (`.js` for `require`, `.mjs` for `import`) — a bundler resolving the ESM build (e.g. webpack\n// with `outputModule`) would otherwise never be transformed.\nexport const graphqlConfig = [\n ...['language/parser.js', 'language/parser.mjs'].map(filePath => ({\n channelName: 'parse',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'parse', kind: 'Sync' as const },\n })),\n ...['validation/validate.js', 'validation/validate.mjs'].map(filePath => ({\n channelName: 'validate',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'validate', kind: 'Sync' as const },\n })),\n ...['execution/execute.js', 'execution/execute.mjs'].map(filePath => ({\n channelName: 'execute',\n module: { name: 'graphql', versionRange: '>=14.0.0 <17', filePath },\n functionQuery: { functionName: 'execute', kind: 'Auto' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const graphqlChannels = {\n GRAPHQL_PARSE: 'orchestrion:graphql:parse',\n GRAPHQL_VALIDATE: 'orchestrion:graphql:validate',\n GRAPHQL_EXECUTE: 'orchestrion:graphql:execute',\n} as const;\n\nexport const graphqlModuleNames = getModuleNames(graphqlConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Many providers (Groq, Together, ...) ship a Stainless-generated SDK that mirrors the classic `openai`\n * file layout: `resources/chat/completions.{js,mjs}` (class `Completions`) and\n * `resources/embeddings.{js,mjs}` (class `Embeddings`), each with a `create(body, options)` that returns\n * a thenable `APIPromise`. Sync tracing preserves its lazy body parsing; Auto would trigger it via `.then()`.\n * A streaming call resolves to the same OpenAI-style async-iterable `Stream` the openai integration consumes. These\n * SDKs ship dual CJS/ESM and the matcher compares `filePath` exactly, hence one entry per built file.\n * `classNames` covers SDKs that moved `create` onto a base class while keeping this layout.\n *\n * Because the wire format is OpenAI-compatible, the span building, streaming and response parsing are all\n * reused from `ai/openai`; only the module name, channels and `gen_ai.provider.name` differ per provider.\n */\nexport function openAiCompatibleConfig(\n module: { name: string; versionRange: string },\n classNames = { chat: 'Completions', embeddings: 'Embeddings' },\n): InstrumentationConfig[] {\n return [\n ...['resources/chat/completions.js', 'resources/chat/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { ...module, filePath },\n functionQuery: { className: classNames.chat, methodName: 'create', kind: 'Sync' as const },\n })),\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { ...module, filePath },\n functionQuery: { className: classNames.embeddings, methodName: 'create', kind: 'Sync' as const },\n })),\n ];\n}\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `groq-sdk` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const groqConfig = openAiCompatibleConfig({\n name: 'groq-sdk',\n versionRange: '>=0.3.0 <2',\n}) satisfies InstrumentationConfig[];\n\nexport const groqModuleNames = getModuleNames(groqConfig);\n\nexport const groqChannels = {\n GROQ_CHAT: 'orchestrion:groq-sdk:chat',\n GROQ_EMBEDDINGS: 'orchestrion:groq-sdk:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const hapiConfig = [\n // hapi's `route`/`ext` live on an anonymous class (`internals.Server = class {}`),\n // so `{className}` can't match — `{methodName}` targets them in lib/server.js. Both\n // are synchronous void methods, so `Sync` suffices: we only use `start` to swap\n // handlers in `ctx.arguments`. Shape verified across the whole range.\n {\n channelName: 'route',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'route', kind: 'Sync' },\n },\n {\n channelName: 'ext',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'ext', kind: 'Sync' },\n },\n // `start`/`initialize` give us the live server via `ctx.self` so we can attach\n // the error listener automatically. We hook both because `start()` calls the\n // private `_core._start()` (never the public `initialize` method), while\n // test/serverless flows may only call `initialize()`. Only the synchronous\n // `start` event is used — to read `ctx.self` — so `Sync` suffices even though\n // both methods return a promise.\n {\n channelName: 'start',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'start', kind: 'Sync' },\n },\n {\n channelName: 'initialize',\n module: { name: '@hapi/hapi', versionRange: '>=17.0.0 <22.0.0', filePath: 'lib/server.js' },\n functionQuery: { methodName: 'initialize', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const hapiModuleNames = getModuleNames(hapiConfig);\n\nexport const hapiChannels = {\n HAPI_ROUTE: 'orchestrion:@hapi/hapi:route',\n HAPI_EXT: 'orchestrion:@hapi/hapi:ext',\n HAPI_START: 'orchestrion:@hapi/hapi:start',\n HAPI_INITIALIZE: 'orchestrion:@hapi/hapi:initialize',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Hono is hooked through per-request internals only — never at module scope — which is what lets the\n// same config run on Cloudflare Workers, where workerd forbids `diagnostics_channel` at module scope.\n// The subscribers live in `honoIntegration`.\nconst honoInstrumentationConfig: InstrumentationConfig[] = [\n {\n // `new Context()` runs once per request: where the Sentry middleware is injected and matched\n // middleware handlers are wrapped for spans.\n // TODO(v12): Raise the minimum Hono version to 4.4.9, here and in the `@sentry/hono` peer range.\n // Before 4.4.9, Hono passes `matchResult` to `new HonoRequest()`, so this hook does nothing.\n channelName: 'context',\n module: { name: 'hono', versionRange: '>=4.0.0 <6', filePath: /^dist\\/(?:cjs\\/)?context\\.js$/ },\n functionQuery: { className: 'Context' },\n },\n {\n // `app.request(...)` — Hono's internal dispatch for sub-app-to-sub-app fetches. A class-field\n // arrow, hence `astQuery` instead of `methodName`.\n channelName: 'request',\n module: { name: 'hono', versionRange: '>=4.0.0 <6', filePath: /^dist\\/(?:cjs\\/)?hono-base\\.js$/ },\n astQuery: \"PropertyDefinition[key.name='request'] > ArrowFunctionExpression\",\n functionQuery: { kind: 'Auto' },\n },\n];\n\nexport const honoConfig = honoInstrumentationConfig satisfies InstrumentationConfig[];\n\nexport const honoModuleNames = getModuleNames(honoConfig);\n\nexport const honoChannels = {\n HONO_CONTEXT: 'orchestrion:hono:context',\n HONO_REQUEST: 'orchestrion:hono:request',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const ioredisConfig = [\n registrationOnly({ name: 'ioredis', versionRange: '>=5.11.0', filePath: 'built/Redis.js' }),\n // ioredis `<5.11.0` (>=5.11.0 publishes its own `ioredis:*` diagnostics_channel)\n ...['lib/redis.js', 'built/redis.js', 'built/redis/index.js'].flatMap((filePath): InstrumentationConfig[] => [\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=2.0.0 <5.0.0', filePath },\n functionQuery: { expressionName: 'connect', kind: 'Async' },\n },\n ]),\n {\n channelName: 'command',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: 'ioredis', versionRange: '>=5.0.0 <5.11.0', filePath: 'built/Redis.js' },\n functionQuery: { className: 'Redis', methodName: 'connect', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const ioredisModuleNames = getModuleNames(ioredisConfig);\n\nexport const ioredisChannels = {\n IOREDIS_COMMAND: 'orchestrion:ioredis:command',\n IOREDIS_CONNECT: 'orchestrion:ioredis:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const kafkajsConfig = [\n {\n channelName: 'send_batch',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/producer/messageProducer.js' },\n // `const sendBatch = async (...) => {...}` — `expressionName` matches the `const` assignment.\n // We instrument ONLY `sendBatch`: `send` funnels into it internally, so `producer.send`,\n // `producer.sendBatch` and their transactional variants all flow through this one channel.\n // Instrumenting `send` too would double-count spans.\n functionQuery: { expressionName: 'sendBatch', kind: 'Async' },\n },\n {\n channelName: 'consumer_run',\n module: { name: 'kafkajs', versionRange: '>=2.0.0 <3', filePath: 'src/consumer/index.js' },\n // `const run = async (config) => {...}` — matched by `expressionName`. We don't span `run` itself:\n // the `start` subscriber swaps `config.eachMessage`/`eachBatch` (on `ctx.arguments[0]`) for\n // span-creating wrappers before the original runs. This works because the transform re-reads\n // `ctx.arguments` when invoking the original.\n functionQuery: { expressionName: 'run', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const kafkajsModuleNames = getModuleNames(kafkajsConfig);\n\nexport const kafkajsChannels = {\n KAFKAJS_SEND_BATCH: 'orchestrion:kafkajs:send_batch',\n KAFKAJS_CONSUMER_RUN: 'orchestrion:kafkajs:consumer_run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nconst MODULE_NAME = 'knex';\n\n// knex ships different file layouts across versions (see `SUPPORTED_VERSIONS` in the vendored OTel\n// instrumentation). Modern builds keep the runner under `lib/execution`, older ones under `lib`, and\n// the source-tree build under `src`. A file that doesn't exist for a given version simply never\n// matches, so overlapping ranges are safe.\nconst RUNNER_FILES = [\n { filePath: 'lib/execution/runner.js', versionRange: '>=0.22.0 <4' },\n { filePath: 'lib/runner.js', versionRange: '>=0.10.0 <0.22.0' },\n { filePath: 'src/runner.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\nconst CLIENT_FILES = [\n { filePath: 'lib/client.js', versionRange: '>=0.10.0 <4' },\n { filePath: 'src/client.js', versionRange: '>=0.18.0 <0.19.0' },\n];\n\n// The three `Client` methods that create a builder. Wrapping them lets the subscriber capture the\n// span active at builder-creation time, which is reused as the parent when the query runs later\n// (often in a different async context).\nconst CLIENT_METHODS = ['queryBuilder', 'schemaBuilder', 'raw'] as const;\n\nfunction runnerQuery(filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: 'query',\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Runner', methodName: 'query', kind: 'Async' },\n };\n}\n\nfunction clientMethod(methodName: string, filePath: string, versionRange: string): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange, filePath },\n functionQuery: { className: 'Client', methodName, kind: 'Sync' },\n };\n}\n\nexport const knexConfig: InstrumentationConfig[] = [\n ...RUNNER_FILES.map(({ filePath, versionRange }) => runnerQuery(filePath, versionRange)),\n ...CLIENT_FILES.flatMap(({ filePath, versionRange }) =>\n CLIENT_METHODS.map(methodName => clientMethod(methodName, filePath, versionRange)),\n ),\n];\n\nexport const knexChannels = {\n KNEX_QUERY: 'orchestrion:knex:query',\n KNEX_QUERY_BUILDER: 'orchestrion:knex:queryBuilder',\n KNEX_SCHEMA_BUILDER: 'orchestrion:knex:schemaBuilder',\n KNEX_RAW: 'orchestrion:knex:raw',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nexport const koaConfig = [\n {\n channelName: 'use',\n module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n functionQuery: { className: 'Application', methodName: 'use', kind: 'Sync' },\n },\n // `callback()` gives us the live app via `ctx.self` so we can auto-register the\n // error listener. We act on the channel's `end` (after the method body runs):\n // koa registers its own default `error` listener inside `callback()` only when\n // none exist yet, so attaching before that would suppress koa's default error\n // logging. `app.listen()` funnels through `callback()`, so this covers both\n // `app.listen()` and `http.createServer(app.callback())`.\n {\n channelName: 'callback',\n module: { name: 'koa', versionRange: '>=2.0.0 <4', filePath: 'lib/application.js' },\n functionQuery: { className: 'Application', methodName: 'callback', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const koaModuleNames = getModuleNames(koaConfig);\n\nexport const koaChannels = {\n KOA_USE: 'orchestrion:koa:use',\n KOA_CALLBACK: 'orchestrion:koa:callback',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/*` packages ship dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file.\n\n// LangChain's chat model methods live on `BaseChatModel` in `@langchain/core` and are inherited by\n// every provider class (`ChatAnthropic`, `ChatOpenAI`, …), so a single hook there covers all\n// providers. `invoke` also backs `.batch()` (which calls `invoke` per item); `_streamIterator`\n// backs `.stream()`. The vendored OTel instrumentation instead patched each provider package to\n// dodge `@langchain/core` being bundled, but orchestrion transforms its source directly regardless\n// of bundling.\nconst chatModelConfig = ['dist/language_models/chat_models.cjs', 'dist/language_models/chat_models.js'].flatMap(\n filePath => {\n const module = { name: '@langchain/core', versionRange: '>=0.1.0 <2.0.0', filePath };\n\n return [\n {\n channelName: 'chatModelInvoke',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: 'invoke', kind: 'Async' as const },\n },\n {\n channelName: 'chatModelStream',\n module,\n functionQuery: { className: 'BaseChatModel', methodName: '_streamIterator', kind: 'Async' as const },\n },\n ];\n },\n);\n\n// Embeddings have no shared concrete method on the base class (each provider implements\n// `embedQuery`/`embedDocuments`), so they're hooked per package. These are the provider packages the\n// vendored OTel instrumentation covered that actually ship an `Embeddings` subclass: `@langchain/openai`,\n// `@langchain/google-genai` and `@langchain/mistralai` define the two methods on their own class, while\n// `@langchain/google-vertexai` inherits them from the shared `@langchain/google-common` base, so that base\n// is the module hooked for it. (anthropic and groq are chat-only — they ship no embeddings class.) The\n// `embedQuery`/`embedDocuments` channel names are per-method; orchestrion prefixes them with the module\n// name, so the full channel strings stay distinct across packages.\nconst EMBED_QUERY = 'embedQuery';\nconst EMBED_DOCUMENTS = 'embedDocuments';\n\nconst EMBEDDINGS_PROVIDERS = [\n { name: '@langchain/openai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/google-genai', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n { name: '@langchain/mistralai', versionRange: '>=0.1.0 <2.0.0', methods: [EMBED_QUERY, EMBED_DOCUMENTS] },\n // `@langchain/google-vertexai` inherits its embed methods from this shared base. The base's\n // `embedQuery` delegates to `embedDocuments`, so hooking only `embedDocuments` still traces both\n // entry points as a single span each, instead of emitting a nested duplicate for `embedQuery`.\n { name: '@langchain/google-common', versionRange: '>=0.1.0 <3.0.0', methods: [EMBED_DOCUMENTS] },\n];\n\nconst embeddingsConfig = EMBEDDINGS_PROVIDERS.flatMap(({ name, versionRange, methods }) =>\n ['dist/embeddings.cjs', 'dist/embeddings.js'].flatMap(filePath =>\n methods.map(method => ({\n channelName: method,\n module: { name, versionRange, filePath },\n functionQuery: { methodName: method, kind: 'Async' as const },\n })),\n ),\n);\n\n// `TypeSafeClassifier` (`@langchain/typesafe`) is a plain `Runnable`, not a chat model, so the chat-model\n// hooks never add the Sentry callback handler to its runs.\nconst typesafeClassifierConfig = ['dist/classifier.cjs', 'dist/classifier.js'].map(filePath => ({\n channelName: 'typesafeClassifierInvoke',\n module: { name: '@langchain/typesafe', versionRange: '>=0.0.1 <1.0.0', filePath },\n functionQuery: { className: 'TypeSafeClassifier', methodName: 'invoke', kind: 'Async' as const },\n}));\n\nexport const langchainConfig = [\n ...chatModelConfig,\n ...embeddingsConfig,\n ...typesafeClassifierConfig,\n] satisfies InstrumentationConfig[];\n\n// The embeddings channel strings the subscriber binds to, derived from the provider list above so that\n// adding a provider is a single edit that both instruments it and subscribes the listener to it.\nexport const langchainEmbeddingsChannels = EMBEDDINGS_PROVIDERS.flatMap(({ name, methods }) =>\n methods.map(method => `orchestrion:${name}:${method}`),\n);\n\nexport const langchainModuleNames = getModuleNames(langchainConfig);\n\nexport const langchainChannels = {\n LANGCHAIN_CHAT_MODEL_INVOKE: 'orchestrion:@langchain/core:chatModelInvoke',\n LANGCHAIN_CHAT_MODEL_STREAM: 'orchestrion:@langchain/core:chatModelStream',\n LANGCHAIN_TYPESAFE_CLASSIFIER_INVOKE: 'orchestrion:@langchain/typesafe:typesafeClassifierInvoke',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@langchain/langgraph` ships dual CJS/ESM builds (`.cjs` for `require`, `.js` for `import`) and the\n// matcher compares `filePath` exactly, so each hook is declared once per built file. `StateGraph.compile`\n// and `createReactAgent` both return synchronously; the subscriber wraps the returned compiled graph's\n// `invoke` (mirroring the vendored OTel instrumentation, which patched these on the module exports).\nconst module = (filePath: string): InstrumentationConfig['module'] => ({\n name: '@langchain/langgraph',\n versionRange: '>=0.0.0 <2.0.0',\n filePath,\n});\n\nconst compileConfig = ['dist/graph/state.cjs', 'dist/graph/state.js'].map(filePath => ({\n channelName: 'stateGraphCompile',\n module: module(filePath),\n functionQuery: { className: 'StateGraph', methodName: 'compile', kind: 'Sync' as const },\n}));\n\n// `createReactAgent` is a single function declaration re-exported from both `@langchain/langgraph` and\n// `@langchain/langgraph/prebuilt`; hooking its definition file covers every import path.\nconst createReactAgentConfig = ['dist/prebuilt/react_agent_executor.cjs', 'dist/prebuilt/react_agent_executor.js'].map(\n filePath => ({\n channelName: 'createReactAgent',\n module: module(filePath),\n functionQuery: { functionName: 'createReactAgent', kind: 'Sync' as const },\n }),\n);\n\nexport const langgraphConfig = [...compileConfig, ...createReactAgentConfig] satisfies InstrumentationConfig[];\n\nexport const langgraphModuleNames = getModuleNames(langgraphConfig);\n\nexport const langgraphChannels = {\n LANGGRAPH_STATE_GRAPH_COMPILE: 'orchestrion:@langchain/langgraph:stateGraphCompile',\n LANGGRAPH_CREATE_REACT_AGENT: 'orchestrion:@langchain/langgraph:createReactAgent',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const lruMemoizerConfig = [\n {\n channelName: 'load',\n // `>=2.1.0` only: the named `function memoizedFunction()` the selector targets exists from 2.1.0\n module: { name: 'lru-memoizer', versionRange: '>=2.1.0 <4', filePath: 'lib/async.js' },\n functionQuery: { functionName: 'memoizedFunction', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const lruMemoizerModuleNames = getModuleNames(lruMemoizerConfig);\n\nexport const lruMemoizerChannels = {\n LRU_MEMOIZER_LOAD: 'orchestrion:lru-memoizer:load',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Flue publishes no diagnostics channels and needs none: it is instrumented by registering with\n * `instrument()`, not by patching call sites. Transforming the entry is only how the module's\n * integration gets registered at evaluation time, which is what installs it on a bundler-only SDK\n * like `@sentry/cloudflare`. With `selfProvidedModules`, the entry also publishes its namespace.\n */\nexport const flueConfig = [\n registrationOnly({ name: '@flue/runtime', versionRange: '>=2.0.0 <3.0.0', filePath: 'dist/index.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `class Mastra` lives only in tsdown's content-hashed chunk (`dist/mastra-RpLTNzL-.js` and\n// `dist/mastra-Dzmadbjh.cjs` in 1.63.2). The stable files (`dist/index.js`, `dist/mastra/index.js`)\n// are one-line re-exports, so an exact `filePath` cannot wrap the constructor.\n// The pattern therefore matches any `mastra*` chunk, in `dist/` or one level below, so a rename or\n// relocation within the supported range does not silently stop the instrumentation. `className`\n// remains the real selector, and `attachExporter` rejects anything without `registerExporter`.\n// `registerExporter()` exists since 1.63.2.\nconst mastraConstructorConfig: InstrumentationConfig[] = [\n {\n channelName: 'mastraConstructor',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/(?:[\\w.-]+\\/)?mastra[\\w.-]*\\.(?:cjs|mjs|js)$/,\n },\n // No `methodName` → class constructor. The `end` message's `self` is the instance.\n functionQuery: { className: 'Mastra' },\n },\n];\n\n// Mastra runs each operation's work inside `executeWithContext({ span, fn })` /\n// `executeWithContextSync` (its own async-context helper: `spanContextStorage.run(span, fn)`), passing\n// the operation's AISpan. Wrapping these lets us make the *exporter's* matching Sentry span active for\n// the duration, so work Mastra does inside — an outgoing model `fetch`, a `dataloader.load` in a tool —\n// nests under it. Both live in the stable, unhashed `observability/context-storage` entry (a real\n// package export, not a content-hashed chunk), so an exact-ish path match is safe. `functionName`\n// selects the exported functions.\nconst mastraContextConfig: InstrumentationConfig[] = ['executeWithContext', 'executeWithContextSync'].map(\n functionName => ({\n channelName: 'mastraExecuteWithContext',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/observability\\/context-storage\\.(?:cjs|mjs|js)$/,\n },\n functionQuery: { functionName, kind: 'Auto' as const },\n }),\n);\n\n// Mastra's `classifier_evaluation` span carries no input or output, so we read them from the\n// `Classifier.evaluate()` call. `Classifier` lives in the stable, unhashed `classifier` entry.\nconst mastraClassifierConfig: InstrumentationConfig[] = [\n {\n channelName: 'mastraClassifierEvaluate',\n module: {\n name: '@mastra/core',\n versionRange: '>=1.63.2 <2.0.0',\n filePath: /^dist\\/classifier\\/index\\.(?:cjs|mjs|js)$/,\n },\n functionQuery: { className: 'Classifier', methodName: 'evaluate', kind: 'Async' },\n },\n];\n\nexport const mastraConfig = [\n ...mastraConstructorConfig,\n ...mastraContextConfig,\n ...mastraClassifierConfig,\n] satisfies InstrumentationConfig[];\n\nexport const mastraModuleNames = getModuleNames(mastraConfig);\n\nexport const mastraChannels = {\n MASTRA_CONSTRUCTOR: 'orchestrion:@mastra/core:mastraConstructor',\n MASTRA_EXECUTE_WITH_CONTEXT: 'orchestrion:@mastra/core:mastraExecuteWithContext',\n MASTRA_CLASSIFIER_EVALUATE: 'orchestrion:@mastra/core:mastraClassifierEvaluate',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst module = { name: '@earendil-works/pi-durable', versionRange: '>=1.0.0 <2.0.0' };\n\n// `Harness.open(storage, options, context)` is a method of the exported `Harness` object literal, the\n// one entry point to a Harness. Its `options` carry the `models` and `registry` every model request\n// and task phase goes through, so wrapping them at `start` covers the whole Harness.\nexport const piDurableConfig = [\n {\n channelName: 'harnessOpen',\n module: { ...module, filePath: 'dist/harness/harness.js' },\n functionQuery: { methodName: 'open', kind: 'Async' as const },\n },\n // The factories of the built-in coding tools. Their tools throw to report expected failures to the\n // model, so the integration must know them wherever an app registers them.\n ...[\n ['bash', 'createBashTool'],\n ['read', 'createReadTool'],\n ['edit', 'createEditTool'],\n ['write', 'createWriteTool'],\n ].map(([file, functionName]) => ({\n channelName: 'codingTool',\n module: { ...module, filePath: `dist/tools/${file}.js` },\n functionQuery: { functionName: functionName as string, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const piDurableModuleNames = getModuleNames(piDurableConfig);\n\nexport const piDurableChannels = {\n PI_DURABLE_HARNESS_OPEN: 'orchestrion:@earendil-works/pi-durable:harnessOpen',\n PI_DURABLE_CODING_TOOL: 'orchestrion:@earendil-works/pi-durable:codingTool',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@modelcontextprotocol/server` v2 ships pre-bundled (tsdown) in content-hashed chunks:\n// `class McpServer` lives only in `dist/mcp-<hash>.{mjs,cjs}` (2.0.0: `mcp-DXXb3Vv3.mjs`,\n// `mcp-D7GmuPnv.cjs`), while the stable `dist/index.mjs` is a pure re-export. An exact\n// `filePath` therefore cannot target the constructor, so the pattern matches any `mcp-*`\n// chunk in `dist/` and `className: 'McpServer'` stays the real selector — the same shape\n// `mastra.ts` uses for its hashed `Mastra` chunk. `McpServer.connect()` delegates to the\n// underlying `Server`/`Protocol`, so hooking the constructor is enough to reach everything.\nconst mcpServerV2Config: InstrumentationConfig[] = [\n {\n channelName: 'mcpServerConstructor',\n module: {\n name: '@modelcontextprotocol/server',\n versionRange: '>=2.0.0 <3',\n filePath: /^dist\\/mcp-[\\w-]+\\.(?:cjs|mjs)$/,\n },\n // No `methodName` → class constructor. The `end` message's `self` is the new instance.\n functionQuery: { className: 'McpServer' },\n },\n];\n\n// `@modelcontextprotocol/sdk` v1 ships unbundled, so `McpServer` sits at a stable path — the\n// subpath export `.../server/mcp.js` resolves to `dist/{cjs,esm}/server/mcp.js`. The regex\n// matches both build flavors from the module root without hard-coding the `dist/esm` vs\n// `dist/cjs` prefix, and `className: 'McpServer'` stays the real selector.\nconst mcpServerV1Config: InstrumentationConfig[] = [\n {\n channelName: 'mcpServerConstructor',\n module: {\n name: '@modelcontextprotocol/sdk',\n versionRange: '>=1.9.0 <2',\n filePath: /(?:^|\\/)server\\/mcp\\.js$/,\n },\n functionQuery: { className: 'McpServer' },\n },\n];\n\nexport const mcpServerConfig = [...mcpServerV2Config, ...mcpServerV1Config] satisfies InstrumentationConfig[];\n\nexport const mcpServerModuleNames = getModuleNames(mcpServerConfig);\n\nexport const mcpServerChannels = {\n // Orchestrion prefixes each `channelName` with `orchestrion:${module.name}:`, so v1 and v2\n // publish to distinct channels even though the suffix is shared — the integration subscribes\n // to both.\n MCP_SERVER_V2_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/server:mcpServerConstructor',\n MCP_SERVER_V1_CONSTRUCTOR: 'orchestrion:@modelcontextprotocol/sdk:mcpServerConstructor',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@mistralai/mistralai` v2+ is ESM-only, so there is a single built file per resource (no dual CJS/ESM\n// variants). Each SDK resource class exposes async methods that return a thenable, so `kind: 'Auto'`\n// resolves to `wrapPromise`; the `.stream` methods resolve to an async-iterable `EventStream`.\nconst MODULE = { name: '@mistralai/mistralai', versionRange: '>=2.0.0 <4' } as const;\n\nconst CHAT_FILE = { ...MODULE, filePath: 'esm/sdk/chat.js' } as const;\nconst AGENTS_FILE = { ...MODULE, filePath: 'esm/sdk/agents.js' } as const;\n\n// Streaming methods get their own channel so both the span attributes and the stream handling can be\n// driven by the method that fired, instead of duck-typing the resolved value.\nexport const mistralConfig = [\n {\n channelName: 'chat',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'complete', kind: 'Auto' as const },\n },\n {\n channelName: 'chat',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'parse', kind: 'Auto' as const },\n },\n {\n channelName: 'chat-stream',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'stream', kind: 'Auto' as const },\n },\n {\n channelName: 'chat-stream',\n module: CHAT_FILE,\n functionQuery: { className: 'Chat', methodName: 'parseStream', kind: 'Auto' as const },\n },\n {\n channelName: 'embeddings',\n module: { ...MODULE, filePath: 'esm/sdk/embeddings.js' },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Auto' as const },\n },\n {\n channelName: 'agents',\n module: AGENTS_FILE,\n functionQuery: { className: 'Agents', methodName: 'complete', kind: 'Auto' as const },\n },\n {\n channelName: 'agents-stream',\n module: AGENTS_FILE,\n functionQuery: { className: 'Agents', methodName: 'stream', kind: 'Auto' as const },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mistralModuleNames = getModuleNames(mistralConfig);\n\nexport const mistralChannels = {\n MISTRAL_CHAT: 'orchestrion:@mistralai/mistralai:chat',\n MISTRAL_CHAT_STREAM: 'orchestrion:@mistralai/mistralai:chat-stream',\n MISTRAL_EMBEDDINGS: 'orchestrion:@mistralai/mistralai:embeddings',\n MISTRAL_AGENTS: 'orchestrion:@mistralai/mistralai:agents',\n MISTRAL_AGENTS_STREAM: 'orchestrion:@mistralai/mistralai:agents-stream',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// The mongodb driver's command architecture changed across majors, mirrored in the vendored OTel\n// instrumentation's version bands:\n// - >= 6.4: promise-based `Connection.prototype.command`\n// - >= 4.0 < 6.4: callback-based `Connection.prototype.command` + `ConnectionPool.checkOut`\n// (the pool runs the checkout callback in a detached context, so the channel re-propagates the\n// caller's async context to it — see the subscriber)\n// - >= 3.3 < 4: the `lib/core/wireprotocol` module functions\nconst module = { name: 'mongodb' } as const;\n\nexport const mongodbConfig = [\n // Band 1: mongodb >= 6.4 — promise-based command.\n // `methodName`-only (no `className`): the code-transformer's `className` matcher throws on classes\n // containing ES2022 `static {}` blocks (mongodb 7.x's `Connection`/`ConnectionPool` have them — see\n // `transformer-bug.md`), and `methodName` alone matches exactly the base method across all versions.\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=6.4.0 <8', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Async' },\n },\n // Band 2: mongodb >= 4.0 < 6.4 — callback-based command (same `command` channel, different kind).\n {\n channelName: 'command',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection.js' },\n functionQuery: { methodName: 'command', kind: 'Callback' },\n },\n // Band 2: the pool runs the checkout callback in a detached async context, so the operation's\n // `command()` (invoked inside it) loses the caller's active span. Hooking `checkOut` re-propagates\n // that context to the callback (the subscriber creates no span — see `getSpan` returning undefined).\n // Only needed < 6.4; from 6.4 `checkOut` is promise-based and the context survives natively.\n {\n channelName: 'checkout',\n module: { ...module, versionRange: '>=4.0.0 <6.4', filePath: 'lib/cmap/connection_pool.js' },\n functionQuery: { methodName: 'checkOut', kind: 'Callback' },\n },\n // Band 3: mongodb >= 3.3 < 4 — the driver had no unified `command`; each operation is a separate\n // `lib/core/wireprotocol` function, all callback-style. `insert`/`update`/`remove` are named\n // function expressions in the `index.js` `module.exports` object (matched by `expressionName`);\n // `command`/`query`/`getMore` are single-function modules (matched by `functionName`).\n ...(['insert', 'update', 'remove'] as const).map(op => ({\n channelName: `v3_${op}`,\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/index.js' },\n functionQuery: { expressionName: op, kind: 'Callback' as const },\n })),\n {\n channelName: 'v3_command',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/command.js' },\n functionQuery: { functionName: 'command', kind: 'Callback' },\n },\n {\n channelName: 'v3_query',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/query.js' },\n functionQuery: { functionName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'v3_get_more',\n module: { ...module, versionRange: '>=3.3.0 <4', filePath: 'lib/core/wireprotocol/get_more.js' },\n functionQuery: { functionName: 'getMore', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mongodbModuleNames = getModuleNames(mongodbConfig);\n\nexport const mongodbChannels = {\n MONGODB_COMMAND: 'orchestrion:mongodb:command',\n MONGODB_CHECKOUT: 'orchestrion:mongodb:checkout',\n MONGODB_V3_INSERT: 'orchestrion:mongodb:v3_insert',\n MONGODB_V3_UPDATE: 'orchestrion:mongodb:v3_update',\n MONGODB_V3_REMOVE: 'orchestrion:mongodb:v3_remove',\n MONGODB_V3_COMMAND: 'orchestrion:mongodb:v3_command',\n MONGODB_V3_QUERY: 'orchestrion:mongodb:v3_query',\n MONGODB_V3_GET_MORE: 'orchestrion:mongodb:v3_get_more',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// mongoose >= 9.7.0 publishes via its own `node:diagnostics_channel` tracing channels (handled by\n// `subscribeMongooseDiagnosticChannels`), so this transform is gated to `< 9.7.0` to avoid emitting\n// two spans per operation. The lower bound mirrors the vendored OTel IITM patcher's supported range.\nconst module = { name: 'mongoose', versionRange: '>=5.9.7 <9.7.0' } as const;\n\n// mongoose defines its prototype/static methods as assignments\n// (`Query.prototype.find = function(...)`, most of them anonymous), so the\n// transform matches the assigned property name via `expressionName`\n// rather than the function name. Entries whose method does not exist in a\n// given major are simply inert.\n\n// Builder methods that run synchronously and return a `Query`/`Aggregate`.\n// They don't get their own span; the subscriber only reads the active span\n// at build time and stashes it on the query so the later `exec()` can parent\n// to where the query was *built*, not where it is awaited. `kind: 'Sync'`\n// so the returned thenable isn't mistaken for the traced operation's result.\nconst CONTEXT_CAPTURE_QUERY_METHODS = [\n 'find',\n 'findOne',\n 'deleteOne',\n 'deleteMany',\n 'estimatedDocumentCount',\n 'countDocuments',\n 'distinct',\n 'where',\n '$where',\n 'findOneAndUpdate',\n 'findOneAndDelete',\n 'findOneAndReplace',\n // 5/6/7 only (removed in 8), inert in recent versions\n 'remove',\n 'count',\n 'findOneAndRemove',\n] as const;\n\nexport const mongooseConfig = [\n registrationOnly({ name: 'mongoose', versionRange: '>=9.7.0', filePath: 'lib/query.js' }),\n // Query execution\n // the span for most read/write operations. `op`, collection and model are\n // read off the `Query` at exec time.\n {\n channelName: 'query_exec',\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // Aggregation pipeline execution.\n {\n channelName: 'aggregate_exec',\n module: { ...module, filePath: 'lib/aggregate.js' },\n functionQuery: { expressionName: 'exec', kind: 'Auto' },\n },\n // `doc.save()` (and its `$save` alias, which mongoose points at `save` on\n // require. the alias picks up the transformed body automatically, so no\n // separate entry is needed).\n {\n channelName: 'model_save',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'save', kind: 'Auto' },\n },\n // Static batch operations.\n {\n channelName: 'model_insert_many',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'insertMany', kind: 'Auto' },\n },\n {\n channelName: 'model_bulk_write',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'bulkWrite', kind: 'Auto' },\n },\n // `doc.remove()` (a document method, deprecated in 6 and removed in 7)\n // `expressionName: 'remove'` also matches the sibling `Model.remove`\n // *static* in this file, which no matcher can tell apart from the prototype\n // method; that static is deprecated and would just produce a redundant span\n // so the collision is accepted rather than dropping the doc-method span.\n {\n channelName: 'model_remove',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'remove', kind: 'Auto' },\n },\n // NOTE: document `updateOne`/`deleteOne` (mongoose 8.21+) are deliberately\n // NOT hooked here. The vendored OTel/IITM patcher wraps\n // `Model.prototype.updateOne`/`deleteOne`, but those delegate to\n // `Query.exec`, which the `query_exec` channel above already instruments\n // (its `this.op` is the right operation). Verified by the `mongoose-v8`\n // suite against a real mongoose 8.21+ under orchestrion. A dedicated hook\n // is also not possible cleanly: `expressionName: 'updateOne'` in\n // `lib/model.js` can't be told apart from the same-named `Model.updateOne`\n // *static* (the common query-builder form), so hooking it would double-span\n // every `Model.updateOne(...)` call.\n //\n // `Model.aggregate()` builds an `Aggregate` with no method to hook for\n // context capture, so hook the static itself and stash the active span\n // on the returned aggregate. `Sync`: it returns the aggregate.\n {\n channelName: 'model_aggregate',\n module: { ...module, filePath: 'lib/model.js' },\n functionQuery: { expressionName: 'aggregate', kind: 'Sync' },\n },\n ...CONTEXT_CAPTURE_QUERY_METHODS.map(methodName => ({\n channelName: `ctx_${methodName}`,\n module: { ...module, filePath: 'lib/query.js' },\n functionQuery: { expressionName: methodName, kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const mongooseModuleNames = getModuleNames(mongooseConfig);\n\nexport const mongooseChannels = {\n MONGOOSE_QUERY_EXEC: 'orchestrion:mongoose:query_exec',\n MONGOOSE_AGGREGATE_EXEC: 'orchestrion:mongoose:aggregate_exec',\n MONGOOSE_MODEL_SAVE: 'orchestrion:mongoose:model_save',\n MONGOOSE_MODEL_INSERT_MANY: 'orchestrion:mongoose:model_insert_many',\n MONGOOSE_MODEL_BULK_WRITE: 'orchestrion:mongoose:model_bulk_write',\n MONGOOSE_MODEL_REMOVE: 'orchestrion:mongoose:model_remove',\n MONGOOSE_MODEL_AGGREGATE: 'orchestrion:mongoose:model_aggregate',\n} as const;\n\n/**\n * Fully-qualified names of the context-capture channels, derived from the\n * same method list the transform config uses so the two can't drift. The\n * subscriber subscribes to all of them uniformly to stash the build-time\n * parent span (see `mongooseChannels` for the span-creating channels).\n */\nexport const MONGOOSE_CONTEXT_CAPTURE_CHANNELS: string[] = CONTEXT_CAPTURE_QUERY_METHODS.map(\n methodName => `orchestrion:mongoose:ctx_${methodName}`,\n);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// Ports `@opentelemetry/instrumentation-mysql2` (which patches `query`/`execute` on the connection\n// prototype) to orchestrion channel injection.\n//\n// Two file layouts across the supported range:\n// - `< 3.11.5` → `class Connection` with `query`/`execute` in `lib/connection.js`\n// - `>= 3.11.5` → the methods moved to `class BaseConnection` in `lib/base/connection.js`\n//\n// Gated to `< 3.20.0`: from 3.20.0 mysql2 publishes to `node:diagnostics_channel` natively, and\n// that path is instrumented by `subscribeMysql2DiagnosticChannels` instead. Injecting there too\n// would emit two spans per query.\n//\n// `Callback` traces the callback shapes: `query(sql, cb)`, `query(sql, values, cb)`, and — since the\n// promise API funnels through the callback form — `await connection.query(sql)`. `execute` never\n// delegates to `query` internally, so instrumenting both is safe.\n//\n// NOT `Auto`: `Auto`'s no-callback branch probes the return value for `.then`, but mysql2's callback-\n// less `query(sql)` returns a `Query` whose `.then()` throws (mysql2's \"use the promise wrapper\"\n// guard) — so `Auto` would crash streamed queries. `Callback` leaves that shape untouched (a rare,\n// row-streaming use that consumes the emitter's events), the tradeoff being it isn't traced.\nexport const mysql2Config = [\n registrationOnly({ name: 'mysql2', versionRange: '>=3.20.0', filePath: 'lib/base/connection.js' }),\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=1.4.2 <3.11.5', filePath: 'lib/connection.js' },\n functionQuery: { className: 'Connection', methodName: 'execute', kind: 'Callback' },\n },\n {\n channelName: 'query',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'query', kind: 'Callback' },\n },\n {\n channelName: 'execute',\n module: { name: 'mysql2', versionRange: '>=3.11.5 <3.20.0', filePath: 'lib/base/connection.js' },\n functionQuery: { className: 'BaseConnection', methodName: 'execute', kind: 'Callback' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysql2ModuleNames = getModuleNames(mysql2Config);\n\nexport const mysql2Channels = {\n MYSQL2_QUERY: 'orchestrion:mysql2:query',\n MYSQL2_EXECUTE: 'orchestrion:mysql2:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const mysqlConfig = [\n {\n channelName: 'query',\n module: { name: 'mysql', versionRange: '>=2.0.0 <3', filePath: 'lib/Connection.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const mysqlModuleNames = getModuleNames(mysqlConfig);\n\nexport const mysqlChannels = {\n MYSQL_QUERY: 'orchestrion:mysql:query',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `@neondatabase/serverless` ships as two minified esbuild bundles (`index.js` for CJS,\n// `index.mjs` for ESM) that inline their own copy of `pg`. Class and function identifiers are\n// mangled and differ between the two builds, so the name-based `functionQuery` matchers can't\n// find anything. Every selector below keys on property names and string literals, which survive\n// minification and are identical in both bundles.\nconst module = { name: '@neondatabase/serverless', versionRange: '>=1.0.0 <2', filePath: /^index\\.m?js$/ };\n\nexport const neonConfig = [\n // The bundled pg `Client.prototype.query` (WebSocket driver). `_pulseQueryQueue` is a pg\n // internal that only `Client` defines, which keeps the pool and wire-protocol `query` methods\n // out. `methodName` is ignored for matching (`astQuery` wins) but makes the transformer emit a\n // method wrapper that exposes `self`, which carries `connectionParameters`.\n {\n channelName: 'query',\n module,\n astQuery:\n 'ClassBody:has(MethodDefinition[key.name=\"_pulseQueryQueue\"]) > MethodDefinition[key.name=\"query\"] > FunctionExpression',\n functionQuery: { methodName: 'query', kind: 'Auto' },\n },\n // The HTTP executor nested inside `neon()`. Every HTTP query funnels through it: lazy\n // `NeonQueryPromise`s call it from `then`/`catch`/`finally`, and `transaction()` calls it once\n // with the whole batch, so wrapping it gives one span per request with no double counting.\n {\n channelName: 'http-query',\n module,\n astQuery: 'FunctionDeclaration[async=true]:has(Literal[value=\"Neon-Connection-String\"])',\n functionQuery: { kind: 'Async' },\n },\n // `resolveConnectionParams`, awaited by the HTTP executor. The connection string lives in the\n // `neon()` closure and never reaches the executor's channel context, so the subscriber reads\n // `server.address`/`db.namespace` from this call's result instead, inside the query span.\n {\n channelName: 'resolve-connection',\n module,\n astQuery:\n 'FunctionDeclaration[async=true]:has(ReturnStatement > ObjectExpression > Property[key.name=\"resolvedURL\"])',\n functionQuery: { kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const neonModuleNames = getModuleNames(neonConfig);\n\nexport const neonChannels = {\n NEON_QUERY: 'orchestrion:@neondatabase/serverless:query',\n NEON_HTTP_QUERY: 'orchestrion:@neondatabase/serverless:http-query',\n NEON_RESOLVE_CONNECTION: 'orchestrion:@neondatabase/serverless:resolve-connection',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n/**\n * Wrap an instrumentation that targets nodes via a raw esquery selector\n * (`NstQuery`) rather than the structured `functionQuery`. Needed when the\n * target can't be named, e.g. the anonymous arrow a decorator factory returns\n * The transformer supports `astQuery` at runtime (it takes precedence over\n * `functionQuery`, which then only supplies `kind`), but it isn't in the\n * published `InstrumentationConfig` type. Hence the cast.\n */\nfunction astQueryInstrumentation(config: {\n channelName: string;\n module: InstrumentationConfig['module'];\n astQuery: string;\n functionQuery: { kind: 'Sync' | 'Async' | 'Callback' | 'Auto' };\n}): InstrumentationConfig {\n return config;\n}\n\n/**\n * NestJS is different from the other instrumentations here. It's a standalone\n * metaframework SDK (`@sentry/nestjs`), so its channel LISTENER lives in that\n * package rather than in `server-utils`. Only the code-transform config (and\n * the channel names below) live here, so `@nestjs/*` is transformed whenever\n * orchestrion is enabled, same as every other library.\n *\n * `@sentry/nestjs` imports {@link nestjsChannels} to subscribe, and picks the\n * channel-vs-OTel path based on the global injection flag.\n */\nexport const nestjsConfig = [\n {\n channelName: 'nestFactoryCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'nest-factory.js' },\n functionQuery: { className: 'NestFactoryStatic', methodName: 'create', kind: 'Async' },\n },\n {\n channelName: 'routerExecutionContextCreate',\n module: { name: '@nestjs/core', versionRange: '>=8.0.0 <13', filePath: 'router/router-execution-context.js' },\n functionQuery: { className: 'RouterExecutionContext', methodName: 'create', kind: 'Sync' },\n },\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/injectable.decorator.js`:\n // `function Injectable(options) { return (target) => { ... }; }`\n // The inner decorator arrow is anonymous + returned, so only a raw\n // `astQuery` can target it. The subscriber's `start` receives the\n // decorated class as `arguments[0]` and patches its prototype\n // use/canActivate/transform/intercept methods, reproducing the\n // vendored `SentryNestInstrumentation` middleware/guard/pipe/interceptor\n // spans. No span on the decorator itself, so `kind: 'Sync'`.\n channelName: 'injectableDecorator',\n module: {\n name: '@nestjs/common',\n versionRange: '>=8.0.0 <13',\n filePath: 'decorators/core/injectable.decorator.js',\n },\n astQuery: 'FunctionDeclaration[id.name=\"Injectable\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n astQueryInstrumentation({\n // `@nestjs/common/decorators/core/catch.decorator.js`:\n // `function Catch(...exceptions) { return (target) => { ... }; }`\n // Same anonymous-returned-arrow shape as `Injectable`. The subscriber's\n // `start` patches the exception filter's prototype `catch` method to\n // open an `exception_filter` span.\n //\n // Mirrors the vendored `SentryNestInstrumentation` `@Catch` wrap.\n channelName: 'catchDecorator',\n module: { name: '@nestjs/common', versionRange: '>=8.0.0 <13', filePath: 'decorators/core/catch.decorator.js' },\n astQuery: 'FunctionDeclaration[id.name=\"Catch\"] ReturnStatement > ArrowFunctionExpression',\n functionQuery: { kind: 'Sync' },\n }),\n // @nestjs/schedule @Cron/@Interval/@Timeout:\n // `function Cron(...) { return applyDecorators(...); }`\n // The returned decorator has no inline arrow to target, so we match the\n // factory function and reassign `data.result` in `end` to wrap the\n // decorator it returns (which rewrites the user handler `descriptor.value`\n // with isolation-scope + error capture).\n // Mirrors `SentryNestScheduleInstrumentation`, whose supported range we\n // match so opting in doesn't drop coverage the OTel path had. The compiled\n // `function Cron(...)` declaration is unchanged across 2.x–5.x.\n {\n channelName: 'cronDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/cron.decorator.js' },\n functionQuery: { functionName: 'Cron', kind: 'Sync' },\n },\n {\n channelName: 'intervalDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/interval.decorator.js' },\n functionQuery: { functionName: 'Interval', kind: 'Sync' },\n },\n {\n channelName: 'timeoutDecorator',\n module: { name: '@nestjs/schedule', versionRange: '>=2.0.0', filePath: 'dist/decorators/timeout.decorator.js' },\n functionQuery: { functionName: 'Timeout', kind: 'Sync' },\n },\n {\n // The function `ScheduleExplorer` returns here is what `@nestjs/schedule` passes to `CronJob` as `onTick`.\n // From 6.0.0 it uses `cron` 4.3+, whose jobs have names.\n channelName: 'scheduleExplorerWrap',\n module: { name: '@nestjs/schedule', versionRange: '>=6.0.0', filePath: 'dist/schedule.explorer.js' },\n functionQuery: { className: 'ScheduleExplorer', methodName: 'wrapFunctionInTryCatchBlocks', kind: 'Sync' },\n },\n {\n // @nestjs/event-emitter @OnEvent:\n // `const OnEvent = (event, options) => {\n // const decoratorFactory = (t, k, d) => {...}; return decoratorFactory;\n // }`\n // `OnEvent` is an arrow assigned to a const, so `expressionName`. `end`\n // reassigns `data.result` to wrap the returned decorator, which rewrites\n // the handler to open an `event.nestjs` span.\n // Mirrors `SentryNestEventInstrumentation`; the `const OnEvent = (...) =>`\n // shape is unchanged across 2.x–3.x.\n channelName: 'onEventDecorator',\n module: {\n name: '@nestjs/event-emitter',\n versionRange: '>=2.0.0',\n filePath: 'dist/decorators/on-event.decorator.js',\n },\n functionQuery: { expressionName: 'OnEvent', kind: 'Sync' },\n },\n {\n // @nestjs/bullmq @Processor:\n // `function Processor(...) { return (target) => {...}; }`\n // The factory arg carries the queue name, so we match the factory and\n // reassign `data.result` in `end` to wrap the returned class decorator\n // (which patches `target.prototype.process`).\n // Mirrors `SentryNestBullMQInstrumentation`; the `function Processor(...)`\n // declaration is unchanged across\n // 10.x–11.x.\n channelName: 'processorDecorator',\n module: {\n name: '@nestjs/bullmq',\n versionRange: '>=10.0.0',\n filePath: 'dist/decorators/processor.decorator.js',\n },\n functionQuery: { functionName: 'Processor', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nestjsChannels = {\n NESTJS_APP_CREATION: 'orchestrion:@nestjs/core:nestFactoryCreate',\n NESTJS_ROUTER_CONTEXT: 'orchestrion:@nestjs/core:routerExecutionContextCreate',\n NESTJS_INJECTABLE: 'orchestrion:@nestjs/common:injectableDecorator',\n NESTJS_CATCH: 'orchestrion:@nestjs/common:catchDecorator',\n NESTJS_SCHEDULE_CRON: 'orchestrion:@nestjs/schedule:cronDecorator',\n NESTJS_SCHEDULE_INTERVAL: 'orchestrion:@nestjs/schedule:intervalDecorator',\n NESTJS_SCHEDULE_TIMEOUT: 'orchestrion:@nestjs/schedule:timeoutDecorator',\n NESTJS_SCHEDULE_EXPLORER_WRAP: 'orchestrion:@nestjs/schedule:scheduleExplorerWrap',\n NESTJS_ONEVENT: 'orchestrion:@nestjs/event-emitter:onEventDecorator',\n NESTJS_PROCESSOR: 'orchestrion:@nestjs/bullmq:processorDecorator',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { registrationOnly } from './registration-only';\n\n/**\n * Nitro's instrumentation consumes tracing channels that h3, srvx and unstorage publish natively, so\n * no channels are injected: transforming h3's entry file only registers `nitroIntegration` at\n * evaluation time, which is what installs it on a bundler-only SDK like `@sentry/cloudflare`. On\n * `@sentry/node` (and deno/bun) the integration is registered statically, so this is a no-op there.\n *\n * Anchored on `h3` because every HTTP-serving Nitro app loads it. The anchor only triggers\n * registration; the integration then subscribes to all of its channels (including unstorage's),\n * independent of which module loaded it.\n *\n * The `-0` in the version range matters: h3 ships the version Nitro 3 uses as a prerelease\n * (`2.0.1-rc.*`). The orchestrion matcher is the vendored `semifies` (used by both the runtime loader\n * and the bundler plugins), where a range carrying a prerelease tag enables prerelease matching\n * across patch tuples — so `>=2.0.0-0` matches `2.0.1-rc.*`. (Plain node-semver would not: it drops\n * prereleases of a higher patch tuple.)\n */\nexport const nitroConfig = [\n registrationOnly({ name: 'h3', versionRange: '>=2.0.0-0', filePath: 'dist/h3.mjs' }),\n] satisfies InstrumentationConfig[];\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\nconst createTask = { functionName: 'createTask', kind: 'Sync' } as const;\n\n// `schedule()` calls `createTask(expression, func, options)`, so wrapping `createTask` covers both.\n// Before 4.6, node-cron reads weekday ranges like `sat-sun` differently, so those versions get their own channel.\nexport const nodeCronConfig = [\n {\n channelName: 'createTask',\n module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.cjs' },\n functionQuery: createTask,\n },\n {\n channelName: 'createTask',\n module: { name: 'node-cron', versionRange: '>=4.6.0 <5', filePath: 'dist/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.3.0 <4.6.0', filePath: 'dist/node-cron.cjs' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.6.0', filePath: 'dist/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/cjs/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v4_createTask',\n module: { name: 'node-cron', versionRange: '>=4.0.0 <4.3.0', filePath: 'dist/esm/node-cron.js' },\n functionQuery: createTask,\n },\n {\n channelName: 'v3_createTask',\n module: { name: 'node-cron', versionRange: '>=3.0.0 <4', filePath: 'src/node-cron.js' },\n functionQuery: createTask,\n },\n] satisfies InstrumentationConfig[];\n\nexport const nodeCronModuleNames = getModuleNames(nodeCronConfig);\n\nexport const nodeCronChannels = {\n NODE_CRON_CREATE_TASK: 'orchestrion:node-cron:createTask',\n NODE_CRON_V4_CREATE_TASK: 'orchestrion:node-cron:v4_createTask',\n NODE_CRON_V3_CREATE_TASK: 'orchestrion:node-cron:v3_createTask',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `scheduleJob`, `rescheduleJob` and `job.reschedule` all call `job.schedule(spec)`. `Job` moved from\n// `lib/schedule.js` to `lib/Job.js` in 2.0.0.\nconst schedule = {\n channelName: 'schedule',\n astQuery:\n \"AssignmentExpression[left.object.property.name='prototype'][left.property.name='schedule'] > FunctionExpression\",\n // `methodName` gives subscribers `self` before the call, not just after. `astQuery` still picks the function.\n functionQuery: { methodName: 'schedule', kind: 'Sync' },\n} as const;\n\nexport const nodeScheduleConfig = [\n {\n ...schedule,\n module: { name: 'node-schedule', versionRange: '>=1.3.0 <2', filePath: 'lib/schedule.js' },\n },\n {\n ...schedule,\n module: { name: 'node-schedule', versionRange: '>=2.0.0 <3', filePath: 'lib/Job.js' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const nodeScheduleModuleNames = getModuleNames(nodeScheduleConfig);\n\nexport const nodeScheduleChannels = {\n NODE_SCHEDULE_SCHEDULE: 'orchestrion:node-schedule:schedule',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const openaiConfig = [\n // Sync tracing preserves APIPromise's lazy body parsing; Auto would trigger it via .then().\n ...['resources/chat/completions/completions.js', 'resources/chat/completions/completions.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Completions', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI responses API — same `create(body, options)` shape as chat completions.\n ...['resources/responses/responses.js', 'resources/responses/responses.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Responses', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI embeddings API — same `create(body, options)` shape as chat completions.\n ...['resources/embeddings.js', 'resources/embeddings.mjs'].map(filePath => ({\n channelName: 'embeddings',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Embeddings', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI conversations API — same `create(body, options)` shape as chat completions.\n ...['resources/conversations/conversations.js', 'resources/conversations/conversations.mjs'].map(filePath => ({\n channelName: 'chat',\n module: { name: 'openai', versionRange: '>=4.0.0 <8', filePath },\n functionQuery: { className: 'Conversations', methodName: 'create', kind: 'Sync' as const },\n })),\n // OpenAI decisions API (`openai` >= 7.30.0), which returns typed answers rather than generated text.\n ...['resources/decisions.js', 'resources/decisions.mjs'].map(filePath => ({\n channelName: 'decide',\n module: { name: 'openai', versionRange: '>=7.30.0 <8', filePath },\n functionQuery: { className: 'Decisions', methodName: 'create', kind: 'Sync' as const },\n })),\n] satisfies InstrumentationConfig[];\n\nexport const openaiModuleNames = getModuleNames(openaiConfig);\n\nexport const openaiChannels = {\n // Chat completions, the responses API, and the conversations API all report a `chat` operation with\n // identical span handling, so they share one channel.\n OPENAI_CHAT: 'orchestrion:openai:chat',\n OPENAI_EMBEDDINGS: 'orchestrion:openai:embeddings',\n OPENAI_DECIDE: 'orchestrion:openai:decide',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nexport const pgConfig = [\n // `pg` (node-postgres).\n // instruments `Client.prototype.query`/`connect` (both the JS and native\n // clients) plus `pg-pool`'s `Pool.prototype.connect`.\n // `Auto` covers the callback, promise, and streamable-`Submittable`\n // call shapes (like mysql).\n // `pg/lib/client.js` is `class Client { query() {...} connect() {...} }`,\n // so `className`+`methodName` matches directly.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/client.js' },\n functionQuery: { className: 'Client', methodName: 'connect', kind: 'Auto' },\n },\n // The native client (`pg/lib/native/client.js`) is a constructor function,\n // not a class.\n // `Client.prototype.query = function (config, values, callback) {...}`\n // so it needs `expressionName` (the mysql shape), publishing to the SAME\n // `orchestrion:pg:query`/`:connect` channels as the JS client.\n {\n channelName: 'query',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'query', kind: 'Auto' },\n },\n {\n channelName: 'connect',\n module: { name: 'pg', versionRange: '>=8.0.3 <9', filePath: 'lib/native/client.js' },\n functionQuery: { expressionName: 'connect', kind: 'Auto' },\n },\n // `pg-pool` is `class Pool extends EventEmitter { connect(cb) {...} }`.\n {\n channelName: 'connect',\n module: { name: 'pg-pool', versionRange: '>=2.0.0 <4', filePath: 'index.js' },\n functionQuery: { className: 'Pool', methodName: 'connect', kind: 'Auto' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const pgModuleNames = getModuleNames(pgConfig);\n\nexport const pgChannels = {\n PG_QUERY: 'orchestrion:pg:query',\n PG_CONNECT: 'orchestrion:pg:connect',\n PGPOOL_CONNECT: 'orchestrion:pg-pool:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\n// postgres.js (`postgres` npm package). Named after the npm package;\n// `postgres` doesn't collide with `pg.ts` (that file instruments `pg`/`pg-pool`).\n//\n// The ESM build lives under `src/*`, the CJS build under `cjs/src/*` (the\n// `cf/*` workerd build has no channel subscribers, see the integration).\n// Both builds share the same class/function shapes, so a single `flatMap`\n// over the two dirs emits one entry per (dir, target).\nconst postgresJsInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n // `Query.prototype.handle` (`class Query extends Promise`) is the single\n // funnel every query passes through (`then`/`catch`/`finally`/`.execute()`/\n // `.forEach()`/cursor all call it), guarded by `this.executed`. `Async`\n // because `handle` is `async`.\n {\n channelName: 'handle',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/query.js` },\n functionQuery: { className: 'Query', methodName: 'handle', kind: 'Async' },\n },\n // `function Connection(options, ...)` (default export of `connection.js`)\n // returns the connection object; used to build the endpoint registry that\n // resolves `server.address`/`server.port`/`db.namespace`.\n {\n channelName: 'connection',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { functionName: 'Connection', kind: 'Sync' },\n },\n // The nested `function execute(q)` inside `Connection`; the per-connection\n // hook that attaches connection attributes to the query's span.\n {\n channelName: 'execute',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { functionName: 'execute', kind: 'Sync' },\n },\n // The connection object's `connect(query)` method. Matched by `methodName`\n // (an object-literal method): `functionName` would hit the unrelated\n // socket-level `async function connect()` in the same file. `self` is the\n // connection object and `arguments[0]` the query, so the first query that\n // opens a connection (dispatched via a bare `execute` with no `self`) still\n // gets connection attributes in multi-endpoint apps.\n {\n channelName: 'connect',\n module: { name: 'postgres', versionRange: '>=3.0.0 <4', filePath: `${dir}/connection.js` },\n functionQuery: { methodName: 'connect', kind: 'Sync' },\n },\n];\n\n// Gated to `< 4`: from 4.0.0 postgres publishes `postgres:query` natively, which\n// `subscribePostgresJsDiagnosticChannels` instruments. The registration-only entry\n// lets bundler-only SDKs detect v4 and register the integration.\nexport const postgresJsConfig = [\n registrationOnly({ name: 'postgres', versionRange: '>=4.0.0', filePath: 'src/query.js' }),\n ...['src', 'cjs/src'].flatMap(postgresJsInstrumentationConfig),\n];\n\nexport const postgresJsModuleNames = getModuleNames(postgresJsConfig);\n\nexport const postgresJsChannels = {\n POSTGRESJS_HANDLE: 'orchestrion:postgres:handle',\n POSTGRESJS_CONNECTION: 'orchestrion:postgres:connection',\n POSTGRESJS_EXECUTE: 'orchestrion:postgres:execute',\n POSTGRESJS_CONNECT: 'orchestrion:postgres:connect',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// Prisma 8 has no tracing surface, so its ORM terminals are wrapped directly. Apps install\n// `@prisma/orm-postgres`, but `CollectionBase` lives in the transitive `@prisma/orm-family-sql`.\nconst MODULE_NAME = '@prisma/orm-family-sql';\nconst ORM_CLIENT_FILE = 'dist/orm-client.mjs';\n\nconst VERSION_RANGE = '>=8.0.0-rc.15 <9';\n\nexport const PRISMA_ASYNC_TERMINALS = [\n 'aggregate',\n 'first',\n 'create',\n 'createAndCount',\n 'upsert',\n 'update',\n 'updateAndCount',\n 'delete',\n 'deleteAndCount',\n] as const;\n\n// These return a single-use thenable whose query runs on consumption. `Sync` on purpose: the `Async`/`Auto`\n// wrapper calls `.then()` on non-native thenables and would consume the result before the app does.\nexport const PRISMA_LAZY_TERMINALS = ['all', 'createAll', 'updateAll', 'deleteAll'] as const;\n\ntype PrismaTerminal = (typeof PRISMA_ASYNC_TERMINALS)[number] | (typeof PRISMA_LAZY_TERMINALS)[number];\n\nfunction terminalConfig(methodName: PrismaTerminal, kind: 'Async' | 'Sync'): InstrumentationConfig {\n return {\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: ORM_CLIENT_FILE },\n functionQuery: { className: 'CollectionBase', methodName, kind },\n };\n}\n\nexport const prismaConfig: InstrumentationConfig[] = [\n ...PRISMA_ASYNC_TERMINALS.map(methodName => terminalConfig(methodName, 'Async')),\n ...PRISMA_LAZY_TERMINALS.map(methodName => terminalConfig(methodName, 'Sync')),\n];\n\nexport const prismaModuleNames = getModuleNames(prismaConfig);\n\nexport const prismaChannels = {\n PRISMA_AGGREGATE: 'orchestrion:@prisma/orm-family-sql:aggregate',\n PRISMA_FIRST: 'orchestrion:@prisma/orm-family-sql:first',\n PRISMA_CREATE: 'orchestrion:@prisma/orm-family-sql:create',\n PRISMA_CREATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:createAndCount',\n PRISMA_UPSERT: 'orchestrion:@prisma/orm-family-sql:upsert',\n PRISMA_UPDATE: 'orchestrion:@prisma/orm-family-sql:update',\n PRISMA_UPDATE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:updateAndCount',\n PRISMA_DELETE: 'orchestrion:@prisma/orm-family-sql:delete',\n PRISMA_DELETE_AND_COUNT: 'orchestrion:@prisma/orm-family-sql:deleteAndCount',\n PRISMA_ALL: 'orchestrion:@prisma/orm-family-sql:all',\n PRISMA_CREATE_ALL: 'orchestrion:@prisma/orm-family-sql:createAll',\n PRISMA_UPDATE_ALL: 'orchestrion:@prisma/orm-family-sql:updateAll',\n PRISMA_DELETE_ALL: 'orchestrion:@prisma/orm-family-sql:deleteAll',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const redisConfig = [\n registrationOnly({ name: '@redis/client', versionRange: '>=5.12.0', filePath: 'dist/lib/client/index.js' }),\n // redis `>=2.6.0 <4` (standalone `redis`). `internal_send_command` is an\n // anonymous prototype assignment (`expressionName`); it settles via the nested\n // `command_obj.callback`, so `kind: 'Sync'` and the subscriber wraps that callback.\n {\n channelName: 'command',\n module: { name: 'redis', versionRange: '>=2.6.0 <4', filePath: 'index.js' },\n functionQuery: { expressionName: 'internal_send_command', kind: 'Sync' },\n },\n // node-redis v4 (`@redis/client` v1). The real chokepoint (private `#sendCommand`)\n // isn't matchable, so wrap both public entry points: `commandsExecutor` (friendly\n // commands) and `sendCommand` (direct calls). They never overlap, so no double span.\n {\n channelName: 'executor',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'commandsExecutor', kind: 'Async' },\n },\n {\n channelName: 'command',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n },\n // node-redis `>=5.0.0 <5.12.0` (`@redis/client` v5; >=5.12.0 has its own\n // `node-redis:*` diagnostics_channel, see `redis-dc-subscriber.ts`). Friendly\n // commands route through the public `sendCommand`, so it covers them all — no\n // `executor` entry (would double-count).\n {\n channelName: 'command',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'sendCommand', kind: 'Async' },\n },\n {\n channelName: 'connect',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'connect', kind: 'Async' },\n },\n // Batch (multi/pipeline) — one span per `exec`. Batched commands bypass `sendCommand`,\n // so they go through the client's batch executors, which receive the queued commands\n // array (→ batch size). v5 splits MULTI/PIPELINE into two methods; v4's single\n // `multiExecutor` is MULTI when a `chainId` arg is present, PIPELINE otherwise.\n {\n channelName: 'multi',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: '_executeMulti', kind: 'Async' },\n },\n {\n channelName: 'pipeline',\n module: { name: '@redis/client', versionRange: '>=5.0.0 <5.12.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: '_executePipeline', kind: 'Async' },\n },\n {\n channelName: 'batch',\n module: { name: '@redis/client', versionRange: '^1.0.0', filePath: 'dist/lib/client/index.js' },\n functionQuery: { className: 'RedisClient', methodName: 'multiExecutor', kind: 'Async' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const redisModuleNames = getModuleNames(redisConfig);\n\nexport const redisChannels = {\n REDIS_COMMAND: 'orchestrion:redis:command',\n NODE_REDIS_COMMAND: 'orchestrion:@redis/client:command',\n NODE_REDIS_EXECUTOR: 'orchestrion:@redis/client:executor',\n NODE_REDIS_CONNECT: 'orchestrion:@redis/client:connect',\n NODE_REDIS_MULTI: 'orchestrion:@redis/client:multi',\n NODE_REDIS_PIPELINE: 'orchestrion:@redis/client:pipeline',\n NODE_REDIS_BATCH: 'orchestrion:@redis/client:batch',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Four concepts, one channel each:\n// - `requestHandler` → the async handler returned by `createRequestHandler` (the server span)\n// - `matchServerRoutes` → sync route match; enriches the active span (creates no span of its own)\n// - `callRouteLoader` → LOADER span. Remix 2.0–2.8 named it `callRouteLoaderRR`\n// - `callRouteAction` → ACTION span. Remix 2.0–2.8 named it `callRouteActionRR`\n//\n// Emitted for both the CJS (`dist/*`) and ESM (`dist/esm/*`) builds, which share function shapes.\nconst remixInstrumentationConfig = (dir: string): InstrumentationConfig[] => [\n // `createRequestHandler` returns `async function requestHandler(request, loadContext)` — the main\n // server span. We target the returned handler (so the span wraps each request, not the one-time\n // handler construction). It's a *named function expression*, which name-based `functionQuery`\n // can't match (that only sees declarations), so we select it with `astQuery`; `functionQuery`\n // then just carries the behaviour (`kind: 'Async'`).\n {\n channelName: 'requestHandler',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/server.js` },\n astQuery: 'FunctionExpression[id.name=\"requestHandler\"]',\n functionQuery: { kind: 'Async' },\n },\n // Sync; the subscriber reads its result to set `http.route` on the active request span.\n {\n channelName: 'matchServerRoutes',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <3', filePath: `${dir}/routeMatching.js` },\n functionQuery: { functionName: 'matchServerRoutes', kind: 'Sync' },\n },\n // Remix >= 2.9.0\n {\n channelName: 'callRouteLoader',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteLoader', kind: 'Async' },\n },\n {\n channelName: 'callRouteAction',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.9.0 <3', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteAction', kind: 'Async' },\n },\n // Remix 2.0.0 – 2.8.x: the same functions were suffixed `…RR`. Same channels as above.\n {\n channelName: 'callRouteLoader',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteLoaderRR', kind: 'Async' },\n },\n {\n channelName: 'callRouteAction',\n module: { name: '@remix-run/server-runtime', versionRange: '>=2.0.0 <2.9.0', filePath: `${dir}/data.js` },\n functionQuery: { functionName: 'callRouteActionRR', kind: 'Async' },\n },\n];\n\nexport const remixConfig = ['dist', 'dist/esm'].flatMap(remixInstrumentationConfig);\n\nexport const remixChannels = {\n REMIX_REQUEST_HANDLER: 'orchestrion:@remix-run/server-runtime:requestHandler',\n REMIX_MATCH_SERVER_ROUTES: 'orchestrion:@remix-run/server-runtime:matchServerRoutes',\n REMIX_CALL_ROUTE_LOADER: 'orchestrion:@remix-run/server-runtime:callRouteLoader',\n REMIX_CALL_ROUTE_ACTION: 'orchestrion:@remix-run/server-runtime:callRouteAction',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\n// Remix 3 is a ground up rewrite sharing no modules with Remix 2, so it gets its own config rather\n// than a widened `versionRange` on `./remix.ts`. The two never collide: this matches the\n// `@remix-run/*` packages, that one `@remix-run/server-runtime`. Ranges start at the release\n// candidates and end before 2.0.0, because the packages went 0.x to 1.0.0 with Remix 3.0.0.\n//\n// `remix/router` is a one line `export * from '@remix-run/fetch-router'`, so matching the real module\n// covers both import styles.\nexport const remixV3Config: InstrumentationConfig[] = [\n // The only construction point routing needs: `router.mount()` does not create a sub-router, it\n // builds a prefixed route builder over the same matcher and dispatch.\n {\n channelName: 'createRouter',\n module: {\n name: '@remix-run/fetch-router',\n versionRange: '>=0.21.0 <2',\n filePath: 'dist/lib/router.js',\n },\n functionQuery: { functionName: 'createRouter', kind: 'Sync' },\n },\n // The subscriber rewrites the options before the asset server reads them and wraps the server it\n // returns, so browser modules carry debug IDs without any config from the app.\n {\n channelName: 'createAssetServer',\n module: { name: '@remix-run/assets', versionRange: '>=0.6.0 <2', filePath: 'dist/lib/asset-server.js' },\n functionQuery: { functionName: 'createAssetServer', kind: 'Sync' },\n },\n // The only error hook that covers an app whose fetch handler is not a router.\n {\n channelName: 'createRequestListener',\n module: {\n name: '@remix-run/node-fetch-server',\n versionRange: '>=0.14.0 <2',\n filePath: 'dist/lib/request-listener.js',\n },\n functionQuery: { functionName: 'createRequestListener', kind: 'Sync' },\n },\n // Browser side, applied by the asset server's loader chain. The only way to see component render\n // errors without application code. `@remix-run/ui` was renamed to `@remix-run/component` in 1.0.0.\n {\n channelName: 'run',\n module: { name: '@remix-run/ui', versionRange: '>=0.8.0 <1', filePath: 'dist/runtime/run.js' },\n functionQuery: { functionName: 'run', kind: 'Sync' },\n },\n {\n channelName: 'run',\n module: { name: '@remix-run/component', versionRange: '>=1.0.0 <2', filePath: 'dist/runtime/run.js' },\n functionQuery: { functionName: 'run', kind: 'Sync' },\n },\n];\n\nexport const remixV3Channels = {\n REMIX_V3_CREATE_ROUTER: 'orchestrion:@remix-run/fetch-router:createRouter',\n REMIX_V3_CREATE_ASSET_SERVER: 'orchestrion:@remix-run/assets:createAssetServer',\n REMIX_V3_CREATE_REQUEST_LISTENER: 'orchestrion:@remix-run/node-fetch-server:createRequestListener',\n REMIX_V3_UI_RUN: 'orchestrion:@remix-run/ui:run',\n REMIX_V3_COMPONENT_RUN: 'orchestrion:@remix-run/component:run',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\nimport { getModuleNames } from './module-names';\n\n// `chat()` takes its middleware per call, and `@tanstack/ai` has no global middleware registry, so\n// the integration changes the options of each call. `chat` returns a stream or a promise, depending\n// on `stream`, but it runs nothing before it returns, so `Sync` is enough: we only need `start`.\nexport const tanstackAiConfig = [\n {\n channelName: 'chat',\n module: { name: '@tanstack/ai', versionRange: '>=1.0.0 <2.0.0', filePath: 'dist/esm/activities/chat/index.js' },\n functionQuery: { functionName: 'chat', kind: 'Sync' },\n },\n] satisfies InstrumentationConfig[];\n\nexport const tanstackAiModuleNames = getModuleNames(tanstackAiConfig);\n\nexport const tanstackAiChannels = {\n TANSTACK_AI_CHAT: 'orchestrion:@tanstack/ai:chat',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\nconst MODULE_NAME = 'tedious';\n\n// `Connection` has lived in `lib/connection.js` across the whole supported range (matches the vendored\n// OTel `supportedVersions`). Orchestrion never matches a file that doesn't exist, so a single entry is\n// safe even for versions that shipped extra layouts.\nconst FILE_PATH = 'lib/connection.js';\nconst VERSION_RANGE = '>=1.11.0 <21';\n\n// `Connection` methods that dispatch a request (each traced as one db span) plus `connect`, which the\n// subscriber wraps for bookkeeping only (tracking the connection's active database, read into `db.name`).\n// All return synchronously; the request completes later via its callback/events, so the subscriber owns\n// span-ending rather than the channel lifecycle.\nconst METHODS = ['connect', 'execSql', 'execSqlBatch', 'callProcedure', 'execBulkLoad', 'prepare', 'execute'] as const;\n\nexport const tediousConfig: InstrumentationConfig[] = METHODS.map(methodName => ({\n channelName: methodName,\n module: { name: MODULE_NAME, versionRange: VERSION_RANGE, filePath: FILE_PATH },\n functionQuery: { className: 'Connection', methodName, kind: 'Sync' },\n}));\n\nexport const tediousModuleNames = getModuleNames(tediousConfig);\n\nexport const tediousChannels = {\n TEDIOUS_CONNECT: 'orchestrion:tedious:connect',\n TEDIOUS_EXEC_SQL: 'orchestrion:tedious:execSql',\n TEDIOUS_EXEC_SQL_BATCH: 'orchestrion:tedious:execSqlBatch',\n TEDIOUS_CALL_PROCEDURE: 'orchestrion:tedious:callProcedure',\n TEDIOUS_EXEC_BULK_LOAD: 'orchestrion:tedious:execBulkLoad',\n TEDIOUS_PREPARE: 'orchestrion:tedious:prepare',\n TEDIOUS_EXECUTE: 'orchestrion:tedious:execute',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { openAiCompatibleConfig } from './openai-compatible';\n\n// `together-ai` is a Stainless-generated, OpenAI-compatible SDK — see `openAiCompatibleConfig`.\nexport const togetherAiConfig = [\n ...openAiCompatibleConfig({ name: 'together-ai', versionRange: '>=0.6.0 <1' }),\n // 1.x defines `create` on `BaseCompletions`/`BaseEmbeddings`; `Completions`/`Embeddings` are empty subclasses.\n ...openAiCompatibleConfig(\n { name: 'together-ai', versionRange: '>=1.0.0 <2' },\n { chat: 'BaseCompletions', embeddings: 'BaseEmbeddings' },\n ),\n] satisfies InstrumentationConfig[];\n\nexport const togetherAiModuleNames = getModuleNames(togetherAiConfig);\n\nexport const togetherAiChannels = {\n TOGETHER_CHAT: 'orchestrion:together-ai:chat',\n TOGETHER_EMBEDDINGS: 'orchestrion:together-ai:embeddings',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\n\n// `systemOne` returns a lazy `APIPromise` whose body is parsed on the first `.then()`. `kind: 'Sync'`\n// keeps orchestrion from calling `.then()` on it (which `Auto` would), so a caller's `asResponse()`\n// still gets an unread body. The SDK ships one bundled file per module format.\nexport const typesafeConfig = ['dist/index.mjs', 'dist/index.cjs'].map(filePath => ({\n channelName: 'system-one',\n module: { name: '@typesafe-ai/sdk', versionRange: '>=0.5.0 <1', filePath },\n functionQuery: { className: 'TypeSafeClient', methodName: 'systemOne', kind: 'Sync' as const },\n})) satisfies InstrumentationConfig[];\n\nexport const typesafeModuleNames = getModuleNames(typesafeConfig);\n\nexport const typesafeChannels = {\n TYPESAFE_SYSTEM_ONE: 'orchestrion:@typesafe-ai/sdk:system-one',\n} as const;\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { getModuleNames } from './module-names';\nimport { registrationOnly } from './registration-only';\n\nexport const vercelAiConfig = [\n ...['dist/index.js', 'dist/index.mjs'].map(filePath =>\n registrationOnly({ name: 'ai', versionRange: '>=7.0.0', filePath }),\n ),\n // Vercel AI v6: mirror the v7 native `ai:telemetry` channel by injecting\n // channels into the top-level entry points. `resolveLanguageModel` is wrapped\n // not to span it, but so the subscriber can monkey-patch `doGenerate`/\n // `doStream` on the returned model (the only way to span the model call,\n // which is an inline call with no injectable definition in `ai`).\n // `streamText` and `streamObject` return their result synchronously (streaming\n // is lazy), so they're `Sync`; the subscriber binds the span via\n // `bindTracingChannelToSpan`, which ends it when the (synchronous) call returns.\n\n // The majority of entrypoints are present in all versions we support\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateText', 'generateText', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamText', 'streamText', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'streamObject', 'streamObject', 'Sync'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'generateObject', 'generateObject', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embed', 'embed', 'Async'),\n ...vercelAiEntries('>=4.0.0 <7.0.0', 'embedMany', 'embedMany', 'Async'),\n\n // The following entry is only present in v5 and later\n ...vercelAiEntries('>=5.0.0 <7.0.0', 'resolveLanguageModel', 'resolveLanguageModel', 'Sync'),\n\n // The following entry is only present in v6 and later\n ...vercelAiEntries('>=6.0.0 <7.0.0', 'executeToolCall', 'executeToolCall', 'Async'),\n] satisfies InstrumentationConfig[];\n\nexport const vercelAiChannels = {\n // Vercel AI (`ai`): orchestrion injects these so the same channel-based\n // integration that consumes `ai`'s native `ai:telemetry` channel (v7) can\n // also instrument v4/v5/v6. Each maps to a top-level function in `ai`'s bundle.\n // All three versions share the same channel names (the subscriber is version-agnostic);\n // `VERCEL_AI_EXECUTE_TOOL_CALL` is v6-only (v4/v5 have no `executeToolCall` export) and\n // `VERCEL_AI_RESOLVE_LANGUAGE_MODEL` is v5/v6-only (v4 has no such chokepoint).\n VERCEL_AI_GENERATE_TEXT: 'orchestrion:ai:generateText',\n VERCEL_AI_STREAM_TEXT: 'orchestrion:ai:streamText',\n VERCEL_AI_STREAM_OBJECT: 'orchestrion:ai:streamObject',\n VERCEL_AI_GENERATE_OBJECT: 'orchestrion:ai:generateObject',\n VERCEL_AI_EMBED: 'orchestrion:ai:embed',\n VERCEL_AI_EMBED_MANY: 'orchestrion:ai:embedMany',\n VERCEL_AI_EXECUTE_TOOL_CALL: 'orchestrion:ai:executeToolCall',\n VERCEL_AI_RESOLVE_LANGUAGE_MODEL: 'orchestrion:ai:resolveLanguageModel',\n} as const;\n\n/**\n * The central list of channel injections orchestrion should perform.\n *\n * This module has NO side effects — it's the only thing both the runtime hook\n * (`runtime/import-hook.mjs`) and the bundler plugins (`bundler/vite.ts`, …)\n * import from. Adding a new instrumented method is one entry here plus one\n * subscriber in `integrations/<lib>/tracing-channel.ts`.\n *\n * `channelName` here is the unprefixed suffix; the actual diagnostics_channel\n * name is `orchestrion:${module.name}:${channelName}` (see `channels.ts`).\n */\n/**\n * `ai` ships a single bundled entry per module system, so each instrumented\n * function needs one config entry per file (the app loads whichever matches its\n * module system). This expands a single target into both.\n */\nfunction vercelAiEntries(\n versionRange: string,\n channelName: string,\n functionName: string,\n kind: 'Async' | 'Sync',\n): InstrumentationConfig[] {\n return ['dist/index.js', 'dist/index.mjs'].map(filePath => ({\n channelName,\n module: { name: 'ai', versionRange, filePath },\n functionQuery: { functionName, kind },\n }));\n}\n\nexport const vercelAiModuleNames = getModuleNames(vercelAiConfig);\n","import type { InstrumentationConfig } from '../apmTypes';\n\nimport { uniq } from '@sentry/core';\n\nimport { awsSdkConfig } from './aws-sdk';\nimport { amqplibConfig } from './amqplib';\nimport { anthropicAiConfig } from './anthropic-ai';\nimport { clickhouseConfig } from './clickhouse';\nimport { cronConfig } from './cron';\nimport { dataloaderConfig } from './dataloader';\nimport { expressConfig } from './express';\nimport { firebaseConfig } from './firebase';\nimport { genericPoolConfig } from './generic-pool';\nimport { googleGenAiConfig } from './google-genai';\nimport { graphqlConfig } from './graphql';\nimport { groqConfig } from './groq';\nimport { hapiConfig } from './hapi';\nimport { honoConfig } from './hono';\nimport { ioredisConfig } from './ioredis';\nimport { kafkajsConfig } from './kafkajs';\nimport { knexConfig } from './knex';\nimport { koaConfig } from './koa';\nimport { langchainConfig } from './langchain';\nimport { langgraphConfig } from './langgraph';\nimport { lruMemoizerConfig } from './lru-memoizer';\nimport { flueConfig } from './flue';\nimport { mastraConfig } from './mastra';\nimport { piAiConfig } from './pi-ai';\nimport { piDurableConfig } from './pi-durable';\nimport { mcpServerConfig } from './mcp-server';\nimport { mistralConfig } from './mistral';\nimport { mongodbConfig } from './mongodb';\nimport { mongooseConfig } from './mongoose';\nimport { mysql2Config } from './mysql2';\nimport { mysqlConfig } from './mysql';\nimport { neonConfig } from './neon';\nimport { nestjsConfig } from './nestjs';\nimport { nitroConfig } from './nitro';\nimport { nodeCronConfig } from './node-cron';\nimport { nodeScheduleConfig } from './node-schedule';\nimport { openaiConfig } from './openai';\nimport { pgConfig } from './pg';\nimport { postgresJsConfig } from './postgres';\nimport { prismaConfig } from './prisma';\nimport { redisConfig } from './redis';\nimport { remixConfig } from './remix';\nimport { remixV3Config } from './remix-v3';\nimport { tanstackAiConfig } from './tanstack-ai';\nimport { tediousConfig } from './tedious';\nimport { togetherAiConfig } from './together-ai';\nimport { typesafeConfig } from './typesafe';\nimport { vercelAiConfig } from './vercel-ai';\n// Kept sorted alphabetically by module so concurrent additions insert at different\n// points rather than all appending to the end (fewer merge conflicts).\n\n/**\n * The orchestrion code-transform configs. Every instrumentable library is here\n * so the transform is all-or-nothing: whenever orchestrion is enabled, all of\n * these are injected. The channel LISTENERS may live elsewhere (e.g. the NestJS\n * one lives in `@sentry/nestjs`), but the config that decides what gets\n * transformed is centralized here.\n *\n * This module MUST stay pure, stateless data. It is loaded in more than one realm\n * at once — the build-time bundler plugin inlines it into the server chunk, while\n * `@sentry/server-runtime-injection`'s external `register` loads its own copy from\n * `node_modules` at runtime. Two identical, side-effect-free arrays are harmless;\n * any module-level mutable state here would silently diverge between those copies.\n */\nexport const SENTRY_INSTRUMENTATIONS: InstrumentationConfig[] = [\n ...amqplibConfig,\n ...anthropicAiConfig,\n ...awsSdkConfig,\n ...clickhouseConfig,\n ...cronConfig,\n ...dataloaderConfig,\n ...expressConfig,\n ...firebaseConfig,\n ...genericPoolConfig,\n ...googleGenAiConfig,\n ...graphqlConfig,\n ...groqConfig,\n ...hapiConfig,\n ...honoConfig,\n ...ioredisConfig,\n ...kafkajsConfig,\n ...knexConfig,\n ...koaConfig,\n ...langchainConfig,\n ...langgraphConfig,\n ...lruMemoizerConfig,\n ...flueConfig,\n ...mastraConfig,\n ...mcpServerConfig,\n ...mistralConfig,\n ...mongodbConfig,\n ...mongooseConfig,\n ...mysql2Config,\n ...mysqlConfig,\n ...neonConfig,\n ...nestjsConfig,\n ...nitroConfig,\n ...nodeCronConfig,\n ...nodeScheduleConfig,\n ...openaiConfig,\n ...pgConfig,\n ...piAiConfig,\n ...piDurableConfig,\n ...postgresJsConfig,\n ...prismaConfig,\n ...redisConfig,\n ...remixConfig,\n ...remixV3Config,\n ...tanstackAiConfig,\n ...tediousConfig,\n ...togetherAiConfig,\n ...typesafeConfig,\n ...vercelAiConfig,\n];\n\n/**\n * The subset of {@link SENTRY_INSTRUMENTATIONS} the RUNTIME loader\n * (`@sentry/server-runtime-injection`'s `register`, reached via `--import` or\n * `Sentry.init()`) can actually apply.\n *\n * Registration-only configs (native-channel libraries such as `ai` v7,\n * `ioredis`, `@redis/client`, `mysql2`, `mongoose`) carry the custom\n * `MODULE_REGISTRATION_TRANSFORM` operator. That operator is wired into the\n * BUNDLER plugins only (see `orchestrion/bundler/moduleInjectedTransform.ts`,\n * applied via `bundler/options.ts`'s `customTransforms`); the runtime loader's\n * `initialize()` receives no custom transforms. Attempting one of these at\n * runtime therefore throws `TypeError: transform is not a function`, which the\n * loader misreports as the always-on \"`@sentry/server-runtime-injection` was\n * bundled ... loads uninstrumented\" warning even though nothing is wrong.\n *\n * Excluding them at runtime is correct, not just a way to silence the warning:\n * these libraries publish their own tracing channels, and their integrations\n * subscribe through `setupOnce()` / `waitForTracingChannelBinding`,\n * independently of the module-injected snippet. That snippet only fires\n * `orchestrion.module-injected`, which drives the `setup()` /\n * `invokeOrchestrionInstrumentation` path; for a native-channel version that\n * path subscribes to the injected `orchestrion:*` channels the library never\n * publishes — a no-op. So running these at runtime would add no spans. The\n * snippet earns its keep only on the BUNDLER path — notably bundler-only SDKs\n * (e.g. `@sentry/cloudflare`) that discover a loaded module via that event to\n * instantiate its integration factory. `@sentry/node` registers its\n * integrations statically, so it does not need it.\n */\nexport const SENTRY_RUNTIME_INSTRUMENTATIONS: InstrumentationConfig[] = SENTRY_INSTRUMENTATIONS.filter(\n config => !config.transform,\n);\n\n/**\n * The unique set of package names instrumented by `SENTRY_INSTRUMENTATIONS`\n * merged with any caller-provided `instrumentations` (e.g. `['mysql']`).\n *\n * Bundler plugins MUST ensure these are actually bundled rather than\n * externalized: an externalized dependency is resolved from `node_modules` at\n * runtime and never passes through the code transform's `onLoad`, so its\n * diagnostics_channel calls are silently never injected. This includes a\n * plugin's custom `instrumentations`, otherwise those extra packages can stay\n * externalized and their transform never runs.\n */\nexport function instrumentedModuleNames(instrumentations: InstrumentationConfig[] = []): string[] {\n return [\n ...uniq([...SENTRY_INSTRUMENTATIONS, ...instrumentations].map(i => i.module.name)),\n // Additional things that need to be bundled but are not covered by the above\n // Remix needs to bundle this so @remix-run/server-runtime is _also_ bundled\n '@remix-run/node',\n ];\n}\n\n/** The instrumented module names from the default Sentry config, with no custom additions. */\nexport const INSTRUMENTED_MODULE_NAMES: string[] = instrumentedModuleNames();\n\n/**\n * The package names the SDK instruments through the orchestrion module transform (its\n * diagnostics-channel injection). Pass these to a server bundler's \"keep external\" option so the\n * packages load through Node's module loader — the only path the transform can hook — instead of\n * being inlined into the server bundle. A framework that has no Sentry bundler plugin (e.g. eve, via\n * `build.externalDependencies`) is the main caller; a listed package the app doesn't use is simply\n * ignored by the bundler.\n *\n * Unlike {@link INSTRUMENTED_MODULE_NAMES}, this is the plain instrumented set with no bundler-only\n * additions — those force a helper package to be *bundled*, the opposite of keeping it external.\n */\nexport function getInstrumentedModuleNames(): string[] {\n return uniq(SENTRY_INSTRUMENTATIONS.map(instrumentation => instrumentation.module.name));\n}\n\n/**\n * Returns `external` with any instrumented packages removed, so a bundler that\n * uses an \"external\" denylist (esbuild, Bun, Rollup) still bundles — and thus\n * transforms — them. Matches an exact package name (`'mysql'`) or a subpath\n * (`'mysql/lib/...'`); wildcard/other patterns are left untouched. `undefined`\n * is returned unchanged.\n *\n * Pass `moduleNames` from `instrumentedModuleNames(options.instrumentations)` so\n * custom instrumentations are stripped too; it defaults to the Sentry config\n * list. (Vite uses an `ssr.noExternal` allowlist instead, so it consumes\n * `instrumentedModuleNames` directly rather than this helper.)\n */\nexport function withoutInstrumentedExternals(\n external: readonly string[] | undefined,\n moduleNames: string[] = INSTRUMENTED_MODULE_NAMES,\n): string[] | undefined {\n if (!external) {\n return undefined;\n }\n return external.filter(entry => !moduleNames.some(name => entry === name || entry.startsWith(`${name}/`)));\n}\n\n// This is exported so that the nestjs package can use it to subscribe to the channels.\nexport { nestjsChannels } from './nestjs';\n// This is exported so that the remix package can use it to subscribe to the channels.\nexport { remixChannels } from './remix';\n// Exported so the remix package can subscribe to the Remix 3 channels, and hand only these configs to\n// the browser transform.\nexport { remixV3Channels, remixV3Config } from './remix-v3';\n"],"mappings":";;;;AAYA,MAAa,eAAe;CAC1B;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAAgB,cAAc;GAAe,UAAU;EAAsC;EAC7G,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CAC1E;CACA;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAAyB,cAAc;GAAc,UAAU;EAAoB;EACnG,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CAC1E;CACA;EACE,aAAa;EACb,QAAQ;GAAE,MAAM;GAA0B,cAAc;GAAU,UAAU;EAAoB;EAChG,eAAe;GAAE,WAAW;GAAU,YAAY;GAAQ,MAAM;EAAQ;CA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