braintrust 3.24.0 → 3.25.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 (47) hide show
  1. package/dev/dist/index.d.mts +5 -0
  2. package/dev/dist/index.d.ts +5 -0
  3. package/dev/dist/index.js +2614 -1567
  4. package/dev/dist/index.mjs +2037 -990
  5. package/dist/apply-auto-instrumentation.js +200 -199
  6. package/dist/apply-auto-instrumentation.mjs +8 -7
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +596 -462
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/next.cjs +596 -462
  10. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +596 -462
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.cjs +596 -462
  14. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  15. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +596 -462
  16. package/dist/auto-instrumentations/bundler/webpack.cjs +596 -462
  17. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  18. package/dist/auto-instrumentations/{chunk-BURMPO7L.mjs → chunk-7P6563SW.mjs} +1 -1
  19. package/dist/auto-instrumentations/{chunk-F43DNLPD.mjs → chunk-CZ24KNHT.mjs} +569 -442
  20. package/dist/auto-instrumentations/{chunk-GSZHTAQW.mjs → chunk-JPVCUKTY.mjs} +30 -21
  21. package/dist/auto-instrumentations/hook.mjs +648 -476
  22. package/dist/auto-instrumentations/index.cjs +568 -442
  23. package/dist/auto-instrumentations/index.mjs +1 -1
  24. package/dist/browser.d.mts +7 -0
  25. package/dist/browser.d.ts +7 -0
  26. package/dist/browser.js +2022 -971
  27. package/dist/browser.mjs +2022 -971
  28. package/dist/{chunk-XE5FS7QY.mjs → chunk-2SANLSWX.mjs} +1375 -597
  29. package/dist/{chunk-7F6GCRHH.mjs → chunk-ABR2QWDP.mjs} +702 -456
  30. package/dist/{chunk-SU6EHKJV.js → chunk-GSIDVFE6.js} +2176 -1398
  31. package/dist/{chunk-7AUY2XWX.js → chunk-P25IOOU4.js} +704 -458
  32. package/dist/cli.js +2005 -958
  33. package/dist/edge-light.js +2022 -971
  34. package/dist/edge-light.mjs +2022 -971
  35. package/dist/index.d.mts +7 -0
  36. package/dist/index.d.ts +7 -0
  37. package/dist/index.js +447 -402
  38. package/dist/index.mjs +72 -27
  39. package/dist/instrumentation/index.d.mts +5 -0
  40. package/dist/instrumentation/index.d.ts +5 -0
  41. package/dist/instrumentation/index.js +1990 -981
  42. package/dist/instrumentation/index.mjs +1990 -981
  43. package/dist/vitest-evals-reporter.js +16 -16
  44. package/dist/vitest-evals-reporter.mjs +2 -2
  45. package/dist/workerd.js +2022 -971
  46. package/dist/workerd.mjs +2022 -971
  47. package/package.json +2 -2
@@ -4732,7 +4732,51 @@ var SpanCache = class {
4732
4732
  };
4733
4733
 
4734
4734
  // src/span-origin.ts
4735
- var SDK_VERSION = true ? "3.24.0" : "0.0.0";
4735
+ var INSTRUMENTATION_NAMES = {
4736
+ AI_SDK: "ai-sdk",
4737
+ ANTHROPIC: "anthropic",
4738
+ BEDROCK_RUNTIME: "bedrock-runtime",
4739
+ BRAINTRUST_JS_LOGGER: "braintrust-js-logger",
4740
+ CLAUDE_AGENT_SDK: "claude-agent-sdk",
4741
+ COHERE: "cohere",
4742
+ CURSOR_SDK: "cursor-sdk",
4743
+ EVE: "eve",
4744
+ FLUE: "flue",
4745
+ GENKIT: "genkit",
4746
+ GITHUB_COPILOT: "github-copilot",
4747
+ GOOGLE_ADK: "google-adk",
4748
+ GOOGLE_GENAI: "google-genai",
4749
+ GROQ: "groq",
4750
+ HUGGINGFACE: "huggingface",
4751
+ LANGCHAIN: "langchain",
4752
+ LANGSMITH: "langsmith",
4753
+ MASTRA: "mastra",
4754
+ MISTRAL: "mistral",
4755
+ OPENAI: "openai",
4756
+ OPENAI_AGENTS: "openai-agents",
4757
+ OPENAI_CODEX: "openai-codex",
4758
+ OPENROUTER: "openrouter",
4759
+ OPENROUTER_AGENT: "openrouter-agent",
4760
+ PI_CODING_AGENT: "pi-coding-agent",
4761
+ STRANDS_AGENT_SDK: "strands-agent-sdk"
4762
+ };
4763
+ var INTERNAL_SPAN_INSTRUMENTATION_NAME = /* @__PURE__ */ Symbol.for(
4764
+ "braintrust.spanInstrumentationName"
4765
+ );
4766
+ var SDK_VERSION = true ? "3.25.0" : "0.0.0";
4767
+ function withSpanInstrumentationName(args, instrumentationName) {
4768
+ return {
4769
+ ...args,
4770
+ [INTERNAL_SPAN_INSTRUMENTATION_NAME]: instrumentationName
4771
+ };
4772
+ }
4773
+ function getSpanInstrumentationName(args) {
4774
+ if (typeof args !== "object" || args === null) {
4775
+ return void 0;
4776
+ }
4777
+ const value = args[INTERNAL_SPAN_INSTRUMENTATION_NAME];
4778
+ return isSpanInstrumentationName(value) ? value : void 0;
4779
+ }
4736
4780
  function detectSpanOriginEnvironment(explicit) {
4737
4781
  if (explicit) return explicit;
4738
4782
  const envType = isomorph_default.getEnv("BRAINTRUST_ENVIRONMENT_TYPE");
@@ -4804,6 +4848,9 @@ function mergeSpanOriginContext(context, instrumentationName, environment) {
4804
4848
  };
4805
4849
  return next;
4806
4850
  }
4851
+ function isSpanInstrumentationName(value) {
4852
+ return Object.values(INSTRUMENTATION_NAMES).some((name) => name === value);
4853
+ }
4807
4854
  function firstPresent(entries) {
4808
4855
  return entries.find(([key]) => Boolean(isomorph_default.getEnv(key)))?.[1];
4809
4856
  }
@@ -5098,6 +5145,7 @@ var BraintrustState = class _BraintrustState {
5098
5145
  });
5099
5146
  this.spanCache = new SpanCache({ disabled: loginParams.disableSpanCache });
5100
5147
  this.spanOriginEnvironment = detectSpanOriginEnvironment();
5148
+ this._internalSetTraceContextSigningSecret(loginParams.apiKey);
5101
5149
  }
5102
5150
  loginParams;
5103
5151
  id;
