salestation 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/salestation/web/request_logger.rb +1 -3
- data/lib/salestation/web/statsd_middleware.rb +7 -1
- data/salestation.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62aef9e4fa2a302564b0d5532ee005f274f52d1f
|
4
|
+
data.tar.gz: 95ce957db64d773feabe1f40e47310dd62ff545b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39142c2602b297e443d1dc059c5c7518c3716298de8ebaebab8ac478c4b775baae642f6ab8aa7971b4e13494828c2c3c4ff0612e7050e4c2717dbe72aa14322a
|
7
|
+
data.tar.gz: a80316925010c4099a1d3bbdb1604b9233f2c7366a32b5d9ac7eeff72a043bc2c91278f4335743903c0fe06472f4745bcc60a0d025378b635d492955c40a3f03
|
@@ -13,7 +13,13 @@ module Salestation
|
|
13
13
|
|
14
14
|
status, header, body = @app.call env
|
15
15
|
|
16
|
-
method
|
16
|
+
method = env['REQUEST_METHOD']
|
17
|
+
path =
|
18
|
+
if route = env['sinatra.route']
|
19
|
+
route.split(' ').last
|
20
|
+
else
|
21
|
+
'unknown-route'
|
22
|
+
end
|
17
23
|
|
18
24
|
@statsd.timing(@metric, (Time.now - start) * 1000, tags: [
|
19
25
|
"path:#{ path }",
|
data/salestation.gemspec
CHANGED