diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0396b0a..0a1fe9f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,10 @@ History ------- +0.14.5 +------------------- +- Add trace close interface + 0.14.4 ------------------- - Add trace identifiers to the `SpanContext` diff --git a/package.json b/package.json index cc8997a..eb37fff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opentracing", - "version": "0.14.4", + "version": "0.14.5", "engines": { "node": ">=0.10" }, diff --git a/src/tracer.ts b/src/tracer.ts index 92355c1..d473854 100644 --- a/src/tracer.ts +++ b/src/tracer.ts @@ -87,7 +87,7 @@ export class Tracer { } else { options.references = [childOf]; } - delete(options.childOf); + delete (options.childOf); } return this._startSpan(name, options); } @@ -177,6 +177,12 @@ export class Tracer { protected _extract(format: string, carrier: any): SpanContext | null { return Noop.spanContext!; } + + // close the tracer,flushes spans, and executes any callbacks if necessary + + protected close(callback?: void): void { + + } } export default Tracer;