sidekiq-instrumentation 1.2.2 → 2.0.0.pre1

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: efa08e01af2293de61c9273900ad7f1fce8202b5ab7a7f3f1c36a53283bbeeaa
4
- data.tar.gz: 872499d82c73764390ce913edbadaf6480c40b5d0baeb8c298644c0a4550d8f5
3
+ metadata.gz: e32051c987e6caae856987bb7dd68f304e6586471bf959605cb402554651ede8
4
+ data.tar.gz: f222631b63f779f8c9e1bc7142c617b748b1261e87ba8368e80f95a2464e9031
5
5
  SHA512:
6
- metadata.gz: 030a00859186218ca81ebb9072f700f87fe77d0a7b03b0d4d7c702c5a62168848d6a9fb0153653082be93cdc55dfa903dede74062f4266d09508316107ac168d
7
- data.tar.gz: df571ab4bba110d64fd267819c3eaecc6d30b02337e94433cacbdbcf8f89ddd722254bc8c9917a064494a21a3e0d23455d20830324f26077ed5379e1bbf8df0e
6
+ metadata.gz: 0e12bf373d09dbc1e9cdcc2c6cbc101fb1c199360365eb14dc78556bcf4d6dac4eb8d819637a91c6117ec218322f7f8c84959f3f7c1ee25d6323bf14cfe8d252
7
+ data.tar.gz: 5ad9df59232807724911ac5a1245fc4f35be754edcfa7476f5518c7424321738a36bb3b7e4e8f029399f86bb46fc893cd3a96c25b729a580ffed0249661ae230
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
+ ## 2.0.0.pre1 09/26/2022
6
+ * Update for Ruby 3 compatibiity
7
+ * Middlewares now take positional arguments rather than using keywords
8
+
5
9
  ## 1.2.2 09/08/2020
6
10
  * Add optional after_trace hook to ClientMiddleware
7
11
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-instrumentation (1.2.2)
4
+ sidekiq-instrumentation (2.0.0.pre1)
5
5
  opentracing (>= 0.3.1)
6
6
 
7
7
  GEM
@@ -78,7 +78,7 @@ PLATFORMS
78
78
  ruby
79
79
 
80
80
  DEPENDENCIES
81
- bundler (~> 1.17)
81
+ bundler
82
82
  dox-style
83
83
  rake
84
84
  rspec
@@ -90,4 +90,4 @@ DEPENDENCIES
90
90
  tracing-matchers (~> 1.0, >= 1.3.0)
91
91
 
92
92
  BUNDLED WITH
93
- 1.17.3
93
+ 2.3.22
data/README.md CHANGED
@@ -43,11 +43,11 @@ Server-side:
43
43
  ```ruby
44
44
  Sidekiq.configure_server do |config|
45
45
  config.client_middleware do |chain|
46
- chain.add Sidekiq::Tracer::ClientMiddleware, tracer: OpenTracing.global_tracer
46
+ chain.add Sidekiq::Tracer::ClientMiddleware, OpenTracing.global_tracer
47
47
  end
48
48
 
49
49
  config.server_middleware do |chain|
50
- chain.add Sidekiq::Tracer::ServerMiddleware, tracer: OpenTracing.global_tracer
50
+ chain.add Sidekiq::Tracer::ServerMiddleware, OpenTracing.global_tracer
51
51
  end
52
52
  end
53
53
  ```
@@ -57,7 +57,7 @@ Client-side:
57
57
  ```ruby
58
58
  Sidekiq.configure_client do |config|
59
59
  config.client_middleware do |chain|
60
- chain.add Sidekiq::Tracer::ClientMiddleware, tracer: OpenTracing.global_tracer
60
+ chain.add Sidekiq::Tracer::ClientMiddleware, OpenTracing.global_tracer
61
61
  end
62
62
  end
63
63
  ```
@@ -7,7 +7,7 @@ module Sidekiq
7
7
 
8
8
  attr_reader :tracer, :active_span
9
9
 
10
- def initialize(tracer:, active_span:)
10
+ def initialize(tracer, active_span)
11
11
  @tracer = tracer
12
12
  @active_span = active_span
13
13
  end
@@ -7,7 +7,7 @@ module Sidekiq
7
7
 
8
8
  attr_reader :tracer, :active_span, :after_trace
9
9
 
10
- def initialize(tracer:, active_span:, after_trace:)
10
+ def initialize(tracer, active_span, after_trace)
11
11
  @tracer = tracer
12
12
  @active_span = active_span
13
13
  @after_trace = after_trace
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Tracer
5
- VERSION = "1.2.2"
5
+ VERSION = "2.0.0.pre1"
6
6
  end
7
7
  end
@@ -34,11 +34,11 @@ module Sidekiq
34
34
  end
35
35
 
36
36
  def add_client_middleware(chain, tracer, active_span)
37
- chain.add Sidekiq::Tracer::ClientMiddleware, tracer: tracer, active_span: active_span
37
+ chain.add Sidekiq::Tracer::ClientMiddleware, tracer, active_span
38
38
  end
39
39
 
40
40
  def add_server_middleware(chain, tracer, active_span, after_trace)
41
- chain.add Sidekiq::Tracer::ServerMiddleware, tracer: tracer, active_span: active_span, after_trace: after_trace
41
+ chain.add Sidekiq::Tracer::ServerMiddleware, tracer, active_span, after_trace
42
42
  end
43
43
  end
44
44
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency "opentracing", ">= 0.3.1"
26
26
 
27
- spec.add_development_dependency "bundler", "~> 1.17"
27
+ spec.add_development_dependency "bundler"
28
28
  spec.add_development_dependency "dox-style"
29
29
  spec.add_development_dependency "rake"
30
30
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 2.0.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-09-08 00:00:00.000000000 Z
12
+ date: 2022-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: opentracing
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.17'
34
+ version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.17'
41
+ version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: dox-style
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -204,11 +204,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - ">="
207
+ - - ">"
208
208
  - !ruby/object:Gem::Version
209
- version: '0'
209
+ version: 1.3.1
210
210
  requirements: []
211
- rubygems_version: 3.1.2
211
+ rubygems_version: 3.2.32
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: OpenTracing instrumentation for Sidekiq.