Sha256: 76e237a4ac028cddcbad50aec71f5fc333bbea34e8dcf495765fee74cf160491

Contents?: true

Size: 670 Bytes

Versions: 7

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module Core
    module Remote
      # Provide Remote Configuration extensions to other components
      module Tie
        Boot = Struct.new(
          :barrier,
          :time,
        )

        def self.boot
          return if Datadog::Core::Remote.active_remote.nil?

          barrier = nil

          t = Datadog::Core::Utils::Time.measure do
            barrier = Datadog::Core::Remote.active_remote.barrier(:once)
          end

          # steep does not permit the next line due to
          # https://github.com/soutaro/steep/issues/1231
          Boot.new(barrier, t)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/core/remote/tie.rb
datadog-2.8.0 lib/datadog/core/remote/tie.rb
datadog-2.7.1 lib/datadog/core/remote/tie.rb
datadog-2.7.0 lib/datadog/core/remote/tie.rb
datadog-2.6.0 lib/datadog/core/remote/tie.rb
datadog-2.5.0 lib/datadog/core/remote/tie.rb
datadog-2.4.0 lib/datadog/core/remote/tie.rb