Sha256: aedd8c039c02212a8abf17a329efd221ed0b32388327d11f967a511f53b42dd2

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

module Aspecto
  module Opentelemetry
    # Aspecto Opentelemetry Distro Configurator
    class Configurator
      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

      attr_accessor :service_name, :aspecto_auth
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rr-temp-demo-demo-0.1.3 lib/aspecto/opentelemetry/configurator.rb
rr-temp-demo-demo-0.1.1 lib/aspecto/opentelemetry/configurator.rb
rr-temp-demo-demo-0.1.0 lib/aspecto/opentelemetry/configurator.rb