-
Notifications
You must be signed in to change notification settings - Fork 13
insert profiling middleware after Rack::Events #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,7 +60,11 @@ class Railtie < Rails::Railtie | |
| if (Rails.env.development? || Rails.env.test?) && AppProfiler.stackprof_viewer.remote? | ||
| app.middleware.insert_before(0, AppProfiler.viewer::Middleware) | ||
| end | ||
| app.middleware.insert_before(0, AppProfiler.middleware) | ||
| if AppProfiler.otel_instrumentation_enabled | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Otel gems use What do you think @gmcgibbon?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does otel itself add them events middleware? A vanilla app doesn't have it. If so, this is ok.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| app.middleware.insert_after(Rack::Events, AppProfiler.middleware) | ||
| else | ||
| app.middleware.insert_before(0, AppProfiler.middleware) | ||
| end | ||
| end | ||
| end | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.