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.
@@ -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;
@@ -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;