Sha256: 25579a8037242c035221a9e33de38eccb4d2eb4b187e9a7e0c4b1c1e6b540733
Contents?: true
Size: 455 Bytes
Versions: 3
Compression:
Stored size: 455 Bytes
Contents
require 'sync_machine/tracer_adapters/open_tracing_adapter' module SyncMachine # Adapt SyncMachine functionality to a specific distributed tracer. module TracerAdapters def self.tracer_adapter if const_defined?(:OpenTracing) OpenTracingAdapter else NullAdapter end end # Do not log spans anywhere. module NullAdapter def self.start_active_span(_name) yield end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sync_machine-1.4.0 | lib/sync_machine/tracer_adapters.rb |
sync_machine-1.3.0 | lib/sync_machine/tracer_adapters.rb |
sync_machine-1.2.0 | lib/sync_machine/tracer_adapters.rb |