Module: Datadog::Tracing::Contrib::Sinatra::Tracer

Defined in:
lib/datadog/tracing/contrib/sinatra/tracer.rb

Overview

Datadog::Tracing::Contrib::Sinatra::Tracer is a Sinatra extension which traces requests.

Defined Under Namespace

Modules: Base

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



18
19
20
# File 'lib/datadog/tracing/contrib/sinatra/tracer.rb', line 18

def self.registered(app)
  app.use TracerMiddleware, app_instance: app
end