Sha256: 9474124e49416103a5375a714eeb02f56dc66d63ce340fa4b9f0ac47129a9cef
Contents?: true
Size: 466 Bytes
Versions: 7
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module Jaeger module Reporters class InMemoryReporter def initialize @spans = [] @mutex = Mutex.new end def report(span) @mutex.synchronize do @spans << span end end def spans @mutex.synchronize do @spans end end def clear @mutex.synchronize do @spans.clear end end end end end
Version data entries
7 entries across 7 versions & 3 rubygems