Class: OpenTelemetry::SDK::Trace::SpanData
- Inherits:
-
Struct
- Object
- Struct
- OpenTelemetry::SDK::Trace::SpanData
- Defined in:
- lib/opentelemetry/sdk/trace/span_data.rb
Overview
SpanData is a Struct containing Span data for export.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#end_timestamp ⇒ Object
Returns the value of attribute end_timestamp.
-
#events ⇒ Object
Returns the value of attribute events.
-
#instrumentation_scope ⇒ Object
(also: #instrumentation_library)
Returns the value of attribute instrumentation_scope.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#links ⇒ Object
Returns the value of attribute links.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_span_id ⇒ Object
Returns the value of attribute parent_span_id.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#span_id ⇒ Object
Returns the value of attribute span_id.
-
#start_timestamp ⇒ Object
Returns the value of attribute start_timestamp.
-
#status ⇒ Object
Returns the value of attribute status.
-
#total_recorded_attributes ⇒ Object
Returns the value of attribute total_recorded_attributes.
-
#total_recorded_events ⇒ Object
Returns the value of attribute total_recorded_events.
-
#total_recorded_links ⇒ Object
Returns the value of attribute total_recorded_links.
-
#trace_flags ⇒ Object
Returns the value of attribute trace_flags.
-
#trace_id ⇒ Object
Returns the value of attribute trace_id.
-
#tracestate ⇒ Object
Returns the value of attribute tracestate.
Instance Method Summary collapse
-
#hex_parent_span_id ⇒ String
Returns the lowercase hex encoded parent span ID.
-
#hex_span_id ⇒ String
Returns the lowercase hex encoded span ID.
-
#hex_trace_id ⇒ String
Returns the lowercase hex encoded trace ID.
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def attributes @attributes end |
#end_timestamp ⇒ Object
Returns the value of attribute end_timestamp
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def @end_timestamp end |
#events ⇒ Object
Returns the value of attribute events
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def events @events end |
#instrumentation_scope ⇒ Object Also known as: instrumentation_library
Returns the value of attribute instrumentation_scope
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def instrumentation_scope @instrumentation_scope end |
#kind ⇒ Object
Returns the value of attribute kind
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def kind @kind end |
#links ⇒ Object
Returns the value of attribute links
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def links @links end |
#name ⇒ Object
Returns the value of attribute name
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def name @name end |
#parent_span_id ⇒ Object
Returns the value of attribute parent_span_id
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def parent_span_id @parent_span_id end |
#resource ⇒ Object
Returns the value of attribute resource
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def resource @resource end |
#span_id ⇒ Object
Returns the value of attribute span_id
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def span_id @span_id end |
#start_timestamp ⇒ Object
Returns the value of attribute start_timestamp
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def @start_timestamp end |
#status ⇒ Object
Returns the value of attribute status
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def status @status end |
#total_recorded_attributes ⇒ Object
Returns the value of attribute total_recorded_attributes
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def total_recorded_attributes @total_recorded_attributes end |
#total_recorded_events ⇒ Object
Returns the value of attribute total_recorded_events
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def total_recorded_events @total_recorded_events end |
#total_recorded_links ⇒ Object
Returns the value of attribute total_recorded_links
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def total_recorded_links @total_recorded_links end |
#trace_flags ⇒ Object
Returns the value of attribute trace_flags
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def trace_flags @trace_flags end |
#trace_id ⇒ Object
Returns the value of attribute trace_id
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def trace_id @trace_id end |
#tracestate ⇒ Object
Returns the value of attribute tracestate
13 14 15 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 13 def tracestate @tracestate end |
Instance Method Details
#hex_parent_span_id ⇒ String
Returns the lowercase hex encoded parent span ID.
48 49 50 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 48 def hex_parent_span_id parent_span_id.unpack1('H*') end |
#hex_span_id ⇒ String
Returns the lowercase hex encoded span ID.
34 35 36 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 34 def hex_span_id span_id.unpack1('H*') end |
#hex_trace_id ⇒ String
Returns the lowercase hex encoded trace ID.
41 42 43 |
# File 'lib/opentelemetry/sdk/trace/span_data.rb', line 41 def hex_trace_id trace_id.unpack1('H*') end |