Class: Instana::Exporter::Otlp::BaseConverter::SpanData
- Inherits:
-
Struct
- Object
- Struct
- Instana::Exporter::Otlp::BaseConverter::SpanData
- Defined in:
- lib/instana/exporter/otlp/base_converter.rb
Overview
Plain object that directly implements the interface expected by OpenTelemetry::Exporter::OTLP::Exporter#export
This is a simple data structure with the required methods, avoiding unnecessary delegation overhead.
Constant Summary collapse
- EMPTY_ARRAY =
rubocop:disable Lint/ConstantDefinitionInBlock
[].freeze
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#end_timestamp ⇒ Object
Returns the value of attribute end_timestamp.
-
#instrumentation_scope ⇒ Object
Returns the value of attribute instrumentation_scope.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#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.
-
#trace_id ⇒ Object
Returns the value of attribute trace_id.
Instance Method Summary collapse
-
#events ⇒ Array
Empty array — error-free spans carry no events.
-
#links ⇒ Array
Empty array (links not currently supported).
-
#parent_span_is_remote ⇒ Boolean
False (remote parent detection not implemented).
-
#total_recorded_attributes ⇒ Integer
Number of attributes recorded.
-
#total_recorded_events ⇒ Integer
Zero — no events on error-free spans.
-
#total_recorded_links ⇒ Integer
Zero (links not currently supported).
-
#trace_flags ⇒ OpenTelemetry::Trace::TraceFlags
Default trace flags.
-
#tracestate ⇒ OpenTelemetry::Trace::Tracestate
Default empty tracestate.
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def attributes @attributes end |
#end_timestamp ⇒ Object
Returns the value of attribute end_timestamp
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def @end_timestamp end |
#instrumentation_scope ⇒ Object
Returns the value of attribute instrumentation_scope
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def instrumentation_scope @instrumentation_scope end |
#kind ⇒ Object
Returns the value of attribute kind
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def name @name end |
#parent_span_id ⇒ Object
Returns the value of attribute parent_span_id
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def parent_span_id @parent_span_id end |
#resource ⇒ Object
Returns the value of attribute resource
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def resource @resource end |
#span_id ⇒ Object
Returns the value of attribute span_id
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def span_id @span_id end |
#start_timestamp ⇒ Object
Returns the value of attribute start_timestamp
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def @start_timestamp end |
#status ⇒ Object
Returns the value of attribute status
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def status @status end |
#trace_id ⇒ Object
Returns the value of attribute trace_id
56 57 58 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 56 def trace_id @trace_id end |
Instance Method Details
#events ⇒ Array
Returns Empty array — error-free spans carry no events.
81 82 83 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 81 def events EMPTY_ARRAY end |
#links ⇒ Array
Returns Empty array (links not currently supported).
91 92 93 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 91 def links EMPTY_ARRAY end |
#parent_span_is_remote ⇒ Boolean
Returns False (remote parent detection not implemented).
101 102 103 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 101 def parent_span_is_remote false end |
#total_recorded_attributes ⇒ Integer
Returns Number of attributes recorded.
76 77 78 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 76 def total_recorded_attributes attributes.size end |
#total_recorded_events ⇒ Integer
Returns Zero — no events on error-free spans.
86 87 88 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 86 def total_recorded_events 0 end |
#total_recorded_links ⇒ Integer
Returns Zero (links not currently supported).
96 97 98 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 96 def total_recorded_links 0 end |
#trace_flags ⇒ OpenTelemetry::Trace::TraceFlags
Returns Default trace flags.
106 107 108 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 106 def trace_flags OpenTelemetry::Trace::TraceFlags::DEFAULT end |
#tracestate ⇒ OpenTelemetry::Trace::Tracestate
Returns Default empty tracestate.
71 72 73 |
# File 'lib/instana/exporter/otlp/base_converter.rb', line 71 def tracestate OpenTelemetry::Trace::Tracestate::DEFAULT end |