Module: OpenTelemetry::Instrumentation::Sinatra::Extensions::TracerExtension
- Defined in:
- lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb
Overview
Sinatra extension that installs TracerMiddleware and provides tracing for template rendering
Defined Under Namespace
Modules: RenderPatches
Class Method Summary collapse
-
.registered(app) ⇒ Object
Sinatra hook after extension is registered.
Class Method Details
.registered(app) ⇒ Object
Sinatra hook after extension is registered
31 32 33 34 35 |
# File 'lib/opentelemetry/instrumentation/sinatra/extensions/tracer_extension.rb', line 31 def self.registered(app) # Create tracing `render` method ::Sinatra::Base.prepend(RenderPatches) Sinatra::Instrumentation.instance.install_middleware(app) end |