braintrust 3.31.0 → 3.32.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 (55) hide show
  1. package/dev/dist/index.d.mts +736 -0
  2. package/dev/dist/index.d.ts +736 -0
  3. package/dev/dist/index.js +1280 -428
  4. package/dev/dist/index.mjs +859 -7
  5. package/dist/apply-auto-instrumentation.js +281 -216
  6. package/dist/apply-auto-instrumentation.mjs +66 -1
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +104 -2
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/next.cjs +104 -2
  10. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +104 -2
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.cjs +104 -2
  14. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  15. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +104 -2
  16. package/dist/auto-instrumentations/bundler/webpack.cjs +104 -2
  17. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  18. package/dist/auto-instrumentations/{chunk-U64OYU4Q.mjs → chunk-AFND2U7E.mjs} +38 -1
  19. package/dist/auto-instrumentations/{chunk-OXINGIEZ.mjs → chunk-QEEPRBIS.mjs} +1 -1
  20. package/dist/auto-instrumentations/{chunk-LW4HDHXT.mjs → chunk-RI4Y55ZF.mjs} +69 -2
  21. package/dist/auto-instrumentations/hook.mjs +124 -3
  22. package/dist/auto-instrumentations/index.cjs +39 -1
  23. package/dist/auto-instrumentations/index.d.mts +3 -1
  24. package/dist/auto-instrumentations/index.d.ts +3 -1
  25. package/dist/auto-instrumentations/index.mjs +3 -1
  26. package/dist/browser.d.mts +2124 -2
  27. package/dist/browser.d.ts +2124 -2
  28. package/dist/browser.js +994 -10
  29. package/dist/browser.mjs +994 -10
  30. package/dist/{chunk-AJT4FR25.mjs → chunk-4QSAHP7D.mjs} +818 -5
  31. package/dist/{chunk-4AQGZS6X.js → chunk-AW4QECG5.js} +47 -4
  32. package/dist/{chunk-V32LW47Z.js → chunk-BTRLPQG5.js} +1663 -850
  33. package/dist/{chunk-CE3BLB2L.mjs → chunk-WV6QZI2W.mjs} +46 -3
  34. package/dist/cli.js +923 -8
  35. package/dist/edge-light.d.mts +1 -1
  36. package/dist/edge-light.d.ts +1 -1
  37. package/dist/edge-light.js +994 -10
  38. package/dist/edge-light.mjs +994 -10
  39. package/dist/index.d.mts +2124 -2
  40. package/dist/index.d.ts +2124 -2
  41. package/dist/index.js +581 -447
  42. package/dist/index.mjs +136 -2
  43. package/dist/instrumentation/index.d.mts +434 -0
  44. package/dist/instrumentation/index.d.ts +434 -0
  45. package/dist/instrumentation/index.js +859 -7
  46. package/dist/instrumentation/index.mjs +859 -7
  47. package/dist/vitest-evals-reporter.js +16 -16
  48. package/dist/vitest-evals-reporter.mjs +2 -2
  49. package/dist/workerd.d.mts +1 -1
  50. package/dist/workerd.d.ts +1 -1
  51. package/dist/workerd.js +994 -10
  52. package/dist/workerd.mjs +994 -10
  53. package/package.json +1 -1
  54. package/util/dist/index.d.mts +326 -0
  55. package/util/dist/index.d.ts +326 -0
@@ -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",
@@ -1221,7 +1223,9 @@ var envIntegrationAliases = {
1221
1223
  langsmith: "langsmith",
1222
1224
  voyage: "voyageai",
1223
1225
  "voyage-ai": "voyageai",
1224
- voyageai: "voyageai"
1226
+ voyageai: "voyageai",
1227
+ elevenlabs: "elevenlabs",
1228
+ "@elevenlabs/elevenlabs-js": "elevenlabs"
1225
1229
  };
