Skip to content

Commit

Permalink
[docs] add sucker_punch docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Palazzetti committed Sep 30, 2017
1 parent d7da386 commit e235af4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ provides auto instrumentation for the following web frameworks and libraries:
* [MongoDB](#MongoDB)
* [Dalli](#Dalli)
* [Faraday](#Faraday)
* [SuckerPunch](#SuckerPunch)
* [Net/HTTP](#Net_HTTP)
* [Redis](#Redis)

Expand Down Expand Up @@ -418,6 +419,23 @@ executions. It can be added as any other Sidekiq middleware:
end
end

### SuckerPunch

The `sucker_punch` integration keeps track of all scheduled job, so that they will have a
common parent when the job is executed:

require 'jobs' # contains a list of your jobs
require 'ddtrace'

Datadog::Monkey.patch_module(:sucker_punch)

# the execution of this job is traced
LogJob.perform_async("login")

# to change SuckerPunch service name, use the Pin class
pin = Datadog::Pin.get_from(::SuckerPunch)
pin.service = 'deploy-queues'

#### Configure the tracer middleware

To modify the default configuration, simply pass arguments to the middleware.
Expand Down

0 comments on commit e235af4

Please sign in to comment.