Class: Datadog::Tracing::Flush::Finished
- 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
-
#flush?(trace_op) ⇒ Boolean
Are all spans finished?.
Methods inherited from Base
Instance Method Details
#flush?(trace_op) ⇒ Boolean
Are all spans finished?
61 62 63 |
# File 'lib/datadog/tracing/flush.rb', line 61 def flush?(trace_op) trace_op && trace_op.finished? end |