Sha256: d8fb7f8c1798ea268638c658ae334d4c7f8ced5e03f40e367690e3746fa6d013

Contents?: true

Size: 675 Bytes

Versions: 31

Compression:

Stored size: 675 Bytes

Contents

module Datadog
  module Core
    module Telemetry
      module V1
        # Describes attributes for additional payload or configuration object
        class Configuration
          ERROR_NIL_NAME_MESSAGE = ':name must not be nil'.freeze

          attr_reader \
            :name,
            :value

          # @param name [String] Configuration/additional payload attribute name
          # @param value [String, Integer, Boolean] Corresponding value
          def initialize(name:, value: nil)
            raise ArgumentError, ERROR_NIL_NAME_MESSAGE if name.nil?

            @name = name
            @value = value
          end
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.8.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.7.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.6.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.6.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.5.2 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.5.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.5.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.4.2 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.4.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.4.0 lib/datadog/core/telemetry/v1/configuration.rb