1226
1230
  function readDisabledInstrumentationEnvConfig(disabledList) {
1227
1231
  const integrations = {};
@@ -1357,6 +1361,7 @@ var INSTRUMENTATION_NAMES = {
1357
1361
  GENKIT: "genkit",
1358
1362
  GITHUB_COPILOT: "github-copilot",
1359
1363
  GOOGLE_ADK: "google-adk",
1364
+ GOOGLE_GENERATIVE_AI: "google-generative-ai",
1360
1365
  GOOGLE_GENAI: "google-genai",
1361
1366
  GROQ: "groq",
1362
1367
  HUGGINGFACE: "huggingface",
@@ -1372,7 +1377,8 @@ var INSTRUMENTATION_NAMES = {
1372
1377
  OPENROUTER_AGENT: "openrouter-agent",
1373
1378
  PI_CODING_AGENT: "pi-coding-agent",
1374
1379
  STRANDS_AGENT_SDK: "strands-agent-sdk",
1375
- VOYAGEAI: "voyageai"
1380
+ VOYAGEAI: "voyageai",
1381
+ ELEVENLABS: "elevenlabs"
1376
1382
  };
1377
1383
 
1378
1384
  // src/instrumentation/plugins/ai-sdk-channels.ts
@@ -3242,6 +3248,40 @@ var googleADKConfigs = [
3242
3248
  }
3243
3249
  ];
3244
3250
 
3251
+ // src/instrumentation/plugins/google-generative-ai-channels.ts
3252
+ var googleGenerativeAIChannels = defineChannels(
3253
+ "@google/generative-ai",
3254
+ {
3255
+ generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
3256
+ generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
3257
+ embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
3258
+ batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
3259
+ sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
3260
+ sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
3261
+ },
3262
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
3263
+ );
3264
+
3265
+ // src/auto-instrumentations/configs/google-generative-ai.ts
3266
+ var googleGenerativeAIConfigs = [
3267
+ "dist/index.js",
3268
+ "dist/index.mjs"
3269
+ ].flatMap(
3270
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
3271
+ channelName: channel2.channelName,
3272
+ module: {
3273
+ name: "@google/generative-ai",
3274
+ versionRange: ">=0.24.0 <0.25.0",
3275
+ filePath
3276
+ },
3277
+ functionQuery: {
3278
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
3279
+ methodName,
3280
+ kind: "Async"
3281
+ }
3282
+ }))
3283
+ );
3284
+
3245
3285
  // src/instrumentation/plugins/google-genai-channels.ts
3246
3286
  var googleGenAIChannels = defineChannels(
3247
3287
  "@google/genai",
@@ -4806,6 +4846,60 @@ var strandsAgentSDKConfigs = [
4806
4846
  }
4807
4847
  ];
4808
4848
 
