braintrust 0.0.207 → 0.0.209
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 +10 -0
- package/dev/dist/index.d.ts +10 -0
- package/dev/dist/index.js +2975 -2712
- package/dev/dist/index.mjs +3366 -3103
- package/dist/browser.d.mts +2 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +5 -2
- package/dist/browser.mjs +5 -2
- package/dist/cli.js +6 -3
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dev/dist/index.d.mts
CHANGED
|
@@ -199,6 +199,8 @@ type StartSpanArgs = {
|
|
|
199
199
|
parent?: string;
|
|
200
200
|
event?: StartSpanEventArgs;
|
|
201
201
|
propagatedEvent?: StartSpanEventArgs;
|
|
202
|
+
spanId?: string;
|
|
203
|
+
parentSpanIds?: ParentSpanIds | MultiParentSpanIds;
|
|
202
204
|
};
|
|
203
205
|
type EndSpanArgs = {
|
|
204
206
|
endTime?: number;
|
|
@@ -487,6 +489,14 @@ interface LogOptions<IsAsyncFlush> {
|
|
|
487
489
|
computeMetadataArgs?: Record<string, any>;
|
|
488
490
|
}
|
|
489
491
|
type PromiseUnless<B, R> = B extends true ? R : Promise<Awaited<R>>;
|
|
492
|
+
interface ParentSpanIds {
|
|
493
|
+
spanId: string;
|
|
494
|
+
rootSpanId: string;
|
|
495
|
+
}
|
|
496
|
+
interface MultiParentSpanIds {
|
|
497
|
+
parentSpanIds: string[];
|
|
498
|
+
rootSpanId: string;
|
|
499
|
+
}
|
|
490
500
|
declare class Logger<IsAsyncFlush extends boolean> implements Exportable {
|
|
491
501
|
private state;
|
|
492
502
|
private lazyMetadata;
|
package/dev/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,8 @@ type StartSpanArgs = {
|
|
|
199
199
|
parent?: string;
|
|
200
200
|
event?: StartSpanEventArgs;
|
|
201
201
|
propagatedEvent?: StartSpanEventArgs;
|
|
202
|
+
spanId?: string;
|
|
203
|
+
parentSpanIds?: ParentSpanIds | MultiParentSpanIds;
|
|
202
204
|
};
|
|
203
205
|
type EndSpanArgs = {
|
|
204
206
|
endTime?: number;
|
|
@@ -487,6 +489,14 @@ interface LogOptions<IsAsyncFlush> {
|
|
|
487
489
|
computeMetadataArgs?: Record<string, any>;
|
|
488
490
|
}
|
|
489
491
|
type PromiseUnless<B, R> = B extends true ? R : Promise<Awaited<R>>;
|
|
492
|
+
interface ParentSpanIds {
|
|
493
|
+
spanId: string;
|
|
494
|
+
rootSpanId: string;
|
|
495
|
+
}
|
|
496
|
+
interface MultiParentSpanIds {
|
|
497
|
+
parentSpanIds: string[];
|
|
498
|
+
rootSpanId: string;
|
|
499
|
+
}
|
|
490
500
|
declare class Logger<IsAsyncFlush extends boolean> implements Exportable {
|
|
491
501
|
private state;
|
|
492
502
|
private lazyMetadata;
|