跳转到内容

setTracingContextStorage

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

function setTracingContextStorage(storage?): void;

Sets the context storage implementation used for tracing.

Use this before starting traces in runtimes that cannot rely on the SDK’s default AsyncLocalStorage implementation. Pass undefined to restore the default storage.

Parameter Type

storage?

TracingContextStorage<any>

void