Class: Yes::Core::OpenTelemetry::OtlSpan::OtlData
- Inherits:
-
Struct
- Object
- Struct
- Yes::Core::OpenTelemetry::OtlSpan::OtlData
- Defined in:
- lib/yes/core/open_telemetry/otl_span.rb
Overview
Configuration struct for OpenTelemetry span data
Instance Attribute Summary collapse
-
#links_extractor ⇒ Object
Returns the value of attribute links_extractor.
-
#span_attributes ⇒ Object
Returns the value of attribute span_attributes.
-
#span_kind ⇒ Object
Returns the value of attribute span_kind.
-
#span_name ⇒ Object
Returns the value of attribute span_name.
-
#track_sql ⇒ Object
Returns the value of attribute track_sql.
Instance Method Summary collapse
-
#initialize(span_name: nil, span_kind: :internal, span_attributes: {}, links_extractor: proc { [] }, track_sql: false) ⇒ OtlData
constructor
A new instance of OtlData.
Constructor Details
#initialize(span_name: nil, span_kind: :internal, span_attributes: {}, links_extractor: proc { [] }, track_sql: false) ⇒ OtlData
Returns a new instance of OtlData.
19 20 21 22 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 19 def initialize(span_name: nil, span_kind: :internal, span_attributes: {}, links_extractor: proc { [] }, track_sql: false) super end |
Instance Attribute Details
#links_extractor ⇒ Object
Returns the value of attribute links_extractor
13 14 15 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 13 def links_extractor @links_extractor end |
#span_attributes ⇒ Object
Returns the value of attribute span_attributes
13 14 15 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 13 def span_attributes @span_attributes end |
#span_kind ⇒ Object
Returns the value of attribute span_kind
13 14 15 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 13 def span_kind @span_kind end |
#span_name ⇒ Object
Returns the value of attribute span_name
13 14 15 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 13 def span_name @span_name end |
#track_sql ⇒ Object
Returns the value of attribute track_sql
13 14 15 |
# File 'lib/yes/core/open_telemetry/otl_span.rb', line 13 def track_sql @track_sql end |