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 Oct 2, 2017
1 parent d7da386 commit cdc0a98
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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,21 @@ executions. It can be added as any other Sidekiq middleware:
end
end

### SuckerPunch

The `sucker_punch` integration traces all scheduled 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 cdc0a98

Please sign in to comment.