yabeda-rails 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/yabeda/rails.rb +12 -4
- data/lib/yabeda/rails/version.rb +1 -1
- data/yabeda-rails.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b19f37d8fc8d0ee84bed04a0f13658901ab18ac5e1d1c9db5db5f8fdea981d
|
4
|
+
data.tar.gz: 3a6007be6f1e141264d05a0966cb5e43db5f0849b382122b88758f6b64337fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3d4bb58b49bff48dc3d49638f26ee24b7371689e82918fb0a5666c4f82e109e74922973add0bfac6f6b78f4c6c5a4abf834b78b764461c014e13c55f902cff
|
7
|
+
data.tar.gz: 99ada92e2f220c78e4051d92a1b3bd0fad9c39414c4a24d5959ce9c199e3e6aede953f18d2c9f6f3cb27ff2e98f169bea0bb356043e97e155b10091527bbd669
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## 0.2.0 - 2020-01-14
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
|
12
|
+
- Added `tags` option to metric declarations for compatibility with yabeda and yabeda-prometheus 0.2. @Envek
|
8
13
|
|
9
14
|
## 0.1.2 - 2019-01-19
|
10
15
|
|
data/lib/yabeda/rails.rb
CHANGED
@@ -23,13 +23,21 @@ module Yabeda
|
|
23
23
|
Yabeda.configure do
|
24
24
|
group :rails
|
25
25
|
|
26
|
-
counter :requests_total,
|
27
|
-
|
26
|
+
counter :requests_total, comment: "A counter of the total number of HTTP requests rails processed.",
|
27
|
+
tags: %i[controller action status format method]
|
28
|
+
|
29
|
+
histogram :request_duration, tags: %i[controller action status format method],
|
30
|
+
unit: :seconds,
|
31
|
+
buckets: LONG_RUNNING_REQUEST_BUCKETS,
|
28
32
|
comment: "A histogram of the response latency."
|
33
|
+
|
29
34
|
histogram :view_runtime, unit: :seconds, buckets: LONG_RUNNING_REQUEST_BUCKETS,
|
30
|
-
comment: "A histogram of the view rendering time."
|
35
|
+
comment: "A histogram of the view rendering time.",
|
36
|
+
tags: %i[controller action status format method]
|
37
|
+
|
31
38
|
histogram :db_runtime, unit: :seconds, buckets: LONG_RUNNING_REQUEST_BUCKETS,
|
32
|
-
comment: "A histogram of the activerecord execution time."
|
39
|
+
comment: "A histogram of the activerecord execution time.",
|
40
|
+
tags: %i[controller action status format method]
|
33
41
|
|
34
42
|
ActiveSupport::Notifications.subscribe "process_action.action_controller" do |*args|
|
35
43
|
event = ActiveSupport::Notifications::Event.new(*args)
|
data/lib/yabeda/rails/version.rb
CHANGED
data/yabeda-rails.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_dependency "yabeda"
|
25
|
+
spec.add_dependency "yabeda", "~> 0.2"
|
26
26
|
spec.add_dependency "rails"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.16"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubygems_version: 3.0.
|
124
|
+
rubygems_version: 3.0.3
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Extensible metrics for monitoring Ruby on Rails application
|