Class: Datadog::Tracing::TraceOperation::Events::TraceFinished
- Defined in:
- lib/datadog/tracing/trace_operation.rb
Overview
Triggered when the trace finishes, regardless of error.
Instance Attribute Summary
Attributes inherited from Event
Instance Method Summary collapse
- #deactivate_trace_subscribed? ⇒ Boolean
-
#initialize ⇒ TraceFinished
constructor
A new instance of TraceFinished.
- #subscribe_deactivate_trace(&block) ⇒ Object
Methods inherited from Event
#publish, #subscribe, #unsubscribe_all!
Constructor Details
#initialize ⇒ TraceFinished
Returns a new instance of TraceFinished.
360 361 362 363 |
# File 'lib/datadog/tracing/trace_operation.rb', line 360 def initialize super(:trace_finished) @deactivate_trace_subscribed = false end |
Instance Method Details
#deactivate_trace_subscribed? ⇒ Boolean
365 366 367 |
# File 'lib/datadog/tracing/trace_operation.rb', line 365 def deactivate_trace_subscribed? @deactivate_trace_subscribed end |
#subscribe_deactivate_trace(&block) ⇒ Object
369 370 371 372 |
# File 'lib/datadog/tracing/trace_operation.rb', line 369 def subscribe_deactivate_trace(&block) @deactivate_trace_subscribed = true subscribe(&block) end |