Sha256: 4134c020de094147a0685ecc165dba32305a207dff65c6f0d34232d443f1a661

Contents?: true

Size: 507 Bytes

Versions: 13

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module Resource
    module Detectors
      # AutoDetector contains detect class method for running all detectors
      module AutoDetector
        extend self

        DETECTORS = [
          OpenTelemetry::Resource::Detectors::GoogleCloudPlatform
        ].freeze

        def detect
          DETECTORS.map(&:detect).reduce(:merge)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opentelemetry-resource_detectors-0.21.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.20.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.19.1 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.19.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.18.1 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.18.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.17.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.16.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.15.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.14.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.13.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.12.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.11.0 lib/opentelemetry/resource/detectors/auto_detector.rb