Skip to content

Commit

Permalink
docs: improves documentation for flush method.
Browse files Browse the repository at this point in the history
Co-Authored-By: Adrian Cole <adriancole@users.noreply.github.com>
  • Loading branch information
jcchavezs and adriancole committed Jul 23, 2019
1 parent 9e48988 commit 5af752b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/zipkin/src/batch-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class BatchRecorder {

/**
* Calling this will flush any pending spans to the transport.
*
* Note: the transport itself may be batching, in such case you may need to flush that also.
*/
flush() {
this.partialSpans.forEach((span, id) => {
Expand Down

0 comments on commit 5af752b

Please sign in to comment.