braintrust 3.27.0 → 3.28.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 +519 -186
- package/dev/dist/index.d.ts +519 -186
- package/dev/dist/index.js +1837 -1009
- package/dev/dist/index.mjs +1172 -344
- package/dist/apply-auto-instrumentation.js +262 -210
- package/dist/apply-auto-instrumentation.mjs +54 -2
- package/dist/auto-instrumentations/bundler/esbuild.cjs +81 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +81 -2
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +81 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +81 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +81 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +81 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-XEYKUBLY.mjs → chunk-26PKVUKB.mjs} +80 -2
- package/dist/auto-instrumentations/{chunk-BW33ULMW.mjs → chunk-HD35AM3M.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-ZNHTSSGI.mjs → chunk-NP7V4XB2.mjs} +2 -1
- package/dist/auto-instrumentations/hook.mjs +236 -30
- package/dist/auto-instrumentations/index.cjs +2 -1
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +628 -53
- package/dist/browser.d.ts +628 -53
- package/dist/browser.js +2301 -284
- package/dist/browser.mjs +2301 -284
- package/dist/{chunk-MF7NU6BT.js → chunk-BBE7SNRV.js} +34 -4
- package/dist/{chunk-QRHGVBKU.js → chunk-OBBWQW6K.js} +1799 -1023
- package/dist/{chunk-YKD22IMR.mjs → chunk-UPFNQCGB.mjs} +966 -190
- package/dist/{chunk-CZM5JIQL.mjs → chunk-ZHUHZWFY.mjs} +33 -3
- package/dist/cli.js +1224 -398
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2301 -284
- package/dist/edge-light.mjs +2301 -284
- package/dist/index.d.mts +1212 -637
- package/dist/index.d.ts +1212 -637
- package/dist/index.js +1880 -590
- package/dist/index.mjs +1450 -160
- package/dist/instrumentation/index.d.mts +190 -6
- package/dist/instrumentation/index.d.ts +190 -6
- package/dist/instrumentation/index.js +823 -116
- package/dist/instrumentation/index.mjs +823 -116
- 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 +2301 -284
- package/dist/workerd.mjs +2301 -284
- package/package.json +2 -3
- package/util/dist/index.d.mts +1545 -100
- package/util/dist/index.d.ts +1545 -100
|
@@ -718,12 +718,13 @@ var INSTRUMENTATION_NAMES = {
|
|
|
718
718
|
OPENROUTER: "openrouter",
|
|
719
719
|
OPENROUTER_AGENT: "openrouter-agent",
|
|
720
720
|
PI_CODING_AGENT: "pi-coding-agent",
|
|
721
|
-
STRANDS_AGENT_SDK: "strands-agent-sdk"
|
|
721
|
+
STRANDS_AGENT_SDK: "strands-agent-sdk",
|
|
722
|
+
VOYAGEAI: "voyageai"
|
|
722
723
|
};
|
|
723
724
|
var INTERNAL_SPAN_INSTRUMENTATION_NAME = /* @__PURE__ */ Symbol.for(
|
|
724
725
|
"braintrust.spanInstrumentationName"
|
|
725
726
|
);
|
|
726
|
-
var SDK_VERSION = true ? "3.
|
|
727
|
+
var SDK_VERSION = true ? "3.28.0" : "0.0.0";
|
|
727
728
|
function withSpanInstrumentationName(args, instrumentationName) {
|
|
728
729
|
return {
|
|
729
730
|
...args,
|
|
@@ -1565,6 +1566,30 @@ var strandsAgentSDKChannels = defineChannels(
|
|
|
1565
1566
|
{ instrumentationName: INSTRUMENTATION_NAMES.STRANDS_AGENT_SDK }
|
|
1566
1567
|
);
|
|
1567
1568
|
|
|
1569
|
+
// src/instrumentation/plugins/voyageai-channels.ts
|
|
1570
|
+
var voyageAIChannels = defineChannels(
|
|
1571
|
+
"voyageai",
|
|
1572
|
+
{
|
|
1573
|
+
embed: channel({
|
|
1574
|
+
channelName: "embed",
|
|
1575
|
+
kind: "async"
|
|
1576
|
+
}),
|
|
1577
|
+
multimodalEmbed: channel({
|
|
1578
|
+
channelName: "multimodalEmbed",
|
|
1579
|
+
kind: "async"
|
|
1580
|
+
}),
|
|
1581
|
+
rerank: channel({
|
|
1582
|
+
channelName: "rerank",
|
|
1583
|
+
kind: "async"
|
|
1584
|
+
}),
|
|
1585
|
+
contextualizedEmbed: channel({
|
|
1586
|
+
channelName: "contextualizedEmbed",
|
|
1587
|
+
kind: "async"
|
|
1588
|
+
})
|
|
1589
|
+
},
|
|
1590
|
+
{ instrumentationName: INSTRUMENTATION_NAMES.VOYAGEAI }
|
|
1591
|
+
);
|
|
1592
|
+
|
|
1568
1593
|
// src/instrumentation/plugins/cloudflare-agents-channels.ts
|
|
1569
1594
|
var cloudflareAgentsChannels = defineChannels(
|
|
1570
1595
|
"agents",
|
|
@@ -1649,7 +1674,10 @@ var envIntegrationAliases = {
|
|
|
1649
1674
|
"langchain-js": "langchain",
|
|
1650
1675
|
"@langchain": "langchain",
|
|
1651
1676
|
langgraph: "langgraph",
|
|
1652
|
-
langsmith: "langsmith"
|
|
1677
|
+
langsmith: "langsmith",
|
|
1678
|
+
voyage: "voyageai",
|
|
1679
|
+
"voyage-ai": "voyageai",
|
|
1680
|
+
voyageai: "voyageai"
|
|
1653
1681
|
};
|
|
1654
1682
|
function getDefaultInstrumentationIntegrations() {
|
|
1655
1683
|
return {
|
|
@@ -1684,6 +1712,7 @@ function getDefaultInstrumentationIntegrations() {
|
|
|
1684
1712
|
langchain: true,
|
|
1685
1713
|
langgraph: true,
|
|
1686
1714
|
langsmith: true,
|
|
1715
|
+
voyageai: true,
|
|
1687
1716
|
piCodingAgent: true,
|
|
1688
1717
|
strandsAgentSDK: true,
|
|
1689
1718
|
cloudflareAgents: true
|
|
@@ -1981,6 +2010,7 @@ export {
|
|
|
1981
2010
|
langSmithChannels,
|
|
1982
2011
|
piCodingAgentChannels,
|
|
1983
2012
|
strandsAgentSDKChannels,
|
|
2013
|
+
voyageAIChannels,
|
|
1984
2014
|
cloudflareAIChatChannels,
|
|
1985
2015
|
cloudflareAgentsChannels,
|
|
1986
2016
|
getDefaultInstrumentationIntegrations,
|