mnemosyne-ruby 1.12.1 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +15 -0
- data/Appraisals +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/README.md +1 -0
- data/gemfiles/faraday_09.gemfile +1 -1
- data/gemfiles/faraday_10.gemfile +1 -1
- data/gemfiles/rails_50.gemfile +1 -1
- data/gemfiles/rails_51.gemfile +1 -1
- data/gemfiles/rails_52.gemfile +1 -1
- data/gemfiles/rails_60.gemfile +1 -1
- data/gemfiles/rails_61.gemfile +1 -1
- data/gemfiles/rails_70.gemfile +28 -0
- data/gemfiles/redis_40.gemfile +1 -1
- data/gemfiles/sidekiq_50.gemfile +1 -1
- data/gemfiles/sidekiq_60.gemfile +1 -1
- data/lib/mnemosyne/probes/view_component/render_component.rb +25 -0
- data/lib/mnemosyne/version.rb +2 -2
- data/lib/mnemosyne.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f726dc01d0fb0ea763c94132859007806f3dfb03df6fda17bf4a755bc6f1c622
|
4
|
+
data.tar.gz: bb835bd13a884134036224abeafd7e590949777709b1af89f4b4422ea35406a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c8ef3a8a40802efbc25501ad9d8f047c1b9bd5727991a76861a86633549992f39d47ac894f97943fd272183852ed438b5a1302ca42dc002591bcd6e068296b
|
7
|
+
data.tar.gz: a30964afb55d3995f4ae051c5ac5b06bb99677e2e0a743fed7accccf1c120e02330831f049bcdb7365d519a1e3907ff8b01d589925a00c67638aa1346697eb71
|
data/.github/workflows/test.yml
CHANGED
@@ -12,6 +12,7 @@ jobs:
|
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
14
|
ruby:
|
15
|
+
- "3.1"
|
15
16
|
- "3.0"
|
16
17
|
- "2.7"
|
17
18
|
- "2.6"
|
@@ -27,6 +28,7 @@ jobs:
|
|
27
28
|
- rails-5.2
|
28
29
|
- rails-6.0
|
29
30
|
- rails-6.1
|
31
|
+
- rails-7.0
|
30
32
|
- redis-4.0
|
31
33
|
- restify
|
32
34
|
- sidekiq-5
|
@@ -59,6 +61,9 @@ jobs:
|
|
59
61
|
- suite: rails-6.1
|
60
62
|
spec: --tag probe:rails --tag ~probe
|
61
63
|
gemfile: gemfiles/rails_61.gemfile
|
64
|
+
- suite: rails-7.0
|
65
|
+
spec: --tag probe:rails --tag ~probe
|
66
|
+
gemfile: gemfiles/rails_70.gemfile
|
62
67
|
- suite: redis-4.0
|
63
68
|
spec: --tag probe:redis
|
64
69
|
gemfile: gemfiles/redis_40.gemfile
|
@@ -71,12 +76,22 @@ jobs:
|
|
71
76
|
spec: --tag probe:sidekiq
|
72
77
|
gemfile: gemfiles/sidekiq_60.gemfile
|
73
78
|
exclude:
|
79
|
+
- suite: rails-5.0
|
80
|
+
ruby: 3.1
|
81
|
+
- suite: rails-5.1
|
82
|
+
ruby: 3.1
|
83
|
+
- suite: rails-5.2
|
84
|
+
ruby: 3.1
|
74
85
|
- suite: rails-5.0
|
75
86
|
ruby: 3.0
|
76
87
|
- suite: rails-5.1
|
77
88
|
ruby: 3.0
|
78
89
|
- suite: rails-5.2
|
79
90
|
ruby: 3.0
|
91
|
+
- suite: rails-7.0
|
92
|
+
ruby: 2.6
|
93
|
+
- suite: rails-7.0
|
94
|
+
ruby: 2.5
|
80
95
|
|
81
96
|
env:
|
82
97
|
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.13.0] - 2022-04-14
|
9
|
+
### Added
|
10
|
+
- Support for `view_component` gem (#42)
|
11
|
+
- Support for Ruby 3.1 and Rails 7.0 (formally)
|
12
|
+
|
8
13
|
## [1.12.1] - 2022-03-21
|
9
14
|
### Added
|
10
15
|
- More commands whitelisted in Redis span metadata (#44)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -14,6 +14,7 @@ Currently supported probes:
|
|
14
14
|
* Restify: Remote calls including tracing middleware
|
15
15
|
* Sidekiq: Client and server tracing
|
16
16
|
* Rack: Middleware for request tracing
|
17
|
+
* ViewComponent: Component rendering (needs [additional configuration](https://viewcomponent.org/guide/instrumentation.html))
|
17
18
|
|
18
19
|
## Installation
|
19
20
|
|
data/gemfiles/faraday_09.gemfile
CHANGED
data/gemfiles/faraday_10.gemfile
CHANGED
data/gemfiles/rails_50.gemfile
CHANGED
data/gemfiles/rails_51.gemfile
CHANGED
data/gemfiles/rails_52.gemfile
CHANGED
data/gemfiles/rails_60.gemfile
CHANGED
data/gemfiles/rails_61.gemfile
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rake", "~> 13.0"
|
6
|
+
gem "rspec", "~> 3.6"
|
7
|
+
gem "rubocop", "~> 1.27.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails", "~> 7.0.0"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3", "~> 1.4"
|
18
|
+
gem "webmock"
|
19
|
+
end
|
20
|
+
|
21
|
+
group :development do
|
22
|
+
gem "appraisal"
|
23
|
+
gem "rake-release", "~> 1.3.0"
|
24
|
+
gem "pry", require: false
|
25
|
+
gem "pry-byebug", require: false
|
26
|
+
end
|
27
|
+
|
28
|
+
gemspec path: "../"
|
data/gemfiles/redis_40.gemfile
CHANGED
data/gemfiles/sidekiq_50.gemfile
CHANGED
data/gemfiles/sidekiq_60.gemfile
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Mnemosyne
|
4
|
+
module Probes
|
5
|
+
module ViewComponent
|
6
|
+
module RenderComponent
|
7
|
+
class Probe < ::Mnemosyne::Probe
|
8
|
+
subscribe '!render.view_component'
|
9
|
+
|
10
|
+
def call(trace, _name, start, finish, _id, payload)
|
11
|
+
start = ::Mnemosyne::Clock.to_tick(start)
|
12
|
+
finish = ::Mnemosyne::Clock.to_tick(finish)
|
13
|
+
|
14
|
+
span = ::Mnemosyne::Span.new 'view.render.component.view_component',
|
15
|
+
start: start, finish: finish, meta: payload
|
16
|
+
|
17
|
+
trace << span
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
register nil, nil, ViewComponent::RenderComponent::Probe.new
|
24
|
+
end
|
25
|
+
end
|
data/lib/mnemosyne/version.rb
CHANGED
data/lib/mnemosyne.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mnemosyne-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- gemfiles/rails_52.gemfile
|
79
79
|
- gemfiles/rails_60.gemfile
|
80
80
|
- gemfiles/rails_61.gemfile
|
81
|
+
- gemfiles/rails_70.gemfile
|
81
82
|
- gemfiles/redis_40.gemfile
|
82
83
|
- gemfiles/sidekiq_50.gemfile
|
83
84
|
- gemfiles/sidekiq_60.gemfile
|
@@ -116,6 +117,7 @@ files:
|
|
116
117
|
- lib/mnemosyne/probes/restify/base.rb
|
117
118
|
- lib/mnemosyne/probes/sidekiq/client.rb
|
118
119
|
- lib/mnemosyne/probes/sidekiq/server.rb
|
120
|
+
- lib/mnemosyne/probes/view_component/render_component.rb
|
119
121
|
- lib/mnemosyne/railtie.rb
|
120
122
|
- lib/mnemosyne/registry.rb
|
121
123
|
- lib/mnemosyne/span.rb
|
@@ -145,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
147
|
- !ruby/object:Gem::Version
|
146
148
|
version: '0'
|
147
149
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.3.3
|
149
151
|
signing_key:
|
150
152
|
specification_version: 4
|
151
153
|
summary: Ruby/Rails client for Mnemosyne APM
|