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.
407 408 409 410 |
# File 'lib/datadog/tracing/trace_operation.rb', line 407 def initialize super(:trace_finished) @deactivate_trace_subscribed = false end |
Instance Method Details
#deactivate_trace_subscribed? ⇒ Boolean
412 413 414 |
# File 'lib/datadog/tracing/trace_operation.rb', line 412 def deactivate_trace_subscribed? @deactivate_trace_subscribed end |
#subscribe_deactivate_trace(&block) ⇒ Object
416 417 418 419 |
# File 'lib/datadog/tracing/trace_operation.rb', line 416 def subscribe_deactivate_trace(&block) @deactivate_trace_subscribed = true subscribe(&block) end |