@cloudflare/workers-types 5.20261118.1 → 5.20261119.1

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.
@@ -4560,6 +4560,11 @@ interface Tracing {
4560
4560
  ): T;
4561
4561
  Span: typeof Span;
4562
4562
  }
4563
+ interface TracingSpanLink {
4564
+ context: TracingSpanContext;
4565
+ attributes?: Record<string, boolean | number | string | undefined>;
4566
+ droppedAttributesCount?: number;
4567
+ }
4563
4568
  declare abstract class Span {
4564
4569
  get isTraced(): boolean;
4565
4570
  spanContext(): TracingSpanContext;
@@ -4592,6 +4597,8 @@ declare abstract class Span {
4592
4597
  updateName(name: string): this;
4593
4598
  setStatus(status: TracingSpanStatus): this;
4594
4599
  end(): void;
4600
+ addLink(link: TracingSpanLink): this;
4601
+ addLinks(links: readonly TracingSpanLink[]): this;
4595
4602
  }
4596
4603
  type TracingSpanStatusCode = "unset" | "ok" | "error";
4597
4604
  interface TracingSpanStatus {
@@ -17807,6 +17814,22 @@ declare namespace TailStream {
17807
17814
  readonly type: "spanUpdate";
17808
17815
  readonly info: SpanUpdateInfo;
17809
17816
  }
17817
+ /** A causal relationship to a span, including spans in another trace. */
17818
+ interface SpanLink {
17819
+ readonly context: {
17820
+ readonly traceId: string;
17821
+ readonly spanId: string;
17822
+ readonly traceFlags: number;
17823
+ };
17824
+ readonly attributes: readonly Attribute[];
17825
+ /** Attributes dropped before this link was recorded. */
17826
+ readonly droppedAttributesCount: number;
17827
+ }
17828
+ /** Links added to the receiver identified by the event's spanContext. */
17829
+ interface SpanLinks {
17830
+ readonly type: "spanLinks";
17831
+ readonly links: readonly SpanLink[];
17832
+ }
17810
17833
  interface DiagnosticChannelEvent {
17811
17834
  readonly type: "diagnosticChannel";
17812
17835
  readonly channel: string;
@@ -17877,6 +17900,7 @@ declare namespace TailStream {
17877
17900
  | SpanOpen
17878
17901
  | SpanClose
17879
17902
  | SpanUpdate
17903
+ | SpanLinks
17880
17904
  | DiagnosticChannelEvent
17881
17905
  | Exception
17882
17906
  | Log
@@ -17920,6 +17944,7 @@ declare namespace TailStream {
17920
17944
  spanOpen?: TailEventHandler<SpanOpen>;
17921
17945
  spanClose?: TailEventHandler<SpanClose>;
17922
17946
  spanUpdate?: TailEventHandler<SpanUpdate>;
17947
+ spanLinks?: TailEventHandler<SpanLinks>;
17923
17948
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17924
17949
  exception?: TailEventHandler<Exception>;
17925
17950
  log?: TailEventHandler<Log>;
@@ -4566,6 +4566,11 @@ export interface Tracing {
4566
4566
  ): T;
4567
4567
  Span: typeof Span;
4568
4568
  }
4569
+ export interface TracingSpanLink {
4570
+ context: TracingSpanContext;
4571
+ attributes?: Record<string, boolean | number | string | undefined>;
4572
+ droppedAttributesCount?: number;
4573
+ }
4569
4574
  export declare abstract class Span {
4570
4575
  get isTraced(): boolean;
4571
4576
  spanContext(): TracingSpanContext;
@@ -4598,6 +4603,8 @@ export declare abstract class Span {
4598
4603
  updateName(name: string): this;
4599
4604
  setStatus(status: TracingSpanStatus): this;
4600
4605
  end(): void;
4606
+ addLink(link: TracingSpanLink): this;
4607
+ addLinks(links: readonly TracingSpanLink[]): this;
4601
4608
  }
4602
4609
  export type TracingSpanStatusCode = "unset" | "ok" | "error";
4603
4610
  export interface TracingSpanStatus {
@@ -17707,6 +17714,22 @@ export declare namespace TailStream {
17707
17714
  readonly type: "spanUpdate";
17708
17715
  readonly info: SpanUpdateInfo;
17709
17716
  }
17717
+ /** A causal relationship to a span, including spans in another trace. */
17718
+ interface SpanLink {
17719
+ readonly context: {
17720
+ readonly traceId: string;
17721
+ readonly spanId: string;
17722
+ readonly traceFlags: number;
17723
+ };
17724
+ readonly attributes: readonly Attribute[];
17725
+ /** Attributes dropped before this link was recorded. */
17726
+ readonly droppedAttributesCount: number;
17727
+ }
17728
+ /** Links added to the receiver identified by the event's spanContext. */
17729
+ interface SpanLinks {
17730
+ readonly type: "spanLinks";
17731
+ readonly links: readonly SpanLink[];
17732
+ }
17710
17733
  interface DiagnosticChannelEvent {
17711
17734
  readonly type: "diagnosticChannel";
17712
17735
  readonly channel: string;
@@ -17777,6 +17800,7 @@ export declare namespace TailStream {
17777
17800
  | SpanOpen
17778
17801
  | SpanClose
17779
17802
  | SpanUpdate
17803
+ | SpanLinks
17780
17804
  | DiagnosticChannelEvent
17781
17805
  | Exception
17782
17806
  | Log
@@ -17820,6 +17844,7 @@ export declare namespace TailStream {
17820
17844
  spanOpen?: TailEventHandler<SpanOpen>;
17821
17845
  spanClose?: TailEventHandler<SpanClose>;
17822
17846
  spanUpdate?: TailEventHandler<SpanUpdate>;
17847
+ spanLinks?: TailEventHandler<SpanLinks>;
17823
17848
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17824
17849
  exception?: TailEventHandler<Exception>;
17825
17850
  log?: TailEventHandler<Log>;
package/index.d.ts CHANGED
@@ -4193,6 +4193,11 @@ interface Tracing {
4193
4193
  ): T;
4194
4194
  Span: typeof Span;
4195
4195
  }
4196
+ interface TracingSpanLink {
4197
+ context: TracingSpanContext;
4198
+ attributes?: Record<string, boolean | number | string | undefined>;
4199
+ droppedAttributesCount?: number;
4200
+ }
4196
4201
  declare abstract class Span {
4197
4202
  get isTraced(): boolean;
4198
4203
  spanContext(): TracingSpanContext;
@@ -4225,6 +4230,8 @@ declare abstract class Span {
4225
4230
  updateName(name: string): this;
4226
4231
  setStatus(status: TracingSpanStatus): this;
4227
4232
  end(): void;
4233
+ addLink(link: TracingSpanLink): this;
4234
+ addLinks(links: readonly TracingSpanLink[]): this;
4228
4235
  }
4229
4236
  type TracingSpanStatusCode = "unset" | "ok" | "error";
4230
4237
  interface TracingSpanStatus {
@@ -17440,6 +17447,22 @@ declare namespace TailStream {
17440
17447
  readonly type: "spanUpdate";
17441
17448
  readonly info: SpanUpdateInfo;
17442
17449
  }
17450
+ /** A causal relationship to a span, including spans in another trace. */
17451
+ interface SpanLink {
17452
+ readonly context: {
17453
+ readonly traceId: string;
17454
+ readonly spanId: string;
17455
+ readonly traceFlags: number;
17456
+ };
17457
+ readonly attributes: readonly Attribute[];
17458
+ /** Attributes dropped before this link was recorded. */
17459
+ readonly droppedAttributesCount: number;
17460
+ }
17461
+ /** Links added to the receiver identified by the event's spanContext. */
17462
+ interface SpanLinks {
17463
+ readonly type: "spanLinks";
17464
+ readonly links: readonly SpanLink[];
17465
+ }
17443
17466
  interface DiagnosticChannelEvent {
17444
17467
  readonly type: "diagnosticChannel";
17445
17468
  readonly channel: string;
@@ -17510,6 +17533,7 @@ declare namespace TailStream {
17510
17533
  | SpanOpen
17511
17534
  | SpanClose
17512
17535
  | SpanUpdate
17536
+ | SpanLinks
17513
17537
  | DiagnosticChannelEvent
17514
17538
  | Exception
17515
17539
  | Log
@@ -17553,6 +17577,7 @@ declare namespace TailStream {
17553
17577
  spanOpen?: TailEventHandler<SpanOpen>;
17554
17578
  spanClose?: TailEventHandler<SpanClose>;
17555
17579
  spanUpdate?: TailEventHandler<SpanUpdate>;
17580
+ spanLinks?: TailEventHandler<SpanLinks>;
17556
17581
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17557
17582
  exception?: TailEventHandler<Exception>;
17558
17583
  log?: TailEventHandler<Log>;
package/index.ts CHANGED
@@ -4202,6 +4202,11 @@ export interface Tracing {
4202
4202
  ): T;
4203
4203
  Span: typeof Span;
4204
4204
  }
4205
+ export interface TracingSpanLink {
4206
+ context: TracingSpanContext;
4207
+ attributes?: Record<string, boolean | number | string | undefined>;
4208
+ droppedAttributesCount?: number;
4209
+ }
4205
4210
  export declare abstract class Span {
4206
4211
  get isTraced(): boolean;
4207
4212
  spanContext(): TracingSpanContext;
@@ -4234,6 +4239,8 @@ export declare abstract class Span {
4234
4239
  updateName(name: string): this;
4235
4240
  setStatus(status: TracingSpanStatus): this;
4236
4241
  end(): void;
4242
+ addLink(link: TracingSpanLink): this;
4243
+ addLinks(links: readonly TracingSpanLink[]): this;
4237
4244
  }
4238
4245
  export type TracingSpanStatusCode = "unset" | "ok" | "error";
4239
4246
  export interface TracingSpanStatus {
@@ -17343,6 +17350,22 @@ export declare namespace TailStream {
17343
17350
  readonly type: "spanUpdate";
17344
17351
  readonly info: SpanUpdateInfo;
17345
17352
  }
17353
+ /** A causal relationship to a span, including spans in another trace. */
17354
+ interface SpanLink {
17355
+ readonly context: {
17356
+ readonly traceId: string;
17357
+ readonly spanId: string;
17358
+ readonly traceFlags: number;
17359
+ };
17360
+ readonly attributes: readonly Attribute[];
17361
+ /** Attributes dropped before this link was recorded. */
17362
+ readonly droppedAttributesCount: number;
17363
+ }
17364
+ /** Links added to the receiver identified by the event's spanContext. */
17365
+ interface SpanLinks {
17366
+ readonly type: "spanLinks";
17367
+ readonly links: readonly SpanLink[];
17368
+ }
17346
17369
  interface DiagnosticChannelEvent {
17347
17370
  readonly type: "diagnosticChannel";
17348
17371
  readonly channel: string;
@@ -17413,6 +17436,7 @@ export declare namespace TailStream {
17413
17436
  | SpanOpen
17414
17437
  | SpanClose
17415
17438
  | SpanUpdate
17439
+ | SpanLinks
17416
17440
  | DiagnosticChannelEvent
17417
17441
  | Exception
17418
17442
  | Log
@@ -17456,6 +17480,7 @@ export declare namespace TailStream {
17456
17480
  spanOpen?: TailEventHandler<SpanOpen>;
17457
17481
  spanClose?: TailEventHandler<SpanClose>;
17458
17482
  spanUpdate?: TailEventHandler<SpanUpdate>;
17483
+ spanLinks?: TailEventHandler<SpanLinks>;
17459
17484
  diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
17460
17485
  exception?: TailEventHandler<Exception>;
17461
17486
  log?: TailEventHandler<Log>;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "5.20261118.1"
10
+ "version": "5.20261119.1"
11
11
  }