@types/zipkin-context-cls
TypeScript icon, indicating that this package has built-in type declarations

0.11.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/zipkin-context-cls

Weekly Downloads

488

Version

0.11.7

License

MIT

Unpacked Size

3.36 kB

Total Files

5

Last publish

Collaborators

  • types