Class: Datadog::Tracing::TraceOperation::Events::TraceFinished

Inherits:
Event
  • Object
show all
Defined in:
lib/datadog/tracing/trace_operation.rb

Overview

Triggered when the trace finishes, regardless of error.

Instance Attribute Summary

Attributes inherited from Event

#name, #subscriptions

Instance Method Summary collapse

Methods inherited from Event

#publish, #subscribe, #unsubscribe_all!

Constructor Details

#initializeTraceFinished

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

Returns:

  • (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