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.21.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.21.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.20.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.19.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.18.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.17.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.16.2 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.16.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.16.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.15.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.14.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.13.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.13.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.12.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.12.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.11.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.11.0 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.11.0.beta1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.10.1 lib/datadog/core/telemetry/v1/configuration.rb
ddtrace-1.10.0 lib/datadog/core/telemetry/v1/configuration.rb