Sha256: 20b1930a9fd1fee0b6c9ffe5a0b3fd105c6636e10089c9e0ba473a8343cad2ad

Contents?: true

Size: 375 Bytes

Versions: 7

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Buildkite::TestCollector
  class Object
    module CustomObjectSleep
      def sleep(duration)
        tracer = Buildkite::TestCollector::Uploader.tracer
        tracer&.enter("sleep")

        super
      ensure
        tracer&.leave
      end
    end

    def self.configure
      ::Object.prepend(CustomObjectSleep)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buildkite-test_collector-1.2.3 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.1.3 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.1.2 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.1.1 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.1.0 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.0.1 lib/buildkite/test_collector/object.rb
buildkite-test_collector-1.0.0 lib/buildkite/test_collector/object.rb