Class: Aspecto::Opentelemetry::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/aspecto/opentelemetry/configurator.rb

Overview

Aspecto Opentelemetry Distro Configurator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

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_authObject

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_nameObject

Returns the value of attribute service_name.



15
16
17
# File 'lib/aspecto/opentelemetry/configurator.rb', line 15

def service_name
  @service_name
end