Class: Datadog::Trace::FacadeSegment
- Inherits:
-
XRay::Segment
- Object
- XRay::Segment
- Datadog::Trace::FacadeSegment
- 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
-
#initialize(trace_id: nil, name: nil, parent_id: nil, id: nil, sampled: true) ⇒ FacadeSegment
constructor
A new instance of FacadeSegment.
- #ready_to_send? ⇒ Boolean
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
79 80 81 |
# File 'lib/datadog/lambda/trace/xray_lambda.rb', line 79 def ready_to_send? false # never send this facade. end |