braintrust 3.31.0 → 3.33.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 (62) hide show
  1. package/README.md +0 -43
  2. package/dev/dist/index.d.mts +767 -0
  3. package/dev/dist/index.d.ts +767 -0
  4. package/dev/dist/index.js +3115 -908
  5. package/dev/dist/index.mjs +2466 -259
  6. package/dist/apply-auto-instrumentation.js +325 -221
  7. package/dist/apply-auto-instrumentation.mjs +110 -6
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +182 -7
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +182 -7
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +182 -7
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +182 -7
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +182 -7
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +182 -7
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-U64OYU4Q.mjs → chunk-T2DMPWFI.mjs} +113 -6
  20. package/dist/auto-instrumentations/{chunk-LW4HDHXT.mjs → chunk-UHJ2DNYJ.mjs} +74 -2
  21. package/dist/auto-instrumentations/{chunk-OXINGIEZ.mjs → chunk-W5QNG3PV.mjs} +1 -1
  22. package/dist/auto-instrumentations/hook.mjs +209 -9
  23. package/dist/auto-instrumentations/index.cjs +115 -6
  24. package/dist/auto-instrumentations/index.d.mts +5 -1
  25. package/dist/auto-instrumentations/index.d.ts +5 -1
  26. package/dist/auto-instrumentations/index.mjs +5 -1
  27. package/dist/browser.d.mts +2324 -342
  28. package/dist/browser.d.ts +2324 -342
  29. package/dist/browser.js +3573 -626
  30. package/dist/browser.mjs +3573 -626
  31. package/dist/chunk-7P6ASYW6.mjs +9 -0
  32. package/dist/{chunk-V32LW47Z.js → chunk-AXJTOUOC.js} +3022 -1131
  33. package/dist/{chunk-4AQGZS6X.js → chunk-G3VHOHRC.js} +85 -11
  34. package/dist/chunk-MLKGABMK.js +9 -0
  35. package/dist/{chunk-AJT4FR25.mjs → chunk-MZLBAFVJ.mjs} +2051 -160
  36. package/dist/{chunk-CE3BLB2L.mjs → chunk-TZVZN2JJ.mjs} +84 -10
  37. package/dist/cli.js +2614 -297
  38. package/dist/custom-views.d.mts +112 -0
  39. package/dist/custom-views.d.ts +112 -0
  40. package/dist/custom-views.js +13 -0
  41. package/dist/custom-views.mjs +13 -0
  42. package/dist/edge-light.d.mts +1 -1
  43. package/dist/edge-light.d.ts +1 -1
  44. package/dist/edge-light.js +3573 -626
  45. package/dist/edge-light.mjs +3573 -626
  46. package/dist/index.d.mts +2324 -342
  47. package/dist/index.d.ts +2324 -342
  48. package/dist/index.js +1959 -969
  49. package/dist/index.mjs +1450 -460
  50. package/dist/instrumentation/index.d.mts +439 -245
  51. package/dist/instrumentation/index.d.ts +439 -245
  52. package/dist/instrumentation/index.js +2550 -258
  53. package/dist/instrumentation/index.mjs +2550 -258
  54. package/dist/vitest-evals-reporter.js +17 -16
  55. package/dist/vitest-evals-reporter.mjs +3 -2
  56. package/dist/workerd.d.mts +1 -1
  57. package/dist/workerd.d.ts +1 -1
  58. package/dist/workerd.js +3573 -626
  59. package/dist/workerd.mjs +3573 -626
  60. package/package.json +10 -2
  61. package/util/dist/index.d.mts +326 -0
  62. package/util/dist/index.d.ts +326 -0
