Sha256: ada9049006f413cee36ecea1f5351ff441097a2043608fa0e960156aeb55e274
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
module Datadog module Tracing module Contrib module Qless # Shutdown Tracer in forks for performance reasons module TracerCleaner def around_perform(job) return super unless datadog_configuration && Tracing.enabled? super.tap do Tracing.shutdown! if forked? end end private def forked? Datadog.configuration_for(::Qless, :forked) == true end def datadog_configuration Datadog.configuration.tracing[:qless] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.10.1 | lib/datadog/tracing/contrib/qless/tracer_cleaner.rb |
ddtrace-1.10.0 | lib/datadog/tracing/contrib/qless/tracer_cleaner.rb |