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



20
21
22
# File 'lib/datadog/tracing/contrib/sinatra/tracer.rb', line 20

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