跳转到内容

TracingContextStorage

此内容尚不支持你的语言。

type TracingContextStorage<TStore> = object;
Type Parameter Default type

TStore

any

enterWith(store): void;

Replaces the active tracing context store. The store is undefined when tracing clears the current scope.

Parameter Type

store

TStore | undefined

void


getStore(): TStore | undefined;

Returns the active tracing context store, if one exists.

TStore | undefined


run<TResult>(store, callback): TResult;

Runs the callback with the provided store as the active tracing context.

Type Parameter

TResult

Parameter Type

store

TStore

callback

() => TResult

TResult