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.



13
14
15
16
17
18
19
20
# File 'lib/rails_otel_context/configuration.rb', line 13

def initialize
  @redis_source_enabled = false
  @clickhouse_enabled = true
  @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

#custom_span_attributesObject

Returns the value of attribute custom_span_attributes.



11
12
13
# File 'lib/rails_otel_context/configuration.rb', line 11

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

Returns the value of attribute request_context_enabled.



5
6
7
# File 'lib/rails_otel_context/configuration.rb', line 5

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