braintrust 3.22.0 → 3.23.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/README.md +43 -0
- package/dev/dist/index.d.mts +1 -1
- package/dev/dist/index.d.ts +1 -1
- package/dev/dist/index.js +1354 -652
- package/dev/dist/index.mjs +736 -34
- package/dist/apply-auto-instrumentation.js +222 -186
- package/dist/apply-auto-instrumentation.mjs +37 -1
- package/dist/auto-instrumentations/bundler/esbuild.cjs +53 -1
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +53 -1
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +53 -1
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +53 -1
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +53 -1
- package/dist/auto-instrumentations/bundler/webpack.cjs +53 -1
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-TKRPRPGD.mjs → chunk-EXY7QCJD.mjs} +5 -2
- package/dist/auto-instrumentations/{chunk-T6J4C7LX.mjs → chunk-KIMLYPRW.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-BRQX23KL.mjs → chunk-YXLNSAMJ.mjs} +51 -0
- package/dist/auto-instrumentations/hook.mjs +149 -20
- package/dist/auto-instrumentations/index.cjs +52 -0
- 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 +11 -13
- package/dist/browser.d.ts +11 -13
- package/dist/browser.js +1098 -203
- package/dist/browser.mjs +1098 -203
- package/dist/{chunk-KMGUTPB7.mjs → chunk-36IPYKMG.mjs} +20 -1
- package/dist/{chunk-BFGIH2ZJ.js → chunk-CDIKAHDZ.js} +21 -2
- package/dist/{chunk-MWVVR5LR.js → chunk-FZWPFCVE.js} +1506 -820
- package/dist/{chunk-ZG2O3XVF.mjs → chunk-IXL4PMY4.mjs} +719 -33
- package/dist/cli.js +737 -35
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +1098 -203
- package/dist/edge-light.mjs +1098 -203
- package/dist/index.d.mts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.js +786 -593
- package/dist/index.mjs +346 -153
- package/dist/instrumentation/index.d.mts +3 -11
- package/dist/instrumentation/index.d.ts +3 -11
- package/dist/instrumentation/index.js +788 -181
- package/dist/instrumentation/index.mjs +788 -181
- 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 +1098 -203
- package/dist/workerd.mjs +1098 -203
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
huggingFaceChannels,
|
|
16
16
|
isInstrumentationIntegrationDisabled,
|
|
17
17
|
langChainChannels,
|
|
18
|
+
langSmithChannels,
|
|
18
19
|
mistralChannels,
|
|
19
20
|
openAIAgentsCoreChannels,
|
|
20
21
|
openAIChannels,
|
|
@@ -28,7 +29,7 @@ import {
|
|
|
28
29
|
smithyClientChannels,
|
|
29
30
|
smithyCoreChannels,
|
|
30
31
|
strandsAgentSDKChannels
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-36IPYKMG.mjs";
|
|
32
33
|
|
|
33
34
|
// src/node/apply-auto-instrumentation-entry.ts
|
|
34
35
|
import * as diagnostics_channel from "node:diagnostics_channel";
|
|
@@ -1794,6 +1795,40 @@ var langchainConfigs = [
|
|
|
1794
1795
|
}
|
|
1795
1796
|
];
|
|
1796
1797
|
|
|
1798
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
1799
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
1800
|
+
var langSmithConfigs = [
|
|
1801
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
1802
|
+
{
|
|
1803
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
1804
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
1805
|
+
functionQuery: {
|
|
1806
|
+
className: "Client",
|
|
1807
|
+
methodName: "createRun",
|
|
1808
|
+
kind: "Async"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
1813
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
1814
|
+
functionQuery: {
|
|
1815
|
+
className: "Client",
|
|
1816
|
+
methodName: "updateRun",
|
|
1817
|
+
kind: "Async"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
1822
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
1823
|
+
functionQuery: {
|
|
1824
|
+
className: "Client",
|
|
1825
|
+
methodName: "batchIngestRuns",
|
|
1826
|
+
kind: "Async"
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
])
|
|
1830
|
+
];
|
|
1831
|
+
|
|
1797
1832
|
// src/auto-instrumentations/configs/mistral.ts
|
|
1798
1833
|
var mistralConfigs = [
|
|
1799
1834
|
{
|
|
@@ -2500,6 +2535,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
2500
2535
|
integrations: ["langchain", "langgraph"],
|
|
2501
2536
|
configs: langchainConfigs
|
|
2502
2537
|
},
|
|
2538
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
2503
2539
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
2504
2540
|
{
|
|
2505
2541
|
integrations: ["openrouterAgent"],
|
|
@@ -680,7 +680,8 @@ var envIntegrationAliases = {
|
|
|
680
680
|
langchain: "langchain",
|
|
681
681
|
"langchain-js": "langchain",
|
|
682
682
|
"@langchain": "langchain",
|
|
683
|
-
langgraph: "langgraph"
|
|
683
|
+
langgraph: "langgraph",
|
|
684
|
+
langsmith: "langsmith"
|
|
684
685
|
};
|
|
685
686
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
686
687
|
const integrations = {};
|
|
@@ -2898,6 +2899,56 @@ var langchainConfigs = [
|
|
|
2898
2899
|
}
|
|
2899
2900
|
];
|
|
2900
2901
|
|
|
2902
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2903
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2904
|
+
createRun: channel({
|
|
2905
|
+
channelName: "Client.createRun",
|
|
2906
|
+
kind: "async"
|
|
2907
|
+
}),
|
|
2908
|
+
updateRun: channel({
|
|
2909
|
+
channelName: "Client.updateRun",
|
|
2910
|
+
kind: "async"
|
|
2911
|
+
}),
|
|
2912
|
+
batchIngestRuns: channel({
|
|
2913
|
+
channelName: "Client.batchIngestRuns",
|
|
2914
|
+
kind: "async"
|
|
2915
|
+
})
|
|
2916
|
+
});
|
|
2917
|
+
|
|
2918
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2919
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2920
|
+
var langSmithConfigs = [
|
|
2921
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2922
|
+
{
|
|
2923
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2924
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2925
|
+
functionQuery: {
|
|
2926
|
+
className: "Client",
|
|
2927
|
+
methodName: "createRun",
|
|
2928
|
+
kind: "Async"
|
|
2929
|
+
}
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2933
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2934
|
+
functionQuery: {
|
|
2935
|
+
className: "Client",
|
|
2936
|
+
methodName: "updateRun",
|
|
2937
|
+
kind: "Async"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2942
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2943
|
+
functionQuery: {
|
|
2944
|
+
className: "Client",
|
|
2945
|
+
methodName: "batchIngestRuns",
|
|
2946
|
+
kind: "Async"
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
])
|
|
2950
|
+
];
|
|
2951
|
+
|
|
2901
2952
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2902
2953
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2903
2954
|
chatComplete: channel({
|
|
@@ -3801,6 +3852,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3801
3852
|
integrations: ["langchain", "langgraph"],
|
|
3802
3853
|
configs: langchainConfigs
|
|
3803
3854
|
},
|
|
3855
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3804
3856
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3805
3857
|
{
|
|
3806
3858
|
integrations: ["openrouterAgent"],
|
|
@@ -681,7 +681,8 @@ var envIntegrationAliases = {
|
|
|
681
681
|
langchain: "langchain",
|
|
682
682
|
"langchain-js": "langchain",
|
|
683
683
|
"@langchain": "langchain",
|
|
684
|
-
langgraph: "langgraph"
|
|
684
|
+
langgraph: "langgraph",
|
|
685
|
+
langsmith: "langsmith"
|
|
685
686
|
};
|
|
686
687
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
687
688
|
const integrations = {};
|
|
@@ -2899,6 +2900,56 @@ var langchainConfigs = [
|
|
|
2899
2900
|
}
|
|
2900
2901
|
];
|
|
2901
2902
|
|
|
2903
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2904
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2905
|
+
createRun: channel({
|
|
2906
|
+
channelName: "Client.createRun",
|
|
2907
|
+
kind: "async"
|
|
2908
|
+
}),
|
|
2909
|
+
updateRun: channel({
|
|
2910
|
+
channelName: "Client.updateRun",
|
|
2911
|
+
kind: "async"
|
|
2912
|
+
}),
|
|
2913
|
+
batchIngestRuns: channel({
|
|
2914
|
+
channelName: "Client.batchIngestRuns",
|
|
2915
|
+
kind: "async"
|
|
2916
|
+
})
|
|
2917
|
+
});
|
|
2918
|
+
|
|
2919
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2920
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2921
|
+
var langSmithConfigs = [
|
|
2922
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2923
|
+
{
|
|
2924
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2925
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2926
|
+
functionQuery: {
|
|
2927
|
+
className: "Client",
|
|
2928
|
+
methodName: "createRun",
|
|
2929
|
+
kind: "Async"
|
|
2930
|
+
}
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2934
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2935
|
+
functionQuery: {
|
|
2936
|
+
className: "Client",
|
|
2937
|
+
methodName: "updateRun",
|
|
2938
|
+
kind: "Async"
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2943
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2944
|
+
functionQuery: {
|
|
2945
|
+
className: "Client",
|
|
2946
|
+
methodName: "batchIngestRuns",
|
|
2947
|
+
kind: "Async"
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
])
|
|
2951
|
+
];
|
|
2952
|
+
|
|
2902
2953
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2903
2954
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2904
2955
|
chatComplete: channel({
|
|
@@ -3802,6 +3853,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3802
3853
|
integrations: ["langchain", "langgraph"],
|
|
3803
3854
|
configs: langchainConfigs
|
|
3804
3855
|
},
|
|
3856
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3805
3857
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3806
3858
|
{
|
|
3807
3859
|
integrations: ["openrouterAgent"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webpackPlugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KIMLYPRW.mjs";
|
|
4
|
+
import "../chunk-EXY7QCJD.mjs";
|
|
5
|
+
import "../chunk-YXLNSAMJ.mjs";
|
|
6
6
|
import "../chunk-M6DLIJ2Z.mjs";
|
|
7
7
|
|
|
8
8
|
// src/auto-instrumentations/bundler/next.ts
|
|
@@ -680,7 +680,8 @@ var envIntegrationAliases = {
|
|
|
680
680
|
langchain: "langchain",
|
|
681
681
|
"langchain-js": "langchain",
|
|
682
682
|
"@langchain": "langchain",
|
|
683
|
-
langgraph: "langgraph"
|
|
683
|
+
langgraph: "langgraph",
|
|
684
|
+
langsmith: "langsmith"
|
|
684
685
|
};
|
|
685
686
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
686
687
|
const integrations = {};
|
|
@@ -2898,6 +2899,56 @@ var langchainConfigs = [
|
|
|
2898
2899
|
}
|
|
2899
2900
|
];
|
|
2900
2901
|
|
|
2902
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2903
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2904
|
+
createRun: channel({
|
|
2905
|
+
channelName: "Client.createRun",
|
|
2906
|
+
kind: "async"
|
|
2907
|
+
}),
|
|
2908
|
+
updateRun: channel({
|
|
2909
|
+
channelName: "Client.updateRun",
|
|
2910
|
+
kind: "async"
|
|
2911
|
+
}),
|
|
2912
|
+
batchIngestRuns: channel({
|
|
2913
|
+
channelName: "Client.batchIngestRuns",
|
|
2914
|
+
kind: "async"
|
|
2915
|
+
})
|
|
2916
|
+
});
|
|
2917
|
+
|
|
2918
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2919
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2920
|
+
var langSmithConfigs = [
|
|
2921
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2922
|
+
{
|
|
2923
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2924
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2925
|
+
functionQuery: {
|
|
2926
|
+
className: "Client",
|
|
2927
|
+
methodName: "createRun",
|
|
2928
|
+
kind: "Async"
|
|
2929
|
+
}
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2933
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2934
|
+
functionQuery: {
|
|
2935
|
+
className: "Client",
|
|
2936
|
+
methodName: "updateRun",
|
|
2937
|
+
kind: "Async"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2942
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2943
|
+
functionQuery: {
|
|
2944
|
+
className: "Client",
|
|
2945
|
+
methodName: "batchIngestRuns",
|
|
2946
|
+
kind: "Async"
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
])
|
|
2950
|
+
];
|
|
2951
|
+
|
|
2901
2952
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2902
2953
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2903
2954
|
chatComplete: channel({
|
|
@@ -3801,6 +3852,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3801
3852
|
integrations: ["langchain", "langgraph"],
|
|
3802
3853
|
configs: langchainConfigs
|
|
3803
3854
|
},
|
|
3855
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3804
3856
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3805
3857
|
{
|
|
3806
3858
|
integrations: ["openrouterAgent"],
|
|
@@ -680,7 +680,8 @@ var envIntegrationAliases = {
|
|
|
680
680
|
langchain: "langchain",
|
|
681
681
|
"langchain-js": "langchain",
|
|
682
682
|
"@langchain": "langchain",
|
|
683
|
-
langgraph: "langgraph"
|
|
683
|
+
langgraph: "langgraph",
|
|
684
|
+
langsmith: "langsmith"
|
|
684
685
|
};
|
|
685
686
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
686
687
|
const integrations = {};
|
|
@@ -2898,6 +2899,56 @@ var langchainConfigs = [
|
|
|
2898
2899
|
}
|
|
2899
2900
|
];
|
|
2900
2901
|
|
|
2902
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2903
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2904
|
+
createRun: channel({
|
|
2905
|
+
channelName: "Client.createRun",
|
|
2906
|
+
kind: "async"
|
|
2907
|
+
}),
|
|
2908
|
+
updateRun: channel({
|
|
2909
|
+
channelName: "Client.updateRun",
|
|
2910
|
+
kind: "async"
|
|
2911
|
+
}),
|
|
2912
|
+
batchIngestRuns: channel({
|
|
2913
|
+
channelName: "Client.batchIngestRuns",
|
|
2914
|
+
kind: "async"
|
|
2915
|
+
})
|
|
2916
|
+
});
|
|
2917
|
+
|
|
2918
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2919
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2920
|
+
var langSmithConfigs = [
|
|
2921
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2922
|
+
{
|
|
2923
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2924
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2925
|
+
functionQuery: {
|
|
2926
|
+
className: "Client",
|
|
2927
|
+
methodName: "createRun",
|
|
2928
|
+
kind: "Async"
|
|
2929
|
+
}
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2933
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2934
|
+
functionQuery: {
|
|
2935
|
+
className: "Client",
|
|
2936
|
+
methodName: "updateRun",
|
|
2937
|
+
kind: "Async"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2942
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2943
|
+
functionQuery: {
|
|
2944
|
+
className: "Client",
|
|
2945
|
+
methodName: "batchIngestRuns",
|
|
2946
|
+
kind: "Async"
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
])
|
|
2950
|
+
];
|
|
2951
|
+
|
|
2901
2952
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2902
2953
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2903
2954
|
chatComplete: channel({
|
|
@@ -3801,6 +3852,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3801
3852
|
integrations: ["langchain", "langgraph"],
|
|
3802
3853
|
configs: langchainConfigs
|
|
3803
3854
|
},
|
|
3855
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3804
3856
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3805
3857
|
{
|
|
3806
3858
|
integrations: ["openrouterAgent"],
|
|
@@ -663,7 +663,8 @@ var envIntegrationAliases = {
|
|
|
663
663
|
langchain: "langchain",
|
|
664
664
|
"langchain-js": "langchain",
|
|
665
665
|
"@langchain": "langchain",
|
|
666
|
-
langgraph: "langgraph"
|
|
666
|
+
langgraph: "langgraph",
|
|
667
|
+
langsmith: "langsmith"
|
|
667
668
|
};
|
|
668
669
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
669
670
|
const integrations = {};
|
|
@@ -2881,6 +2882,56 @@ var langchainConfigs = [
|
|
|
2881
2882
|
}
|
|
2882
2883
|
];
|
|
2883
2884
|
|
|
2885
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2886
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2887
|
+
createRun: channel({
|
|
2888
|
+
channelName: "Client.createRun",
|
|
2889
|
+
kind: "async"
|
|
2890
|
+
}),
|
|
2891
|
+
updateRun: channel({
|
|
2892
|
+
channelName: "Client.updateRun",
|
|
2893
|
+
kind: "async"
|
|
2894
|
+
}),
|
|
2895
|
+
batchIngestRuns: channel({
|
|
2896
|
+
channelName: "Client.batchIngestRuns",
|
|
2897
|
+
kind: "async"
|
|
2898
|
+
})
|
|
2899
|
+
});
|
|
2900
|
+
|
|
2901
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2902
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2903
|
+
var langSmithConfigs = [
|
|
2904
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2905
|
+
{
|
|
2906
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2907
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2908
|
+
functionQuery: {
|
|
2909
|
+
className: "Client",
|
|
2910
|
+
methodName: "createRun",
|
|
2911
|
+
kind: "Async"
|
|
2912
|
+
}
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2916
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2917
|
+
functionQuery: {
|
|
2918
|
+
className: "Client",
|
|
2919
|
+
methodName: "updateRun",
|
|
2920
|
+
kind: "Async"
|
|
2921
|
+
}
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2925
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2926
|
+
functionQuery: {
|
|
2927
|
+
className: "Client",
|
|
2928
|
+
methodName: "batchIngestRuns",
|
|
2929
|
+
kind: "Async"
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
])
|
|
2933
|
+
];
|
|
2934
|
+
|
|
2884
2935
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2885
2936
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2886
2937
|
chatComplete: channel({
|
|
@@ -3784,6 +3835,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3784
3835
|
integrations: ["langchain", "langgraph"],
|
|
3785
3836
|
configs: langchainConfigs
|
|
3786
3837
|
},
|
|
3838
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3787
3839
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3788
3840
|
{
|
|
3789
3841
|
integrations: ["openrouterAgent"],
|
|
@@ -680,7 +680,8 @@ var envIntegrationAliases = {
|
|
|
680
680
|
langchain: "langchain",
|
|
681
681
|
"langchain-js": "langchain",
|
|
682
682
|
"@langchain": "langchain",
|
|
683
|
-
langgraph: "langgraph"
|
|
683
|
+
langgraph: "langgraph",
|
|
684
|
+
langsmith: "langsmith"
|
|
684
685
|
};
|
|
685
686
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
686
687
|
const integrations = {};
|
|
@@ -2898,6 +2899,56 @@ var langchainConfigs = [
|
|
|
2898
2899
|
}
|
|
2899
2900
|
];
|
|
2900
2901
|
|
|
2902
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2903
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2904
|
+
createRun: channel({
|
|
2905
|
+
channelName: "Client.createRun",
|
|
2906
|
+
kind: "async"
|
|
2907
|
+
}),
|
|
2908
|
+
updateRun: channel({
|
|
2909
|
+
channelName: "Client.updateRun",
|
|
2910
|
+
kind: "async"
|
|
2911
|
+
}),
|
|
2912
|
+
batchIngestRuns: channel({
|
|
2913
|
+
channelName: "Client.batchIngestRuns",
|
|
2914
|
+
kind: "async"
|
|
2915
|
+
})
|
|
2916
|
+
});
|
|
2917
|
+
|
|
2918
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2919
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2920
|
+
var langSmithConfigs = [
|
|
2921
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2922
|
+
{
|
|
2923
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2924
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2925
|
+
functionQuery: {
|
|
2926
|
+
className: "Client",
|
|
2927
|
+
methodName: "createRun",
|
|
2928
|
+
kind: "Async"
|
|
2929
|
+
}
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2933
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2934
|
+
functionQuery: {
|
|
2935
|
+
className: "Client",
|
|
2936
|
+
methodName: "updateRun",
|
|
2937
|
+
kind: "Async"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2942
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2943
|
+
functionQuery: {
|
|
2944
|
+
className: "Client",
|
|
2945
|
+
methodName: "batchIngestRuns",
|
|
2946
|
+
kind: "Async"
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
])
|
|
2950
|
+
];
|
|
2951
|
+
|
|
2901
2952
|
// src/instrumentation/plugins/mistral-channels.ts
|
|
2902
2953
|
var mistralChannels = defineChannels("@mistralai/mistralai", {
|
|
2903
2954
|
chatComplete: channel({
|
|
@@ -3801,6 +3852,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
3801
3852
|
integrations: ["langchain", "langgraph"],
|
|
3802
3853
|
configs: langchainConfigs
|
|
3803
3854
|
},
|
|
3855
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
3804
3856
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
3805
3857
|
{
|
|
3806
3858
|
integrations: ["openrouterAgent"],
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
braintrustWebpackPlugin,
|
|
3
3
|
webpackPlugin
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KIMLYPRW.mjs";
|
|
5
|
+
import "../chunk-EXY7QCJD.mjs";
|
|
6
|
+
import "../chunk-YXLNSAMJ.mjs";
|
|
7
7
|
import "../chunk-M6DLIJ2Z.mjs";
|
|
8
8
|
export {
|
|
9
9
|
braintrustWebpackPlugin,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
googleGenAIConfigs,
|
|
14
14
|
groqConfigs,
|
|
15
15
|
huggingFaceConfigs,
|
|
16
|
+
langSmithConfigs,
|
|
16
17
|
langchainConfigs,
|
|
17
18
|
mistralConfigs,
|
|
18
19
|
openAIAgentsCoreConfigs,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
openRouterConfigs,
|
|
22
23
|
openaiConfigs,
|
|
23
24
|
piCodingAgentConfigs
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YXLNSAMJ.mjs";
|
|
25
26
|
import {
|
|
26
27
|
applySpecialCasePatch,
|
|
27
28
|
create
|
|
@@ -95,7 +96,8 @@ var envIntegrationAliases = {
|
|
|
95
96
|
langchain: "langchain",
|
|
96
97
|
"langchain-js": "langchain",
|
|
97
98
|
"@langchain": "langchain",
|
|
98
|
-
langgraph: "langgraph"
|
|
99
|
+
langgraph: "langgraph",
|
|
100
|
+
langsmith: "langsmith"
|
|
99
101
|
};
|
|
100
102
|
function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
101
103
|
const integrations = {};
|
|
@@ -233,6 +235,7 @@ var defaultInstrumentationConfigGroups = [
|
|
|
233
235
|
integrations: ["langchain", "langgraph"],
|
|
234
236
|
configs: langchainConfigs
|
|
235
237
|
},
|
|
238
|
+
{ integrations: ["langsmith"], configs: langSmithConfigs },
|
|
236
239
|
{ integrations: ["openrouter"], configs: openRouterConfigs },
|
|
237
240
|
{
|
|
238
241
|
integrations: ["openrouterAgent"],
|
|
@@ -2952,6 +2952,56 @@ var langchainConfigs = [
|
|
|
2952
2952
|
}
|
|
2953
2953
|
];
|
|
2954
2954
|
|
|
2955
|
+
// src/instrumentation/plugins/langsmith-channels.ts
|
|
2956
|
+
var langSmithChannels = defineChannels("langsmith", {
|
|
2957
|
+
createRun: channel({
|
|
2958
|
+
channelName: "Client.createRun",
|
|
2959
|
+
kind: "async"
|
|
2960
|
+
}),
|
|
2961
|
+
updateRun: channel({
|
|
2962
|
+
channelName: "Client.updateRun",
|
|
2963
|
+
kind: "async"
|
|
2964
|
+
}),
|
|
2965
|
+
batchIngestRuns: channel({
|
|
2966
|
+
channelName: "Client.batchIngestRuns",
|
|
2967
|
+
kind: "async"
|
|
2968
|
+
})
|
|
2969
|
+
});
|
|
2970
|
+
|
|
2971
|
+
// src/auto-instrumentations/configs/langsmith.ts
|
|
2972
|
+
var versionRange = ">=0.3.30 <1.0.0";
|
|
2973
|
+
var langSmithConfigs = [
|
|
2974
|
+
...["dist/client.js", "dist/client.cjs"].flatMap((filePath) => [
|
|
2975
|
+
{
|
|
2976
|
+
channelName: langSmithChannels.createRun.channelName,
|
|
2977
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2978
|
+
functionQuery: {
|
|
2979
|
+
className: "Client",
|
|
2980
|
+
methodName: "createRun",
|
|
2981
|
+
kind: "Async"
|
|
2982
|
+
}
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
channelName: langSmithChannels.updateRun.channelName,
|
|
2986
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2987
|
+
functionQuery: {
|
|
2988
|
+
className: "Client",
|
|
2989
|
+
methodName: "updateRun",
|
|
2990
|
+
kind: "Async"
|
|
2991
|
+
}
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
channelName: langSmithChannels.batchIngestRuns.channelName,
|
|
2995
|
+
module: { name: "langsmith", versionRange, filePath },
|
|
2996
|
+
functionQuery: {
|
|
2997
|
+
className: "Client",
|
|
2998
|
+
methodName: "batchIngestRuns",
|
|
2999
|
+
kind: "Async"
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
])
|
|
3003
|
+
];
|
|
3004
|
+
|
|
2955
3005
|
// src/instrumentation/plugins/pi-coding-agent-channels.ts
|
|
2956
3006
|
var piCodingAgentChannels = defineChannels(
|
|
2957
3007
|
"@earendil-works/pi-coding-agent",
|
|
@@ -3003,5 +3053,6 @@ export {
|
|
|
3003
3053
|
genkitConfigs,
|
|
3004
3054
|
gitHubCopilotConfigs,
|
|
3005
3055
|
langchainConfigs,
|
|
3056
|
+
langSmithConfigs,
|
|
3006
3057
|
piCodingAgentConfigs
|
|
3007
3058
|
};
|