Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/zipkin-context-cls/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare class CLSContext implements Context<any> {
getContext(): TraceId;
scoped<V>(callback: () => V): V;
letContext<V>(ctx: TraceId, callback: () => V): V;
constructor(name: string, supportAsyncAwait?: boolean);
constructor(name?: string, supportAsyncAwait?: boolean);
}

export = CLSContext;
7 changes: 3 additions & 4 deletions types/zipkin-context-cls/zipkin-context-cls-tests.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BatchRecorder, jsonEncoder, Tracer } from "zipkin";

import CLSContext = require("zipkin-context-cls");

const ctxImpl = new CLSContext("zipkin");
const ctxImplAsyncAwait = new CLSContext("zipkin", true);
const ctxImpl = new CLSContext();
const ctxImplName = new CLSContext("zipkin");
const ctxImplNameAsyncAwait = new CLSContext("zipkin", true);