@@ -13,18 +13,21 @@ import {
13
13
  cohereChannels,
14
14
  cursorSDKChannels,
15
15
  debugLogger,
16
+ elevenLabsChannels,
16
17
  flueChannels,
17
18
  genkitChannels,
18
19
  genkitCoreChannels,
19
20
  gitHubCopilotChannels,
20
21
  googleADKChannels,
21
22
  googleGenAIChannels,
23
+ googleGenerativeAIChannels,
22
24
  groqChannels,
23
25
  harnessAgentChannels,
24
26
  huggingFaceChannels,
25
27
  huggingFaceTransformersChannels,
26
28
  isInstrumentationIntegrationDisabled,
27
29
  langChainChannels,
30
+ langGraphSDKChannels,
28
31
  langSmithChannels,
29
32
  mistralChannels,
30
33
  ollamaChannels,
@@ -40,7 +43,8 @@ import {
40
43
  smithyCoreChannels,
41
44
  strandsAgentSDKChannels,
42
45
  voyageAIChannels
43
- } from "./chunk-CE3BLB2L.mjs";
46
+ } from "./chunk-TZVZN2JJ.mjs";
47
+ import "./chunk-7P6ASYW6.mjs";
44
48
 
45
49
  // src/node/apply-auto-instrumentation.ts
46
50
  import { register } from "node:module";
@@ -49,8 +53,8 @@ import { pathToFileURL } from "node:url";
49
53
  // src/auto-instrumentations/configs/ai-sdk.ts
