Skip to content

Commit

Permalink
flush current bucket on call to flushAndSend
Browse files Browse the repository at this point in the history
  • Loading branch information
lievan committed Jan 18, 2023
1 parent d69cca4 commit aa4942a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/tracer/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (t *tracer) worker(tick <-chan time.Time) {
t.statsd.Incr("datadog.tracer.flush_triggered", []string{"reason:invoked"}, 1)
t.traceWriter.flush()
t.statsd.Flush()
t.stats.flushAndSend(time.Now(), withoutCurrentBucket)
t.stats.flushAndSend(time.Now(), withCurrentBucket)
// TODO(x): In reality, the traceWriter.flush() call is not synchronous
// when using the agent traceWriter. However, this functionnality is used
// in Lambda so for that purpose this mechanism should suffice.
Expand Down

0 comments on commit aa4942a

Please sign in to comment.