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.



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

Returns:

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