Class: Datadog::Trace::FacadeSegment

Inherits:
XRay::Segment
  • Object
show all
Defined in:
lib/datadog/lambda/trace/xray_lambda.rb

Overview

FacadeSegment is used to create a mock root span, that segments/ subsegments can be attached to. This span will never be submitted to the X-Ray daemon

Instance Method Summary collapse

Constructor Details

#initialize(trace_id: nil, name: nil, parent_id: nil, id: nil, sampled: true) ⇒ FacadeSegment

Returns a new instance of FacadeSegment.



72
73
74
75
76
77
# File 'lib/datadog/lambda/trace/xray_lambda.rb', line 72

def initialize(trace_id: nil, name: nil, parent_id: nil, id: nil,
               sampled: true)
  super(trace_id: trace_id, name: name, parent_id: parent_id)
  @id = id
  @sampled = sampled
end

Instance Method Details

#ready_to_send?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/datadog/lambda/trace/xray_lambda.rb', line 79

def ready_to_send?
  false # never send this facade.
end