braintrust 3.23.0 → 3.24.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 +6 -0
- package/dev/dist/index.d.ts +6 -0
- package/dev/dist/index.js +902 -588
- package/dev/dist/index.mjs +320 -6
- package/dist/apply-auto-instrumentation.js +211 -189
- package/dist/apply-auto-instrumentation.mjs +23 -1
- package/dist/auto-instrumentations/bundler/esbuild.cjs +40 -0
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +40 -0
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +40 -0
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +40 -0
- package/dist/auto-instrumentations/bundler/vite.d.mts +1 -1
- package/dist/auto-instrumentations/bundler/vite.d.ts +1 -1
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +40 -0
- package/dist/auto-instrumentations/bundler/webpack.cjs +40 -0
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-KIMLYPRW.mjs → chunk-BURMPO7L.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-YXLNSAMJ.mjs → chunk-F43DNLPD.mjs} +40 -0
- package/dist/auto-instrumentations/{chunk-EXY7QCJD.mjs → chunk-GSZHTAQW.mjs} +1 -1
- package/dist/auto-instrumentations/hook.mjs +150 -1
- package/dist/auto-instrumentations/index.cjs +40 -0
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +131 -9
- package/dist/browser.d.ts +131 -9
- package/dist/browser.js +703 -67
- package/dist/browser.mjs +703 -67
- package/dist/{chunk-CDIKAHDZ.js → chunk-7AUY2XWX.js} +21 -1
- package/dist/{chunk-36IPYKMG.mjs → chunk-7F6GCRHH.mjs} +20 -0
- package/dist/{chunk-FZWPFCVE.js → chunk-SU6EHKJV.js} +1085 -801
- package/dist/{chunk-IXL4PMY4.mjs → chunk-XE5FS7QY.mjs} +291 -7
- package/dist/cli.js +328 -10
- package/dist/edge-light.js +703 -67
- package/dist/edge-light.mjs +703 -67
- package/dist/index.d.mts +131 -9
- package/dist/index.d.ts +131 -9
- package/dist/index.js +891 -532
- package/dist/index.mjs +423 -64
- package/dist/instrumentation/index.d.mts +130 -9
- package/dist/instrumentation/index.d.ts +130 -9
- package/dist/instrumentation/index.js +601 -67
- package/dist/instrumentation/index.mjs +601 -67
- package/dist/vitest-evals-reporter.js +17 -16
- package/dist/vitest-evals-reporter.mjs +3 -2
- package/dist/workerd.js +703 -67
- package/dist/workerd.mjs +703 -67
- package/package.json +3 -3
- package/util/dist/index.js +4 -0
- package/util/dist/index.mjs +4 -0
package/dev/dist/index.d.mts
CHANGED
|
@@ -11739,6 +11739,11 @@ type InferParameters<T extends EvalParameters> = {
|
|
|
11739
11739
|
[K in keyof T]: InferParameterValue<T[K]>;
|
|
11740
11740
|
};
|
|
11741
11741
|
|
|
11742
|
+
type SpanOriginEnvironment = {
|
|
11743
|
+
type?: string;
|
|
11744
|
+
name?: string;
|
|
11745
|
+
};
|
|
11746
|
+
|
|
11742
11747
|
/// <reference lib="dom" />
|
|
11743
11748
|
|
|
11744
11749
|
declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
|
|
@@ -12133,6 +12138,7 @@ declare class BraintrustState {
|
|
|
12133
12138
|
private _idGenerator;
|
|
12134
12139
|
private _contextManager;
|
|
12135
12140
|
private _otelFlushCallback;
|
|
12141
|
+
spanOriginEnvironment: SpanOriginEnvironment | undefined;
|
|
12136
12142
|
constructor(loginParams: LoginOptions);
|
|
12137
12143
|
resetLoginInfo(): void;
|
|
12138
12144
|
resetIdGenState(): void;
|
package/dev/dist/index.d.ts
CHANGED
|
@@ -11739,6 +11739,11 @@ type InferParameters<T extends EvalParameters> = {
|
|
|
11739
11739
|
[K in keyof T]: InferParameterValue<T[K]>;
|
|
11740
11740
|
};
|
|
11741
11741
|
|
|
11742
|
+
type SpanOriginEnvironment = {
|
|
11743
|
+
type?: string;
|
|
11744
|
+
name?: string;
|
|
11745
|
+
};
|
|
11746
|
+
|
|
11742
11747
|
/// <reference lib="dom" />
|
|
11743
11748
|
|
|
11744
11749
|
declare const RESET_CONTEXT_MANAGER_STATE: unique symbol;
|
|
@@ -12133,6 +12138,7 @@ declare class BraintrustState {
|
|
|
12133
12138
|
private _idGenerator;
|
|
12134
12139
|
private _contextManager;
|
|
12135
12140
|
private _otelFlushCallback;
|
|
12141
|
+
spanOriginEnvironment: SpanOriginEnvironment | undefined;
|
|
12136
12142
|
constructor(loginParams: LoginOptions);
|
|
12137
12143
|
resetLoginInfo(): void;
|
|
12138
12144
|
resetIdGenState(): void;
|