@@ -5135,6 +5183,18 @@ var BraintrustState = class _BraintrustState {
5135
5183
  _contextManager = null;
5136
5184
  _otelFlushCallback = null;
5137
5185
  spanOriginEnvironment;
5186
+ traceContextSigningSecret;
5187
+ /** @internal */
5188
+ _internalSetTraceContextSigningSecret(secret) {
5189
+ const normalizedSecret = secret?.trim();
5190
+ if (normalizedSecret) {
5191
+ this.traceContextSigningSecret = normalizedSecret;
5192
+ }
5193
+ }
5194
+ /** @internal */
5195
+ _internalGetTraceContextSigningSecret() {
5196
+ return (this.traceContextSigningSecret ?? this.loginToken ?? isomorph_default.getEnv("BRAINTRUST_API_KEY"))?.trim();
5197
+ }
5138
5198
  resetLoginInfo() {
5139
5199
  this.appUrl = null;
5140
5200
  this.appPublicUrl = null;
@@ -5195,6 +5255,7 @@ var BraintrustState = class _BraintrustState {
5195
5255
  this.gitMetadataSettings = other.gitMetadataSettings;
5196
5256
  this.debugLogLevel = other.debugLogLevel;
5197
5257
  this.debugLogLevelConfigured = other.debugLogLevelConfigured;
5258
+ this.traceContextSigningSecret = other.traceContextSigningSecret;
5198
5259
  setGlobalDebugLogLevel(
5199
5260
  this.debugLogLevelConfigured ? this.debugLogLevel ?? false : void 0
5200
5261
  );
@@ -5282,6 +5343,7 @@ var BraintrustState = class _BraintrustState {
5282
5343
  return this.debugLogLevelConfigured;
5283
5344
  }
5284
5345
  async login(loginParams) {
5346
+ this._internalSetTraceContextSigningSecret(loginParams.apiKey);
5285
5347
  this.setDebugLogLevel(loginParams.debugLogLevel);
5286
5348
  if (this.apiUrl && !loginParams.forceLogin) {
5287
5349
  return;
@@ -7522,7 +7584,9 @@ function deepCopyEvent(event) {
7522
7584
  const ATTACHMENT_MARKER_KEY = "_bt_internal_saved_attachment_marker";
7523
7585
  const attachmentMarker = ++deepCopyEventMarkerCounter;
7524
7586
  const serialized = JSON.stringify(event, (_k, v) => {
7525
- if (v instanceof SpanImpl || v instanceof NoopSpan) {
7587
+ if (v instanceof Error) {
7588
+ return v.message;
7589
+ } else if (v instanceof SpanImpl || v instanceof NoopSpan) {
7526
7590
  return `<span>`;
7527
7591
  } else if (v instanceof Experiment2) {
7528
7592
  return `<experiment>`;
@@ -8134,6 +8198,7 @@ var SpanImpl = class _SpanImpl {
8134
8198
  constructor(args) {
8135
8199
  this._state = args.state;
8136
8200
  this._propagatedState = args.propagatedState;
8201
+ const instrumentationName = getSpanInstrumentationName(args) ?? INSTRUMENTATION_NAMES.BRAINTRUST_JS_LOGGER;
8137
8202
  const spanAttributes = args.spanAttributes ?? {};
8138
8203
  const rawEvent = args.event ?? {};
8139
8204
  const type = args.type ?? (args.parentSpanIds ? void 0 : args.defaultRootType);
@@ -8165,7 +8230,7 @@ var SpanImpl = class _SpanImpl {
8165
8230
  },
8166
8231
  context: mergeSpanOriginContext(
8167
8232
  { ...callerLocation },
8168
- "braintrust-js-logger",
8233
+ instrumentationName,
8169
8234
  this._state.spanOriginEnvironment
8170
8235
  ),
8171
8236
  span_attributes: {
@@ -9022,17 +9087,20 @@ var BraintrustObservabilityExporter = class {
9022
9087
  }
9023
9088
  onStart(exported) {
9024
9089
  if (this.spans.has(exported.id)) return;
9025
- const args = {
9026
- name: exported.name,
9027
- spanAttributes: { type: spanTypeFor(exported.type) },
9028
- startTime: epochSeconds(exported.startTime),
9029
- // Use the Mastra span id as the Braintrust row id so that
9030
- // `logFeedback({ id: <mastra span id> })` (and Mastra's score events)
9031
- // attach to the right row. Without this, `SpanImpl` auto-generates a
9032
- // row id (`this._id = eventId ?? idGenerator.getSpanId()`) that no
9033
- // external caller could know.
9034
- event: { id: exported.id }
9035
- };
9090
+ const args = withSpanInstrumentationName(
9091
+ {
9092
+ name: exported.name,
9093
+ spanAttributes: { type: spanTypeFor(exported.type) },
9094
+ startTime: epochSeconds(exported.startTime),
9095
+ // Use the Mastra span id as the Braintrust row id so that
9096
+ // `logFeedback({ id: <mastra span id> })` (and Mastra's score events)
9097
+ // attach to the right row. Without this, `SpanImpl` auto-generates a
9098
+ // row id (`this._id = eventId ?? idGenerator.getSpanId()`) that no
9099
+ // external caller could know.
9100
+ event: { id: exported.id }
9101
+ },
9102
+ INSTRUMENTATION_NAMES.MASTRA
9103
+ );
9036
9104
  const parentRecord = exported.parentSpanId ? this.spans.get(exported.parentSpanId) : void 0;
9037
9105
  if (!this.capturedParent) {
9038
9106
  const probe = currentSpan();
@@ -9103,7 +9171,8 @@ function logExporterError(err) {
9103
9171
  function channel(spec) {
9104
9172
  return spec;
9105
9173
  }
9106
- function defineChannels(pkg, channels) {
9174
+ function defineChannels(pkg, channels, options) {
9175
+ const { instrumentationName } = options;
9107
9176
  return Object.fromEntries(
9108
9177
  Object.entries(channels).map(([key, spec]) => {
9109
9178
  const fullChannelName = `orchestrion:${pkg}:${spec.channelName}`;
@@ -9116,6 +9185,7 @@ function defineChannels(pkg, channels) {
9116
9185
  key,
9117
9186
  {
9118
9187
  ...asyncSpec,
9188
+ instrumentationName,
9119
9189
  tracingChannel: tracingChannel2,
9120
9190
  tracePromise: (fn, context) => tracingChannel2().tracePromise(
9121
9191
  fn,
@@ -9133,6 +9203,7 @@ function defineChannels(pkg, channels) {
9133
9203
  key,
9134
9204
  {
9135
9205
  ...syncSpec,
9206
+ instrumentationName,
9136
9207
  tracingChannel,
9137
9208
  traceSync: (fn, context) => tracingChannel().traceSync(
9138
9209
  fn,
@@ -9146,92 +9217,102 @@ function defineChannels(pkg, channels) {
9146
9217
  }
9147
9218
 
9148
9219
  // src/instrumentation/plugins/ai-sdk-channels.ts
9149
- var aiSDKChannels = defineChannels("ai", {
9150
- generateText: channel({
9151
- channelName: "generateText",
9152
- kind: "async"
9153
- }),
9154
- streamText: channel({
9155
- channelName: "streamText",
9156
- kind: "async"
9157
- }),
9158
- streamTextSync: channel({
9159
- channelName: "streamText.sync",
9160
- kind: "sync-stream"
9161
- }),
9162
- generateObject: channel({
9163
- channelName: "generateObject",
9164
- kind: "async"
9165
- }),
9166
- streamObject: channel({
9167
- channelName: "streamObject",
9168
- kind: "async"
9169
- }),
9170
- streamObjectSync: channel({
9171
- channelName: "streamObject.sync",
9172
- kind: "sync-stream"
9173
- }),
9174
- embed: channel(
9175
- {
9220
+ var aiSDKChannels = defineChannels(
9221
+ "ai",
9222
+ {
9223
+ generateText: channel({
9224
+ channelName: "generateText",
9225
+ kind: "async"
9226
+ }),
9227
+ streamText: channel({
9228
+ channelName: "streamText",
9229
+ kind: "async"
9230
+ }),
9231
+ streamTextSync: channel({
9232
+ channelName: "streamText.sync",
9233
+ kind: "sync-stream"
9234
+ }),
9235
+ generateObject: channel({
9236
+ channelName: "generateObject",
9237
+ kind: "async"
9238
+ }),
9239
+ streamObject: channel({
9240
+ channelName: "streamObject",
9241
+ kind: "async"
9242
+ }),
9243
+ streamObjectSync: channel({
9244
+ channelName: "streamObject.sync",
9245
+ kind: "sync-stream"
9246
+ }),
9247
+ embed: channel({
9176
9248
  channelName: "embed",
9177
9249
  kind: "async"
9178
- }
9179
- ),
9180
- embedMany: channel({
9181
- channelName: "embedMany",
9182
- kind: "async"
9183
- }),
9184
- rerank: channel({
9185
- channelName: "rerank",
9186
- kind: "async"
9187
- }),
9188
- agentGenerate: channel({
9189
- channelName: "Agent.generate",
9190
- kind: "async"
9191
- }),
9192
- agentStream: channel({
9193
- channelName: "Agent.stream",
9194
- kind: "async"
9195
- }),
9196
- agentStreamSync: channel({
9197
- channelName: "Agent.stream.sync",
9198
- kind: "sync-stream"
9199
- }),
9200
- toolLoopAgentGenerate: channel({
9201
- channelName: "ToolLoopAgent.generate",
9202
- kind: "async"
9203
- }),
9204
- toolLoopAgentStream: channel({
9205
- channelName: "ToolLoopAgent.stream",
9206
- kind: "async"
9207
- }),
9208
- workflowAgentStream: channel({
9209
- channelName: "WorkflowAgent.stream",
9210
- kind: "async"
9211
- }),
9212
- v7CreateTelemetryDispatcher: channel({
9213
- channelName: "createTelemetryDispatcher",
9214
- kind: "sync-stream"
9215
- })
9216
- });
9217
- var harnessAgentChannels = defineChannels("@ai-sdk/harness", {
9218
- generate: channel({
9219
- channelName: "HarnessAgent.generate",
9220
- kind: "async"
9221
- }),
9222
- stream: channel({
9223
- channelName: "HarnessAgent.stream",
9224
- kind: "async"
9225
- }),
9226
- continueGenerate: channel({
9227
- channelName: "HarnessAgent.continueGenerate",
9228
- kind: "async"
9229
- }),
9230
- continueStream: channel({
9231
- channelName: "HarnessAgent.continueStream",
9232
- kind: "async"
9233
- })
9234
- });
9250
+ }),
9251
+ embedMany: channel({
9252
+ channelName: "embedMany",
9253
+ kind: "async"
9254
+ }),
9255
+ rerank: channel({
9256
+ channelName: "rerank",
9257
+ kind: "async"
9258
+ }),
9259
+ agentGenerate: channel({
9260
+ channelName: "Agent.generate",
9261
+ kind: "async"
9262
+ }),
9263
+ agentStream: channel({
9264
+ channelName: "Agent.stream",
9265
+ kind: "async"
9266
+ }),
9267
+ agentStreamSync: channel({
9268
+ channelName: "Agent.stream.sync",
9269
+ kind: "sync-stream"
9270
+ }),
9271
+ toolLoopAgentGenerate: channel({
9272
+ channelName: "ToolLoopAgent.generate",
9273
+ kind: "async"
9274
+ }),
9275
+ toolLoopAgentStream: channel({
9276
+ channelName: "ToolLoopAgent.stream",
9277
+ kind: "async"
9278
+ }),
9279
+ workflowAgentStream: channel({
9280
+ channelName: "WorkflowAgent.stream",
9281
+ kind: "async"
9282
+ }),
9283
+ v7CreateTelemetryDispatcher: channel({
9284
+ channelName: "createTelemetryDispatcher",
9285
+ kind: "sync-stream"
9286
+ })
9287
+ },
9288
+ { instrumentationName: INSTRUMENTATION_NAMES.AI_SDK }
9289
+ );
9290
+ var harnessAgentChannels = defineChannels(
9291
+ "@ai-sdk/harness",
9292
+ {
9293
+ createSession: channel({
9294
+ channelName: "HarnessAgent.createSession",
9295
+ kind: "async"
9296
+ }),
9297
+ generate: channel({
9298
+ channelName: "HarnessAgent.generate",
9299
+ kind: "async"
9300
+ }),
9301
+ stream: channel({
9302
+ channelName: "HarnessAgent.stream",
9303
+ kind: "async"
9304
+ }),
9305
+ continueGenerate: channel({
9306
+ channelName: "HarnessAgent.continueGenerate",
9307
+ kind: "async"
9308
+ }),
9309
+ continueStream: channel({
9310
+ channelName: "HarnessAgent.continueStream",
9311
+ kind: "async"
9312
+ })
9313
+ },
9314
+ { instrumentationName: INSTRUMENTATION_NAMES.AI_SDK }
9315
+ );
9235
9316
 
9236
9317
  // src/auto-instrumentations/configs/ai-sdk.ts
9237
9318
  var aiSDKConfigs = [
@@ -9239,6 +9320,7 @@ var aiSDKConfigs = [
9239
9320
  // `./agent` entrypoint. The compiled class expression is anonymous, so match
9240
9321
  // the first async method with each public name instead of a class name.
9241
9322
  ...[
9323
+ ["createSession", harnessAgentChannels.createSession.channelName],
9242
9324
  ["generate", harnessAgentChannels.generate.channelName],
9243
9325
  ["stream", harnessAgentChannels.stream.channelName],
9244
9326
  ["continueGenerate", harnessAgentChannels.continueGenerate.channelName],
@@ -9627,20 +9709,24 @@ var aiSDKConfigs = [
9627
9709
  ];
9628
9710
 
9629
9711
  // src/instrumentation/plugins/anthropic-channels.ts
9630
- var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
9631
- messagesCreate: channel({
9632
- channelName: "messages.create",
9633
- kind: "async"
9634
- }),
9635
- betaMessagesCreate: channel({
9636
- channelName: "beta.messages.create",
9637
- kind: "async"
9638
- }),
9639
- betaMessagesToolRunner: channel({
9640
- channelName: "beta.messages.toolRunner",
9641
- kind: "sync-stream"
9642
- })
9643
- });
9712
+ var anthropicChannels = defineChannels(
9713
+ "@anthropic-ai/sdk",
9714
+ {
9715
+ messagesCreate: channel({
9716
+ channelName: "messages.create",
9717
+ kind: "async"
9718
+ }),
9719
+ betaMessagesCreate: channel({
9720
+ channelName: "beta.messages.create",
9721
+ kind: "async"
9722
+ }),
9723
+ betaMessagesToolRunner: channel({
9724
+ channelName: "beta.messages.toolRunner",
9725
+ kind: "sync-stream"
9726
+ })
9727
+ },
9728
+ { instrumentationName: INSTRUMENTATION_NAMES.ANTHROPIC }
9729
+ );
9644
9730
 
9645
9731
  // src/auto-instrumentations/configs/anthropic.ts
9646
9732
  var anthropicConfigs = [
@@ -9763,15 +9849,27 @@ var clientSendChannel = channel({
9763
9849
  channelName: "client.send",
9764
9850
  kind: "async"
9765
9851
  });
9766
- var bedrockRuntimeChannels = defineChannels("aws-bedrock-runtime", {
9767
- clientSend: clientSendChannel
9768
- });
9769
- var smithyCoreChannels = defineChannels("@smithy/core", {
9770
- clientSend: clientSendChannel
9771
- });
9772
- var smithyClientChannels = defineChannels("@smithy/smithy-client", {
9773
- clientSend: clientSendChannel
9774
- });
9852
+ var bedrockRuntimeChannels = defineChannels(
9853
+ "aws-bedrock-runtime",
9854
+ {
9855
+ clientSend: clientSendChannel
9856
+ },
9857
+ { instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
9858
+ );
9859
+ var smithyCoreChannels = defineChannels(
9860
+ "@smithy/core",
9861
+ {
9862
+ clientSend: clientSendChannel
9863
+ },
9864
+ { instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
9865
+ );
9866
+ var smithyClientChannels = defineChannels(
9867
+ "@smithy/smithy-client",
9868
+ {
9869
+ clientSend: clientSendChannel
9870
+ },
9871
+ { instrumentationName: INSTRUMENTATION_NAMES.BEDROCK_RUNTIME }
9872
+ );
9775
9873
 
9776
9874
  // src/auto-instrumentations/configs/bedrock-runtime.ts
9777
9875
  var bedrockRuntimeConfigs = [
@@ -9837,7 +9935,8 @@ var claudeAgentSDKChannels = defineChannels(
9837
9935
  channelName: "query",
9838
9936
  kind: "sync-stream"
9839
9937
  })
9840
- }
9938
+ },
9939
+ { instrumentationName: INSTRUMENTATION_NAMES.CLAUDE_AGENT_SDK }
9841
9940
  );
9842
9941
 
9843
9942
  // src/auto-instrumentations/configs/claude-agent-sdk.ts
@@ -9872,24 +9971,28 @@ var claudeAgentSDKConfigs = [
9872
9971
  ];
9873
9972
 
9874
9973
  // src/instrumentation/plugins/cohere-channels.ts
9875
- var cohereChannels = defineChannels("cohere-ai", {
9876
- chat: channel({
9877
- channelName: "chat",
9878
- kind: "async"
9879
- }),
9880
- chatStream: channel({
9881
- channelName: "chatStream",
9882
- kind: "async"
9883
- }),
9884
- embed: channel({
9885
- channelName: "embed",
9886
- kind: "async"
9887
- }),
9888
- rerank: channel({
9889
- channelName: "rerank",
9890
- kind: "async"
9891
- })
9892
- });
9974
+ var cohereChannels = defineChannels(
9975
+ "cohere-ai",
9976
+ {
9977
+ chat: channel({
9978
+ channelName: "chat",
9979
+ kind: "async"
9980
+ }),
9981
+ chatStream: channel({
9982
+ channelName: "chatStream",
9983
+ kind: "async"
9984
+ }),
9985
+ embed: channel({
9986
+ channelName: "embed",
9987
+ kind: "async"
9988
+ }),
9989
+ rerank: channel({
9990
+ channelName: "rerank",
9991
+ kind: "async"
9992
+ })
9993
+ },
9994
+ { instrumentationName: INSTRUMENTATION_NAMES.COHERE }
9995
+ );
9893
9996
 
9894
9997
  // src/auto-instrumentations/configs/cohere.ts
9895
9998
  var cohereConfigs = [
@@ -10156,24 +10259,28 @@ var cohereConfigs = [
10156
10259
  ];
10157
10260
 
10158
10261
  // src/instrumentation/plugins/cursor-sdk-channels.ts
10159
- var cursorSDKChannels = defineChannels("@cursor/sdk", {
10160
- create: channel({
10161
- channelName: "Agent.create",
10162
- kind: "async"
10163
- }),
10164
- resume: channel({
10165
- channelName: "Agent.resume",
10166
- kind: "async"
10167
- }),
10168
- prompt: channel({
10169
- channelName: "Agent.prompt",
10170
- kind: "async"
10171
- }),
10172
- send: channel({
10173
- channelName: "agent.send",
10174
- kind: "async"
10175
- })
10176
- });
10262
+ var cursorSDKChannels = defineChannels(
10263
+ "@cursor/sdk",
10264
+ {
10265
+ create: channel({
10266
+ channelName: "Agent.create",
10267
+ kind: "async"
10268
+ }),
10269
+ resume: channel({
10270
+ channelName: "Agent.resume",
10271
+ kind: "async"
10272
+ }),
10273
+ prompt: channel({
10274
+ channelName: "Agent.prompt",
10275
+ kind: "async"
10276
+ }),
10277
+ send: channel({
10278
+ channelName: "agent.send",
10279
+ kind: "async"
10280
+ })
10281
+ },
10282
+ { instrumentationName: INSTRUMENTATION_NAMES.CURSOR_SDK }
10283
+ );
10177
10284
 
10178
10285
  // src/auto-instrumentations/configs/cursor-sdk.ts
10179
10286
  var cursorSDKVersionRange = ">=1.0.7 <2.0.0";
@@ -10221,12 +10328,16 @@ var cursorSDKConfigs = cursorSDKEntrypoints.flatMap((filePath) => [
10221
10328
  ]);
10222
10329
 
10223
10330
  // src/instrumentation/plugins/flue-channels.ts
10224
- var flueChannels = defineChannels("@flue/runtime", {
10225
- createContext: channel({
10226
- channelName: "createFlueContext",
10227
- kind: "sync-stream"
10228
- })
10229
- });
10331
+ var flueChannels = defineChannels(
10332
+ "@flue/runtime",
10333
+ {
10334
+ createContext: channel({
10335
+ channelName: "createFlueContext",
10336
+ kind: "sync-stream"
10337
+ })
10338
+ },
10339
+ { instrumentationName: INSTRUMENTATION_NAMES.FLUE }
10340
+ );
10230
10341
 
10231
10342
  // src/auto-instrumentations/configs/flue.ts
10232
10343
  var flueVersionRange = ">=0.8.0 <1.0.0";
@@ -10246,38 +10357,46 @@ var flueConfigs = [
10246
10357
  ];
10247
10358
 
10248
10359
  // src/instrumentation/plugins/genkit-channels.ts
10249
- var genkitChannels = defineChannels("@genkit-ai/ai", {
10250
- generate: channel({
10251
- channelName: "generate",
10252
- kind: "async"
10253
- }),
10254
- generateStream: channel({
10255
- channelName: "generateStream",
10256
- kind: "sync-stream"
10257
- }),
10258
- embed: channel({
10259
- channelName: "embed",
10260
- kind: "async"
10261
- }),
10262
- embedMany: channel({
10263
- channelName: "embedMany",
10264
- kind: "async"
10265
- }),
10266
- actionRun: channel({
10267
- channelName: "action.run",
10268
- kind: "async"
10269
- }),
10270
- actionStream: channel({
10271
- channelName: "action.stream",
10272
- kind: "sync-stream"
10273
- })
10274
- });
10275
- var genkitCoreChannels = defineChannels("@genkit-ai/core", {
10276
- actionSpan: channel({
10277
- channelName: "action.span",
10278
- kind: "async"
10279
- })
10280
- });
10360
+ var genkitChannels = defineChannels(
10361
+ "@genkit-ai/ai",
10362
+ {
10363
+ generate: channel({
10364
+ channelName: "generate",
10365
+ kind: "async"
10366
+ }),
10367
+ generateStream: channel({
10368
+ channelName: "generateStream",
10369
+ kind: "sync-stream"
10370
+ }),
10371
+ embed: channel({
10372
+ channelName: "embed",
10373
+ kind: "async"
10374
+ }),
10375
+ embedMany: channel({
10376
+ channelName: "embedMany",
10377
+ kind: "async"
10378
+ }),
10379
+ actionRun: channel({
10380
+ channelName: "action.run",
10381
+ kind: "async"
10382
+ }),
10383
+ actionStream: channel({
10384
+ channelName: "action.stream",
10385
+ kind: "sync-stream"
10386
+ })
10387
+ },
10388
+ { instrumentationName: INSTRUMENTATION_NAMES.GENKIT }
10389
+ );
10390
+ var genkitCoreChannels = defineChannels(
10391
+ "@genkit-ai/core",
10392
+ {
10393
+ actionSpan: channel({
10394
+ channelName: "action.span",
10395
+ kind: "async"
10396
+ })
10397
+ },
10398
+ { instrumentationName: INSTRUMENTATION_NAMES.GENKIT }
10399
+ );
10281
10400
 
10282
10401
  // src/auto-instrumentations/configs/genkit.ts
10283
10402
  var genkitVersionRange = ">=1.0.0 <2.0.0";
@@ -10439,20 +10558,24 @@ var genkitConfigs = [
10439
10558
  ];
10440
10559
 
10441
10560
  // src/instrumentation/plugins/github-copilot-channels.ts
10442
- var gitHubCopilotChannels = defineChannels("@github/copilot-sdk", {
10443
- createSession: channel({
10444
- channelName: "client.createSession",
10445
- kind: "async"
10446
- }),
10447
- resumeSession: channel({
10448
- channelName: "client.resumeSession",
10449
- kind: "async"
10450
- }),
10451
- sendAndWait: channel({
10452
- channelName: "session.sendAndWait",
10453
- kind: "async"
10454
- })
10455
- });
10561
+ var gitHubCopilotChannels = defineChannels(
10562
+ "@github/copilot-sdk",
10563
+ {
10564
+ createSession: channel({
10565
+ channelName: "client.createSession",
10566
+ kind: "async"
10567
+ }),
10568
+ resumeSession: channel({
10569
+ channelName: "client.resumeSession",
10570
+ kind: "async"
10571
+ }),
10572
+ sendAndWait: channel({
10573
+ channelName: "session.sendAndWait",
10574
+ kind: "async"
10575
+ })
10576
+ },
10577
+ { instrumentationName: INSTRUMENTATION_NAMES.GITHUB_COPILOT }
10578
+ );
10456
10579
 
10457
10580
  // src/auto-instrumentations/configs/github-copilot.ts
10458
10581
  var gitHubCopilotConfigs = [
@@ -10543,20 +10666,24 @@ var gitHubCopilotConfigs = [
10543
10666
  ];
10544
10667
 
10545
10668
  // src/instrumentation/plugins/google-adk-channels.ts
10546
- var googleADKChannels = defineChannels("@google/adk", {
10547
- runnerRunAsync: channel({
10548
- channelName: "runner.runAsync",
10549
- kind: "sync-stream"
10550
- }),
10551
- agentRunAsync: channel({
10552
- channelName: "agent.runAsync",
10553
- kind: "sync-stream"
10554
- }),
10555
- toolRunAsync: channel({
10556
- channelName: "tool.runAsync",
10557
- kind: "async"
10558
- })
10559
- });
10669
+ var googleADKChannels = defineChannels(
10670
+ "@google/adk",
10671
+ {
10672
+ runnerRunAsync: channel({
10673
+ channelName: "runner.runAsync",
10674
+ kind: "sync-stream"
10675
+ }),
10676
+ agentRunAsync: channel({
10677
+ channelName: "agent.runAsync",
10678
+ kind: "sync-stream"
10679
+ }),
10680
+ toolRunAsync: channel({
10681
+ channelName: "tool.runAsync",
10682
+ kind: "async"
10683
+ })
10684
+ },
10685
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_ADK }
10686
+ );
10560
10687
 
10561
10688
  // src/auto-instrumentations/configs/google-adk.ts
10562
10689
  var googleADKVersionRange = ">=0.1.0";
@@ -10787,24 +10914,28 @@ var googleADKConfigs = [
10787
10914
  ];
10788
10915
 
10789
10916
  // src/instrumentation/plugins/google-genai-channels.ts
10790
- var googleGenAIChannels = defineChannels("@google/genai", {
10791
- generateContent: channel({
10792
- channelName: "models.generateContent",
10793
- kind: "async"
10794
- }),
10795
- generateContentStream: channel({
10796
- channelName: "models.generateContentStream",
10797
- kind: "async"
10798
- }),
10799
- embedContent: channel({
10800
- channelName: "models.embedContent",
10801
- kind: "async"
10802
- }),
10803
- interactionsCreate: channel({
10804
- channelName: "interactions.create",
10805
- kind: "async"
10806
- })
10807
- });
10917
+ var googleGenAIChannels = defineChannels(
10918
+ "@google/genai",
10919
+ {
10920
+ generateContent: channel({
10921
+ channelName: "models.generateContent",
10922
+ kind: "async"
10923
+ }),
10924
+ generateContentStream: channel({
10925
+ channelName: "models.generateContentStream",
10926
+ kind: "async"
10927
+ }),
10928
+ embedContent: channel({
10929
+ channelName: "models.embedContent",
10930
+ kind: "async"
10931
+ }),
10932
+ interactionsCreate: channel({
10933
+ channelName: "interactions.create",
10934
+ kind: "async"
10935
+ })
10936
+ },
10937
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENAI }
10938
+ );
10808
10939
 
10809
10940
  // src/auto-instrumentations/configs/google-genai.ts
10810
10941
  var googleGenAIConfigs = [
@@ -10884,18 +11015,20 @@ var googleGenAIConfigs = [
10884
11015
  ];
10885
11016
 
10886
11017
  // src/instrumentation/plugins/groq-channels.ts
10887
- var groqChannels = defineChannels("groq-sdk", {
10888
- chatCompletionsCreate: channel({
10889
- channelName: "chat.completions.create",
10890
- kind: "async"
10891
- }),
10892
- embeddingsCreate: channel(
10893
- {
11018
+ var groqChannels = defineChannels(
11019
+ "groq-sdk",
11020
+ {
11021
+ chatCompletionsCreate: channel({
11022
+ channelName: "chat.completions.create",
11023
+ kind: "async"
11024
+ }),
11025
+ embeddingsCreate: channel({
10894
11026
  channelName: "embeddings.create",
10895
11027
  kind: "async"
10896
- }
10897
- )
10898
- });
11028
+ })
11029
+ },
11030
+ { instrumentationName: INSTRUMENTATION_NAMES.GROQ }
11031
+ );
10899
11032
 
10900
11033
  // src/auto-instrumentations/configs/groq.ts
10901
11034
  var groqConfigs = [
@@ -10928,28 +11061,32 @@ var groqConfigs = [
10928
11061
  ];
10929
11062
 
10930
11063
  // src/instrumentation/plugins/huggingface-channels.ts
10931
- var huggingFaceChannels = defineChannels("@huggingface/inference", {
10932
- chatCompletion: channel({
10933
- channelName: "chatCompletion",
10934
- kind: "async"
10935
- }),
10936
- chatCompletionStream: channel({
10937
- channelName: "chatCompletionStream",
10938
- kind: "sync-stream"
10939
- }),
10940
- textGeneration: channel({
10941
- channelName: "textGeneration",
10942
- kind: "async"
10943
- }),
10944
- textGenerationStream: channel({
10945
- channelName: "textGenerationStream",
10946
- kind: "sync-stream"
10947
- }),
10948
- featureExtraction: channel({
10949
- channelName: "featureExtraction",
10950
- kind: "async"
10951
- })
10952
- });
11064
+ var huggingFaceChannels = defineChannels(
11065
+ "@huggingface/inference",
11066
+ {
11067
+ chatCompletion: channel({
11068
+ channelName: "chatCompletion",
11069
+ kind: "async"
11070
+ }),
11071
+ chatCompletionStream: channel({
11072
+ channelName: "chatCompletionStream",
11073
+ kind: "sync-stream"
11074
+ }),
11075
+ textGeneration: channel({
11076
+ channelName: "textGeneration",
11077
+ kind: "async"
11078
+ }),
11079
+ textGenerationStream: channel({
11080
+ channelName: "textGenerationStream",
11081
+ kind: "sync-stream"
11082
+ }),
11083
+ featureExtraction: channel({
11084
+ channelName: "featureExtraction",
11085
+ kind: "async"
11086
+ })
11087
+ },
11088
+ { instrumentationName: INSTRUMENTATION_NAMES.HUGGINGFACE }
11089
+ );
10953
11090
 
10954
11091
  // src/auto-instrumentations/configs/huggingface.ts
10955
11092
  var huggingFaceConfigs = [
@@ -11196,16 +11333,20 @@ var huggingFaceConfigs = [
11196
11333
  ];
11197
11334
 
11198
11335
  // src/instrumentation/plugins/langchain-channels.ts
11199
- var langChainChannels = defineChannels("@langchain/core", {
11200
- configure: channel({
11201
- channelName: "CallbackManager.configure",
11202
- kind: "sync-stream"
11203
- }),
11204
- configureSync: channel({
11205
- channelName: "CallbackManager._configureSync",
11206
- kind: "sync-stream"
11207
- })
11208
- });
11336
+ var langChainChannels = defineChannels(
11337
+ "@langchain/core",
11338
+ {
11339
+ configure: channel({
11340
+ channelName: "CallbackManager.configure",
11341
+ kind: "sync-stream"
11342
+ }),
11343
+ configureSync: channel({
11344
+ channelName: "CallbackManager._configureSync",
11345
+ kind: "sync-stream"
11346
+ })
11347
+ },
11348
+ { instrumentationName: INSTRUMENTATION_NAMES.LANGCHAIN }
11349
+ );
11209
11350
 
11210
11351
  // src/auto-instrumentations/configs/langchain.ts
11211
11352
  var langChainCoreVersionRange = ">=0.3.42";
@@ -11240,20 +11381,24 @@ var langchainConfigs = [
11240
11381
  ];
11241
11382
 
11242
11383
  // src/instrumentation/plugins/langsmith-channels.ts
11243
- var langSmithChannels = defineChannels("langsmith", {
11244
- createRun: channel({
11245
- channelName: "Client.createRun",
11246
- kind: "async"
11247
- }),
11248
- updateRun: channel({
11249
- channelName: "Client.updateRun",
11250
- kind: "async"
11251
- }),
11252
- batchIngestRuns: channel({
11253
- channelName: "Client.batchIngestRuns",
11254
- kind: "async"
11255
- })
11256
- });
11384
+ var langSmithChannels = defineChannels(
11385
+ "langsmith",
11386
+ {
11387
+ createRun: channel({
11388
+ channelName: "Client.createRun",
11389
+ kind: "async"
11390
+ }),
11391
+ updateRun: channel({
11392
+ channelName: "Client.updateRun",
11393
+ kind: "async"
11394
+ }),
11395
+ batchIngestRuns: channel({
11396
+ channelName: "Client.batchIngestRuns",
11397
+ kind: "async"
11398
+ })
11399
+ },
11400
+ { instrumentationName: INSTRUMENTATION_NAMES.LANGSMITH }
11401
+ );
11257
11402
 
11258
11403
  // src/auto-instrumentations/configs/langsmith.ts
11259
11404
  var versionRange = ">=0.3.30 <1.0.0";
@@ -11290,52 +11435,56 @@ var langSmithConfigs = [
11290
11435
  ];
11291
11436
 
11292
11437
  // src/instrumentation/plugins/mistral-channels.ts
11293
- var mistralChannels = defineChannels("@mistralai/mistralai", {
11294
- chatComplete: channel({
11295
- channelName: "chat.complete",
11296
- kind: "async"
11297
- }),
11298
- chatStream: channel({
11299
- channelName: "chat.stream",
11300
- kind: "async"
11301
- }),
11302
- embeddingsCreate: channel({
11303
- channelName: "embeddings.create",
11304
- kind: "async"
11305
- }),
11306
- classifiersModerate: channel({
11307
- channelName: "classifiers.moderate",
11308
- kind: "async"
11309
- }),
11310
- classifiersModerateChat: channel({
11311
- channelName: "classifiers.moderateChat",
11312
- kind: "async"
11313
- }),
11314
- classifiersClassify: channel({
11315
- channelName: "classifiers.classify",
11316
- kind: "async"
11317
- }),
11318
- classifiersClassifyChat: channel({
11319
- channelName: "classifiers.classifyChat",
11320
- kind: "async"
11321
- }),
11322
- fimComplete: channel({
11323
- channelName: "fim.complete",
11324
- kind: "async"
11325
- }),
11326
- fimStream: channel({
11327
- channelName: "fim.stream",
11328
- kind: "async"
11329
- }),
11330
- agentsComplete: channel({
11331
- channelName: "agents.complete",
11332
- kind: "async"
11333
- }),
11334
- agentsStream: channel({
11335
- channelName: "agents.stream",
11336
- kind: "async"
11337
- })
11338
- });
11438
+ var mistralChannels = defineChannels(
11439
+ "@mistralai/mistralai",
11440
+ {
11441
+ chatComplete: channel({
11442
+ channelName: "chat.complete",
11443
+ kind: "async"
11444
+ }),
11445
+ chatStream: channel({
11446
+ channelName: "chat.stream",
11447
+ kind: "async"
11448
+ }),
11449
+ embeddingsCreate: channel({
11450
+ channelName: "embeddings.create",
11451
+ kind: "async"
11452
+ }),
11453
+ classifiersModerate: channel({
11454
+ channelName: "classifiers.moderate",
11455
+ kind: "async"
11456
+ }),
11457
+ classifiersModerateChat: channel({
11458
+ channelName: "classifiers.moderateChat",
11459
+ kind: "async"
11460
+ }),
11461
+ classifiersClassify: channel({
11462
+ channelName: "classifiers.classify",
11463
+ kind: "async"
11464
+ }),
11465
+ classifiersClassifyChat: channel({
11466
+ channelName: "classifiers.classifyChat",
11467
+ kind: "async"
11468
+ }),
11469
+ fimComplete: channel({
11470
+ channelName: "fim.complete",
11471
+ kind: "async"
11472
+ }),
11473
+ fimStream: channel({
11474
+ channelName: "fim.stream",
11475
+ kind: "async"
11476
+ }),
11477
+ agentsComplete: channel({
11478
+ channelName: "agents.complete",
11479
+ kind: "async"
11480
+ }),
11481
+ agentsStream: channel({
11482
+ channelName: "agents.stream",
11483
+ kind: "async"
11484
+ })
11485
+ },
11486
+ { instrumentationName: INSTRUMENTATION_NAMES.MISTRAL }
11487
+ );
11339
11488
 
11340
11489
  // src/auto-instrumentations/configs/mistral.ts
11341
11490
  var mistralConfigs = [
@@ -11628,24 +11777,28 @@ var mistralConfigs = [
11628
11777
  ];
11629
11778
 
11630
11779
  // src/instrumentation/plugins/openai-agents-channels.ts
11631
- var openAIAgentsCoreChannels = defineChannels("@openai/agents-core", {
11632
- onTraceStart: channel({
11633
- channelName: "tracing.processor.onTraceStart",
11634
- kind: "async"
11635
- }),
11636
- onTraceEnd: channel({
11637
- channelName: "tracing.processor.onTraceEnd",
11638
- kind: "async"
11639
- }),
11640
- onSpanStart: channel({
11641
- channelName: "tracing.processor.onSpanStart",
11642
- kind: "async"
11643
- }),
11644
- onSpanEnd: channel({
11645
- channelName: "tracing.processor.onSpanEnd",
11646
- kind: "async"
11647
- })
11648
- });
11780
+ var openAIAgentsCoreChannels = defineChannels(
11781
+ "@openai/agents-core",
11782
+ {
11783
+ onTraceStart: channel({
11784
+ channelName: "tracing.processor.onTraceStart",
11785
+ kind: "async"
11786
+ }),
11787
+ onTraceEnd: channel({
11788
+ channelName: "tracing.processor.onTraceEnd",
11789
+ kind: "async"
11790
+ }),
11791
+ onSpanStart: channel({
11792
+ channelName: "tracing.processor.onSpanStart",
11793
+ kind: "async"
11794
+ }),
11795
+ onSpanEnd: channel({
11796
+ channelName: "tracing.processor.onSpanEnd",
11797
+ kind: "async"
11798
+ })
11799
+ },
11800
+ { instrumentationName: INSTRUMENTATION_NAMES.OPENAI_AGENTS }
11801
+ );
11649
11802
 
11650
11803
  // src/auto-instrumentations/configs/openai-agents.ts
11651
11804
  var lifecycleMethods = [
@@ -11673,44 +11826,48 @@ var openAIAgentsCoreConfigs = lifecycleMethods.flatMap(
11673
11826
  );
11674
11827
 
11675
11828
  // src/instrumentation/plugins/openai-channels.ts
11676
- var openAIChannels = defineChannels("openai", {
11677
- chatCompletionsCreate: channel({
11678
- channelName: "chat.completions.create",
11679
- kind: "async"
11680
- }),
11681
- embeddingsCreate: channel({
11682
- channelName: "embeddings.create",
11683
- kind: "async"
11684
- }),
11685
- betaChatCompletionsParse: channel({
11686
- channelName: "beta.chat.completions.parse",
11687
- kind: "async"
11688
- }),
11689
- betaChatCompletionsStream: channel({
11690
- channelName: "beta.chat.completions.stream",
11691
- kind: "sync-stream"
11692
- }),
11693
- moderationsCreate: channel({
11694
- channelName: "moderations.create",
11695
- kind: "async"
11696
- }),
11697
- responsesCreate: channel({
11698
- channelName: "responses.create",
11699
- kind: "async"
11700
- }),
11701
- responsesStream: channel({
11702
- channelName: "responses.stream",
11703
- kind: "sync-stream"
11704
- }),
11705
- responsesParse: channel({
11706
- channelName: "responses.parse",
11707
- kind: "async"
11708
- }),
11709
- responsesCompact: channel({
11710
- channelName: "responses.compact",
11711
- kind: "async"
11712
- })
11713
- });
11829
+ var openAIChannels = defineChannels(
11830
+ "openai",
11831
+ {
11832
+ chatCompletionsCreate: channel({
11833
+ channelName: "chat.completions.create",
11834
+ kind: "async"
11835
+ }),
11836
+ embeddingsCreate: channel({
11837
+ channelName: "embeddings.create",
11838
+ kind: "async"
11839
+ }),
11840
+ betaChatCompletionsParse: channel({
11841
+ channelName: "beta.chat.completions.parse",
11842
+ kind: "async"
11843
+ }),
11844
+ betaChatCompletionsStream: channel({
11845
+ channelName: "beta.chat.completions.stream",
11846
+ kind: "sync-stream"
11847
+ }),
11848
+ moderationsCreate: channel({
11849
+ channelName: "moderations.create",
11850
+ kind: "async"
11851
+ }),
11852
+ responsesCreate: channel({
11853
+ channelName: "responses.create",
11854
+ kind: "async"
11855
+ }),
11856
+ responsesStream: channel({
11857
+ channelName: "responses.stream",
11858
+ kind: "sync-stream"
11859
+ }),
11860
+ responsesParse: channel({
11861
+ channelName: "responses.parse",
11862
+ kind: "async"
11863
+ }),
11864
+ responsesCompact: channel({
11865
+ channelName: "responses.compact",
11866
+ kind: "async"
11867
+ })
11868
+ },
11869
+ { instrumentationName: INSTRUMENTATION_NAMES.OPENAI }
11870
+ );
11714
11871
 
11715
11872
  // src/auto-instrumentations/configs/openai.ts
11716
11873
  var openaiConfigs = [
@@ -11892,16 +12049,20 @@ var openaiConfigs = [
11892
12049
  ];
11893
12050
 
11894
12051
  // src/instrumentation/plugins/openai-codex-channels.ts
11895
- var openAICodexChannels = defineChannels("@openai/codex-sdk", {
11896
- run: channel({
11897
- channelName: "Thread.run",
11898
- kind: "async"
11899
- }),
11900
- runStreamed: channel({
11901
- channelName: "Thread.runStreamed",
11902
- kind: "async"
11903
- })
11904
- });
12052
+ var openAICodexChannels = defineChannels(
12053
+ "@openai/codex-sdk",
12054
+ {
12055
+ run: channel({
12056
+ channelName: "Thread.run",
12057
+ kind: "async"
12058
+ }),
12059
+ runStreamed: channel({
12060
+ channelName: "Thread.runStreamed",
12061
+ kind: "async"
12062
+ })
12063
+ },
12064
+ { instrumentationName: INSTRUMENTATION_NAMES.OPENAI_CODEX }
12065
+ );
11905
12066
 
11906
12067
  // src/auto-instrumentations/configs/openai-codex.ts
11907
12068
  var openAICodexVersionRange = ">=0.128.0 <1.0.0";
@@ -11935,38 +12096,40 @@ var openAICodexConfigs = [
11935
12096
  ];
11936
12097
 
11937
12098
  // src/instrumentation/plugins/openrouter-channels.ts
11938
- var openRouterChannels = defineChannels("@openrouter/sdk", {
11939
- chatSend: channel({
11940
- channelName: "chat.send",
11941
- kind: "async"
11942
- }),
11943
- embeddingsGenerate: channel({
11944
- channelName: "embeddings.generate",
11945
- kind: "async"
11946
- }),
11947
- rerankRerank: channel(
11948
- {
12099
+ var openRouterChannels = defineChannels(
12100
+ "@openrouter/sdk",
12101
+ {
12102
+ chatSend: channel({
12103
+ channelName: "chat.send",
12104
+ kind: "async"
12105
+ }),
12106
+ embeddingsGenerate: channel({
12107
+ channelName: "embeddings.generate",
12108
+ kind: "async"
12109
+ }),
12110
+ rerankRerank: channel({
11949
12111
  channelName: "rerank.rerank",
11950
12112
  kind: "async"
11951
- }
11952
- ),
11953
- betaResponsesSend: channel({
11954
- channelName: "beta.responses.send",
11955
- kind: "async"
11956
- }),
11957
- callModel: channel({
11958
- channelName: "callModel",
11959
- kind: "sync-stream"
11960
- }),
11961
- callModelTurn: channel({
11962
- channelName: "callModel.turn",
11963
- kind: "async"
11964
- }),
11965
- toolExecute: channel({
11966
- channelName: "tool.execute",
11967
- kind: "async"
11968
- })
11969
- });
12113
+ }),
12114
+ betaResponsesSend: channel({
12115
+ channelName: "beta.responses.send",
12116
+ kind: "async"
12117
+ }),
12118
+ callModel: channel({
12119
+ channelName: "callModel",
12120
+ kind: "sync-stream"
12121
+ }),
12122
+ callModelTurn: channel({
12123
+ channelName: "callModel.turn",
12124
+ kind: "async"
12125
+ }),
12126
+ toolExecute: channel({
12127
+ channelName: "tool.execute",
12128
+ kind: "async"
12129
+ })
12130
+ },
12131
+ { instrumentationName: INSTRUMENTATION_NAMES.OPENROUTER }
12132
+ );
11970
12133
 
11971
12134
  // src/auto-instrumentations/configs/openrouter.ts
11972
12135
  var openRouterConfigs = [
@@ -11974,7 +12137,7 @@ var openRouterConfigs = [
11974
12137
  channelName: openRouterChannels.chatSend.channelName,
11975
12138
  module: {
11976
12139
  name: "@openrouter/sdk",
11977
- versionRange: ">=0.9.11 <1.0.0",
12140
+ versionRange: ">=0.9.11 <2.0.0",
11978
12141
  filePath: "esm/sdk/chat.js"
11979
12142
  },
11980
12143
  functionQuery: {
@@ -11987,7 +12150,7 @@ var openRouterConfigs = [
11987
12150
  channelName: openRouterChannels.embeddingsGenerate.channelName,
11988
12151
  module: {
11989
12152
  name: "@openrouter/sdk",
11990
- versionRange: ">=0.9.11 <1.0.0",
12153
+ versionRange: ">=0.9.11 <2.0.0",
11991
12154
  filePath: "esm/sdk/embeddings.js"
11992
12155
  },
11993
12156
  functionQuery: {
@@ -12000,7 +12163,7 @@ var openRouterConfigs = [
12000
12163
  channelName: openRouterChannels.rerankRerank.channelName,
12001
12164
  module: {
12002
12165
  name: "@openrouter/sdk",
12003
- versionRange: ">=0.12.0 <1.0.0",
12166
+ versionRange: ">=0.12.0 <2.0.0",
12004
12167
  filePath: "esm/sdk/rerank.js"
12005
12168
  },
12006
12169
  functionQuery: {
@@ -12013,7 +12176,7 @@ var openRouterConfigs = [
12013
12176
  channelName: openRouterChannels.betaResponsesSend.channelName,
12014
12177
  module: {
12015
12178
  name: "@openrouter/sdk",
12016
- versionRange: ">=0.9.11 <1.0.0",
12179
+ versionRange: ">=0.9.11 <2.0.0",
12017
12180
  filePath: "esm/sdk/responses.js"
12018
12181
  },
12019
12182
  functionQuery: {
@@ -12026,7 +12189,7 @@ var openRouterConfigs = [
12026
12189
  channelName: openRouterChannels.callModel.channelName,
12027
12190
  module: {
12028
12191
  name: "@openrouter/sdk",
12029
- versionRange: ">=0.9.11 <1.0.0",
12192
+ versionRange: ">=0.9.11 <2.0.0",
12030
12193
  filePath: "esm/sdk/sdk.js"
12031
12194
  },
12032
12195
  functionQuery: {
@@ -12038,20 +12201,24 @@ var openRouterConfigs = [
12038
12201
  ];
12039
12202
 
12040
12203
  // src/instrumentation/plugins/openrouter-agent-channels.ts
12041
- var openRouterAgentChannels = defineChannels("@openrouter/agent", {
12042
- callModel: channel({
12043
- channelName: "callModel",
12044
- kind: "sync-stream"
12045
- }),
12046
- callModelTurn: channel({
12047
- channelName: "callModel.turn",
12048
- kind: "async"
12049
- }),
12050
- toolExecute: channel({
12051
- channelName: "tool.execute",
12052
- kind: "async"
12053
- })
12054
- });
12204
+ var openRouterAgentChannels = defineChannels(
12205
+ "@openrouter/agent",
12206
+ {
12207
+ callModel: channel({
12208
+ channelName: "callModel",
12209
+ kind: "sync-stream"
12210
+ }),
12211
+ callModelTurn: channel({
12212
+ channelName: "callModel.turn",
12213
+ kind: "async"
12214
+ }),
12215
+ toolExecute: channel({
12216
+ channelName: "tool.execute",
12217
+ kind: "async"
12218
+ })
12219
+ },
12220
+ { instrumentationName: INSTRUMENTATION_NAMES.OPENROUTER_AGENT }
12221
+ );
12055
12222
 
12056
12223
  // src/auto-instrumentations/configs/openrouter-agent.ts
12057
12224
  var openRouterAgentConfigs = [
@@ -12077,11 +12244,12 @@ var piCodingAgentChannels = defineChannels(
12077
12244
  channelName: "AgentSession.prompt",
12078
12245
  kind: "async"
12079
12246
  })
12080
- }
12247
+ },
12248
+ { instrumentationName: INSTRUMENTATION_NAMES.PI_CODING_AGENT }
12081
12249
  );
12082
12250
 
12083
12251
  // src/auto-instrumentations/configs/pi-coding-agent.ts
12084
- var piCodingAgentVersionRange = ">=0.79.0 <0.80.0";
12252
+ var piCodingAgentVersionRange = ">=0.79.0 <0.82.0";
12085
12253
  var piCodingAgentConfigs = [
12086
12254
  {
12087
12255
  channelName: piCodingAgentChannels.prompt.channelName,
@@ -12099,20 +12267,24 @@ var piCodingAgentConfigs = [
12099
12267
  ];
12100
12268
 
12101
12269
  // src/instrumentation/plugins/strands-agent-sdk-channels.ts
12102
- var strandsAgentSDKChannels = defineChannels("@strands-agents/sdk", {
12103
- agentStream: channel({
12104
- channelName: "Agent.stream",
12105
- kind: "sync-stream"
12106
- }),
12107
- graphStream: channel({
12108
- channelName: "Graph.stream",
12109
- kind: "sync-stream"
12110
- }),
12111
- swarmStream: channel({
12112
- channelName: "Swarm.stream",
12113
- kind: "sync-stream"
12114
- })
12115
- });
12270
+ var strandsAgentSDKChannels = defineChannels(
12271
+ "@strands-agents/sdk",
12272
+ {
12273
+ agentStream: channel({
12274
+ channelName: "Agent.stream",
12275
+ kind: "sync-stream"
12276
+ }),
12277
+ graphStream: channel({
12278
+ channelName: "Graph.stream",
12279
+ kind: "sync-stream"
12280
+ }),
12281
+ swarmStream: channel({
12282
+ channelName: "Swarm.stream",
12283
+ kind: "sync-stream"
12284
+ })
12285
+ },
12286
+ { instrumentationName: INSTRUMENTATION_NAMES.STRANDS_AGENT_SDK }
12287
+ );
12116
12288
 
12117
12289
  // src/auto-instrumentations/configs/strands-agent-sdk.ts
12118
12290
  var strandsAgentSDKVersionRange = ">=1.0.0 <2.0.0";