Class: XRay::DummySegment

Inherits:
Segment
  • Object
show all
Includes:
DummyEntity
Defined in:
lib/aws-xray-sdk/model/dummy_entities.rb

Overview

A dummy segment is created when “xray_recorder“ decides to not sample the segment based on sampling decisions. Adding data to a dummy segment becomes a no-op except for subsegments. This is to reduce the memory footprint of the SDK. A dummy segment will not be sent to the X-Ray daemon by the default emitter. Manually create dummy segments is not recommended.

Constant Summary

Constants included from Entity

Entity::HTTP_REQUEST_KEY, Entity::HTTP_RESPONSE_KEY

Instance Attribute Summary

Attributes inherited from Segment

#origin, #ref_counter, #service, #subsegment_size, #user

Attributes included from Entity

#aws, #cause, #end_time, #error, #exception, #fault, #http_request, #http_response, #name, #namespace, #parent, #sampled, #start_time, #throttle

Method Summary

Methods included from DummyEntity

#add_exception, #annotations, #apply_status_code, #aws=, #merge_http_request, #merge_http_response, #metadata, #sampled, #sampling_rule_name=, #to_h, #to_json

Methods inherited from Segment

#add_subsegment, #decrement_ref_counter, #initialize, #ready_to_send?, #remove_subsegment, #sampling_rule_name=, #segment, #to_h, #trace_id

Methods included from Entity

#add_exception, #add_subsegment, #annotations, #apply_status_code, #cause_id, #close, #closed?, #id, #merge_http_request, #merge_http_response, #metadata, #remove_subsegment, #subsegments, #to_h, #to_json

Constructor Details

This class inherits a constructor from XRay::Segment