Module: Datadog::Contrib::Qless::TracerCleaner
- Defined in:
- lib/ddtrace/contrib/qless/tracer_cleaner.rb
Overview
Shutdown Tracer in forks for performance reasons
Instance Method Summary collapse
Instance Method Details
#around_perform(job) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ddtrace/contrib/qless/tracer_cleaner.rb', line 7 def around_perform(job) return super unless datadog_configuration && tracer super.tap do tracer.shutdown! if forked? end end |