Class: Aspecto::Opentelemetry::Configurator
- Inherits:
-
Object
- Object
- Aspecto::Opentelemetry::Configurator
- Defined in:
- lib/aspecto/opentelemetry/configurator.rb
Overview
Aspecto Opentelemetry Distro Configurator
Instance Attribute Summary collapse
-
#aspecto_auth ⇒ Object
Returns the value of attribute aspecto_auth.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
Constructor Details
#initialize ⇒ Configurator
Returns a new instance of Configurator.
7 8 9 10 11 12 13 |
# File 'lib/aspecto/opentelemetry/configurator.rb', line 7 def initialize # initialize config options from environment variables. # they can later be overwritten with configurator attribute setters # that have precedence over env @service_name = ENV["SERVICE_NAME"] @aspecto_auth = ENV["ASPECTO_AUTH"] end |
Instance Attribute Details
#aspecto_auth ⇒ Object
Returns the value of attribute aspecto_auth.
15 16 17 |
# File 'lib/aspecto/opentelemetry/configurator.rb', line 15 def aspecto_auth @aspecto_auth end |
#service_name ⇒ Object
Returns the value of attribute service_name.
15 16 17 |
# File 'lib/aspecto/opentelemetry/configurator.rb', line 15 def service_name @service_name end |