Skip to content

Commit

Permalink
[resque] add Pin guard to Resque.after_fork (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Palazzetti committed Nov 2, 2017
1 parent 554dc35 commit 03995a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ddtrace/contrib/resque/resque_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def after_perform(*args)
Resque.after_fork do
# get the current tracer
pin = Datadog::Pin.get_from(Resque)
next unless pin && pin.tracer
# clean the state so no CoW happens
pin.tracer.provider.context = nil
pin.tracer.writer.start
Expand Down

0 comments on commit 03995a4

Please sign in to comment.