Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Merge 74bcf72 into 07e847f
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhai-hub committed May 21, 2020
2 parents 07e847f + 74bcf72 commit 5b011f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -3,6 +3,10 @@
History
-------

0.14.5
-------------------
- Add trace close interface

0.14.4
-------------------
- Add trace identifiers to the `SpanContext`
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "opentracing",
"version": "0.14.4",
"version": "0.14.5",
"engines": {
"node": ">=0.10"
},
Expand Down
8 changes: 7 additions & 1 deletion src/tracer.ts
Expand Up @@ -87,7 +87,7 @@ export class Tracer {
} else {
options.references = [childOf];
}
delete(options.childOf);
delete (options.childOf);
}
return this._startSpan(name, options);
}
Expand Down Expand Up @@ -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;

0 comments on commit 5b011f3

Please sign in to comment.