Class: RailsOtelContext::Configuration
- Inherits:
-
Object
- Object
- RailsOtelContext::Configuration
- Defined in:
- lib/rails_otel_context/configuration.rb
Instance Attribute Summary collapse
-
#clickhouse_enabled ⇒ Object
Returns the value of attribute clickhouse_enabled.
-
#connection_pool_tracing_enabled ⇒ Object
Returns the value of attribute connection_pool_tracing_enabled.
-
#custom_span_attributes ⇒ Object
Returns the value of attribute custom_span_attributes.
-
#redis_source_enabled ⇒ Object
Returns the value of attribute redis_source_enabled.
-
#request_context_enabled ⇒ Object
Deprecated: rails.controller / rails.action / rails.job are now always set on every span.
-
#slow_query_threshold_ms ⇒ Object
Returns the value of attribute slow_query_threshold_ms.
-
#span_name_formatter ⇒ Object
Returns the value of attribute span_name_formatter.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 25 |
# File 'lib/rails_otel_context/configuration.rb', line 17 def initialize @redis_source_enabled = false @clickhouse_enabled = true @connection_pool_tracing_enabled = false @span_name_formatter = nil @custom_span_attributes = nil @request_context_enabled = false @slow_query_threshold_ms = nil end |
Instance Attribute Details
#clickhouse_enabled ⇒ Object
Returns the value of attribute clickhouse_enabled.
5 6 7 |
# File 'lib/rails_otel_context/configuration.rb', line 5 def clickhouse_enabled @clickhouse_enabled end |
#connection_pool_tracing_enabled ⇒ Object
Returns the value of attribute connection_pool_tracing_enabled.
5 6 7 |
# File 'lib/rails_otel_context/configuration.rb', line 5 def connection_pool_tracing_enabled @connection_pool_tracing_enabled end |
#custom_span_attributes ⇒ Object
Returns the value of attribute custom_span_attributes.
15 16 17 |
# File 'lib/rails_otel_context/configuration.rb', line 15 def custom_span_attributes @custom_span_attributes end |
#redis_source_enabled ⇒ Object
Returns the value of attribute redis_source_enabled.
5 6 7 |
# File 'lib/rails_otel_context/configuration.rb', line 5 def redis_source_enabled @redis_source_enabled end |
#request_context_enabled ⇒ Object
Deprecated: rails.controller / rails.action / rails.job are now always set on every span. This option is kept for backwards compatibility and has no effect.
13 14 15 |
# File 'lib/rails_otel_context/configuration.rb', line 13 def request_context_enabled @request_context_enabled end |
#slow_query_threshold_ms ⇒ Object
Returns the value of attribute slow_query_threshold_ms.
5 6 7 |
# File 'lib/rails_otel_context/configuration.rb', line 5 def slow_query_threshold_ms @slow_query_threshold_ms end |
#span_name_formatter ⇒ Object
Returns the value of attribute span_name_formatter.
5 6 7 |
# File 'lib/rails_otel_context/configuration.rb', line 5 def span_name_formatter @span_name_formatter end |