@cloudflare/workers-types 5.20260924.1 → 5.20260925.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.
- package/experimental/index.d.ts +28 -0
- package/experimental/index.ts +28 -0
- package/index.d.ts +28 -0
- package/index.ts +28 -0
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -4889,8 +4889,15 @@ declare abstract class Span {
|
|
|
4889
4889
|
stack?: string;
|
|
4890
4890
|
},
|
|
4891
4891
|
): void;
|
|
4892
|
+
updateName(name: string): this;
|
|
4893
|
+
setStatus(status: TracingSpanStatus): this;
|
|
4892
4894
|
end(): void;
|
|
4893
4895
|
}
|
|
4896
|
+
type TracingSpanStatusCode = "unset" | "ok" | "error";
|
|
4897
|
+
interface TracingSpanStatus {
|
|
4898
|
+
code: TracingSpanStatusCode;
|
|
4899
|
+
message?: string;
|
|
4900
|
+
}
|
|
4894
4901
|
/**
|
|
4895
4902
|
* Represents the identity of a user authenticated via Cloudflare Access.
|
|
4896
4903
|
* This matches the result of calling /cdn-cgi/access/get-identity.
|
|
@@ -17394,6 +17401,12 @@ declare namespace TailStream {
|
|
|
17394
17401
|
readonly cpuTime: number;
|
|
17395
17402
|
readonly wallTime: number;
|
|
17396
17403
|
}
|
|
17404
|
+
type SpanStatusCode = "unset" | "ok" | "error";
|
|
17405
|
+
interface SpanStatus {
|
|
17406
|
+
readonly code: SpanStatusCode;
|
|
17407
|
+
/** A developer-facing error message, present only when code is "error". */
|
|
17408
|
+
readonly message?: string;
|
|
17409
|
+
}
|
|
17397
17410
|
interface SpanOpen {
|
|
17398
17411
|
readonly type: "spanOpen";
|
|
17399
17412
|
readonly name: string;
|
|
@@ -17405,6 +17418,19 @@ declare namespace TailStream {
|
|
|
17405
17418
|
readonly type: "spanClose";
|
|
17406
17419
|
readonly outcome: EventOutcome;
|
|
17407
17420
|
}
|
|
17421
|
+
type SpanUpdateInfo =
|
|
17422
|
+
| {
|
|
17423
|
+
readonly type: "name";
|
|
17424
|
+
readonly name: string;
|
|
17425
|
+
}
|
|
17426
|
+
| {
|
|
17427
|
+
readonly type: "status";
|
|
17428
|
+
readonly status: SpanStatus;
|
|
17429
|
+
};
|
|
17430
|
+
interface SpanUpdate {
|
|
17431
|
+
readonly type: "spanUpdate";
|
|
17432
|
+
readonly info: SpanUpdateInfo;
|
|
17433
|
+
}
|
|
17408
17434
|
interface DiagnosticChannelEvent {
|
|
17409
17435
|
readonly type: "diagnosticChannel";
|
|
17410
17436
|
readonly channel: string;
|
|
@@ -17474,6 +17500,7 @@ declare namespace TailStream {
|
|
|
17474
17500
|
| Outcome
|
|
17475
17501
|
| SpanOpen
|
|
17476
17502
|
| SpanClose
|
|
17503
|
+
| SpanUpdate
|
|
17477
17504
|
| DiagnosticChannelEvent
|
|
17478
17505
|
| Exception
|
|
17479
17506
|
| Log
|
|
@@ -17516,6 +17543,7 @@ declare namespace TailStream {
|
|
|
17516
17543
|
outcome?: TailEventHandler<Outcome>;
|
|
17517
17544
|
spanOpen?: TailEventHandler<SpanOpen>;
|
|
17518
17545
|
spanClose?: TailEventHandler<SpanClose>;
|
|
17546
|
+
spanUpdate?: TailEventHandler<SpanUpdate>;
|
|
17519
17547
|
diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
|
|
17520
17548
|
exception?: TailEventHandler<Exception>;
|
|
17521
17549
|
log?: TailEventHandler<Log>;
|
package/experimental/index.ts
CHANGED
|
@@ -4898,8 +4898,15 @@ export declare abstract class Span {
|
|
|
4898
4898
|
stack?: string;
|
|
4899
4899
|
},
|
|
4900
4900
|
): void;
|
|
4901
|
+
updateName(name: string): this;
|
|
4902
|
+
setStatus(status: TracingSpanStatus): this;
|
|
4901
4903
|
end(): void;
|
|
4902
4904
|
}
|
|
4905
|
+
export type TracingSpanStatusCode = "unset" | "ok" | "error";
|
|
4906
|
+
export interface TracingSpanStatus {
|
|
4907
|
+
code: TracingSpanStatusCode;
|
|
4908
|
+
message?: string;
|
|
4909
|
+
}
|
|
4903
4910
|
/**
|
|
4904
4911
|
* Represents the identity of a user authenticated via Cloudflare Access.
|
|
4905
4912
|
* This matches the result of calling /cdn-cgi/access/get-identity.
|
|
@@ -17325,6 +17332,12 @@ export declare namespace TailStream {
|
|
|
17325
17332
|
readonly cpuTime: number;
|
|
17326
17333
|
readonly wallTime: number;
|
|
17327
17334
|
}
|
|
17335
|
+
type SpanStatusCode = "unset" | "ok" | "error";
|
|
17336
|
+
interface SpanStatus {
|
|
17337
|
+
readonly code: SpanStatusCode;
|
|
17338
|
+
/** A developer-facing error message, present only when code is "error". */
|
|
17339
|
+
readonly message?: string;
|
|
17340
|
+
}
|
|
17328
17341
|
interface SpanOpen {
|
|
17329
17342
|
readonly type: "spanOpen";
|
|
17330
17343
|
readonly name: string;
|
|
@@ -17336,6 +17349,19 @@ export declare namespace TailStream {
|
|
|
17336
17349
|
readonly type: "spanClose";
|
|
17337
17350
|
readonly outcome: EventOutcome;
|
|
17338
17351
|
}
|
|
17352
|
+
type SpanUpdateInfo =
|
|
17353
|
+
| {
|
|
17354
|
+
readonly type: "name";
|
|
17355
|
+
readonly name: string;
|
|
17356
|
+
}
|
|
17357
|
+
| {
|
|
17358
|
+
readonly type: "status";
|
|
17359
|
+
readonly status: SpanStatus;
|
|
17360
|
+
};
|
|
17361
|
+
interface SpanUpdate {
|
|
17362
|
+
readonly type: "spanUpdate";
|
|
17363
|
+
readonly info: SpanUpdateInfo;
|
|
17364
|
+
}
|
|
17339
17365
|
interface DiagnosticChannelEvent {
|
|
17340
17366
|
readonly type: "diagnosticChannel";
|
|
17341
17367
|
readonly channel: string;
|
|
@@ -17405,6 +17431,7 @@ export declare namespace TailStream {
|
|
|
17405
17431
|
| Outcome
|
|
17406
17432
|
| SpanOpen
|
|
17407
17433
|
| SpanClose
|
|
17434
|
+
| SpanUpdate
|
|
17408
17435
|
| DiagnosticChannelEvent
|
|
17409
17436
|
| Exception
|
|
17410
17437
|
| Log
|
|
@@ -17447,6 +17474,7 @@ export declare namespace TailStream {
|
|
|
17447
17474
|
outcome?: TailEventHandler<Outcome>;
|
|
17448
17475
|
spanOpen?: TailEventHandler<SpanOpen>;
|
|
17449
17476
|
spanClose?: TailEventHandler<SpanClose>;
|
|
17477
|
+
spanUpdate?: TailEventHandler<SpanUpdate>;
|
|
17450
17478
|
diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
|
|
17451
17479
|
exception?: TailEventHandler<Exception>;
|
|
17452
17480
|
log?: TailEventHandler<Log>;
|
package/index.d.ts
CHANGED
|
@@ -4606,8 +4606,15 @@ declare abstract class Span {
|
|
|
4606
4606
|
stack?: string;
|
|
4607
4607
|
},
|
|
4608
4608
|
): void;
|
|
4609
|
+
updateName(name: string): this;
|
|
4610
|
+
setStatus(status: TracingSpanStatus): this;
|
|
4609
4611
|
end(): void;
|
|
4610
4612
|
}
|
|
4613
|
+
type TracingSpanStatusCode = "unset" | "ok" | "error";
|
|
4614
|
+
interface TracingSpanStatus {
|
|
4615
|
+
code: TracingSpanStatusCode;
|
|
4616
|
+
message?: string;
|
|
4617
|
+
}
|
|
4611
4618
|
/**
|
|
4612
4619
|
* Represents the identity of a user authenticated via Cloudflare Access.
|
|
4613
4620
|
* This matches the result of calling /cdn-cgi/access/get-identity.
|
|
@@ -17111,6 +17118,12 @@ declare namespace TailStream {
|
|
|
17111
17118
|
readonly cpuTime: number;
|
|
17112
17119
|
readonly wallTime: number;
|
|
17113
17120
|
}
|
|
17121
|
+
type SpanStatusCode = "unset" | "ok" | "error";
|
|
17122
|
+
interface SpanStatus {
|
|
17123
|
+
readonly code: SpanStatusCode;
|
|
17124
|
+
/** A developer-facing error message, present only when code is "error". */
|
|
17125
|
+
readonly message?: string;
|
|
17126
|
+
}
|
|
17114
17127
|
interface SpanOpen {
|
|
17115
17128
|
readonly type: "spanOpen";
|
|
17116
17129
|
readonly name: string;
|
|
@@ -17122,6 +17135,19 @@ declare namespace TailStream {
|
|
|
17122
17135
|
readonly type: "spanClose";
|
|
17123
17136
|
readonly outcome: EventOutcome;
|
|
17124
17137
|
}
|
|
17138
|
+
type SpanUpdateInfo =
|
|
17139
|
+
| {
|
|
17140
|
+
readonly type: "name";
|
|
17141
|
+
readonly name: string;
|
|
17142
|
+
}
|
|
17143
|
+
| {
|
|
17144
|
+
readonly type: "status";
|
|
17145
|
+
readonly status: SpanStatus;
|
|
17146
|
+
};
|
|
17147
|
+
interface SpanUpdate {
|
|
17148
|
+
readonly type: "spanUpdate";
|
|
17149
|
+
readonly info: SpanUpdateInfo;
|
|
17150
|
+
}
|
|
17125
17151
|
interface DiagnosticChannelEvent {
|
|
17126
17152
|
readonly type: "diagnosticChannel";
|
|
17127
17153
|
readonly channel: string;
|
|
@@ -17191,6 +17217,7 @@ declare namespace TailStream {
|
|
|
17191
17217
|
| Outcome
|
|
17192
17218
|
| SpanOpen
|
|
17193
17219
|
| SpanClose
|
|
17220
|
+
| SpanUpdate
|
|
17194
17221
|
| DiagnosticChannelEvent
|
|
17195
17222
|
| Exception
|
|
17196
17223
|
| Log
|
|
@@ -17233,6 +17260,7 @@ declare namespace TailStream {
|
|
|
17233
17260
|
outcome?: TailEventHandler<Outcome>;
|
|
17234
17261
|
spanOpen?: TailEventHandler<SpanOpen>;
|
|
17235
17262
|
spanClose?: TailEventHandler<SpanClose>;
|
|
17263
|
+
spanUpdate?: TailEventHandler<SpanUpdate>;
|
|
17236
17264
|
diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
|
|
17237
17265
|
exception?: TailEventHandler<Exception>;
|
|
17238
17266
|
log?: TailEventHandler<Log>;
|
package/index.ts
CHANGED
|
@@ -4615,8 +4615,15 @@ export declare abstract class Span {
|
|
|
4615
4615
|
stack?: string;
|
|
4616
4616
|
},
|
|
4617
4617
|
): void;
|
|
4618
|
+
updateName(name: string): this;
|
|
4619
|
+
setStatus(status: TracingSpanStatus): this;
|
|
4618
4620
|
end(): void;
|
|
4619
4621
|
}
|
|
4622
|
+
export type TracingSpanStatusCode = "unset" | "ok" | "error";
|
|
4623
|
+
export interface TracingSpanStatus {
|
|
4624
|
+
code: TracingSpanStatusCode;
|
|
4625
|
+
message?: string;
|
|
4626
|
+
}
|
|
4620
4627
|
/**
|
|
4621
4628
|
* Represents the identity of a user authenticated via Cloudflare Access.
|
|
4622
4629
|
* This matches the result of calling /cdn-cgi/access/get-identity.
|
|
@@ -17042,6 +17049,12 @@ export declare namespace TailStream {
|
|
|
17042
17049
|
readonly cpuTime: number;
|
|
17043
17050
|
readonly wallTime: number;
|
|
17044
17051
|
}
|
|
17052
|
+
type SpanStatusCode = "unset" | "ok" | "error";
|
|
17053
|
+
interface SpanStatus {
|
|
17054
|
+
readonly code: SpanStatusCode;
|
|
17055
|
+
/** A developer-facing error message, present only when code is "error". */
|
|
17056
|
+
readonly message?: string;
|
|
17057
|
+
}
|
|
17045
17058
|
interface SpanOpen {
|
|
17046
17059
|
readonly type: "spanOpen";
|
|
17047
17060
|
readonly name: string;
|
|
@@ -17053,6 +17066,19 @@ export declare namespace TailStream {
|
|
|
17053
17066
|
readonly type: "spanClose";
|
|
17054
17067
|
readonly outcome: EventOutcome;
|
|
17055
17068
|
}
|
|
17069
|
+
type SpanUpdateInfo =
|
|
17070
|
+
| {
|
|
17071
|
+
readonly type: "name";
|
|
17072
|
+
readonly name: string;
|
|
17073
|
+
}
|
|
17074
|
+
| {
|
|
17075
|
+
readonly type: "status";
|
|
17076
|
+
readonly status: SpanStatus;
|
|
17077
|
+
};
|
|
17078
|
+
interface SpanUpdate {
|
|
17079
|
+
readonly type: "spanUpdate";
|
|
17080
|
+
readonly info: SpanUpdateInfo;
|
|
17081
|
+
}
|
|
17056
17082
|
interface DiagnosticChannelEvent {
|
|
17057
17083
|
readonly type: "diagnosticChannel";
|
|
17058
17084
|
readonly channel: string;
|
|
@@ -17122,6 +17148,7 @@ export declare namespace TailStream {
|
|
|
17122
17148
|
| Outcome
|
|
17123
17149
|
| SpanOpen
|
|
17124
17150
|
| SpanClose
|
|
17151
|
+
| SpanUpdate
|
|
17125
17152
|
| DiagnosticChannelEvent
|
|
17126
17153
|
| Exception
|
|
17127
17154
|
| Log
|
|
@@ -17164,6 +17191,7 @@ export declare namespace TailStream {
|
|
|
17164
17191
|
outcome?: TailEventHandler<Outcome>;
|
|
17165
17192
|
spanOpen?: TailEventHandler<SpanOpen>;
|
|
17166
17193
|
spanClose?: TailEventHandler<SpanClose>;
|
|
17194
|
+
spanUpdate?: TailEventHandler<SpanUpdate>;
|
|
17167
17195
|
diagnosticChannel?: TailEventHandler<DiagnosticChannelEvent>;
|
|
17168
17196
|
exception?: TailEventHandler<Exception>;
|
|
17169
17197
|
log?: TailEventHandler<Log>;
|
package/package.json
CHANGED