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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb369932a8e227ce09b8b81c54742d03b7a1c699bd73edc02557723b85e5b97e
4
- data.tar.gz: 419342c6956721af9a0b7577df4cc52aae25ac054b8235f81c3dfa07a4f1d197
3
+ metadata.gz: f726dc01d0fb0ea763c94132859007806f3dfb03df6fda17bf4a755bc6f1c622
4
+ data.tar.gz: bb835bd13a884134036224abeafd7e590949777709b1af89f4b4422ea35406a3
5
5
  SHA512:
6
- metadata.gz: 27df876e1705c20593a1aa424ac1e5eb86511f82f4aa092adeed6616f185aabd9f33942f9d7b35479516d223c20efcc4d47c27f60e9de37cba410050d97a3abf
7
- data.tar.gz: 97c48433208e74ac9ad36657d0fd632d6588c9e20dc0a942ceac2e58f72f3d904047395527b550f175ed32ab965ddd1978223bcea9c33a2176ddd5d8b31277f7
6
+ metadata.gz: 22c8ef3a8a40802efbc25501ad9d8f047c1b9bd5727991a76861a86633549992f39d47ac894f97943fd272183852ed438b5a1302ca42dc002591bcd6e068296b
7
+ data.tar.gz: a30964afb55d3995f4ae051c5ac5b06bb99677e2e0a743fed7accccf1c120e02330831f049bcdb7365d519a1e3907ff8b01d589925a00c67638aa1346697eb71
@@ -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
@@ -12,6 +12,13 @@ appraise 'faraday-10' do
12
12
  end
13
13
  end
14
14
 
15
+ appraise 'rails-70' do
16
+ group :test do
17
+ gem 'rails', '~> 7.0.0'
18
+ gem 'sqlite3', '~> 1.4'
19
+ end
20
+ end
21
+
15
22
  appraise 'rails-61' do
16
23
  group :test do
17
24
  gem 'rails', '~> 6.1.0'
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
@@ -7,7 +7,7 @@ gemspec
7
7
 
8
8
  gem 'rake', '~> 13.0'
9
9
  gem 'rspec', '~> 3.6'
10
- gem 'rubocop', '~> 1.26.0'
10
+ gem 'rubocop', '~> 1.27.0'
11
11
  gem 'timecop', '~> 0.9.1'
12
12
 
13
13
  group :test do
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
 
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -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: "../"
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.19.0"
7
+ gem "rubocop", "~> 1.27.0"
8
8
  gem "timecop", "~> 0.9.1"
9
9
 
10
10
  group :test do
@@ -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
@@ -3,8 +3,8 @@
3
3
  module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 12
7
- PATCH = 1
6
+ MINOR = 13
7
+ PATCH = 0
8
8
  STAGE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, STAGE].compact.join('.')
data/lib/mnemosyne.rb CHANGED
@@ -47,6 +47,7 @@ module Mnemosyne
47
47
  require 'mnemosyne/probes/restify/base'
48
48
  require 'mnemosyne/probes/sidekiq/client'
49
49
  require 'mnemosyne/probes/sidekiq/server'
50
+ require 'mnemosyne/probes/view_component/render_component'
50
51
  end
51
52
 
52
53
  module Middleware
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.12.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-03-21 00:00:00.000000000 Z
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.1.6
150
+ rubygems_version: 3.3.3
149
151
  signing_key:
150
152
  specification_version: 4
151
153
  summary: Ruby/Rails client for Mnemosyne APM