50
54
  var aiSDKConfigs = [
51
55
  // HarnessAgent turn methods are published only from the package's ESM
52
- // `./agent` entrypoint. The compiled class expression is anonymous, so match
53
- // the first async method with each public name instead of a class name.
56
+ // `./agent` entrypoint. Target the class binding so similarly named getters
57
+ // on stream result classes are not mistaken for agent turn methods.
54
58
  ...[
55
59
  ["createSession", harnessAgentChannels.createSession.channelName],
56
60
  ["generate", harnessAgentChannels.generate.channelName],
@@ -65,6 +69,7 @@ var aiSDKConfigs = [
65
69
  filePath: "dist/agent/index.js"
66
70
  },
67
71
  functionQuery: {
72
+ className: "HarnessAgent",
68
73
  methodName,
69
74
  kind: "Async",
70
75
  index: 0
@@ -470,9 +475,9 @@ var aiSDKConfigs = [
470
475
  // src/auto-instrumentations/configs/anthropic.ts
471
476
  var anthropicConfigs = [
472
477
  // Each logical target is listed for both published module formats:
473
- // `.mjs` covers ESM imports, while `.js` covers CJS requires. The Bedrock
474
- // SDK delegates CJS `messages.create` calls through these Anthropic SDK
475
- // `.js` resource files.
478
+ // `.mjs` covers ESM imports, while `.js` covers CJS requires. Both
479
+ // @anthropic-ai/bedrock-sdk and @anthropic-ai/vertex-sdk instantiate these
480
+ // shared Anthropic resources, so they use the same targets and channels.
476
481
  // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
477
482
  {
478
483
  channelName: anthropicChannels.messagesCreate.channelName,
@@ -1562,6 +1567,26 @@ var googleADKConfigs = [
1562
1567
  }
1563
1568
  ];
1564
1569
 
1570
+ // src/auto-instrumentations/configs/google-generative-ai.ts
1571
+ var googleGenerativeAIConfigs = [
1572
+ "dist/index.js",
1573
+ "dist/index.mjs"
1574
+ ].flatMap(
1575
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel]) => ({
1576
+ channelName: channel.channelName,
1577
+ module: {
1578
+ name: "@google/generative-ai",
1579
+ versionRange: ">=0.24.0 <0.25.0",
1580
+ filePath
1581
+ },
1582
+ functionQuery: {
1583
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
1584
+ methodName,
1585
+ kind: "Async"
1586
+ }
1587
+ }))
1588
+ );
1589
+
1565
1590
  // src/auto-instrumentations/configs/google-genai.ts
1566
1591
  var googleGenAIConfigs = [
1567
1592
  // Models.generateContentInternal - The actual class method (Node.js entry point)
@@ -1623,6 +1648,21 @@ var googleGenAIConfigs = [
1623
1648
  kind: "Async"
1624
1649
  }
1625
1650
  },
1651
+ // The SDK's embedding response converter drops usageMetadata. Observe the
1652
+ // parsed HTTP response before conversion; the plugin scopes this to embeddings.
1653
+ {
1654
+ channelName: googleGenAIChannels.httpResponseJson.channelName,
1655
+ module: {
1656
+ name: "@google/genai",
1657
+ versionRange: ">=1.0.0",
1658
+ filePath: "dist/node/index.mjs"
1659
+ },
1660
+ functionQuery: {
1661
+ className: "HttpResponse",
1662
+ methodName: "json",
1663
+ kind: "Async"
1664
+ }
1665
+ },
1626
1666
  // BaseInteractions.create - Interactions API entry point
1627
1667
  {
1628
1668
  channelName: googleGenAIChannels.interactionsCreate.channelName,
@@ -2330,6 +2370,26 @@ var mistralConfigs = [
2330
2370
  }
2331
2371
  ];
2332
2372
 
2373
+ // src/auto-instrumentations/configs/langgraph-sdk.ts
2374
+ var langGraphSDKConfigs = [
2375
+ "js",
2376
+ "cjs"
2377
+ ].flatMap(
2378
+ (extension) => ["wait", "stream"].map((methodName) => ({
2379
+ channelName: langGraphSDKChannels[methodName].channelName,
2380
+ module: {
2381
+ name: "@langchain/langgraph-sdk",
2382
+ versionRange: ">=1.9.25 <2.0.0",
2383
+ filePath: `dist/client/runs/index.${extension}`
2384
+ },
2385
+ functionQuery: {
2386
+ className: "RunsClient",
2387
+ methodName,
2388
+ kind: methodName === "stream" ? "Sync" : "Async"
2389
+ }
2390
+ }))
2391
+ );
2392
+
2333
2393
  // src/auto-instrumentations/configs/ollama.ts
2334
2394
  var methods = [
2335
2395
  ["chat", ollamaChannels.chat.channelName],
@@ -2750,6 +2810,41 @@ var strandsAgentSDKConfigs = [
2750
2810
  }
2751
2811
  ];
2752
2812
 
2813
+ // src/auto-instrumentations/configs/elevenlabs.ts
2814
+ var elevenLabsConfigs = [
2815
+ ...[
2816
+ "convert",
2817
+ "stream",
2818
+ "convertWithTimestamps",
2819
+ "streamWithTimestamps"
2820
+ ].map((methodName) => ({
2821
+ channelName: elevenLabsChannels[methodName].channelName,
2822
+ module: {
2823
+ name: "@elevenlabs/elevenlabs-js",
2824
+ versionRange: ">=2.67.0 <3.0.0",
2825
+ filePath: "api/resources/textToSpeech/client/Client.js"
2826
+ },
2827
+ functionQuery: {
2828
+ className: "TextToSpeechClient",
2829
+ methodName,
2830
+ kind: "Async"
2831
+ }
2832
+ })),
2833
+ {
2834
+ channelName: elevenLabsChannels.transcribe.channelName,
2835
+ module: {
2836
+ name: "@elevenlabs/elevenlabs-js",
2837
+ versionRange: ">=2.67.0 <3.0.0",
2838
+ filePath: "api/resources/speechToText/client/Client.js"
2839
+ },
2840
+ functionQuery: {
2841
+ className: "SpeechToTextClient",
2842
+ methodName: "convert",
2843
+ kind: "Async"
2844
+ }
2845
+ }
2846
+ ];
2847
+
2753
2848
  // src/auto-instrumentations/configs/voyageai.ts
2754
2849
  var GENERATED_CLIENT_MODULES = [
2755
2850
  "dist/cjs/Client.js",
@@ -2834,6 +2929,10 @@ var defaultInstrumentationConfigGroups = [
2834
2929
  integrations: ["openAIAgents"],
2835
2930
  configs: openAIAgentsCoreConfigs
2836
2931
  },
2932
+ {
2933
+ integrations: ["googleGenerativeAI"],
2934
+ configs: googleGenerativeAIConfigs
2935
+ },
2837
2936
  {
2838
2937
  integrations: ["google", "googleGenAI"],
2839
2938
  configs: googleGenAIConfigs
@@ -2853,6 +2952,7 @@ var defaultInstrumentationConfigGroups = [
2853
2952
  configs: openRouterAgentConfigs
2854
2953
  },
2855
2954
  { integrations: ["mistral"], configs: mistralConfigs },
2955
+ { integrations: ["langgraphSDK"], configs: langGraphSDKConfigs },
2856
2956
  { integrations: ["ollama"], configs: ollamaConfigs },
2857
2957
  { integrations: ["googleADK"], configs: googleADKConfigs },
2858
2958
  { integrations: ["cohere"], configs: cohereConfigs },
@@ -2877,6 +2977,10 @@ var defaultInstrumentationConfigGroups = [
2877
2977
  integrations: ["flue"],
2878
2978
  configs: flueConfigs
2879
2979
  },
2980
+ {
2981
+ integrations: ["elevenlabs"],
2982
+ configs: elevenLabsConfigs
2983
+ },
2880
2984
  {
2881
2985
  integrations: ["voyageai"],
2882
2986
  configs: voyageAIConfigs
@@ -1188,6 +1188,8 @@ var envIntegrationAliases = {
1188
1188
  "openai-agents-core": "openAIAgents",
1189
1189
  openaiagentscore: "openAIAgents",
1190
1190
  google: "google",
1191
+ "google-generative-ai": "googleGenerativeAI",
1192
+ googlegenerativeai: "googleGenerativeAI",
1191
1193
  "google-genai": "googleGenAI",
1192
1194
  googlegenai: "googleGenAI",
1193
1195
  huggingface: "huggingface",
@@ -1218,10 +1220,15 @@ var envIntegrationAliases = {
1218
1220
  "langchain-js": "langchain",
1219
1221
  "@langchain": "langchain",
1220
1222
  langgraph: "langgraph",
1223
+ langgraphsdk: "langgraphSDK",
1224
+ "langgraph-sdk": "langgraphSDK",
1225
+ "@langchain/langgraph-sdk": "langgraphSDK",
1221
1226
  langsmith: "langsmith",
1222
1227
  voyage: "voyageai",
1223
1228
  "voyage-ai": "voyageai",
1224
- voyageai: "voyageai"
1229
+ voyageai: "voyageai",
1230
+ elevenlabs: "elevenlabs",
1231
+ "@elevenlabs/elevenlabs-js": "elevenlabs"
1225
1232
  };
1226
1233
  function readDisabledInstrumentationEnvConfig(disabledList) {
1227
1234
  const integrations = {};
@@ -1357,6 +1364,7 @@ var INSTRUMENTATION_NAMES = {
1357
1364
  GENKIT: "genkit",
1358
1365
  GITHUB_COPILOT: "github-copilot",
1359
1366
  GOOGLE_ADK: "google-adk",
1367
+ GOOGLE_GENERATIVE_AI: "google-generative-ai",
1360
1368
  GOOGLE_GENAI: "google-genai",
1361
1369
  GROQ: "groq",
1362
1370
  HUGGINGFACE: "huggingface",
@@ -1364,6 +1372,7 @@ var INSTRUMENTATION_NAMES = {
1364
1372
  LANGSMITH: "langsmith",
1365
1373
  MASTRA: "mastra",
1366
1374
  MISTRAL: "mistral",
1375
+ LANGGRAPH_SDK: "langgraph-sdk",
1367
1376
  OLLAMA: "ollama",
1368
1377
  OPENAI: "openai",
1369
1378
  OPENAI_AGENTS: "openai-agents",
@@ -1372,7 +1381,8 @@ var INSTRUMENTATION_NAMES = {
1372
1381
  OPENROUTER_AGENT: "openrouter-agent",
1373
1382
  PI_CODING_AGENT: "pi-coding-agent",
1374
1383
  STRANDS_AGENT_SDK: "strands-agent-sdk",
1375
- VOYAGEAI: "voyageai"
1384
+ VOYAGEAI: "voyageai",
1385
+ ELEVENLABS: "elevenlabs"
1376
1386
  };
1377
1387
 
1378
1388
  // src/instrumentation/plugins/ai-sdk-channels.ts
@@ -1480,8 +1490,8 @@ var harnessAgentChannels = defineChannels(
1480
1490
  // src/auto-instrumentations/configs/ai-sdk.ts
1481
1491
  var aiSDKConfigs = [
1482
1492
  // HarnessAgent turn methods are published only from the package's ESM
1483
- // `./agent` entrypoint. The compiled class expression is anonymous, so match
1484
- // the first async method with each public name instead of a class name.
1493
+ // `./agent` entrypoint. Target the class binding so similarly named getters
1494
+ // on stream result classes are not mistaken for agent turn methods.
1485
1495
  ...[
1486
1496
  ["createSession", harnessAgentChannels.createSession.channelName],
1487
1497
  ["generate", harnessAgentChannels.generate.channelName],
@@ -1496,6 +1506,7 @@ var aiSDKConfigs = [
1496
1506
  filePath: "dist/agent/index.js"
1497
1507
  },
1498
1508
  functionQuery: {
1509
+ className: "HarnessAgent",
1499
1510
  methodName,
1500
1511
  kind: "Async",
1501
1512
  index: 0
@@ -1929,9 +1940,9 @@ var anthropicChannels = defineChannels(
1929
1940
  // src/auto-instrumentations/configs/anthropic.ts
1930
1941
  var anthropicConfigs = [
1931
1942
  // Each logical target is listed for both published module formats:
1932
- // `.mjs` covers ESM imports, while `.js` covers CJS requires. The Bedrock
1933
- // SDK delegates CJS `messages.create` calls through these Anthropic SDK
1934
- // `.js` resource files.
1943
+ // `.mjs` covers ESM imports, while `.js` covers CJS requires. Both
1944
+ // @anthropic-ai/bedrock-sdk and @anthropic-ai/vertex-sdk instantiate these
1945
+ // shared Anthropic resources, so they use the same targets and channels.
1935
1946
  // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
1936
1947
  {
1937
1948
  channelName: anthropicChannels.messagesCreate.channelName,
@@ -3242,6 +3253,40 @@ var googleADKConfigs = [
3242
3253
  }
3243
3254
  ];
3244
3255
 
3256
+ // src/instrumentation/plugins/google-generative-ai-channels.ts
3257
+ var googleGenerativeAIChannels = defineChannels(
3258
+ "@google/generative-ai",
3259
+ {
3260
+ generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
3261
+ generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
3262
+ embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
3263
+ batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
3264
+ sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
3265
+ sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
3266
+ },
3267
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
3268
+ );
3269
+
3270
+ // src/auto-instrumentations/configs/google-generative-ai.ts
3271
+ var googleGenerativeAIConfigs = [
3272
+ "dist/index.js",
3273
+ "dist/index.mjs"
3274
+ ].flatMap(
3275
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
3276
+ channelName: channel2.channelName,
3277
+ module: {
3278
+ name: "@google/generative-ai",
3279
+ versionRange: ">=0.24.0 <0.25.0",
3280
+ filePath
3281
+ },
3282
+ functionQuery: {
3283
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
3284
+ methodName,
3285
+ kind: "Async"
3286
+ }
3287
+ }))
3288
+ );
3289
+
3245
3290
  // src/instrumentation/plugins/google-genai-channels.ts
3246
3291
  var googleGenAIChannels = defineChannels(
3247
3292
  "@google/genai",
@@ -3258,6 +3303,10 @@ var googleGenAIChannels = defineChannels(
3258
3303
  channelName: "models.embedContent",
3259
3304
  kind: "async"
3260
3305
  }),
3306
+ httpResponseJson: channel({
3307
+ channelName: "httpResponse.json",
3308
+ kind: "async"
3309
+ }),
3261
3310
  interactionsCreate: channel({
3262
3311
  channelName: "interactions.create",
3263
3312
  kind: "async"
@@ -3327,6 +3376,21 @@ var googleGenAIConfigs = [
3327
3376
  kind: "Async"
3328
3377
  }
3329
3378
  },
3379
+ // The SDK's embedding response converter drops usageMetadata. Observe the
3380
+ // parsed HTTP response before conversion; the plugin scopes this to embeddings.
3381
+ {
3382
+ channelName: googleGenAIChannels.httpResponseJson.channelName,
3383
+ module: {
3384
+ name: "@google/genai",
3385
+ versionRange: ">=1.0.0",
3386
+ filePath: "dist/node/index.mjs"
3387
+ },
3388
+ functionQuery: {
3389
+ className: "HttpResponse",
3390
+ methodName: "json",
3391
+ kind: "Async"
3392
+ }
3393
+ },
3330
3394
  // BaseInteractions.create - Interactions API entry point
3331
3395
  {
3332
3396
  channelName: googleGenAIChannels.interactionsCreate.channelName,
@@ -4182,6 +4246,42 @@ var mistralConfigs = [
4182
4246
  }
4183
4247
  ];
4184
4248
 
4249
+ // src/instrumentation/plugins/langgraph-sdk-channels.ts
4250
+ var langGraphSDKChannels = defineChannels(
4251
+ "@langchain/langgraph-sdk",
4252
+ {
4253
+ wait: channel({
4254
+ channelName: "runs.wait",
4255
+ kind: "async"
4256
+ }),
4257
+ stream: channel({
4258
+ channelName: "runs.stream",
4259
+ kind: "sync-stream"
4260
+ })
4261
+ },
4262
+ { instrumentationName: INSTRUMENTATION_NAMES.LANGGRAPH_SDK }
4263
+ );
4264
+
4265
+ // src/auto-instrumentations/configs/langgraph-sdk.ts
4266
+ var langGraphSDKConfigs = [
4267
+ "js",
4268
+ "cjs"
4269
+ ].flatMap(
4270
+ (extension) => ["wait", "stream"].map((methodName) => ({
4271
+ channelName: langGraphSDKChannels[methodName].channelName,
4272
+ module: {
4273
+ name: "@langchain/langgraph-sdk",
4274
+ versionRange: ">=1.9.25 <2.0.0",
4275
+ filePath: `dist/client/runs/index.${extension}`
4276
+ },
4277
+ functionQuery: {
4278
+ className: "RunsClient",
4279
+ methodName,
4280
+ kind: methodName === "stream" ? "Sync" : "Async"
4281
+ }
4282
+ }))
4283
+ );
4284
+
4185
4285
  // src/instrumentation/plugins/ollama-channels.ts
4186
4286
  var ollamaChannels = defineChannels(
4187
4287
  "ollama",
@@ -4280,6 +4380,18 @@ var openAIAgentsCoreConfigs = lifecycleMethods.flatMap(
4280
4380
  var openAIChannels = defineChannels(
4281
4381
  "openai",
4282
4382
  {
4383
+ agentsTraceStart: channel({
4384
+ channelName: "agents.trace.start",
4385
+ kind: "async"
4386
+ }),
4387
+ agentsTraceCapture: channel({
4388
+ channelName: "agents.trace.capture",
4389
+ kind: "async"
4390
+ }),
4391
+ agentsTraceFail: channel({
4392
+ channelName: "agents.trace.fail",
4393
+ kind: "async"
4394
+ }),
4283
4395
  filesCreateTraced: channel({
4284
4396
  channelName: "files.create-traced",
4285
4397
  kind: "async"
@@ -4806,6 +4918,60 @@ var strandsAgentSDKConfigs = [
4806
4918
  }
4807
4919
  ];
4808
4920
 
4921
+ // src/instrumentation/plugins/elevenlabs-channels.ts
4922
+ var elevenLabsChannels = defineChannels(
4923
+ "@elevenlabs/elevenlabs-js",
4924
+ {
4925
+ convert: channel({
4926
+ channelName: "textToSpeech.convert",
4927
+ kind: "async"
4928
+ }),
4929
+ stream: channel({
4930
+ channelName: "textToSpeech.stream",
4931
+ kind: "async"
4932
+ }),
4933
+ convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
4934
+ streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
4935
+ transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
4936
+ },
4937
+ { instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
4938
+ );
4939
+
4940
+ // src/auto-instrumentations/configs/elevenlabs.ts
4941
+ var elevenLabsConfigs = [
4942
+ ...[
4943
+ "convert",
4944
+ "stream",
4945
+ "convertWithTimestamps",
4946
+ "streamWithTimestamps"
4947
+ ].map((methodName) => ({
4948
+ channelName: elevenLabsChannels[methodName].channelName,
4949
+ module: {
4950
+ name: "@elevenlabs/elevenlabs-js",
4951
+ versionRange: ">=2.67.0 <3.0.0",
4952
+ filePath: "api/resources/textToSpeech/client/Client.js"
4953
+ },
4954
+ functionQuery: {
4955
+ className: "TextToSpeechClient",
4956
+ methodName,
4957
+ kind: "Async"
4958
+ }
4959
+ })),
4960
+ {
4961
+ channelName: elevenLabsChannels.transcribe.channelName,
4962
+ module: {
4963
+ name: "@elevenlabs/elevenlabs-js",
4964
+ versionRange: ">=2.67.0 <3.0.0",
4965
+ filePath: "api/resources/speechToText/client/Client.js"
4966
+ },
4967
+ functionQuery: {
4968
+ className: "SpeechToTextClient",
4969
+ methodName: "convert",
4970
+ kind: "Async"
4971
+ }
4972
+ }
4973
+ ];
4974
+
4809
4975
  // src/instrumentation/plugins/voyageai-channels.ts
4810
4976
  var voyageAIChannels = defineChannels(
4811
4977
  "voyageai",
@@ -4914,6 +5080,10 @@ var defaultInstrumentationConfigGroups = [
4914
5080
  integrations: ["openAIAgents"],
4915
5081
  configs: openAIAgentsCoreConfigs
4916
5082
  },
5083
+ {
5084
+ integrations: ["googleGenerativeAI"],
5085
+ configs: googleGenerativeAIConfigs
5086
+ },
4917
5087
  {
4918
5088
  integrations: ["google", "googleGenAI"],
4919
5089
  configs: googleGenAIConfigs
@@ -4933,6 +5103,7 @@ var defaultInstrumentationConfigGroups = [
4933
5103
  configs: openRouterAgentConfigs
4934
5104
  },
4935
5105
  { integrations: ["mistral"], configs: mistralConfigs },
5106
+ { integrations: ["langgraphSDK"], configs: langGraphSDKConfigs },
4936
5107
  { integrations: ["ollama"], configs: ollamaConfigs },
4937
5108
  { integrations: ["googleADK"], configs: googleADKConfigs },
4938
5109
  { integrations: ["cohere"], configs: cohereConfigs },
@@ -4957,6 +5128,10 @@ var defaultInstrumentationConfigGroups = [
4957
5128
  integrations: ["flue"],
4958
5129
  configs: flueConfigs
4959
5130
  },
5131
+ {
5132
+ integrations: ["elevenlabs"],
5133
+ configs: elevenLabsConfigs
5134
+ },
4960
5135
  {
4961
5136
  integrations: ["voyageai"],
4962
5137
  configs: voyageAIConfigs
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-LW4HDHXT.mjs";
4
- import "../chunk-U64OYU4Q.mjs";
3
+ } from "../chunk-UHJ2DNYJ.mjs";
4
+ import "../chunk-T2DMPWFI.mjs";
5
5
  import "../chunk-I55G56ZL.mjs";
6
6
  import "../chunk-JPUFNW7X.mjs";
7
7
  import "../chunk-P5YLNB2A.mjs";