Skip to content

Commit

Permalink
Change documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Aug 12, 2022
1 parent 6ec77d6 commit 25fd552
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@ end

The Sinatra integration traces requests and template rendering.

To start using the tracing client, make sure you import `ddtrace` and `use :sinatra` after either `sinatra` or `sinatra/base`, and before you define your application/routes:
To start using the tracing client, make sure you import `ddtrace` and `instrument :sinatra` after either `sinatra` or `sinatra/base`, and before you define your application/routes:

#### Classic application

Expand Down Expand Up @@ -1936,16 +1936,12 @@ Datadog.configure do |c|
end
class NestedApp < Sinatra::Base
register Datadog::Tracing::Contrib::Sinatra::Tracer
get '/nested' do
'Hello from nested app!'
end
end
class App < Sinatra::Base
register Datadog::Tracing::Contrib::Sinatra::Tracer
use NestedApp
get '/' do
Expand All @@ -1954,8 +1950,6 @@ class App < Sinatra::Base
end
```

Ensure you register `Datadog::Tracing::Contrib::Sinatra::Tracer` as a middleware before you mount your nested applications.

#### Instrumentation options

`options` are the following keyword arguments:
Expand Down

0 comments on commit 25fd552

Please sign in to comment.