l2meter 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/l2meter/emitter.rb +1 -1
- data/lib/l2meter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91837c28200d27818e80aa692d51c0db92afae3e
|
4
|
+
data.tar.gz: 49905f771389997d635fd7b9feb28d8d85d44c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc23988c5abcc1e819d4143fcb6809ec2a1ecba23c08c712a85a19448dd32fc483fb4147bddd51595c2538b50a04e55f5e5c1c26db752ea8abd0497868a4493
|
7
|
+
data.tar.gz: ee9f7deb896de762da50cf52a5dfd03945b633bf017a82389dfeff74210df4c7f89c3bd4f96f8843f6b06246942e3e118b9368b27f1818633dafab2831279258
|
data/README.md
CHANGED
@@ -93,7 +93,7 @@ Some other l2met-specific methods are supported.
|
|
93
93
|
metrics.count :user_registered # => count#user-registered=1
|
94
94
|
metrics.count :registered_users, 10 # => count#registered-users=10
|
95
95
|
|
96
|
-
metrics.measure :connection_count, 20
|
96
|
+
metrics.measure :connection_count, 20 # => measure#connection-count=20
|
97
97
|
metrics.measure :db_query, 235, unit: :ms, # => measure#db-query.ms=235
|
98
98
|
|
99
99
|
metrics.sample :connection_count, 20, # => sample#connection-count=235
|
@@ -104,15 +104,15 @@ metrics.unique :user, "bob@example.com" # => unique#user=bob@example.com
|
|
104
104
|
|
105
105
|
### Configuration
|
106
106
|
|
107
|
-
L2meter supports
|
107
|
+
L2meter supports configuration. Here's how you can configure things:
|
108
108
|
|
109
109
|
```ruby
|
110
110
|
metrics = L2meter.build do |config|
|
111
|
-
# configuration
|
111
|
+
# configuration happens here
|
112
112
|
end
|
113
113
|
```
|
114
114
|
|
115
|
-
|
115
|
+
Here's the list of all configurable things:
|
116
116
|
|
117
117
|
#### Global context
|
118
118
|
|
@@ -169,6 +169,7 @@ config.prefix = "my-app"
|
|
169
169
|
# ...
|
170
170
|
|
171
171
|
metrics.count :users, 100500 # => count#my-app.users=100500
|
172
|
+
```
|
172
173
|
|
173
174
|
## Silence
|
174
175
|
|
data/lib/l2meter/emitter.rb
CHANGED
data/lib/l2meter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: l2meter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|