Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Close tracer just in case
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Hier <[email protected]>
  • Loading branch information
isaachier committed May 9, 2018
1 parent 3a22376 commit 14e11b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ int main(int argc, char* argv[])
}
setUpTracer(argv[1]);
tracedFunction();
// Not stricly necessary to close tracer, but might flush any buffered
// spans. See more details in opentracing::Tracer::Close() documentation.
opentracing::Tracer::Global()->Close();
return 0;
}

0 comments on commit 14e11b9

Please sign in to comment.