Installation
npm install --save @types/zipkin-context-cls
Summary
This package contains type definitions for zipkin-context-cls (https://github.com/openzipkin/zipkin-js#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zipkin-context-cls.
index.d.ts
import { Context, TraceId } from "zipkin";
declare class CLSContext implements Context<any> {
setContext(ctx: TraceId): void;
getContext(): TraceId;
scoped<V>(callback: () => V): V;
letContext<V>(ctx: TraceId, callback: () => V): V;
constructor(name: string, supportAsyncAwait?: boolean);
}
export = CLSContext;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: zipkin
Credits
These definitions were written by York Yao.