4849
+ // src/instrumentation/plugins/elevenlabs-channels.ts
4850
+ var elevenLabsChannels = defineChannels(
4851
+ "@elevenlabs/elevenlabs-js",
4852
+ {
4853
+ convert: channel({
4854
+ channelName: "textToSpeech.convert",
4855
+ kind: "async"
4856
+ }),
4857
+ stream: channel({
4858
+ channelName: "textToSpeech.stream",
4859
+ kind: "async"
4860
+ }),
4861
+ convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
4862
+ streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
4863
+ transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
4864
+ },
4865
+ { instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
4866
+ );
4867
+
4868
+ // src/auto-instrumentations/configs/elevenlabs.ts
4869
+ var elevenLabsConfigs = [
4870
+ ...[
4871
+ "convert",
4872
+ "stream",
4873
+ "convertWithTimestamps",
4874
+ "streamWithTimestamps"
4875
+ ].map((methodName) => ({
4876
+ channelName: elevenLabsChannels[methodName].channelName,
4877
+ module: {
4878
+ name: "@elevenlabs/elevenlabs-js",
4879
+ versionRange: ">=2.67.0 <3.0.0",
4880
+ filePath: "api/resources/textToSpeech/client/Client.js"
4881
+ },
4882
+ functionQuery: {
4883
+ className: "TextToSpeechClient",
4884
+ methodName,
4885
+ kind: "Async"
4886
+ }
4887
+ })),
4888
+ {
4889
+ channelName: elevenLabsChannels.transcribe.channelName,
4890
+ module: {
4891
+ name: "@elevenlabs/elevenlabs-js",
4892
+ versionRange: ">=2.67.0 <3.0.0",
4893
+ filePath: "api/resources/speechToText/client/Client.js"
4894
+ },
4895
+ functionQuery: {
4896
+ className: "SpeechToTextClient",
4897
+ methodName: "convert",
4898
+ kind: "Async"
4899
+ }
4900
+ }
4901
+ ];
4902
+
4809
4903
  // src/instrumentation/plugins/voyageai-channels.ts
4810
4904
  var voyageAIChannels = defineChannels(
4811
4905
  "voyageai",
@@ -4914,6 +5008,10 @@ var defaultInstrumentationConfigGroups = [
4914
5008
  integrations: ["openAIAgents"],
4915
5009
  configs: openAIAgentsCoreConfigs
4916
5010
  },
5011
+ {
5012
+ integrations: ["googleGenerativeAI"],
5013
+ configs: googleGenerativeAIConfigs
5014
+ },
4917
5015
  {
4918
5016
  integrations: ["google", "googleGenAI"],
4919
5017
  configs: googleGenAIConfigs
@@ -4957,6 +5055,10 @@ var defaultInstrumentationConfigGroups = [
4957
5055
  integrations: ["flue"],
4958
5056
  configs: flueConfigs
4959
5057
  },
5058
+ {
5059
+ integrations: ["elevenlabs"],
5060
+ configs: elevenLabsConfigs
5061
+ },
4960
5062
  {
4961
5063
  integrations: ["voyageai"],
4962
5064
  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-RI4Y55ZF.mjs";
4
+ import "../chunk-AFND2U7E.mjs";
5
5
  import "../chunk-I55G56ZL.mjs";
6
6
  import "../chunk-JPUFNW7X.mjs";
7
7
  import "../chunk-P5YLNB2A.mjs";
@@ -1171,6 +1171,8 @@ var envIntegrationAliases = {
1171
1171
  "openai-agents-core": "openAIAgents",
1172
1172
  openaiagentscore: "openAIAgents",
1173
1173
  google: "google",
1174
+ "google-generative-ai": "googleGenerativeAI",
1175
+ googlegenerativeai: "googleGenerativeAI",
1174
1176
  "google-genai": "googleGenAI",
1175
1177
  googlegenai: "googleGenAI",
1176
1178
  huggingface: "huggingface",
@@ -1204,7 +1206,9 @@ var envIntegrationAliases = {
1204
1206
  langsmith: "langsmith",
1205
1207
  voyage: "voyageai",
1206
1208
  "voyage-ai": "voyageai",
1207
- voyageai: "voyageai"
1209
+ voyageai: "voyageai",
1210
+ elevenlabs: "elevenlabs",
1211
+ "@elevenlabs/elevenlabs-js": "elevenlabs"
1208
1212
  };
1209
1213
  function readDisabledInstrumentationEnvConfig(disabledList) {
1210
1214
  const integrations = {};
@@ -1340,6 +1344,7 @@ var INSTRUMENTATION_NAMES = {
1340
1344
  GENKIT: "genkit",
1341
1345
  GITHUB_COPILOT: "github-copilot",
1342
1346
  GOOGLE_ADK: "google-adk",
1347
+ GOOGLE_GENERATIVE_AI: "google-generative-ai",
1343
1348
  GOOGLE_GENAI: "google-genai",
1344
1349
  GROQ: "groq",
1345
1350
  HUGGINGFACE: "huggingface",
@@ -1355,7 +1360,8 @@ var INSTRUMENTATION_NAMES = {
1355
1360
  OPENROUTER_AGENT: "openrouter-agent",
1356
1361
  PI_CODING_AGENT: "pi-coding-agent",
1357
1362
  STRANDS_AGENT_SDK: "strands-agent-sdk",
1358
- VOYAGEAI: "voyageai"
1363
+ VOYAGEAI: "voyageai",
1364
+ ELEVENLABS: "elevenlabs"
1359
1365
  };
1360
1366
 
1361
1367
  // src/instrumentation/plugins/ai-sdk-channels.ts
@@ -3225,6 +3231,40 @@ var googleADKConfigs = [
3225
3231
  }
3226
3232
  ];
3227
3233
 
3234
+ // src/instrumentation/plugins/google-generative-ai-channels.ts
3235
+ var googleGenerativeAIChannels = defineChannels(
3236
+ "@google/generative-ai",
3237
+ {
3238
+ generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
3239
+ generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
3240
+ embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
3241
+ batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
3242
+ sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
3243
+ sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
3244
+ },
3245
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
3246
+ );
3247
+
3248
+ // src/auto-instrumentations/configs/google-generative-ai.ts
3249
+ var googleGenerativeAIConfigs = [
3250
+ "dist/index.js",
3251
+ "dist/index.mjs"
3252
+ ].flatMap(
3253
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
3254
+ channelName: channel2.channelName,
3255
+ module: {
3256
+ name: "@google/generative-ai",
3257
+ versionRange: ">=0.24.0 <0.25.0",
3258
+ filePath
3259
+ },
3260
+ functionQuery: {
3261
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
3262
+ methodName,
3263
+ kind: "Async"
3264
+ }
3265
+ }))
3266
+ );
3267
+
3228
3268
  // src/instrumentation/plugins/google-genai-channels.ts
3229
3269
  var googleGenAIChannels = defineChannels(
3230
3270
  "@google/genai",
@@ -4789,6 +4829,60 @@ var strandsAgentSDKConfigs = [
4789
4829
  }
4790
4830
  ];
4791
4831
 
4832
+ // src/instrumentation/plugins/elevenlabs-channels.ts
4833
+ var elevenLabsChannels = defineChannels(
4834
+ "@elevenlabs/elevenlabs-js",
4835
+ {
4836
+ convert: channel({
4837
+ channelName: "textToSpeech.convert",
4838
+ kind: "async"
4839
+ }),
4840
+ stream: channel({
4841
+ channelName: "textToSpeech.stream",
4842
+ kind: "async"
4843
+ }),
4844
+ convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
4845
+ streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
4846
+ transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
4847
+ },
4848
+ { instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
4849
+ );
4850
+
4851
+ // src/auto-instrumentations/configs/elevenlabs.ts
4852
+ var elevenLabsConfigs = [
4853
+ ...[
4854
+ "convert",
4855
+ "stream",
4856
+ "convertWithTimestamps",
4857
+ "streamWithTimestamps"
4858
+ ].map((methodName) => ({
4859
+ channelName: elevenLabsChannels[methodName].channelName,
4860
+ module: {
4861
+ name: "@elevenlabs/elevenlabs-js",
4862
+ versionRange: ">=2.67.0 <3.0.0",
4863
+ filePath: "api/resources/textToSpeech/client/Client.js"
4864
+ },
4865
+ functionQuery: {
4866
+ className: "TextToSpeechClient",
4867
+ methodName,
4868
+ kind: "Async"
4869
+ }
4870
+ })),
4871
+ {
4872
+ channelName: elevenLabsChannels.transcribe.channelName,
4873
+ module: {
4874
+ name: "@elevenlabs/elevenlabs-js",
4875
+ versionRange: ">=2.67.0 <3.0.0",
4876
+ filePath: "api/resources/speechToText/client/Client.js"
4877
+ },
4878
+ functionQuery: {
4879
+ className: "SpeechToTextClient",
4880
+ methodName: "convert",
4881
+ kind: "Async"
4882
+ }
4883
+ }
4884
+ ];
4885
+
4792
4886
  // src/instrumentation/plugins/voyageai-channels.ts
4793
4887
  var voyageAIChannels = defineChannels(
4794
4888
  "voyageai",
@@ -4897,6 +4991,10 @@ var defaultInstrumentationConfigGroups = [
4897
4991
  integrations: ["openAIAgents"],
4898
4992
  configs: openAIAgentsCoreConfigs
4899
4993
  },
4994
+ {
4995
+ integrations: ["googleGenerativeAI"],
4996
+ configs: googleGenerativeAIConfigs
4997
+ },
4900
4998
  {
4901
4999
  integrations: ["google", "googleGenAI"],
4902
5000
  configs: googleGenAIConfigs
@@ -4940,6 +5038,10 @@ var defaultInstrumentationConfigGroups = [
4940
5038
  integrations: ["flue"],
4941
5039
  configs: flueConfigs
4942
5040
  },
5041
+ {
5042
+ integrations: ["elevenlabs"],
5043
+ configs: elevenLabsConfigs
5044
+ },
4943
5045
  {
4944
5046
  integrations: ["voyageai"],
4945
5047
  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",
@@ -1221,7 +1223,9 @@ var envIntegrationAliases = {
1221
1223
  langsmith: "langsmith",
1222
1224
  voyage: "voyageai",
1223
1225
  "voyage-ai": "voyageai",
1224
- voyageai: "voyageai"
1226
+ voyageai: "voyageai",
1227
+ elevenlabs: "elevenlabs",
1228
+ "@elevenlabs/elevenlabs-js": "elevenlabs"
1225
1229
  };
1226
1230
  function readDisabledInstrumentationEnvConfig(disabledList) {
1227
1231
  const integrations = {};
@@ -1357,6 +1361,7 @@ var INSTRUMENTATION_NAMES = {
1357
1361
  GENKIT: "genkit",
1358
1362
  GITHUB_COPILOT: "github-copilot",
1359
1363
  GOOGLE_ADK: "google-adk",
1364
+ GOOGLE_GENERATIVE_AI: "google-generative-ai",
1360
1365
  GOOGLE_GENAI: "google-genai",
1361
1366
  GROQ: "groq",
1362
1367
  HUGGINGFACE: "huggingface",
@@ -1372,7 +1377,8 @@ var INSTRUMENTATION_NAMES = {
1372
1377
  OPENROUTER_AGENT: "openrouter-agent",
1373
1378
  PI_CODING_AGENT: "pi-coding-agent",
1374
1379
  STRANDS_AGENT_SDK: "strands-agent-sdk",
1375
- VOYAGEAI: "voyageai"
1380
+ VOYAGEAI: "voyageai",
1381
+ ELEVENLABS: "elevenlabs"
1376
1382
  };
1377
1383
 
1378
1384
  // src/instrumentation/plugins/ai-sdk-channels.ts
@@ -3242,6 +3248,40 @@ var googleADKConfigs = [
3242
3248
  }
3243
3249
  ];
3244
3250
 
3251
+ // src/instrumentation/plugins/google-generative-ai-channels.ts
3252
+ var googleGenerativeAIChannels = defineChannels(
3253
+ "@google/generative-ai",
3254
+ {
3255
+ generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
3256
+ generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
3257
+ embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
3258
+ batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
3259
+ sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
3260
+ sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
3261
+ },
3262
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
3263
+ );
3264
+
3265
+ // src/auto-instrumentations/configs/google-generative-ai.ts
3266
+ var googleGenerativeAIConfigs = [
3267
+ "dist/index.js",
3268
+ "dist/index.mjs"
3269
+ ].flatMap(
3270
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
3271
+ channelName: channel2.channelName,
3272
+ module: {
3273
+ name: "@google/generative-ai",
3274
+ versionRange: ">=0.24.0 <0.25.0",
3275
+ filePath
3276
+ },
3277
+ functionQuery: {
3278
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
3279
+ methodName,
3280
+ kind: "Async"
3281
+ }
3282
+ }))
3283
+ );
3284
+
3245
3285
  // src/instrumentation/plugins/google-genai-channels.ts
3246
3286
  var googleGenAIChannels = defineChannels(
3247
3287
  "@google/genai",
@@ -4806,6 +4846,60 @@ var strandsAgentSDKConfigs = [
4806
4846
  }
4807
4847
  ];
4808
4848
 
4849
+ // src/instrumentation/plugins/elevenlabs-channels.ts
4850
+ var elevenLabsChannels = defineChannels(
4851
+ "@elevenlabs/elevenlabs-js",
4852
+ {
4853
+ convert: channel({
4854
+ channelName: "textToSpeech.convert",
4855
+ kind: "async"
4856
+ }),
4857
+ stream: channel({
4858
+ channelName: "textToSpeech.stream",
4859
+ kind: "async"
4860
+ }),
4861
+ convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
4862
+ streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
4863
+ transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
4864
+ },
4865
+ { instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
4866
+ );
4867
+
4868
+ // src/auto-instrumentations/configs/elevenlabs.ts
4869
+ var elevenLabsConfigs = [
4870
+ ...[
4871
+ "convert",
4872
+ "stream",
4873
+ "convertWithTimestamps",
4874
+ "streamWithTimestamps"
4875
+ ].map((methodName) => ({
4876
+ channelName: elevenLabsChannels[methodName].channelName,
4877
+ module: {
4878
+ name: "@elevenlabs/elevenlabs-js",
4879
+ versionRange: ">=2.67.0 <3.0.0",
4880
+ filePath: "api/resources/textToSpeech/client/Client.js"
4881
+ },
4882
+ functionQuery: {
4883
+ className: "TextToSpeechClient",
4884
+ methodName,
4885
+ kind: "Async"
4886
+ }
4887
+ })),
4888
+ {
4889
+ channelName: elevenLabsChannels.transcribe.channelName,
4890
+ module: {
4891
+ name: "@elevenlabs/elevenlabs-js",
4892
+ versionRange: ">=2.67.0 <3.0.0",
4893
+ filePath: "api/resources/speechToText/client/Client.js"
4894
+ },
4895
+ functionQuery: {
4896
+ className: "SpeechToTextClient",
4897
+ methodName: "convert",
4898
+ kind: "Async"
4899
+ }
4900
+ }
4901
+ ];
4902
+
4809
4903
  // src/instrumentation/plugins/voyageai-channels.ts
4810
4904
  var voyageAIChannels = defineChannels(
4811
4905
  "voyageai",
@@ -4914,6 +5008,10 @@ var defaultInstrumentationConfigGroups = [
4914
5008
  integrations: ["openAIAgents"],
4915
5009
  configs: openAIAgentsCoreConfigs
4916
5010
  },
5011
+ {
5012
+ integrations: ["googleGenerativeAI"],
5013
+ configs: googleGenerativeAIConfigs
5014
+ },
4917
5015
  {
4918
5016
  integrations: ["google", "googleGenAI"],
4919
5017
  configs: googleGenAIConfigs
@@ -4957,6 +5055,10 @@ var defaultInstrumentationConfigGroups = [
4957
5055
  integrations: ["flue"],
4958
5056
  configs: flueConfigs
4959
5057
  },
5058
+ {
5059
+ integrations: ["elevenlabs"],
5060
+ configs: elevenLabsConfigs
5061
+ },
4960
5062
  {
4961
5063
  integrations: ["voyageai"],
4962
5064
  configs: voyageAIConfigs
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  braintrustWebpackPlugin,
3
3
  webpackPlugin
4
- } from "../chunk-OXINGIEZ.mjs";
5
- import "../chunk-LW4HDHXT.mjs";
6
- import "../chunk-U64OYU4Q.mjs";
4
+ } from "../chunk-QEEPRBIS.mjs";
5
+ import "../chunk-RI4Y55ZF.mjs";
6
+ import "../chunk-AFND2U7E.mjs";
7
7
  import "../chunk-I55G56ZL.mjs";
8
8
  import "../chunk-JPUFNW7X.mjs";
9
9
  import "../chunk-P5YLNB2A.mjs";
@@ -119,6 +119,7 @@ var INSTRUMENTATION_NAMES = {
119
119
  GENKIT: "genkit",
120
120
  GITHUB_COPILOT: "github-copilot",
121
121
  GOOGLE_ADK: "google-adk",
122
+ GOOGLE_GENERATIVE_AI: "google-generative-ai",
122
123
  GOOGLE_GENAI: "google-genai",
123
124
  GROQ: "groq",
124
125
  HUGGINGFACE: "huggingface",
@@ -134,7 +135,8 @@ var INSTRUMENTATION_NAMES = {
134
135
  OPENROUTER_AGENT: "openrouter-agent",
135
136
  PI_CODING_AGENT: "pi-coding-agent",
136
137
  STRANDS_AGENT_SDK: "strands-agent-sdk",
137
- VOYAGEAI: "voyageai"
138
+ VOYAGEAI: "voyageai",
139
+ ELEVENLABS: "elevenlabs"
138
140
  };
139
141
 
140
142
  // src/instrumentation/plugins/openai-channels.ts
@@ -1423,6 +1425,40 @@ var openAIAgentsCoreConfigs = lifecycleMethods.flatMap(
1423
1425
  )
1424
1426
  );
1425
1427
 
1428
+ // src/instrumentation/plugins/google-generative-ai-channels.ts
1429
+ var googleGenerativeAIChannels = defineChannels(
1430
+ "@google/generative-ai",
1431
+ {
1432
+ generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
1433
+ generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
1434
+ embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
1435
+ batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
1436
+ sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
1437
+ sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
1438
+ },
1439
+ { instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
1440
+ );
1441
+
1442
+ // src/auto-instrumentations/configs/google-generative-ai.ts
1443
+ var googleGenerativeAIConfigs = [
1444
+ "dist/index.js",
1445
+ "dist/index.mjs"
1446
+ ].flatMap(
1447
+ (filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
1448
+ channelName: channel2.channelName,
1449
+ module: {
1450
+ name: "@google/generative-ai",
1451
+ versionRange: ">=0.24.0 <0.25.0",
1452
+ filePath
1453
+ },
1454
+ functionQuery: {
1455
+ className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
1456
+ methodName,
1457
+ kind: "Async"
1458
+ }
1459
+ }))
1460
+ );
1461
+
1426
1462
  // src/instrumentation/plugins/google-genai-channels.ts
1427
1463
  var googleGenAIChannels = defineChannels(
1428
1464
  "@google/genai",
@@ -3412,6 +3448,7 @@ export {
3412
3448
  cloudflareThinkConfigs,
3413
3449
  cursorSDKConfigs,
3414
3450
  openAIAgentsCoreConfigs,
3451
+ googleGenerativeAIConfigs,
3415
3452
  googleGenAIConfigs,
3416
3453
  huggingFaceConfigs,
3417
3454
  openRouterAgentConfigs,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "./chunk-LW4HDHXT.mjs";
3
+ } from "./chunk-RI4Y55ZF.mjs";
4
4
 
5
5
  // src/auto-instrumentations/bundler/webpack.ts
6
6
  function braintrustWebpackPlugin(options = {}) {
@@ -15,6 +15,7 @@ import {
15
15
  gitHubCopilotConfigs,
16
16
  googleADKConfigs,
17
17
  googleGenAIConfigs,
18
+ googleGenerativeAIConfigs,
18
19
  groqConfigs,
19
20
  huggingFaceConfigs,
20
21
  langSmithConfigs,
@@ -27,7 +28,7 @@ import {
27
28
  openRouterConfigs,
28
29
  openaiConfigs,
29
30
  piCodingAgentConfigs
30
- } from "./chunk-U64OYU4Q.mjs";
31
+ } from "./chunk-AFND2U7E.mjs";
31
32
  import {
32
33
  applySpecialCasePatch,
33
34
  create
@@ -85,6 +86,8 @@ var envIntegrationAliases = {
85
86
  "openai-agents-core": "openAIAgents",
86
87
  openaiagentscore: "openAIAgents",
87
88
  google: "google",
89
+ "google-generative-ai": "googleGenerativeAI",
90
+ googlegenerativeai: "googleGenerativeAI",
88
91
  "google-genai": "googleGenAI",
89
92
  googlegenai: "googleGenAI",
90
93
  huggingface: "huggingface",
@@ -118,7 +121,9 @@ var envIntegrationAliases = {
118
121
  langsmith: "langsmith",
119
122
  voyage: "voyageai",
120
123
  "voyage-ai": "voyageai",
121
- voyageai: "voyageai"
124
+ voyageai: "voyageai",
125
+ elevenlabs: "elevenlabs",
126
+ "@elevenlabs/elevenlabs-js": "elevenlabs"
122
127
  };
123
128
  function readDisabledInstrumentationEnvConfig(disabledList) {
124
129
  const integrations = {};
@@ -307,6 +312,60 @@ var strandsAgentSDKConfigs = [
307
312
  }
308
313
  ];
309
314
 
315
+ // src/instrumentation/plugins/elevenlabs-channels.ts
316
+ var elevenLabsChannels = defineChannels(
317
+ "@elevenlabs/elevenlabs-js",
318
+ {
319
+ convert: channel({
320
+ channelName: "textToSpeech.convert",
321
+ kind: "async"
322
+ }),
323
+ stream: channel({
324
+ channelName: "textToSpeech.stream",
325
+ kind: "async"
326
+ }),
327
+ convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
328
+ streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
329
+ transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
330
+ },
331
+ { instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
332
+ );
333
+
334
+ // src/auto-instrumentations/configs/elevenlabs.ts
335
+ var elevenLabsConfigs = [
336
+ ...[
337
+ "convert",
338
+ "stream",
339
+ "convertWithTimestamps",
340
+ "streamWithTimestamps"
341
+ ].map((methodName) => ({
342
+ channelName: elevenLabsChannels[methodName].channelName,
343
+ module: {
344
+ name: "@elevenlabs/elevenlabs-js",
345
+ versionRange: ">=2.67.0 <3.0.0",
346
+ filePath: "api/resources/textToSpeech/client/Client.js"
347
+ },
348
+ functionQuery: {
349
+ className: "TextToSpeechClient",
350
+ methodName,
351
+ kind: "Async"
352
+ }
353
+ })),
354
+ {
355
+ channelName: elevenLabsChannels.transcribe.channelName,
356
+ module: {
357
+ name: "@elevenlabs/elevenlabs-js",
358
+ versionRange: ">=2.67.0 <3.0.0",
359
+ filePath: "api/resources/speechToText/client/Client.js"
360
+ },
361
+ functionQuery: {
362
+ className: "SpeechToTextClient",
363
+ methodName: "convert",
364
+ kind: "Async"
365
+ }
366
+ }
367
+ ];
368
+
310
369
  // src/instrumentation/plugins/voyageai-channels.ts
311
370
  var voyageAIChannels = defineChannels(
312
371
  "voyageai",
@@ -415,6 +474,10 @@ var defaultInstrumentationConfigGroups = [
415
474
  integrations: ["openAIAgents"],
416
475
  configs: openAIAgentsCoreConfigs
417
476
  },
477
+ {
478
+ integrations: ["googleGenerativeAI"],
479
+ configs: googleGenerativeAIConfigs
480
+ },
418
481
  {
419
482
  integrations: ["google", "googleGenAI"],
420
483
  configs: googleGenAIConfigs
@@ -458,6 +521,10 @@ var defaultInstrumentationConfigGroups = [
458
521
  integrations: ["flue"],
459
522
  configs: flueConfigs
460
523
  },
524
+ {
525
+ integrations: ["elevenlabs"],
526
+ configs: elevenLabsConfigs
527
+ },
461
528
  {
462
529
  integrations: ["voyageai"],
463
530
  configs: voyageAIConfigs