Class: Datadog::Tracing::Flush::Finished

Inherits:
Base
  • Object
show all
Defined in:
lib/datadog/tracing/flush.rb

Overview

Consumes and returns completed traces (where all spans have finished), if any, from the provided trace_op.

Spans consumed are removed from trace_op as a side effect.

Instance Method Summary collapse

Methods inherited from Base

#consume!

Instance Method Details

#flush?(trace_op) ⇒ Boolean

Are all spans finished?

Returns:

  • (Boolean)


61
62
63
# File 'lib/datadog/tracing/flush.rb', line 61

def flush?(trace_op)
  trace_op && trace_op.finished?
end