Skip to content

Commit bab68cd

Browse files
committed
README was slightly outdated
Corrected this to reflect the current state of the gem.
1 parent 57ec644 commit bab68cd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ If you want statsd measurements you need to have a the constant `StatsdDdog` def
3939

4040
A Railtie will insert the middleware first in your stack, but if there are issues or you need more control of the middleware placements you can use the configuration below:
4141

42+
If you want it first in the stack:
4243
```rb
43-
Rails.configuration.middleware.insert_before 0, RequestQueueTime::Middleware
44+
Rails.configuration.middleware.insert_before 0, RequestQueueTime::Middleware
45+
```
46+
47+
If you want to use it like it is in the railtie:
48+
```rb
49+
Rails.configuration.middleware.insert_before Rack::Runtime, RequestQueueTime::Middleware
4450
```
4551

4652
The following is required for the sidekiq portion to work though:
@@ -49,7 +55,7 @@ The following is required for the sidekiq portion to work though:
4955
```rb
5056
Rails.application.reloader.to_prepare do
5157
...
52-
AutoScalingMetrics::SidekiqReporter.enable if ENV["ECS_SETUP"]
58+
RequestQueueTime::AutoScalingMetrics::SidekiqReporter.enable if ENV["ECS_SETUP"]
5359
end
5460
```
5561

0 commit comments

Comments
 (0)