From e295c5fc06eaf759f104086a7bb249cae19315e6 Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Thu, 30 Nov 2017 10:01:00 +0100 Subject: [PATCH] [docs] update Sinatra documentation with the new API --- docs/GettingStarted.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 3921c06a23a..6d0738d49a3 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -141,6 +141,10 @@ either ``sinatra`` or ``sinatra/base``: require 'ddtrace' require 'ddtrace/contrib/sinatra/tracer' + Datadog.configure do |c| + c.use :sinatra, default_service: 'my-app' + end + get '/' do 'Hello world!' end @@ -149,13 +153,6 @@ The tracing extension will be automatically activated. #### Configure the tracer -To modify the default configuration, use the ``settings.datadog_tracer.configure`` method. For example, -to change the default service name and activate the debug mode: - - configure do - settings.datadog_tracer.configure default_service: 'my-app', debug: true - end - Available settings are: * ``enabled``: define if the ``tracer`` is enabled or not. If set to ``false``, the code is still instrumented