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.
- package/dev/dist/index.d.mts +736 -0
- package/dev/dist/index.d.ts +736 -0
- package/dev/dist/index.js +1280 -428
- package/dev/dist/index.mjs +859 -7
- package/dist/apply-auto-instrumentation.js +281 -216
- package/dist/apply-auto-instrumentation.mjs +66 -1
- package/dist/auto-instrumentations/bundler/esbuild.cjs +104 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +104 -2
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +104 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +104 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +104 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +104 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-U64OYU4Q.mjs → chunk-AFND2U7E.mjs} +38 -1
- package/dist/auto-instrumentations/{chunk-OXINGIEZ.mjs → chunk-QEEPRBIS.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-LW4HDHXT.mjs → chunk-RI4Y55ZF.mjs} +69 -2
- package/dist/auto-instrumentations/hook.mjs +124 -3
- package/dist/auto-instrumentations/index.cjs +39 -1
- package/dist/auto-instrumentations/index.d.mts +3 -1
- package/dist/auto-instrumentations/index.d.ts +3 -1
- package/dist/auto-instrumentations/index.mjs +3 -1
- package/dist/browser.d.mts +2124 -2
- package/dist/browser.d.ts +2124 -2
- package/dist/browser.js +994 -10
- package/dist/browser.mjs +994 -10
- package/dist/{chunk-AJT4FR25.mjs → chunk-4QSAHP7D.mjs} +818 -5
- package/dist/{chunk-4AQGZS6X.js → chunk-AW4QECG5.js} +47 -4
- package/dist/{chunk-V32LW47Z.js → chunk-BTRLPQG5.js} +1663 -850
- package/dist/{chunk-CE3BLB2L.mjs → chunk-WV6QZI2W.mjs} +46 -3
- package/dist/cli.js +923 -8
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +994 -10
- package/dist/edge-light.mjs +994 -10
- package/dist/index.d.mts +2124 -2
- package/dist/index.d.ts +2124 -2
- package/dist/index.js +581 -447
- package/dist/index.mjs +136 -2
- package/dist/instrumentation/index.d.mts +434 -0
- package/dist/instrumentation/index.d.ts +434 -0
- package/dist/instrumentation/index.js +859 -7
- package/dist/instrumentation/index.mjs +859 -7
- package/dist/vitest-evals-reporter.js +16 -16
- package/dist/vitest-evals-reporter.mjs +2 -2
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +994 -10
- package/dist/workerd.mjs +994 -10
- package/package.json +1 -1
- package/util/dist/index.d.mts +326 -0
- package/util/dist/index.d.ts +326 -0
|
@@ -13,12 +13,14 @@ 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,
|
|
@@ -40,7 +42,7 @@ import {
|
|
|
40
42
|
smithyCoreChannels,
|
|
41
43
|
strandsAgentSDKChannels,
|
|
42
44
|
voyageAIChannels
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WV6QZI2W.mjs";
|
|
44
46
|
|
|
45
47
|
// src/node/apply-auto-instrumentation.ts
|
|
46
48
|
import { register } from "node:module";
|
|
@@ -1562,6 +1564,26 @@ var googleADKConfigs = [
|
|
|
1562
1564
|
}
|
|
1563
1565
|
];
|
|
1564
1566
|
|
|
1567
|
+
// src/auto-instrumentations/configs/google-generative-ai.ts
|
|
1568
|
+
var googleGenerativeAIConfigs = [
|
|
1569
|
+
"dist/index.js",
|
|
1570
|
+
"dist/index.mjs"
|
|
1571
|
+
].flatMap(
|
|
1572
|
+
(filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel]) => ({
|
|
1573
|
+
channelName: channel.channelName,
|
|
1574
|
+
module: {
|
|
1575
|
+
name: "@google/generative-ai",
|
|
1576
|
+
versionRange: ">=0.24.0 <0.25.0",
|
|
1577
|
+
filePath
|
|
1578
|
+
},
|
|
1579
|
+
functionQuery: {
|
|
1580
|
+
className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
|
|
1581
|
+
methodName,
|
|
1582
|
+
kind: "Async"
|
|
1583
|
+
}
|
|
1584
|
+
}))
|
|
1585
|
+
);
|
|
1586
|
+
|
|
1565
1587
|
// src/auto-instrumentations/configs/google-genai.ts
|
|
1566
1588
|
var googleGenAIConfigs = [
|
|
1567
1589
|
// Models.generateContentInternal - The actual class method (Node.js entry point)
|
|
@@ -2750,6 +2772,41 @@ var strandsAgentSDKConfigs = [
|
|
|
2750
2772
|
}
|
|
2751
2773
|
];
|
|
2752
2774
|
|
|
2775
|
+
// src/auto-instrumentations/configs/elevenlabs.ts
|
|
2776
|
+
var elevenLabsConfigs = [
|
|
2777
|
+
...[
|
|
2778
|
+
"convert",
|
|
2779
|
+
"stream",
|
|
2780
|
+
"convertWithTimestamps",
|
|
2781
|
+
"streamWithTimestamps"
|
|
2782
|
+
].map((methodName) => ({
|
|
2783
|
+
channelName: elevenLabsChannels[methodName].channelName,
|
|
2784
|
+
module: {
|
|
2785
|
+
name: "@elevenlabs/elevenlabs-js",
|
|
2786
|
+
versionRange: ">=2.67.0 <3.0.0",
|
|
2787
|
+
filePath: "api/resources/textToSpeech/client/Client.js"
|
|
2788
|
+
},
|
|
2789
|
+
functionQuery: {
|
|
2790
|
+
className: "TextToSpeechClient",
|
|
2791
|
+
methodName,
|
|
2792
|
+
kind: "Async"
|
|
2793
|
+
}
|
|
2794
|
+
})),
|
|
2795
|
+
{
|
|
2796
|
+
channelName: elevenLabsChannels.transcribe.channelName,
|
|
2797
|
+
module: {
|
|
2798
|
+
name: "@elevenlabs/elevenlabs-js",
|
|
2799
|
+
versionRange: ">=2.67.0 <3.0.0",
|
|
2800
|
+
filePath: "api/resources/speechToText/client/Client.js"
|
|
2801
|
+
},
|
|
2802
|
+
functionQuery: {
|
|
2803
|
+
className: "SpeechToTextClient",
|
|
2804
|
+
methodName: "convert",
|
|
2805
|
+
kind: "Async"
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
];
|
|
2809
|
+
|
|
2753
2810
|
// src/auto-instrumentations/configs/voyageai.ts
|
|
2754
2811
|
var GENERATED_CLIENT_MODULES = [
|
|
2755
2812
|
"dist/cjs/Client.js",
|
|
@@ -2834,6 +2891,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
2834
2891
|
integrations: ["openAIAgents"],
|
|
2835
2892
|
configs: openAIAgentsCoreConfigs
|
|
2836
2893
|
},
|
|
2894
|
+
{
|
|
2895
|
+
integrations: ["googleGenerativeAI"],
|
|
2896
|
+
configs: googleGenerativeAIConfigs
|
|
2897
|
+
},
|
|
2837
2898
|
{
|
|
2838
2899
|
integrations: ["google", "googleGenAI"],
|
|
2839
2900
|
configs: googleGenAIConfigs
|
|
@@ -2877,6 +2938,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
2877
2938
|
integrations: ["flue"],
|
|
2878
2939
|
configs: flueConfigs
|
|
2879
2940
|
},
|
|
2941
|
+
{
|
|
2942
|
+
integrations: ["elevenlabs"],
|
|
2943
|
+
configs: elevenLabsConfigs
|
|
2944
|
+
},
|
|
2880
2945
|
{
|
|
2881
2946
|
integrations: ["voyageai"],
|
|
2882
2947
|
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
|
|
@@ -1189,6 +1189,8 @@ var envIntegrationAliases = {
|
|
|
1189
1189
|
"openai-agents-core": "openAIAgents",
|
|
1190
1190
|
openaiagentscore: "openAIAgents",
|
|
1191
1191
|
google: "google",
|
|
1192
|
+
"google-generative-ai": "googleGenerativeAI",
|
|
1193
|
+
googlegenerativeai: "googleGenerativeAI",
|
|
1192
1194
|
"google-genai": "googleGenAI",
|
|
1193
1195
|
googlegenai: "googleGenAI",
|
|
1194
1196
|
huggingface: "huggingface",
|
|
@@ -1222,7 +1224,9 @@ var envIntegrationAliases = {
|
|
|
1222
1224
|
langsmith: "langsmith",
|
|
1223
1225
|
voyage: "voyageai",
|
|
1224
1226
|
"voyage-ai": "voyageai",
|
|
1225
|
-
voyageai: "voyageai"
|
|
1227
|
+
voyageai: "voyageai",
|
|
1228
|
+
elevenlabs: "elevenlabs",
|
|
1229
|
+
"@elevenlabs/elevenlabs-js": "elevenlabs"
|
|
1226
1230
|
};
|
|
1227
1231
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
1228
1232
|
const integrations = {};
|
|
@@ -1358,6 +1362,7 @@ var INSTRUMENTATION_NAMES = {
|
|
|
1358
1362
|
GENKIT: "genkit",
|
|
1359
1363
|
GITHUB_COPILOT: "github-copilot",
|
|
1360
1364
|
GOOGLE_ADK: "google-adk",
|
|
1365
|
+
GOOGLE_GENERATIVE_AI: "google-generative-ai",
|
|
1361
1366
|
GOOGLE_GENAI: "google-genai",
|
|
1362
1367
|
GROQ: "groq",
|
|
1363
1368
|
HUGGINGFACE: "huggingface",
|
|
@@ -1373,7 +1378,8 @@ var INSTRUMENTATION_NAMES = {
|
|
|
1373
1378
|
OPENROUTER_AGENT: "openrouter-agent",
|
|
1374
1379
|
PI_CODING_AGENT: "pi-coding-agent",
|
|
1375
1380
|
STRANDS_AGENT_SDK: "strands-agent-sdk",
|
|
1376
|
-
VOYAGEAI: "voyageai"
|
|
1381
|
+
VOYAGEAI: "voyageai",
|
|
1382
|
+
ELEVENLABS: "elevenlabs"
|
|
1377
1383
|
};
|
|
1378
1384
|
|
|
1379
1385
|
// src/instrumentation/plugins/ai-sdk-channels.ts
|
|
@@ -3243,6 +3249,40 @@ var googleADKConfigs = [
|
|
|
3243
3249
|
}
|
|
3244
3250
|
];
|
|
3245
3251
|
|
|
3252
|
+
// src/instrumentation/plugins/google-generative-ai-channels.ts
|
|
3253
|
+
var googleGenerativeAIChannels = defineChannels(
|
|
3254
|
+
"@google/generative-ai",
|
|
3255
|
+
{
|
|
3256
|
+
generateContent: channel({ channelName: "GenerativeModel.generateContent", kind: "async" }),
|
|
3257
|
+
generateContentStream: channel({ channelName: "GenerativeModel.generateContentStream", kind: "async" }),
|
|
3258
|
+
embedContent: channel({ channelName: "GenerativeModel.embedContent", kind: "async" }),
|
|
3259
|
+
batchEmbedContents: channel({ channelName: "GenerativeModel.batchEmbedContents", kind: "async" }),
|
|
3260
|
+
sendMessage: channel({ channelName: "ChatSession.sendMessage", kind: "async" }),
|
|
3261
|
+
sendMessageStream: channel({ channelName: "ChatSession.sendMessageStream", kind: "async" })
|
|
3262
|
+
},
|
|
3263
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.GOOGLE_GENERATIVE_AI }
|
|
3264
|
+
);
|
|
3265
|
+
|
|
3266
|
+
// src/auto-instrumentations/configs/google-generative-ai.ts
|
|
3267
|
+
var googleGenerativeAIConfigs = [
|
|
3268
|
+
"dist/index.js",
|
|
3269
|
+
"dist/index.mjs"
|
|
3270
|
+
].flatMap(
|
|
3271
|
+
(filePath) => Object.entries(googleGenerativeAIChannels).map(([methodName, channel2]) => ({
|
|
3272
|
+
channelName: channel2.channelName,
|
|
3273
|
+
module: {
|
|
3274
|
+
name: "@google/generative-ai",
|
|
3275
|
+
versionRange: ">=0.24.0 <0.25.0",
|
|
3276
|
+
filePath
|
|
3277
|
+
},
|
|
3278
|
+
functionQuery: {
|
|
3279
|
+
className: methodName.startsWith("sendMessage") ? "ChatSession" : "GenerativeModel",
|
|
3280
|
+
methodName,
|
|
3281
|
+
kind: "Async"
|
|
3282
|
+
}
|
|
3283
|
+
}))
|
|
3284
|
+
);
|
|
3285
|
+
|
|
3246
3286
|
// src/instrumentation/plugins/google-genai-channels.ts
|
|
3247
3287
|
var googleGenAIChannels = defineChannels(
|
|
3248
3288
|
"@google/genai",
|
|
@@ -4807,6 +4847,60 @@ var strandsAgentSDKConfigs = [
|
|
|
4807
4847
|
}
|
|
4808
4848
|
];
|
|
4809
4849
|
|
|
4850
|
+
// src/instrumentation/plugins/elevenlabs-channels.ts
|
|
4851
|
+
var elevenLabsChannels = defineChannels(
|
|
4852
|
+
"@elevenlabs/elevenlabs-js",
|
|
4853
|
+
{
|
|
4854
|
+
convert: channel({
|
|
4855
|
+
channelName: "textToSpeech.convert",
|
|
4856
|
+
kind: "async"
|
|
4857
|
+
}),
|
|
4858
|
+
stream: channel({
|
|
4859
|
+
channelName: "textToSpeech.stream",
|
|
4860
|
+
kind: "async"
|
|
4861
|
+
}),
|
|
4862
|
+
convertWithTimestamps: channel({ channelName: "textToSpeech.convertWithTimestamps", kind: "async" }),
|
|
4863
|
+
streamWithTimestamps: channel({ channelName: "textToSpeech.streamWithTimestamps", kind: "async" }),
|
|
4864
|
+
transcribe: channel({ channelName: "speechToText.convert", kind: "async" })
|
|
4865
|
+
},
|
|
4866
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.ELEVENLABS }
|
|
4867
|
+
);
|
|
4868
|
+
|
|
4869
|
+
// src/auto-instrumentations/configs/elevenlabs.ts
|
|
4870
|
+
var elevenLabsConfigs = [
|
|
4871
|
+
...[
|
|
4872
|
+
"convert",
|
|
4873
|
+
"stream",
|
|
4874
|
+
"convertWithTimestamps",
|
|
4875
|
+
"streamWithTimestamps"
|
|
4876
|
+
].map((methodName) => ({
|
|
4877
|
+
channelName: elevenLabsChannels[methodName].channelName,
|
|
4878
|
+
module: {
|
|
4879
|
+
name: "@elevenlabs/elevenlabs-js",
|
|
4880
|
+
versionRange: ">=2.67.0 <3.0.0",
|
|
4881
|
+
filePath: "api/resources/textToSpeech/client/Client.js"
|
|
4882
|
+
},
|
|
4883
|
+
functionQuery: {
|
|
4884
|
+
className: "TextToSpeechClient",
|
|
4885
|
+
methodName,
|
|
4886
|
+
kind: "Async"
|
|
4887
|
+
}
|
|
4888
|
+
})),
|
|
4889
|
+
{
|
|
4890
|
+
channelName: elevenLabsChannels.transcribe.channelName,
|
|
4891
|
+
module: {
|
|
4892
|
+
name: "@elevenlabs/elevenlabs-js",
|
|
4893
|
+
versionRange: ">=2.67.0 <3.0.0",
|
|
4894
|
+
filePath: "api/resources/speechToText/client/Client.js"
|
|
4895
|
+
},
|
|
4896
|
+
functionQuery: {
|
|
4897
|
+
className: "SpeechToTextClient",
|
|
4898
|
+
methodName: "convert",
|
|
4899
|
+
kind: "Async"
|
|
4900
|
+
}
|
|
4901
|
+
}
|
|
4902
|
+
];
|
|
4903
|
+
|
|
4810
4904
|
// src/instrumentation/plugins/voyageai-channels.ts
|
|
4811
4905
|
var voyageAIChannels = defineChannels(
|
|
4812
4906
|
"voyageai",
|
|
@@ -4915,6 +5009,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
4915
5009
|
integrations: ["openAIAgents"],
|
|
4916
5010
|
configs: openAIAgentsCoreConfigs
|
|
4917
5011
|
},
|
|
5012
|
+
{
|
|
5013
|
+
integrations: ["googleGenerativeAI"],
|
|
5014
|
+
configs: googleGenerativeAIConfigs
|
|
5015
|
+
},
|
|
4918
5016
|
{
|
|
4919
5017
|
integrations: ["google", "googleGenAI"],
|
|
4920
5018
|
configs: googleGenAIConfigs
|
|
@@ -4958,6 +5056,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
4958
5056
|
integrations: ["flue"],
|
|
4959
5057
|
configs: flueConfigs
|
|
4960
5058
|
},
|
|
5059
|
+
{
|
|
5060
|
+
integrations: ["elevenlabs"],
|
|
5061
|
+
configs: elevenLabsConfigs
|
|
5062
|
+
},
|
|
4961
5063
|
{
|
|
4962
5064
|
integrations: ["voyageai"],
|
|
4963
5065
|
configs: voyageAIConfigs
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webpackPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-QEEPRBIS.mjs";
|
|
4
|
+
import "../chunk-RI4Y55ZF.mjs";
|
|
5
|
+
import "../chunk-AFND2U7E.mjs";
|
|
6
6
|
import "../chunk-I55G56ZL.mjs";
|
|
7
7
|
import "../chunk-JPUFNW7X.mjs";
|
|
8
8
|
import "../chunk-P5YLNB2A.mjs";
|
|
@@ -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
|