From d7da38652cb940915c83c5fa0f16da67380451eb Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Sat, 30 Sep 2017 17:45:56 -0400 Subject: [PATCH 1/2] [docs] add missing Faraday link --- docs/GettingStarted.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index e15edcba6c9..198aec39b3d 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -32,6 +32,7 @@ provides auto instrumentation for the following web frameworks and libraries: * [Elastic Search](#Elastic_Search) * [MongoDB](#MongoDB) * [Dalli](#Dalli) +* [Faraday](#Faraday) * [Net/HTTP](#Net_HTTP) * [Redis](#Redis) @@ -344,6 +345,22 @@ Or, by enabling distributed tracing for all HTTP calls: See [distributed tracing](#Distributed_Tracing) for details. +### Faraday + +The `faraday` integration is available through the `ddtrace` middleware: + + require 'faraday' + require 'ddtrace' + + Datadog::Monkey.patch_module(:faraday) # registers the tracing middleware + + connection = Faraday.new('https://example.com') do |builder| + builder.use(:ddtrace, options) + builder.adapter Faraday.default_adapter + end + + connection.get('/foo') + ### AWS The AWS integration will trace every interaction (e.g. API calls) with AWS @@ -439,22 +456,6 @@ giving precedence to the middleware settings. Inherited configurations are: * ``trace_agent_hostname`` * ``trace_agent_port`` -### Faraday - -The `faraday` integration is available through the `ddtrace` middleware: - - require 'faraday' - require 'ddtrace' - - Datadog::Monkey.patch_module(:faraday) # registers the tracing middleware - - connection = Faraday.new('https://example.com') do |builder| - builder.use(:ddtrace, options) - builder.adapter Faraday.default_adapter - end - - connection.get('/foo') - Where `options` is an optional `Hash` that accepts the following parameters: | Key | Type | Default | Description | From cdc0a98e656c870d871c415b5a66d8f60befcef2 Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Sat, 30 Sep 2017 18:06:40 -0400 Subject: [PATCH 2/2] [docs] add sucker_punch docs --- docs/GettingStarted.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 198aec39b3d..f844a84455a 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -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) @@ -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.