Skip to content

Commit 15e36e7

Browse files
committed
Readme was incorrect
Corrected middleware insertion config and also the way to install the gem.
1 parent 67258ec commit 15e36e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ This gem gives us an indication of the time that a request/job is spent waiting
77
Add this line to your application's Gemfile:
88

99
```ruby
10-
gem 'request-queue-time-middleware'
10+
source "https://rubygems.pkg.github.com/teamtailor" do
11+
gem "request_queue_time", "0.1.0"
12+
end
1113
```
1214

1315
And then execute:
1416

1517
$ bundle
1618

17-
Or install it yourself as:
18-
19-
$ gem install request-queue-time-middleware
20-
2119
## Usage
2220

2321
The following environment variables are required for the metric that is reported to cloudwatch:
@@ -38,7 +36,7 @@ If you want statsd measurements you need to have a the constant `StatsdDdog` def
3836
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:
3937

4038
```rb
41-
Rails.configuration.middleware.insert_before 0, RequestQueueTimeMiddleware
39+
Rails.configuration.middleware.insert_before 0, RequestQueueTime::Middleware
4240
```
4341

4442
The following is required for the sidekiq portion to work though:

0 commit comments

Comments
 (0)