Class: Skywalking::Tracing::Segment
- Inherits:
-
Object
- Object
- Skywalking::Tracing::Segment
- Defined in:
- lib/skywalking/tracing/segment.rb
Instance Attribute Summary collapse
-
#related_traces ⇒ Object
Returns the value of attribute related_traces.
-
#segment_id ⇒ Object
Returns the value of attribute segment_id.
-
#spans ⇒ Object
Returns the value of attribute spans.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #archive(span) ⇒ Object
-
#initialize ⇒ Segment
constructor
A new instance of Segment.
- #relate(trace_id) ⇒ Object
Constructor Details
Instance Attribute Details
#related_traces ⇒ Object
Returns the value of attribute related_traces.
21 22 23 |
# File 'lib/skywalking/tracing/segment.rb', line 21 def @related_traces end |
#segment_id ⇒ Object
Returns the value of attribute segment_id.
21 22 23 |
# File 'lib/skywalking/tracing/segment.rb', line 21 def segment_id @segment_id end |
#spans ⇒ Object
Returns the value of attribute spans.
21 22 23 |
# File 'lib/skywalking/tracing/segment.rb', line 21 def spans @spans end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
21 22 23 |
# File 'lib/skywalking/tracing/segment.rb', line 21 def @timestamp end |
Instance Method Details
#archive(span) ⇒ Object
30 31 32 |
# File 'lib/skywalking/tracing/segment.rb', line 30 def archive(span) @spans << span end |