@cloudflare/workers-types 4.20260422.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 +16 -1
- package/2021-11-03/index.ts +16 -1
- package/2022-01-31/index.d.ts +16 -1
- package/2022-01-31/index.ts +16 -1
- package/2022-03-21/index.d.ts +16 -1
- package/2022-03-21/index.ts +16 -1
- package/2022-08-04/index.d.ts +16 -1
- package/2022-08-04/index.ts +16 -1
- package/2022-10-31/index.d.ts +16 -1
- package/2022-10-31/index.ts +16 -1
- package/2022-11-30/index.d.ts +16 -1
- package/2022-11-30/index.ts +16 -1
- package/2023-03-01/index.d.ts +16 -1
- package/2023-03-01/index.ts +16 -1
- package/2023-07-01/index.d.ts +16 -1
- package/2023-07-01/index.ts +16 -1
- package/experimental/index.d.ts +16 -1
- package/experimental/index.ts +16 -1
- package/index.d.ts +16 -1
- package/index.ts +16 -1
- package/latest/index.d.ts +16 -1
- package/latest/index.ts +16 -1
- package/oldest/index.d.ts +16 -1
- package/oldest/index.ts +16 -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 {}
|
|
@@ -13593,6 +13606,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13595
13608
|
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13596
13610
|
}
|
|
13597
13611
|
declare module "cloudflare:workers" {
|
|
13598
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14500,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14500
14514
|
| "exceededMemory"
|
|
14501
14515
|
| "loadShed"
|
|
14502
14516
|
| "responseStreamDisconnected"
|
|
14503
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14504
14519
|
interface ScriptVersion {
|
|
14505
14520
|
readonly id: string;
|
|
14506
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 {}
|
|
@@ -13564,6 +13577,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13566
13579
|
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13567
13581
|
}
|
|
13568
13582
|
export interface SecretsStoreSecret {
|
|
13569
13583
|
/**
|
|
@@ -14461,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14461
14475
|
| "exceededMemory"
|
|
14462
14476
|
| "loadShed"
|
|
14463
14477
|
| "responseStreamDisconnected"
|
|
14464
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14465
14480
|
interface ScriptVersion {
|
|
14466
14481
|
readonly id: string;
|
|
14467
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 {}
|
|
@@ -13660,6 +13673,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13660
13673
|
export const env: Cloudflare.Env;
|
|
13661
13674
|
export const exports: Cloudflare.Exports;
|
|
13662
13675
|
export const cache: CacheContext;
|
|
13676
|
+
export const tracing: Tracing;
|
|
13663
13677
|
}
|
|
13664
13678
|
declare module "cloudflare:workers" {
|
|
13665
13679
|
export = CloudflareWorkersModule;
|
|
@@ -14567,7 +14581,8 @@ declare namespace TailStream {
|
|
|
14567
14581
|
| "exceededMemory"
|
|
14568
14582
|
| "loadShed"
|
|
14569
14583
|
| "responseStreamDisconnected"
|
|
14570
|
-
| "scriptNotFound"
|
|
14584
|
+
| "scriptNotFound"
|
|
14585
|
+
| "internalError";
|
|
14571
14586
|
interface ScriptVersion {
|
|
14572
14587
|
readonly id: string;
|
|
14573
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 {}
|
|
@@ -13631,6 +13644,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13631
13644
|
export const env: Cloudflare.Env;
|
|
13632
13645
|
export const exports: Cloudflare.Exports;
|
|
13633
13646
|
export const cache: CacheContext;
|
|
13647
|
+
export const tracing: Tracing;
|
|
13634
13648
|
}
|
|
13635
13649
|
export interface SecretsStoreSecret {
|
|
13636
13650
|
/**
|
|
@@ -14528,7 +14542,8 @@ export declare namespace TailStream {
|
|
|
14528
14542
|
| "exceededMemory"
|
|
14529
14543
|
| "loadShed"
|
|
14530
14544
|
| "responseStreamDisconnected"
|
|
14531
|
-
| "scriptNotFound"
|
|
14545
|
+
| "scriptNotFound"
|
|
14546
|
+
| "internalError";
|
|
14532
14547
|
interface ScriptVersion {
|
|
14533
14548
|
readonly id: string;
|
|
14534
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 {}
|
|
@@ -13669,6 +13682,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13669
13682
|
export const env: Cloudflare.Env;
|
|
13670
13683
|
export const exports: Cloudflare.Exports;
|
|
13671
13684
|
export const cache: CacheContext;
|
|
13685
|
+
export const tracing: Tracing;
|
|
13672
13686
|
}
|
|
13673
13687
|
declare module "cloudflare:workers" {
|
|
13674
13688
|
export = CloudflareWorkersModule;
|
|
@@ -14576,7 +14590,8 @@ declare namespace TailStream {
|
|
|
14576
14590
|
| "exceededMemory"
|
|
14577
14591
|
| "loadShed"
|
|
14578
14592
|
| "responseStreamDisconnected"
|
|
14579
|
-
| "scriptNotFound"
|
|
14593
|
+
| "scriptNotFound"
|
|
14594
|
+
| "internalError";
|
|
14580
14595
|
interface ScriptVersion {
|
|
14581
14596
|
readonly id: string;
|
|
14582
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 {}
|
|
@@ -13640,6 +13653,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13640
13653
|
export const env: Cloudflare.Env;
|
|
13641
13654
|
export const exports: Cloudflare.Exports;
|
|
13642
13655
|
export const cache: CacheContext;
|
|
13656
|
+
export const tracing: Tracing;
|
|
13643
13657
|
}
|
|
13644
13658
|
export interface SecretsStoreSecret {
|
|
13645
13659
|
/**
|
|
@@ -14537,7 +14551,8 @@ export declare namespace TailStream {
|
|
|
14537
14551
|
| "exceededMemory"
|
|
14538
14552
|
| "loadShed"
|
|
14539
14553
|
| "responseStreamDisconnected"
|
|
14540
|
-
| "scriptNotFound"
|
|
14554
|
+
| "scriptNotFound"
|
|
14555
|
+
| "internalError";
|
|
14541
14556
|
interface ScriptVersion {
|
|
14542
14557
|
readonly id: string;
|
|
14543
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 {}
|
|
@@ -13670,6 +13683,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13670
13683
|
export const env: Cloudflare.Env;
|
|
13671
13684
|
export const exports: Cloudflare.Exports;
|
|
13672
13685
|
export const cache: CacheContext;
|
|
13686
|
+
export const tracing: Tracing;
|
|
13673
13687
|
}
|
|
13674
13688
|
declare module "cloudflare:workers" {
|
|
13675
13689
|
export = CloudflareWorkersModule;
|
|
@@ -14577,7 +14591,8 @@ declare namespace TailStream {
|
|
|
14577
14591
|
| "exceededMemory"
|
|
14578
14592
|
| "loadShed"
|
|
14579
14593
|
| "responseStreamDisconnected"
|
|
14580
|
-
| "scriptNotFound"
|
|
14594
|
+
| "scriptNotFound"
|
|
14595
|
+
| "internalError";
|
|
14581
14596
|
interface ScriptVersion {
|
|
14582
14597
|
readonly id: string;
|
|
14583
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 {}
|
|
@@ -13641,6 +13654,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13641
13654
|
export const env: Cloudflare.Env;
|
|
13642
13655
|
export const exports: Cloudflare.Exports;
|
|
13643
13656
|
export const cache: CacheContext;
|
|
13657
|
+
export const tracing: Tracing;
|
|
13644
13658
|
}
|
|
13645
13659
|
export interface SecretsStoreSecret {
|
|
13646
13660
|
/**
|
|
@@ -14538,7 +14552,8 @@ export declare namespace TailStream {
|
|
|
14538
14552
|
| "exceededMemory"
|
|
14539
14553
|
| "loadShed"
|
|
14540
14554
|
| "responseStreamDisconnected"
|
|
14541
|
-
| "scriptNotFound"
|
|
14555
|
+
| "scriptNotFound"
|
|
14556
|
+
| "internalError";
|
|
14542
14557
|
interface ScriptVersion {
|
|
14543
14558
|
readonly id: string;
|
|
14544
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 {}
|
|
@@ -13690,6 +13703,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13690
13703
|
export const env: Cloudflare.Env;
|
|
13691
13704
|
export const exports: Cloudflare.Exports;
|
|
13692
13705
|
export const cache: CacheContext;
|
|
13706
|
+
export const tracing: Tracing;
|
|
13693
13707
|
}
|
|
13694
13708
|
declare module "cloudflare:workers" {
|
|
13695
13709
|
export = CloudflareWorkersModule;
|
|
@@ -14597,7 +14611,8 @@ declare namespace TailStream {
|
|
|
14597
14611
|
| "exceededMemory"
|
|
14598
14612
|
| "loadShed"
|
|
14599
14613
|
| "responseStreamDisconnected"
|
|
14600
|
-
| "scriptNotFound"
|
|
14614
|
+
| "scriptNotFound"
|
|
14615
|
+
| "internalError";
|
|
14601
14616
|
interface ScriptVersion {
|
|
14602
14617
|
readonly id: string;
|
|
14603
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 {}
|
|
@@ -13661,6 +13674,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13661
13674
|
export const env: Cloudflare.Env;
|
|
13662
13675
|
export const exports: Cloudflare.Exports;
|
|
13663
13676
|
export const cache: CacheContext;
|
|
13677
|
+
export const tracing: Tracing;
|
|
13664
13678
|
}
|
|
13665
13679
|
export interface SecretsStoreSecret {
|
|
13666
13680
|
/**
|
|
@@ -14558,7 +14572,8 @@ export declare namespace TailStream {
|
|
|
14558
14572
|
| "exceededMemory"
|
|
14559
14573
|
| "loadShed"
|
|
14560
14574
|
| "responseStreamDisconnected"
|
|
14561
|
-
| "scriptNotFound"
|
|
14575
|
+
| "scriptNotFound"
|
|
14576
|
+
| "internalError";
|
|
14562
14577
|
interface ScriptVersion {
|
|
14563
14578
|
readonly id: string;
|
|
14564
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 {}
|
|
@@ -13695,6 +13708,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13695
13708
|
export const env: Cloudflare.Env;
|
|
13696
13709
|
export const exports: Cloudflare.Exports;
|
|
13697
13710
|
export const cache: CacheContext;
|
|
13711
|
+
export const tracing: Tracing;
|
|
13698
13712
|
}
|
|
13699
13713
|
declare module "cloudflare:workers" {
|
|
13700
13714
|
export = CloudflareWorkersModule;
|
|
@@ -14602,7 +14616,8 @@ declare namespace TailStream {
|
|
|
14602
14616
|
| "exceededMemory"
|
|
14603
14617
|
| "loadShed"
|
|
14604
14618
|
| "responseStreamDisconnected"
|
|
14605
|
-
| "scriptNotFound"
|
|
14619
|
+
| "scriptNotFound"
|
|
14620
|
+
| "internalError";
|
|
14606
14621
|
interface ScriptVersion {
|
|
14607
14622
|
readonly id: string;
|
|
14608
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 {}
|
|
@@ -13666,6 +13679,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13666
13679
|
export const env: Cloudflare.Env;
|
|
13667
13680
|
export const exports: Cloudflare.Exports;
|
|
13668
13681
|
export const cache: CacheContext;
|
|
13682
|
+
export const tracing: Tracing;
|
|
13669
13683
|
}
|
|
13670
13684
|
export interface SecretsStoreSecret {
|
|
13671
13685
|
/**
|
|
@@ -14563,7 +14577,8 @@ export declare namespace TailStream {
|
|
|
14563
14577
|
| "exceededMemory"
|
|
14564
14578
|
| "loadShed"
|
|
14565
14579
|
| "responseStreamDisconnected"
|
|
14566
|
-
| "scriptNotFound"
|
|
14580
|
+
| "scriptNotFound"
|
|
14581
|
+
| "internalError";
|
|
14567
14582
|
interface ScriptVersion {
|
|
14568
14583
|
readonly id: string;
|
|
14569
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 {}
|
|
@@ -13701,6 +13714,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13701
13714
|
export const env: Cloudflare.Env;
|
|
13702
13715
|
export const exports: Cloudflare.Exports;
|
|
13703
13716
|
export const cache: CacheContext;
|
|
13717
|
+
export const tracing: Tracing;
|
|
13704
13718
|
}
|
|
13705
13719
|
declare module "cloudflare:workers" {
|
|
13706
13720
|
export = CloudflareWorkersModule;
|
|
@@ -14608,7 +14622,8 @@ declare namespace TailStream {
|
|
|
14608
14622
|
| "exceededMemory"
|
|
14609
14623
|
| "loadShed"
|
|
14610
14624
|
| "responseStreamDisconnected"
|
|
14611
|
-
| "scriptNotFound"
|
|
14625
|
+
| "scriptNotFound"
|
|
14626
|
+
| "internalError";
|
|
14612
14627
|
interface ScriptVersion {
|
|
14613
14628
|
readonly id: string;
|
|
14614
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 {}
|
|
@@ -13672,6 +13685,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13672
13685
|
export const env: Cloudflare.Env;
|
|
13673
13686
|
export const exports: Cloudflare.Exports;
|
|
13674
13687
|
export const cache: CacheContext;
|
|
13688
|
+
export const tracing: Tracing;
|
|
13675
13689
|
}
|
|
13676
13690
|
export interface SecretsStoreSecret {
|
|
13677
13691
|
/**
|
|
@@ -14569,7 +14583,8 @@ export declare namespace TailStream {
|
|
|
14569
14583
|
| "exceededMemory"
|
|
14570
14584
|
| "loadShed"
|
|
14571
14585
|
| "responseStreamDisconnected"
|
|
14572
|
-
| "scriptNotFound"
|
|
14586
|
+
| "scriptNotFound"
|
|
14587
|
+
| "internalError";
|
|
14573
14588
|
interface ScriptVersion {
|
|
14574
14589
|
readonly id: string;
|
|
14575
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 {}
|
|
@@ -13701,6 +13714,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13701
13714
|
export const env: Cloudflare.Env;
|
|
13702
13715
|
export const exports: Cloudflare.Exports;
|
|
13703
13716
|
export const cache: CacheContext;
|
|
13717
|
+
export const tracing: Tracing;
|
|
13704
13718
|
}
|
|
13705
13719
|
declare module "cloudflare:workers" {
|
|
13706
13720
|
export = CloudflareWorkersModule;
|
|
@@ -14608,7 +14622,8 @@ declare namespace TailStream {
|
|
|
14608
14622
|
| "exceededMemory"
|
|
14609
14623
|
| "loadShed"
|
|
14610
14624
|
| "responseStreamDisconnected"
|
|
14611
|
-
| "scriptNotFound"
|
|
14625
|
+
| "scriptNotFound"
|
|
14626
|
+
| "internalError";
|
|
14612
14627
|
interface ScriptVersion {
|
|
14613
14628
|
readonly id: string;
|
|
14614
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 {}
|
|
@@ -13672,6 +13685,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13672
13685
|
export const env: Cloudflare.Env;
|
|
13673
13686
|
export const exports: Cloudflare.Exports;
|
|
13674
13687
|
export const cache: CacheContext;
|
|
13688
|
+
export const tracing: Tracing;
|
|
13675
13689
|
}
|
|
13676
13690
|
export interface SecretsStoreSecret {
|
|
13677
13691
|
/**
|
|
@@ -14569,7 +14583,8 @@ export declare namespace TailStream {
|
|
|
14569
14583
|
| "exceededMemory"
|
|
14570
14584
|
| "loadShed"
|
|
14571
14585
|
| "responseStreamDisconnected"
|
|
14572
|
-
| "scriptNotFound"
|
|
14586
|
+
| "scriptNotFound"
|
|
14587
|
+
| "internalError";
|
|
14573
14588
|
interface ScriptVersion {
|
|
14574
14589
|
readonly id: string;
|
|
14575
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 {}
|
|
@@ -14394,6 +14407,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
14394
14407
|
export const env: Cloudflare.Env;
|
|
14395
14408
|
export const exports: Cloudflare.Exports;
|
|
14396
14409
|
export const cache: CacheContext;
|
|
14410
|
+
export const tracing: Tracing;
|
|
14397
14411
|
}
|
|
14398
14412
|
declare module "cloudflare:workers" {
|
|
14399
14413
|
export = CloudflareWorkersModule;
|
|
@@ -15301,7 +15315,8 @@ declare namespace TailStream {
|
|
|
15301
15315
|
| "exceededMemory"
|
|
15302
15316
|
| "loadShed"
|
|
15303
15317
|
| "responseStreamDisconnected"
|
|
15304
|
-
| "scriptNotFound"
|
|
15318
|
+
| "scriptNotFound"
|
|
15319
|
+
| "internalError";
|
|
15305
15320
|
interface ScriptVersion {
|
|
15306
15321
|
readonly id: string;
|
|
15307
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 {}
|
|
@@ -14365,6 +14378,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
14365
14378
|
export const env: Cloudflare.Env;
|
|
14366
14379
|
export const exports: Cloudflare.Exports;
|
|
14367
14380
|
export const cache: CacheContext;
|
|
14381
|
+
export const tracing: Tracing;
|
|
14368
14382
|
}
|
|
14369
14383
|
export interface SecretsStoreSecret {
|
|
14370
14384
|
/**
|
|
@@ -15262,7 +15276,8 @@ export declare namespace TailStream {
|
|
|
15262
15276
|
| "exceededMemory"
|
|
15263
15277
|
| "loadShed"
|
|
15264
15278
|
| "responseStreamDisconnected"
|
|
15265
|
-
| "scriptNotFound"
|
|
15279
|
+
| "scriptNotFound"
|
|
15280
|
+
| "internalError";
|
|
15266
15281
|
interface ScriptVersion {
|
|
15267
15282
|
readonly id: string;
|
|
15268
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 {}
|
|
@@ -13593,6 +13606,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13595
13608
|
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13596
13610
|
}
|
|
13597
13611
|
declare module "cloudflare:workers" {
|
|
13598
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14500,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14500
14514
|
| "exceededMemory"
|
|
14501
14515
|
| "loadShed"
|
|
14502
14516
|
| "responseStreamDisconnected"
|
|
14503
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14504
14519
|
interface ScriptVersion {
|
|
14505
14520
|
readonly id: string;
|
|
14506
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 {}
|
|
@@ -13564,6 +13577,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13566
13579
|
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13567
13581
|
}
|
|
13568
13582
|
export interface SecretsStoreSecret {
|
|
13569
13583
|
/**
|
|
@@ -14461,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14461
14475
|
| "exceededMemory"
|
|
14462
14476
|
| "loadShed"
|
|
14463
14477
|
| "responseStreamDisconnected"
|
|
14464
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14465
14480
|
interface ScriptVersion {
|
|
14466
14481
|
readonly id: string;
|
|
14467
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 {}
|
|
@@ -13734,6 +13747,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13734
13747
|
export const env: Cloudflare.Env;
|
|
13735
13748
|
export const exports: Cloudflare.Exports;
|
|
13736
13749
|
export const cache: CacheContext;
|
|
13750
|
+
export const tracing: Tracing;
|
|
13737
13751
|
}
|
|
13738
13752
|
declare module "cloudflare:workers" {
|
|
13739
13753
|
export = CloudflareWorkersModule;
|
|
@@ -14641,7 +14655,8 @@ declare namespace TailStream {
|
|
|
14641
14655
|
| "exceededMemory"
|
|
14642
14656
|
| "loadShed"
|
|
14643
14657
|
| "responseStreamDisconnected"
|
|
14644
|
-
| "scriptNotFound"
|
|
14658
|
+
| "scriptNotFound"
|
|
14659
|
+
| "internalError";
|
|
14645
14660
|
interface ScriptVersion {
|
|
14646
14661
|
readonly id: string;
|
|
14647
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 {}
|
|
@@ -13705,6 +13718,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13705
13718
|
export const env: Cloudflare.Env;
|
|
13706
13719
|
export const exports: Cloudflare.Exports;
|
|
13707
13720
|
export const cache: CacheContext;
|
|
13721
|
+
export const tracing: Tracing;
|
|
13708
13722
|
}
|
|
13709
13723
|
export interface SecretsStoreSecret {
|
|
13710
13724
|
/**
|
|
@@ -14602,7 +14616,8 @@ export declare namespace TailStream {
|
|
|
14602
14616
|
| "exceededMemory"
|
|
14603
14617
|
| "loadShed"
|
|
14604
14618
|
| "responseStreamDisconnected"
|
|
14605
|
-
| "scriptNotFound"
|
|
14619
|
+
| "scriptNotFound"
|
|
14620
|
+
| "internalError";
|
|
14606
14621
|
interface ScriptVersion {
|
|
14607
14622
|
readonly id: string;
|
|
14608
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 {}
|
|
@@ -13593,6 +13606,7 @@ declare namespace CloudflareWorkersModule {
|
|
|
13593
13606
|
export const env: Cloudflare.Env;
|
|
13594
13607
|
export const exports: Cloudflare.Exports;
|
|
13595
13608
|
export const cache: CacheContext;
|
|
13609
|
+
export const tracing: Tracing;
|
|
13596
13610
|
}
|
|
13597
13611
|
declare module "cloudflare:workers" {
|
|
13598
13612
|
export = CloudflareWorkersModule;
|
|
@@ -14500,7 +14514,8 @@ declare namespace TailStream {
|
|
|
14500
14514
|
| "exceededMemory"
|
|
14501
14515
|
| "loadShed"
|
|
14502
14516
|
| "responseStreamDisconnected"
|
|
14503
|
-
| "scriptNotFound"
|
|
14517
|
+
| "scriptNotFound"
|
|
14518
|
+
| "internalError";
|
|
14504
14519
|
interface ScriptVersion {
|
|
14505
14520
|
readonly id: string;
|
|
14506
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 {}
|
|
@@ -13564,6 +13577,7 @@ export declare namespace CloudflareWorkersModule {
|
|
|
13564
13577
|
export const env: Cloudflare.Env;
|
|
13565
13578
|
export const exports: Cloudflare.Exports;
|
|
13566
13579
|
export const cache: CacheContext;
|
|
13580
|
+
export const tracing: Tracing;
|
|
13567
13581
|
}
|
|
13568
13582
|
export interface SecretsStoreSecret {
|
|
13569
13583
|
/**
|
|
@@ -14461,7 +14475,8 @@ export declare namespace TailStream {
|
|
|
14461
14475
|
| "exceededMemory"
|
|
14462
14476
|
| "loadShed"
|
|
14463
14477
|
| "responseStreamDisconnected"
|
|
14464
|
-
| "scriptNotFound"
|
|
14478
|
+
| "scriptNotFound"
|
|
14479
|
+
| "internalError";
|
|
14465
14480
|
interface ScriptVersion {
|
|
14466
14481
|
readonly id: string;
|
|
14467
14482
|
readonly tag?: string;
|
package/package.json
CHANGED