Skip to content

Commit

Permalink
feat: Sinatra Rack Events
Browse files Browse the repository at this point in the history
This PR makes it possible for users to toggle between using the Rack Events and Middleware based instrumentation

See open-telemetry#341
Depends on open-telemetry#342
  • Loading branch information
arielvalentin committed Mar 5, 2023
1 parent 3aee1c3 commit 1890d44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def render(_engine, data, *)
end
end
end
app.use OpenTelemetry::Instrumentation::Rack::Middlewares::TracerMiddleware
app.use(*OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.middleware_args)
app.use Middlewares::TracerMiddleware
end
end
Expand Down

0 comments on commit 1890d44

Please sign in to comment.