Class: RailsOtelContext::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_otel_context/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_enabledObject

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_enabledObject

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_attributesObject

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_enabledObject

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_enabledObject

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_msObject

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_formatterObject

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