Sha256: 2de1b0ac32f308d50474be6a5a9c10ea3bc8dd40aefacb23263809d126d400ee

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

# Copyright 2020 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

6 entries across 6 versions & 1 rubygems

Version Path
opentelemetry-resource_detectors-0.10.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.9.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.8.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.7.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.6.0 lib/opentelemetry/resource/detectors/auto_detector.rb
opentelemetry-resource_detectors-0.5.1 lib/opentelemetry/resource/detectors/auto_detector.rb