@cloudflare/workers-types 4.20260421.1 → 4.20260422.2
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/2021-11-03/index.d.ts +17 -1
- package/2021-11-03/index.ts +17 -1
- package/2022-01-31/index.d.ts +17 -1
- package/2022-01-31/index.ts +17 -1
- package/2022-03-21/index.d.ts +17 -1
- package/2022-03-21/index.ts +17 -1
- package/2022-08-04/index.d.ts +17 -1
- package/2022-08-04/index.ts +17 -1
- package/2022-10-31/index.d.ts +17 -1
- package/2022-10-31/index.ts +17 -1
- package/2022-11-30/index.d.ts +17 -1
- package/2022-11-30/index.ts +17 -1
- package/2023-03-01/index.d.ts +17 -1
- package/2023-03-01/index.ts +17 -1
- package/2023-07-01/index.d.ts +17 -1
- package/2023-07-01/index.ts +17 -1
- package/experimental/index.d.ts +17 -1
- package/experimental/index.ts +17 -1
- package/index.d.ts +17 -1
- package/index.ts +17 -1
- package/latest/index.d.ts +17 -1
- package/latest/index.ts +17 -1
- package/oldest/index.d.ts +17 -1
- package/oldest/index.ts +17 -1
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
469
469
|
passThroughOnException(): void;
|
|
470
470
|
readonly props: Props;
|
|
471
471
|
cache?: CacheContext;
|
|
472
|
+
tracing?: Tracing;
|
|
472
473
|
}
|
|
473
474
|
type ExportedHandlerFetchHandler<
|
|
474
475
|
Env = unknown,
|
|
@@ -3912,6 +3913,18 @@ declare abstract class Performance {
|
|
|
3912
3913
|
*/
|
|
3913
3914
|
toJSON(): object;
|
|
3914
3915
|
}
|
|
3916
|
+
interface Tracing {
|
|
3917
|
+
enterSpan<T, A extends unknown[]>(
|
|
3918
|
+
name: string,
|
|
3919
|
+
callback: (span: Span, ...args: A) => T,
|
|
3920
|
+
...args: A
|
|
3921
|
+
): T;
|
|
3922
|
+
Span: typeof Span;
|
|
3923
|
+
}
|
|
3924
|
+
declare abstract class Span {
|
|
3925
|
+
get isTraced(): boolean;
|
|
3926
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3927
|
+
}
|
|
3915
3928
|
// ============ AI Search Error Interfaces ============
|
|
3916
3929
|
interface AiSearchInternalError extends Error {}
|
|
3917
3930
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13592,6 +13605,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13592
13605
|
): unknown;
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13608
|
+
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13595
13610
|
}
|
|
13596
13611
|
declare module "cloudflare:workers" {
|
|
13597
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14499,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14499
14514
|
| "exceededMemory"
|
|
14500
14515
|
| "loadShed"
|
|
14501
14516
|
| "responseStreamDisconnected"
|
|
14502
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14503
14519
|
interface ScriptVersion {
|
|
14504
14520
|
readonly id: string;
|
|
14505
14521
|
readonly tag?: string;
|
package/2021-11-03/index.ts
CHANGED
|
@@ -471,6 +471,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
471
471
|
passThroughOnException(): void;
|
|
472
472
|
readonly props: Props;
|
|
473
473
|
cache?: CacheContext;
|
|
474
|
+
tracing?: Tracing;
|
|
474
475
|
}
|
|
475
476
|
export type ExportedHandlerFetchHandler<
|
|
476
477
|
Env = unknown,
|
|
@@ -3918,6 +3919,18 @@ export declare abstract class Performance {
|
|
|
3918
3919
|
*/
|
|
3919
3920
|
toJSON(): object;
|
|
3920
3921
|
}
|
|
3922
|
+
export interface Tracing {
|
|
3923
|
+
enterSpan<T, A extends unknown[]>(
|
|
3924
|
+
name: string,
|
|
3925
|
+
callback: (span: Span, ...args: A) => T,
|
|
3926
|
+
...args: A
|
|
3927
|
+
): T;
|
|
3928
|
+
Span: typeof Span;
|
|
3929
|
+
}
|
|
3930
|
+
export declare abstract class Span {
|
|
3931
|
+
get isTraced(): boolean;
|
|
3932
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3933
|
+
}
|
|
3921
3934
|
// ============ AI Search Error Interfaces ============
|
|
3922
3935
|
export interface AiSearchInternalError extends Error {}
|
|
3923
3936
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13563,6 +13576,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13563
13576
|
): unknown;
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13579
|
+
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13566
13581
|
}
|
|
13567
13582
|
export interface SecretsStoreSecret {
|
|
13568
13583
|
/**
|
|
@@ -14460,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14460
14475
|
| "exceededMemory"
|
|
14461
14476
|
| "loadShed"
|
|
14462
14477
|
| "responseStreamDisconnected"
|
|
14463
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14464
14480
|
interface ScriptVersion {
|
|
14465
14481
|
readonly id: string;
|
|
14466
14482
|
readonly tag?: string;
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
469
469
|
passThroughOnException(): void;
|
|
470
470
|
readonly props: Props;
|
|
471
471
|
cache?: CacheContext;
|
|
472
|
+
tracing?: Tracing;
|
|
472
473
|
}
|
|
473
474
|
type ExportedHandlerFetchHandler<
|
|
474
475
|
Env = unknown,
|
|
@@ -3979,6 +3980,18 @@ declare abstract class Performance {
|
|
|
3979
3980
|
*/
|
|
3980
3981
|
toJSON(): object;
|
|
3981
3982
|
}
|
|
3983
|
+
interface Tracing {
|
|
3984
|
+
enterSpan<T, A extends unknown[]>(
|
|
3985
|
+
name: string,
|
|
3986
|
+
callback: (span: Span, ...args: A) => T,
|
|
3987
|
+
...args: A
|
|
3988
|
+
): T;
|
|
3989
|
+
Span: typeof Span;
|
|
3990
|
+
}
|
|
3991
|
+
declare abstract class Span {
|
|
3992
|
+
get isTraced(): boolean;
|
|
3993
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3994
|
+
}
|
|
3982
3995
|
// ============ AI Search Error Interfaces ============
|
|
3983
3996
|
interface AiSearchInternalError extends Error {}
|
|
3984
3997
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13659,6 +13672,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13659
13672
|
): unknown;
|
|
13660
13673
|
export const env: Cloudflare.Env;
|
|
13661
13674
|
export const exports: Cloudflare.Exports;
|
|
13675
|
+
export const cache: CacheContext;
|
|
13676
|
+
export const tracing: Tracing;
|
|
13662
13677
|
}
|
|
13663
13678
|
declare module "cloudflare:workers" {
|
|
13664
13679
|
export = CloudflareWorkersModule;
|
|
@@ -14566,7 +14581,8 @@ declare namespace TailStream {
|
|
|
14566
14581
|
| "exceededMemory"
|
|
14567
14582
|
| "loadShed"
|
|
14568
14583
|
| "responseStreamDisconnected"
|
|
14569
|
-
| "scriptNotFound"
|
|
14584
|
+
| "scriptNotFound"
|
|
14585
|
+
| "internalError";
|
|
14570
14586
|
interface ScriptVersion {
|
|
14571
14587
|
readonly id: string;
|
|
14572
14588
|
readonly tag?: string;
|
package/2022-01-31/index.ts
CHANGED
|
@@ -471,6 +471,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
471
471
|
passThroughOnException(): void;
|
|
472
472
|
readonly props: Props;
|
|
473
473
|
cache?: CacheContext;
|
|
474
|
+
tracing?: Tracing;
|
|
474
475
|
}
|
|
475
476
|
export type ExportedHandlerFetchHandler<
|
|
476
477
|
Env = unknown,
|
|
@@ -3985,6 +3986,18 @@ export declare abstract class Performance {
|
|
|
3985
3986
|
*/
|
|
3986
3987
|
toJSON(): object;
|
|
3987
3988
|
}
|
|
3989
|
+
export interface Tracing {
|
|
3990
|
+
enterSpan<T, A extends unknown[]>(
|
|
3991
|
+
name: string,
|
|
3992
|
+
callback: (span: Span, ...args: A) => T,
|
|
3993
|
+
...args: A
|
|
3994
|
+
): T;
|
|
3995
|
+
Span: typeof Span;
|
|
3996
|
+
}
|
|
3997
|
+
export declare abstract class Span {
|
|
3998
|
+
get isTraced(): boolean;
|
|
3999
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4000
|
+
}
|
|
3988
4001
|
// ============ AI Search Error Interfaces ============
|
|
3989
4002
|
export interface AiSearchInternalError extends Error {}
|
|
3990
4003
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13630,6 +13643,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13630
13643
|
): unknown;
|
|
13631
13644
|
export const env: Cloudflare.Env;
|
|
13632
13645
|
export const exports: Cloudflare.Exports;
|
|
13646
|
+
export const cache: CacheContext;
|
|
13647
|
+
export const tracing: Tracing;
|
|
13633
13648
|
}
|
|
13634
13649
|
export interface SecretsStoreSecret {
|
|
13635
13650
|
/**
|
|
@@ -14527,7 +14542,8 @@ export declare namespace TailStream {
|
|
|
14527
14542
|
| "exceededMemory"
|
|
14528
14543
|
| "loadShed"
|
|
14529
14544
|
| "responseStreamDisconnected"
|
|
14530
|
-
| "scriptNotFound"
|
|
14545
|
+
| "scriptNotFound"
|
|
14546
|
+
| "internalError";
|
|
14531
14547
|
interface ScriptVersion {
|
|
14532
14548
|
readonly id: string;
|
|
14533
14549
|
readonly tag?: string;
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -472,6 +472,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
472
472
|
passThroughOnException(): void;
|
|
473
473
|
readonly props: Props;
|
|
474
474
|
cache?: CacheContext;
|
|
475
|
+
tracing?: Tracing;
|
|
475
476
|
}
|
|
476
477
|
type ExportedHandlerFetchHandler<
|
|
477
478
|
Env = unknown,
|
|
@@ -3988,6 +3989,18 @@ declare abstract class Performance {
|
|
|
3988
3989
|
*/
|
|
3989
3990
|
toJSON(): object;
|
|
3990
3991
|
}
|
|
3992
|
+
interface Tracing {
|
|
3993
|
+
enterSpan<T, A extends unknown[]>(
|
|
3994
|
+
name: string,
|
|
3995
|
+
callback: (span: Span, ...args: A) => T,
|
|
3996
|
+
...args: A
|
|
3997
|
+
): T;
|
|
3998
|
+
Span: typeof Span;
|
|
3999
|
+
}
|
|
4000
|
+
declare abstract class Span {
|
|
4001
|
+
get isTraced(): boolean;
|
|
4002
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4003
|
+
}
|
|
3991
4004
|
// ============ AI Search Error Interfaces ============
|
|
3992
4005
|
interface AiSearchInternalError extends Error {}
|
|
3993
4006
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13668,6 +13681,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13668
13681
|
): unknown;
|
|
13669
13682
|
export const env: Cloudflare.Env;
|
|
13670
13683
|
export const exports: Cloudflare.Exports;
|
|
13684
|
+
export const cache: CacheContext;
|
|
13685
|
+
export const tracing: Tracing;
|
|
13671
13686
|
}
|
|
13672
13687
|
declare module "cloudflare:workers" {
|
|
13673
13688
|
export = CloudflareWorkersModule;
|
|
@@ -14575,7 +14590,8 @@ declare namespace TailStream {
|
|
|
14575
14590
|
| "exceededMemory"
|
|
14576
14591
|
| "loadShed"
|
|
14577
14592
|
| "responseStreamDisconnected"
|
|
14578
|
-
| "scriptNotFound"
|
|
14593
|
+
| "scriptNotFound"
|
|
14594
|
+
| "internalError";
|
|
14579
14595
|
interface ScriptVersion {
|
|
14580
14596
|
readonly id: string;
|
|
14581
14597
|
readonly tag?: string;
|
package/2022-03-21/index.ts
CHANGED
|
@@ -474,6 +474,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
474
474
|
passThroughOnException(): void;
|
|
475
475
|
readonly props: Props;
|
|
476
476
|
cache?: CacheContext;
|
|
477
|
+
tracing?: Tracing;
|
|
477
478
|
}
|
|
478
479
|
export type ExportedHandlerFetchHandler<
|
|
479
480
|
Env = unknown,
|
|
@@ -3994,6 +3995,18 @@ export declare abstract class Performance {
|
|
|
3994
3995
|
*/
|
|
3995
3996
|
toJSON(): object;
|
|
3996
3997
|
}
|
|
3998
|
+
export interface Tracing {
|
|
3999
|
+
enterSpan<T, A extends unknown[]>(
|
|
4000
|
+
name: string,
|
|
4001
|
+
callback: (span: Span, ...args: A) => T,
|
|
4002
|
+
...args: A
|
|
4003
|
+
): T;
|
|
4004
|
+
Span: typeof Span;
|
|
4005
|
+
}
|
|
4006
|
+
export declare abstract class Span {
|
|
4007
|
+
get isTraced(): boolean;
|
|
4008
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4009
|
+
}
|
|
3997
4010
|
// ============ AI Search Error Interfaces ============
|
|
3998
4011
|
export interface AiSearchInternalError extends Error {}
|
|
3999
4012
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13639,6 +13652,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13639
13652
|
): unknown;
|
|
13640
13653
|
export const env: Cloudflare.Env;
|
|
13641
13654
|
export const exports: Cloudflare.Exports;
|
|
13655
|
+
export const cache: CacheContext;
|
|
13656
|
+
export const tracing: Tracing;
|
|
13642
13657
|
}
|
|
13643
13658
|
export interface SecretsStoreSecret {
|
|
13644
13659
|
/**
|
|
@@ -14536,7 +14551,8 @@ export declare namespace TailStream {
|
|
|
14536
14551
|
| "exceededMemory"
|
|
14537
14552
|
| "loadShed"
|
|
14538
14553
|
| "responseStreamDisconnected"
|
|
14539
|
-
| "scriptNotFound"
|
|
14554
|
+
| "scriptNotFound"
|
|
14555
|
+
| "internalError";
|
|
14540
14556
|
interface ScriptVersion {
|
|
14541
14557
|
readonly id: string;
|
|
14542
14558
|
readonly tag?: string;
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -472,6 +472,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
472
472
|
passThroughOnException(): void;
|
|
473
473
|
readonly props: Props;
|
|
474
474
|
cache?: CacheContext;
|
|
475
|
+
tracing?: Tracing;
|
|
475
476
|
}
|
|
476
477
|
type ExportedHandlerFetchHandler<
|
|
477
478
|
Env = unknown,
|
|
@@ -3989,6 +3990,18 @@ declare abstract class Performance {
|
|
|
3989
3990
|
*/
|
|
3990
3991
|
toJSON(): object;
|
|
3991
3992
|
}
|
|
3993
|
+
interface Tracing {
|
|
3994
|
+
enterSpan<T, A extends unknown[]>(
|
|
3995
|
+
name: string,
|
|
3996
|
+
callback: (span: Span, ...args: A) => T,
|
|
3997
|
+
...args: A
|
|
3998
|
+
): T;
|
|
3999
|
+
Span: typeof Span;
|
|
4000
|
+
}
|
|
4001
|
+
declare abstract class Span {
|
|
4002
|
+
get isTraced(): boolean;
|
|
4003
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4004
|
+
}
|
|
3992
4005
|
// ============ AI Search Error Interfaces ============
|
|
3993
4006
|
interface AiSearchInternalError extends Error {}
|
|
3994
4007
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13669,6 +13682,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13669
13682
|
): unknown;
|
|
13670
13683
|
export const env: Cloudflare.Env;
|
|
13671
13684
|
export const exports: Cloudflare.Exports;
|
|
13685
|
+
export const cache: CacheContext;
|
|
13686
|
+
export const tracing: Tracing;
|
|
13672
13687
|
}
|
|
13673
13688
|
declare module "cloudflare:workers" {
|
|
13674
13689
|
export = CloudflareWorkersModule;
|
|
@@ -14576,7 +14591,8 @@ declare namespace TailStream {
|
|
|
14576
14591
|
| "exceededMemory"
|
|
14577
14592
|
| "loadShed"
|
|
14578
14593
|
| "responseStreamDisconnected"
|
|
14579
|
-
| "scriptNotFound"
|
|
14594
|
+
| "scriptNotFound"
|
|
14595
|
+
| "internalError";
|
|
14580
14596
|
interface ScriptVersion {
|
|
14581
14597
|
readonly id: string;
|
|
14582
14598
|
readonly tag?: string;
|
package/2022-08-04/index.ts
CHANGED
|
@@ -474,6 +474,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
474
474
|
passThroughOnException(): void;
|
|
475
475
|
readonly props: Props;
|
|
476
476
|
cache?: CacheContext;
|
|
477
|
+
tracing?: Tracing;
|
|
477
478
|
}
|
|
478
479
|
export type ExportedHandlerFetchHandler<
|
|
479
480
|
Env = unknown,
|
|
@@ -3995,6 +3996,18 @@ export declare abstract class Performance {
|
|
|
3995
3996
|
*/
|
|
3996
3997
|
toJSON(): object;
|
|
3997
3998
|
}
|
|
3999
|
+
export interface Tracing {
|
|
4000
|
+
enterSpan<T, A extends unknown[]>(
|
|
4001
|
+
name: string,
|
|
4002
|
+
callback: (span: Span, ...args: A) => T,
|
|
4003
|
+
...args: A
|
|
4004
|
+
): T;
|
|
4005
|
+
Span: typeof Span;
|
|
4006
|
+
}
|
|
4007
|
+
export declare abstract class Span {
|
|
4008
|
+
get isTraced(): boolean;
|
|
4009
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4010
|
+
}
|
|
3998
4011
|
// ============ AI Search Error Interfaces ============
|
|
3999
4012
|
export interface AiSearchInternalError extends Error {}
|
|
4000
4013
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13640,6 +13653,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13640
13653
|
): unknown;
|
|
13641
13654
|
export const env: Cloudflare.Env;
|
|
13642
13655
|
export const exports: Cloudflare.Exports;
|
|
13656
|
+
export const cache: CacheContext;
|
|
13657
|
+
export const tracing: Tracing;
|
|
13643
13658
|
}
|
|
13644
13659
|
export interface SecretsStoreSecret {
|
|
13645
13660
|
/**
|
|
@@ -14537,7 +14552,8 @@ export declare namespace TailStream {
|
|
|
14537
14552
|
| "exceededMemory"
|
|
14538
14553
|
| "loadShed"
|
|
14539
14554
|
| "responseStreamDisconnected"
|
|
14540
|
-
| "scriptNotFound"
|
|
14555
|
+
| "scriptNotFound"
|
|
14556
|
+
| "internalError";
|
|
14541
14557
|
interface ScriptVersion {
|
|
14542
14558
|
readonly id: string;
|
|
14543
14559
|
readonly tag?: string;
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -472,6 +472,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
472
472
|
passThroughOnException(): void;
|
|
473
473
|
readonly props: Props;
|
|
474
474
|
cache?: CacheContext;
|
|
475
|
+
tracing?: Tracing;
|
|
475
476
|
}
|
|
476
477
|
type ExportedHandlerFetchHandler<
|
|
477
478
|
Env = unknown,
|
|
@@ -4009,6 +4010,18 @@ declare abstract class Performance {
|
|
|
4009
4010
|
*/
|
|
4010
4011
|
toJSON(): object;
|
|
4011
4012
|
}
|
|
4013
|
+
interface Tracing {
|
|
4014
|
+
enterSpan<T, A extends unknown[]>(
|
|
4015
|
+
name: string,
|
|
4016
|
+
callback: (span: Span, ...args: A) => T,
|
|
4017
|
+
...args: A
|
|
4018
|
+
): T;
|
|
4019
|
+
Span: typeof Span;
|
|
4020
|
+
}
|
|
4021
|
+
declare abstract class Span {
|
|
4022
|
+
get isTraced(): boolean;
|
|
4023
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4024
|
+
}
|
|
4012
4025
|
// ============ AI Search Error Interfaces ============
|
|
4013
4026
|
interface AiSearchInternalError extends Error {}
|
|
4014
4027
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13689,6 +13702,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13689
13702
|
): unknown;
|
|
13690
13703
|
export const env: Cloudflare.Env;
|
|
13691
13704
|
export const exports: Cloudflare.Exports;
|
|
13705
|
+
export const cache: CacheContext;
|
|
13706
|
+
export const tracing: Tracing;
|
|
13692
13707
|
}
|
|
13693
13708
|
declare module "cloudflare:workers" {
|
|
13694
13709
|
export = CloudflareWorkersModule;
|
|
@@ -14596,7 +14611,8 @@ declare namespace TailStream {
|
|
|
14596
14611
|
| "exceededMemory"
|
|
14597
14612
|
| "loadShed"
|
|
14598
14613
|
| "responseStreamDisconnected"
|
|
14599
|
-
| "scriptNotFound"
|
|
14614
|
+
| "scriptNotFound"
|
|
14615
|
+
| "internalError";
|
|
14600
14616
|
interface ScriptVersion {
|
|
14601
14617
|
readonly id: string;
|
|
14602
14618
|
readonly tag?: string;
|
package/2022-10-31/index.ts
CHANGED
|
@@ -474,6 +474,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
474
474
|
passThroughOnException(): void;
|
|
475
475
|
readonly props: Props;
|
|
476
476
|
cache?: CacheContext;
|
|
477
|
+
tracing?: Tracing;
|
|
477
478
|
}
|
|
478
479
|
export type ExportedHandlerFetchHandler<
|
|
479
480
|
Env = unknown,
|
|
@@ -4015,6 +4016,18 @@ export declare abstract class Performance {
|
|
|
4015
4016
|
*/
|
|
4016
4017
|
toJSON(): object;
|
|
4017
4018
|
}
|
|
4019
|
+
export interface Tracing {
|
|
4020
|
+
enterSpan<T, A extends unknown[]>(
|
|
4021
|
+
name: string,
|
|
4022
|
+
callback: (span: Span, ...args: A) => T,
|
|
4023
|
+
...args: A
|
|
4024
|
+
): T;
|
|
4025
|
+
Span: typeof Span;
|
|
4026
|
+
}
|
|
4027
|
+
export declare abstract class Span {
|
|
4028
|
+
get isTraced(): boolean;
|
|
4029
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4030
|
+
}
|
|
4018
4031
|
// ============ AI Search Error Interfaces ============
|
|
4019
4032
|
export interface AiSearchInternalError extends Error {}
|
|
4020
4033
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13660,6 +13673,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13660
13673
|
): unknown;
|
|
13661
13674
|
export const env: Cloudflare.Env;
|
|
13662
13675
|
export const exports: Cloudflare.Exports;
|
|
13676
|
+
export const cache: CacheContext;
|
|
13677
|
+
export const tracing: Tracing;
|
|
13663
13678
|
}
|
|
13664
13679
|
export interface SecretsStoreSecret {
|
|
13665
13680
|
/**
|
|
@@ -14557,7 +14572,8 @@ export declare namespace TailStream {
|
|
|
14557
14572
|
| "exceededMemory"
|
|
14558
14573
|
| "loadShed"
|
|
14559
14574
|
| "responseStreamDisconnected"
|
|
14560
|
-
| "scriptNotFound"
|
|
14575
|
+
| "scriptNotFound"
|
|
14576
|
+
| "internalError";
|
|
14561
14577
|
interface ScriptVersion {
|
|
14562
14578
|
readonly id: string;
|
|
14563
14579
|
readonly tag?: string;
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -477,6 +477,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
477
477
|
passThroughOnException(): void;
|
|
478
478
|
readonly props: Props;
|
|
479
479
|
cache?: CacheContext;
|
|
480
|
+
tracing?: Tracing;
|
|
480
481
|
}
|
|
481
482
|
type ExportedHandlerFetchHandler<
|
|
482
483
|
Env = unknown,
|
|
@@ -4014,6 +4015,18 @@ declare abstract class Performance {
|
|
|
4014
4015
|
*/
|
|
4015
4016
|
toJSON(): object;
|
|
4016
4017
|
}
|
|
4018
|
+
interface Tracing {
|
|
4019
|
+
enterSpan<T, A extends unknown[]>(
|
|
4020
|
+
name: string,
|
|
4021
|
+
callback: (span: Span, ...args: A) => T,
|
|
4022
|
+
...args: A
|
|
4023
|
+
): T;
|
|
4024
|
+
Span: typeof Span;
|
|
4025
|
+
}
|
|
4026
|
+
declare abstract class Span {
|
|
4027
|
+
get isTraced(): boolean;
|
|
4028
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4029
|
+
}
|
|
4017
4030
|
// ============ AI Search Error Interfaces ============
|
|
4018
4031
|
interface AiSearchInternalError extends Error {}
|
|
4019
4032
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13694,6 +13707,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13694
13707
|
): unknown;
|
|
13695
13708
|
export const env: Cloudflare.Env;
|
|
13696
13709
|
export const exports: Cloudflare.Exports;
|
|
13710
|
+
export const cache: CacheContext;
|
|
13711
|
+
export const tracing: Tracing;
|
|
13697
13712
|
}
|
|
13698
13713
|
declare module "cloudflare:workers" {
|
|
13699
13714
|
export = CloudflareWorkersModule;
|
|
@@ -14601,7 +14616,8 @@ declare namespace TailStream {
|
|
|
14601
14616
|
| "exceededMemory"
|
|
14602
14617
|
| "loadShed"
|
|
14603
14618
|
| "responseStreamDisconnected"
|
|
14604
|
-
| "scriptNotFound"
|
|
14619
|
+
| "scriptNotFound"
|
|
14620
|
+
| "internalError";
|
|
14605
14621
|
interface ScriptVersion {
|
|
14606
14622
|
readonly id: string;
|
|
14607
14623
|
readonly tag?: string;
|
package/2022-11-30/index.ts
CHANGED
|
@@ -479,6 +479,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
479
479
|
passThroughOnException(): void;
|
|
480
480
|
readonly props: Props;
|
|
481
481
|
cache?: CacheContext;
|
|
482
|
+
tracing?: Tracing;
|
|
482
483
|
}
|
|
483
484
|
export type ExportedHandlerFetchHandler<
|
|
484
485
|
Env = unknown,
|
|
@@ -4020,6 +4021,18 @@ export declare abstract class Performance {
|
|
|
4020
4021
|
*/
|
|
4021
4022
|
toJSON(): object;
|
|
4022
4023
|
}
|
|
4024
|
+
export interface Tracing {
|
|
4025
|
+
enterSpan<T, A extends unknown[]>(
|
|
4026
|
+
name: string,
|
|
4027
|
+
callback: (span: Span, ...args: A) => T,
|
|
4028
|
+
...args: A
|
|
4029
|
+
): T;
|
|
4030
|
+
Span: typeof Span;
|
|
4031
|
+
}
|
|
4032
|
+
export declare abstract class Span {
|
|
4033
|
+
get isTraced(): boolean;
|
|
4034
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4035
|
+
}
|
|
4023
4036
|
// ============ AI Search Error Interfaces ============
|
|
4024
4037
|
export interface AiSearchInternalError extends Error {}
|
|
4025
4038
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13665,6 +13678,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13665
13678
|
): unknown;
|
|
13666
13679
|
export const env: Cloudflare.Env;
|
|
13667
13680
|
export const exports: Cloudflare.Exports;
|
|
13681
|
+
export const cache: CacheContext;
|
|
13682
|
+
export const tracing: Tracing;
|
|
13668
13683
|
}
|
|
13669
13684
|
export interface SecretsStoreSecret {
|
|
13670
13685
|
/**
|
|
@@ -14562,7 +14577,8 @@ export declare namespace TailStream {
|
|
|
14562
14577
|
| "exceededMemory"
|
|
14563
14578
|
| "loadShed"
|
|
14564
14579
|
| "responseStreamDisconnected"
|
|
14565
|
-
| "scriptNotFound"
|
|
14580
|
+
| "scriptNotFound"
|
|
14581
|
+
| "internalError";
|
|
14566
14582
|
interface ScriptVersion {
|
|
14567
14583
|
readonly id: string;
|
|
14568
14584
|
readonly tag?: string;
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -477,6 +477,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
477
477
|
passThroughOnException(): void;
|
|
478
478
|
readonly props: Props;
|
|
479
479
|
cache?: CacheContext;
|
|
480
|
+
tracing?: Tracing;
|
|
480
481
|
}
|
|
481
482
|
type ExportedHandlerFetchHandler<
|
|
482
483
|
Env = unknown,
|
|
@@ -4020,6 +4021,18 @@ declare abstract class Performance {
|
|
|
4020
4021
|
*/
|
|
4021
4022
|
toJSON(): object;
|
|
4022
4023
|
}
|
|
4024
|
+
interface Tracing {
|
|
4025
|
+
enterSpan<T, A extends unknown[]>(
|
|
4026
|
+
name: string,
|
|
4027
|
+
callback: (span: Span, ...args: A) => T,
|
|
4028
|
+
...args: A
|
|
4029
|
+
): T;
|
|
4030
|
+
Span: typeof Span;
|
|
4031
|
+
}
|
|
4032
|
+
declare abstract class Span {
|
|
4033
|
+
get isTraced(): boolean;
|
|
4034
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4035
|
+
}
|
|
4023
4036
|
// ============ AI Search Error Interfaces ============
|
|
4024
4037
|
interface AiSearchInternalError extends Error {}
|
|
4025
4038
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13700,6 +13713,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13700
13713
|
): unknown;
|
|
13701
13714
|
export const env: Cloudflare.Env;
|
|
13702
13715
|
export const exports: Cloudflare.Exports;
|
|
13716
|
+
export const cache: CacheContext;
|
|
13717
|
+
export const tracing: Tracing;
|
|
13703
13718
|
}
|
|
13704
13719
|
declare module "cloudflare:workers" {
|
|
13705
13720
|
export = CloudflareWorkersModule;
|
|
@@ -14607,7 +14622,8 @@ declare namespace TailStream {
|
|
|
14607
14622
|
| "exceededMemory"
|
|
14608
14623
|
| "loadShed"
|
|
14609
14624
|
| "responseStreamDisconnected"
|
|
14610
|
-
| "scriptNotFound"
|
|
14625
|
+
| "scriptNotFound"
|
|
14626
|
+
| "internalError";
|
|
14611
14627
|
interface ScriptVersion {
|
|
14612
14628
|
readonly id: string;
|
|
14613
14629
|
readonly tag?: string;
|
package/2023-03-01/index.ts
CHANGED
|
@@ -479,6 +479,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
479
479
|
passThroughOnException(): void;
|
|
480
480
|
readonly props: Props;
|
|
481
481
|
cache?: CacheContext;
|
|
482
|
+
tracing?: Tracing;
|
|
482
483
|
}
|
|
483
484
|
export type ExportedHandlerFetchHandler<
|
|
484
485
|
Env = unknown,
|
|
@@ -4026,6 +4027,18 @@ export declare abstract class Performance {
|
|
|
4026
4027
|
*/
|
|
4027
4028
|
toJSON(): object;
|
|
4028
4029
|
}
|
|
4030
|
+
export interface Tracing {
|
|
4031
|
+
enterSpan<T, A extends unknown[]>(
|
|
4032
|
+
name: string,
|
|
4033
|
+
callback: (span: Span, ...args: A) => T,
|
|
4034
|
+
...args: A
|
|
4035
|
+
): T;
|
|
4036
|
+
Span: typeof Span;
|
|
4037
|
+
}
|
|
4038
|
+
export declare abstract class Span {
|
|
4039
|
+
get isTraced(): boolean;
|
|
4040
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4041
|
+
}
|
|
4029
4042
|
// ============ AI Search Error Interfaces ============
|
|
4030
4043
|
export interface AiSearchInternalError extends Error {}
|
|
4031
4044
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13671,6 +13684,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13671
13684
|
): unknown;
|
|
13672
13685
|
export const env: Cloudflare.Env;
|
|
13673
13686
|
export const exports: Cloudflare.Exports;
|
|
13687
|
+
export const cache: CacheContext;
|
|
13688
|
+
export const tracing: Tracing;
|
|
13674
13689
|
}
|
|
13675
13690
|
export interface SecretsStoreSecret {
|
|
13676
13691
|
/**
|
|
@@ -14568,7 +14583,8 @@ export declare namespace TailStream {
|
|
|
14568
14583
|
| "exceededMemory"
|
|
14569
14584
|
| "loadShed"
|
|
14570
14585
|
| "responseStreamDisconnected"
|
|
14571
|
-
| "scriptNotFound"
|
|
14586
|
+
| "scriptNotFound"
|
|
14587
|
+
| "internalError";
|
|
14572
14588
|
interface ScriptVersion {
|
|
14573
14589
|
readonly id: string;
|
|
14574
14590
|
readonly tag?: string;
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -477,6 +477,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
477
477
|
passThroughOnException(): void;
|
|
478
478
|
readonly props: Props;
|
|
479
479
|
cache?: CacheContext;
|
|
480
|
+
tracing?: Tracing;
|
|
480
481
|
}
|
|
481
482
|
type ExportedHandlerFetchHandler<
|
|
482
483
|
Env = unknown,
|
|
@@ -4020,6 +4021,18 @@ declare abstract class Performance {
|
|
|
4020
4021
|
*/
|
|
4021
4022
|
toJSON(): object;
|
|
4022
4023
|
}
|
|
4024
|
+
interface Tracing {
|
|
4025
|
+
enterSpan<T, A extends unknown[]>(
|
|
4026
|
+
name: string,
|
|
4027
|
+
callback: (span: Span, ...args: A) => T,
|
|
4028
|
+
...args: A
|
|
4029
|
+
): T;
|
|
4030
|
+
Span: typeof Span;
|
|
4031
|
+
}
|
|
4032
|
+
declare abstract class Span {
|
|
4033
|
+
get isTraced(): boolean;
|
|
4034
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4035
|
+
}
|
|
4023
4036
|
// ============ AI Search Error Interfaces ============
|
|
4024
4037
|
interface AiSearchInternalError extends Error {}
|
|
4025
4038
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13700,6 +13713,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13700
13713
|
): unknown;
|
|
13701
13714
|
export const env: Cloudflare.Env;
|
|
13702
13715
|
export const exports: Cloudflare.Exports;
|
|
13716
|
+
export const cache: CacheContext;
|
|
13717
|
+
export const tracing: Tracing;
|
|
13703
13718
|
}
|
|
13704
13719
|
declare module "cloudflare:workers" {
|
|
13705
13720
|
export = CloudflareWorkersModule;
|
|
@@ -14607,7 +14622,8 @@ declare namespace TailStream {
|
|
|
14607
14622
|
| "exceededMemory"
|
|
14608
14623
|
| "loadShed"
|
|
14609
14624
|
| "responseStreamDisconnected"
|
|
14610
|
-
| "scriptNotFound"
|
|
14625
|
+
| "scriptNotFound"
|
|
14626
|
+
| "internalError";
|
|
14611
14627
|
interface ScriptVersion {
|
|
14612
14628
|
readonly id: string;
|
|
14613
14629
|
readonly tag?: string;
|
package/2023-07-01/index.ts
CHANGED
|
@@ -479,6 +479,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
479
479
|
passThroughOnException(): void;
|
|
480
480
|
readonly props: Props;
|
|
481
481
|
cache?: CacheContext;
|
|
482
|
+
tracing?: Tracing;
|
|
482
483
|
}
|
|
483
484
|
export type ExportedHandlerFetchHandler<
|
|
484
485
|
Env = unknown,
|
|
@@ -4026,6 +4027,18 @@ export declare abstract class Performance {
|
|
|
4026
4027
|
*/
|
|
4027
4028
|
toJSON(): object;
|
|
4028
4029
|
}
|
|
4030
|
+
export interface Tracing {
|
|
4031
|
+
enterSpan<T, A extends unknown[]>(
|
|
4032
|
+
name: string,
|
|
4033
|
+
callback: (span: Span, ...args: A) => T,
|
|
4034
|
+
...args: A
|
|
4035
|
+
): T;
|
|
4036
|
+
Span: typeof Span;
|
|
4037
|
+
}
|
|
4038
|
+
export declare abstract class Span {
|
|
4039
|
+
get isTraced(): boolean;
|
|
4040
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4041
|
+
}
|
|
4029
4042
|
// ============ AI Search Error Interfaces ============
|
|
4030
4043
|
export interface AiSearchInternalError extends Error {}
|
|
4031
4044
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13671,6 +13684,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13671
13684
|
): unknown;
|
|
13672
13685
|
export const env: Cloudflare.Env;
|
|
13673
13686
|
export const exports: Cloudflare.Exports;
|
|
13687
|
+
export const cache: CacheContext;
|
|
13688
|
+
export const tracing: Tracing;
|
|
13674
13689
|
}
|
|
13675
13690
|
export interface SecretsStoreSecret {
|
|
13676
13691
|
/**
|
|
@@ -14568,7 +14583,8 @@ export declare namespace TailStream {
|
|
|
14568
14583
|
| "exceededMemory"
|
|
14569
14584
|
| "loadShed"
|
|
14570
14585
|
| "responseStreamDisconnected"
|
|
14571
|
-
| "scriptNotFound"
|
|
14586
|
+
| "scriptNotFound"
|
|
14587
|
+
| "internalError";
|
|
14572
14588
|
interface ScriptVersion {
|
|
14573
14589
|
readonly id: string;
|
|
14574
14590
|
readonly tag?: string;
|
package/experimental/index.d.ts
CHANGED
|
@@ -501,6 +501,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
501
501
|
readonly key?: string;
|
|
502
502
|
readonly override?: string;
|
|
503
503
|
};
|
|
504
|
+
tracing?: Tracing;
|
|
504
505
|
abort(reason?: any): void;
|
|
505
506
|
}
|
|
506
507
|
type ExportedHandlerFetchHandler<
|
|
@@ -4713,6 +4714,18 @@ interface EventCounts {
|
|
|
4713
4714
|
): void;
|
|
4714
4715
|
[Symbol.iterator](): IterableIterator<string[]>;
|
|
4715
4716
|
}
|
|
4717
|
+
interface Tracing {
|
|
4718
|
+
enterSpan<T, A extends unknown[]>(
|
|
4719
|
+
name: string,
|
|
4720
|
+
callback: (span: Span, ...args: A) => T,
|
|
4721
|
+
...args: A
|
|
4722
|
+
): T;
|
|
4723
|
+
Span: typeof Span;
|
|
4724
|
+
}
|
|
4725
|
+
declare abstract class Span {
|
|
4726
|
+
get isTraced(): boolean;
|
|
4727
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4728
|
+
}
|
|
4716
4729
|
// ============ AI Search Error Interfaces ============
|
|
4717
4730
|
interface AiSearchInternalError extends Error {}
|
|
4718
4731
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -14393,6 +14406,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
14393
14406
|
): unknown;
|
|
14394
14407
|
export const env: Cloudflare.Env;
|
|
14395
14408
|
export const exports: Cloudflare.Exports;
|
|
14409
|
+
export const cache: CacheContext;
|
|
14410
|
+
export const tracing: Tracing;
|
|
14396
14411
|
}
|
|
14397
14412
|
declare module "cloudflare:workers" {
|
|
14398
14413
|
export = CloudflareWorkersModule;
|
|
@@ -15300,7 +15315,8 @@ declare namespace TailStream {
|
|
|
15300
15315
|
| "exceededMemory"
|
|
15301
15316
|
| "loadShed"
|
|
15302
15317
|
| "responseStreamDisconnected"
|
|
15303
|
-
| "scriptNotFound"
|
|
15318
|
+
| "scriptNotFound"
|
|
15319
|
+
| "internalError";
|
|
15304
15320
|
interface ScriptVersion {
|
|
15305
15321
|
readonly id: string;
|
|
15306
15322
|
readonly tag?: string;
|
package/experimental/index.ts
CHANGED
|
@@ -503,6 +503,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
503
503
|
readonly key?: string;
|
|
504
504
|
readonly override?: string;
|
|
505
505
|
};
|
|
506
|
+
tracing?: Tracing;
|
|
506
507
|
abort(reason?: any): void;
|
|
507
508
|
}
|
|
508
509
|
export type ExportedHandlerFetchHandler<
|
|
@@ -4719,6 +4720,18 @@ export interface EventCounts {
|
|
|
4719
4720
|
): void;
|
|
4720
4721
|
[Symbol.iterator](): IterableIterator<string[]>;
|
|
4721
4722
|
}
|
|
4723
|
+
export interface Tracing {
|
|
4724
|
+
enterSpan<T, A extends unknown[]>(
|
|
4725
|
+
name: string,
|
|
4726
|
+
callback: (span: Span, ...args: A) => T,
|
|
4727
|
+
...args: A
|
|
4728
|
+
): T;
|
|
4729
|
+
Span: typeof Span;
|
|
4730
|
+
}
|
|
4731
|
+
export declare abstract class Span {
|
|
4732
|
+
get isTraced(): boolean;
|
|
4733
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4734
|
+
}
|
|
4722
4735
|
// ============ AI Search Error Interfaces ============
|
|
4723
4736
|
export interface AiSearchInternalError extends Error {}
|
|
4724
4737
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -14364,6 +14377,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
14364
14377
|
): unknown;
|
|
14365
14378
|
export const env: Cloudflare.Env;
|
|
14366
14379
|
export const exports: Cloudflare.Exports;
|
|
14380
|
+
export const cache: CacheContext;
|
|
14381
|
+
export const tracing: Tracing;
|
|
14367
14382
|
}
|
|
14368
14383
|
export interface SecretsStoreSecret {
|
|
14369
14384
|
/**
|
|
@@ -15261,7 +15276,8 @@ export declare namespace TailStream {
|
|
|
15261
15276
|
| "exceededMemory"
|
|
15262
15277
|
| "loadShed"
|
|
15263
15278
|
| "responseStreamDisconnected"
|
|
15264
|
-
| "scriptNotFound"
|
|
15279
|
+
| "scriptNotFound"
|
|
15280
|
+
| "internalError";
|
|
15265
15281
|
interface ScriptVersion {
|
|
15266
15282
|
readonly id: string;
|
|
15267
15283
|
readonly tag?: string;
|
package/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
469
469
|
passThroughOnException(): void;
|
|
470
470
|
readonly props: Props;
|
|
471
471
|
cache?: CacheContext;
|
|
472
|
+
tracing?: Tracing;
|
|
472
473
|
}
|
|
473
474
|
type ExportedHandlerFetchHandler<
|
|
474
475
|
Env = unknown,
|
|
@@ -3912,6 +3913,18 @@ declare abstract class Performance {
|
|
|
3912
3913
|
*/
|
|
3913
3914
|
toJSON(): object;
|
|
3914
3915
|
}
|
|
3916
|
+
interface Tracing {
|
|
3917
|
+
enterSpan<T, A extends unknown[]>(
|
|
3918
|
+
name: string,
|
|
3919
|
+
callback: (span: Span, ...args: A) => T,
|
|
3920
|
+
...args: A
|
|
3921
|
+
): T;
|
|
3922
|
+
Span: typeof Span;
|
|
3923
|
+
}
|
|
3924
|
+
declare abstract class Span {
|
|
3925
|
+
get isTraced(): boolean;
|
|
3926
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3927
|
+
}
|
|
3915
3928
|
// ============ AI Search Error Interfaces ============
|
|
3916
3929
|
interface AiSearchInternalError extends Error {}
|
|
3917
3930
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13592,6 +13605,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13592
13605
|
): unknown;
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13608
|
+
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13595
13610
|
}
|
|
13596
13611
|
declare module "cloudflare:workers" {
|
|
13597
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14499,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14499
14514
|
| "exceededMemory"
|
|
14500
14515
|
| "loadShed"
|
|
14501
14516
|
| "responseStreamDisconnected"
|
|
14502
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14503
14519
|
interface ScriptVersion {
|
|
14504
14520
|
readonly id: string;
|
|
14505
14521
|
readonly tag?: string;
|
package/index.ts
CHANGED
|
@@ -471,6 +471,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
471
471
|
passThroughOnException(): void;
|
|
472
472
|
readonly props: Props;
|
|
473
473
|
cache?: CacheContext;
|
|
474
|
+
tracing?: Tracing;
|
|
474
475
|
}
|
|
475
476
|
export type ExportedHandlerFetchHandler<
|
|
476
477
|
Env = unknown,
|
|
@@ -3918,6 +3919,18 @@ export declare abstract class Performance {
|
|
|
3918
3919
|
*/
|
|
3919
3920
|
toJSON(): object;
|
|
3920
3921
|
}
|
|
3922
|
+
export interface Tracing {
|
|
3923
|
+
enterSpan<T, A extends unknown[]>(
|
|
3924
|
+
name: string,
|
|
3925
|
+
callback: (span: Span, ...args: A) => T,
|
|
3926
|
+
...args: A
|
|
3927
|
+
): T;
|
|
3928
|
+
Span: typeof Span;
|
|
3929
|
+
}
|
|
3930
|
+
export declare abstract class Span {
|
|
3931
|
+
get isTraced(): boolean;
|
|
3932
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3933
|
+
}
|
|
3921
3934
|
// ============ AI Search Error Interfaces ============
|
|
3922
3935
|
export interface AiSearchInternalError extends Error {}
|
|
3923
3936
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13563,6 +13576,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13563
13576
|
): unknown;
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13579
|
+
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13566
13581
|
}
|
|
13567
13582
|
export interface SecretsStoreSecret {
|
|
13568
13583
|
/**
|
|
@@ -14460,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14460
14475
|
| "exceededMemory"
|
|
14461
14476
|
| "loadShed"
|
|
14462
14477
|
| "responseStreamDisconnected"
|
|
14463
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14464
14480
|
interface ScriptVersion {
|
|
14465
14481
|
readonly id: string;
|
|
14466
14482
|
readonly tag?: string;
|
package/latest/index.d.ts
CHANGED
|
@@ -480,6 +480,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
480
480
|
readonly exports: Cloudflare.Exports;
|
|
481
481
|
readonly props: Props;
|
|
482
482
|
cache?: CacheContext;
|
|
483
|
+
tracing?: Tracing;
|
|
483
484
|
}
|
|
484
485
|
type ExportedHandlerFetchHandler<
|
|
485
486
|
Env = unknown,
|
|
@@ -4053,6 +4054,18 @@ declare abstract class Performance {
|
|
|
4053
4054
|
*/
|
|
4054
4055
|
toJSON(): object;
|
|
4055
4056
|
}
|
|
4057
|
+
interface Tracing {
|
|
4058
|
+
enterSpan<T, A extends unknown[]>(
|
|
4059
|
+
name: string,
|
|
4060
|
+
callback: (span: Span, ...args: A) => T,
|
|
4061
|
+
...args: A
|
|
4062
|
+
): T;
|
|
4063
|
+
Span: typeof Span;
|
|
4064
|
+
}
|
|
4065
|
+
declare abstract class Span {
|
|
4066
|
+
get isTraced(): boolean;
|
|
4067
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4068
|
+
}
|
|
4056
4069
|
// ============ AI Search Error Interfaces ============
|
|
4057
4070
|
interface AiSearchInternalError extends Error {}
|
|
4058
4071
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13733,6 +13746,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13733
13746
|
): unknown;
|
|
13734
13747
|
export const env: Cloudflare.Env;
|
|
13735
13748
|
export const exports: Cloudflare.Exports;
|
|
13749
|
+
export const cache: CacheContext;
|
|
13750
|
+
export const tracing: Tracing;
|
|
13736
13751
|
}
|
|
13737
13752
|
declare module "cloudflare:workers" {
|
|
13738
13753
|
export = CloudflareWorkersModule;
|
|
@@ -14640,7 +14655,8 @@ declare namespace TailStream {
|
|
|
14640
14655
|
| "exceededMemory"
|
|
14641
14656
|
| "loadShed"
|
|
14642
14657
|
| "responseStreamDisconnected"
|
|
14643
|
-
| "scriptNotFound"
|
|
14658
|
+
| "scriptNotFound"
|
|
14659
|
+
| "internalError";
|
|
14644
14660
|
interface ScriptVersion {
|
|
14645
14661
|
readonly id: string;
|
|
14646
14662
|
readonly tag?: string;
|
package/latest/index.ts
CHANGED
|
@@ -482,6 +482,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
482
482
|
readonly exports: Cloudflare.Exports;
|
|
483
483
|
readonly props: Props;
|
|
484
484
|
cache?: CacheContext;
|
|
485
|
+
tracing?: Tracing;
|
|
485
486
|
}
|
|
486
487
|
export type ExportedHandlerFetchHandler<
|
|
487
488
|
Env = unknown,
|
|
@@ -4059,6 +4060,18 @@ export declare abstract class Performance {
|
|
|
4059
4060
|
*/
|
|
4060
4061
|
toJSON(): object;
|
|
4061
4062
|
}
|
|
4063
|
+
export interface Tracing {
|
|
4064
|
+
enterSpan<T, A extends unknown[]>(
|
|
4065
|
+
name: string,
|
|
4066
|
+
callback: (span: Span, ...args: A) => T,
|
|
4067
|
+
...args: A
|
|
4068
|
+
): T;
|
|
4069
|
+
Span: typeof Span;
|
|
4070
|
+
}
|
|
4071
|
+
export declare abstract class Span {
|
|
4072
|
+
get isTraced(): boolean;
|
|
4073
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
4074
|
+
}
|
|
4062
4075
|
// ============ AI Search Error Interfaces ============
|
|
4063
4076
|
export interface AiSearchInternalError extends Error {}
|
|
4064
4077
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13704,6 +13717,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13704
13717
|
): unknown;
|
|
13705
13718
|
export const env: Cloudflare.Env;
|
|
13706
13719
|
export const exports: Cloudflare.Exports;
|
|
13720
|
+
export const cache: CacheContext;
|
|
13721
|
+
export const tracing: Tracing;
|
|
13707
13722
|
}
|
|
13708
13723
|
export interface SecretsStoreSecret {
|
|
13709
13724
|
/**
|
|
@@ -14601,7 +14616,8 @@ export declare namespace TailStream {
|
|
|
14601
14616
|
| "exceededMemory"
|
|
14602
14617
|
| "loadShed"
|
|
14603
14618
|
| "responseStreamDisconnected"
|
|
14604
|
-
| "scriptNotFound"
|
|
14619
|
+
| "scriptNotFound"
|
|
14620
|
+
| "internalError";
|
|
14605
14621
|
interface ScriptVersion {
|
|
14606
14622
|
readonly id: string;
|
|
14607
14623
|
readonly tag?: string;
|
package/oldest/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ExecutionContext<Props = unknown> {
|
|
|
469
469
|
passThroughOnException(): void;
|
|
470
470
|
readonly props: Props;
|
|
471
471
|
cache?: CacheContext;
|
|
472
|
+
tracing?: Tracing;
|
|
472
473
|
}
|
|
473
474
|
type ExportedHandlerFetchHandler<
|
|
474
475
|
Env = unknown,
|
|
@@ -3912,6 +3913,18 @@ declare abstract class Performance {
|
|
|
3912
3913
|
*/
|
|
3913
3914
|
toJSON(): object;
|
|
3914
3915
|
}
|
|
3916
|
+
interface Tracing {
|
|
3917
|
+
enterSpan<T, A extends unknown[]>(
|
|
3918
|
+
name: string,
|
|
3919
|
+
callback: (span: Span, ...args: A) => T,
|
|
3920
|
+
...args: A
|
|
3921
|
+
): T;
|
|
3922
|
+
Span: typeof Span;
|
|
3923
|
+
}
|
|
3924
|
+
declare abstract class Span {
|
|
3925
|
+
get isTraced(): boolean;
|
|
3926
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3927
|
+
}
|
|
3915
3928
|
// ============ AI Search Error Interfaces ============
|
|
3916
3929
|
interface AiSearchInternalError extends Error {}
|
|
3917
3930
|
interface AiSearchNotFoundError extends Error {}
|
|
@@ -13592,6 +13605,8 @@ declare namespace CloudflareWorkersModule {
|
|
|
13592
13605
|
): unknown;
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13608
|
+
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13595
13610
|
}
|
|
13596
13611
|
declare module "cloudflare:workers" {
|
|
13597
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14499,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14499
14514
|
| "exceededMemory"
|
|
14500
14515
|
| "loadShed"
|
|
14501
14516
|
| "responseStreamDisconnected"
|
|
14502
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14503
14519
|
interface ScriptVersion {
|
|
14504
14520
|
readonly id: string;
|
|
14505
14521
|
readonly tag?: string;
|
package/oldest/index.ts
CHANGED
|
@@ -471,6 +471,7 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
471
471
|
passThroughOnException(): void;
|
|
472
472
|
readonly props: Props;
|
|
473
473
|
cache?: CacheContext;
|
|
474
|
+
tracing?: Tracing;
|
|
474
475
|
}
|
|
475
476
|
export type ExportedHandlerFetchHandler<
|
|
476
477
|
Env = unknown,
|
|
@@ -3918,6 +3919,18 @@ export declare abstract class Performance {
|
|
|
3918
3919
|
*/
|
|
3919
3920
|
toJSON(): object;
|
|
3920
3921
|
}
|
|
3922
|
+
export interface Tracing {
|
|
3923
|
+
enterSpan<T, A extends unknown[]>(
|
|
3924
|
+
name: string,
|
|
3925
|
+
callback: (span: Span, ...args: A) => T,
|
|
3926
|
+
...args: A
|
|
3927
|
+
): T;
|
|
3928
|
+
Span: typeof Span;
|
|
3929
|
+
}
|
|
3930
|
+
export declare abstract class Span {
|
|
3931
|
+
get isTraced(): boolean;
|
|
3932
|
+
setAttribute(key: string, value?: boolean | number | string): void;
|
|
3933
|
+
}
|
|
3921
3934
|
// ============ AI Search Error Interfaces ============
|
|
3922
3935
|
export interface AiSearchInternalError extends Error {}
|
|
3923
3936
|
export interface AiSearchNotFoundError extends Error {}
|
|
@@ -13563,6 +13576,8 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13563
13576
|
): unknown;
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13579
|
+
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13566
13581
|
}
|
|
13567
13582
|
export interface SecretsStoreSecret {
|
|
13568
13583
|
/**
|
|
@@ -14460,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14460
14475
|
| "exceededMemory"
|
|
14461
14476
|
| "loadShed"
|
|
14462
14477
|
| "responseStreamDisconnected"
|
|
14463
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14464
14480
|
interface ScriptVersion {
|
|
14465
14481
|
readonly id: string;
|
|
14466
14482
|
readonly tag?: string;
|
package/package.json
CHANGED