Skip to content

Commit a1fc030

Browse files
author
Emanuele Palazzetti
authored
Merge pull request #178 from talwai/doc
add rack require to docs
2 parents ac348e7 + 7038234 commit a1fc030

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/GettingStarted.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ retrieved at the Rack level.
167167
To start using the middleware in your generic Rack application, add it to your ``config.ru``:
168168

169169
# config.ru example
170+
require 'ddtrace/contrib/rack/middlewares'
171+
170172
use Datadog::Contrib::Rack::TraceMiddleware
171173

172174
app = proc do |env|
@@ -178,6 +180,9 @@ To start using the middleware in your generic Rack application, add it to your `
178180
Experimental distributed tracing support is available for this library.
179181
You need to set the ``:distributed_tracing_enabled`` option to true, for example:
180182

183+
# config.ru example
184+
require 'ddtrace/contrib/rack/middlewares'
185+
181186
use Datadog::Contrib::Rack::TraceMiddleware, distributed_tracing_enabled: true
182187

183188
app = proc do |env|
@@ -192,6 +197,8 @@ See [distributed tracing](#Distributed_Tracing) for details.
192197
To modify the default middleware configuration, you can use middleware options as follows:
193198

194199
# config.ru example
200+
require 'ddtrace/contrib/rack/middlewares'
201+
195202
Datadog.tracer.configure(
196203
enabled: true,
197204
hostname: localhost,

0 commit comments

Comments
 (0)