opentelemetry-instrumentation-sidekiq 0.17.0 → 0.18.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: 16931c87c910aace5d938407321eb6fc832d36b7436c2f8ac4721da5532bccea
4
- data.tar.gz: da9d93ce6c105f7dcbb12a165dd0bc5a8fb9f8b73b2ed0362c7636c8e7aba0f1
3
+ metadata.gz: 4405583412d46b76cbc7f66b507f931946fdc4555b7ab571760efe72a185b341
4
+ data.tar.gz: 63c257bf5c9f033fc3b336fb4acb90ac61ddae10637bade6bc6c48cd08cb2011
5
5
  SHA512:
6
- metadata.gz: f6d91a5b9d207640e9a50d5f9770831c7b8c61d28d29da75de83d3de40ed8054029f1538947afddda8001bfa1ccd02fd202f5fab015818aee5c92c56983b5a93
7
- data.tar.gz: 1f9b9e0de5512199abf9ad29335e510920583bbb5ec37e7fba26e34a3f992d6b9758b260acd2ad01219a211168306a475776761a7d6d5d66994483b7c6c090a5
6
+ metadata.gz: 5fc041aa4d97dd1c19170ef17aa39ff141debd9a1c38d750862c77eda880cc643a5dea481bccaf8e82d96d8555d2ad027e7bf36c92fb5ef90b8c867fcc5eddfe
7
+ data.tar.gz: 9df46a9b2777fed4ee8b857a0313db47ce87b524ddbe3217547d1465650d8e3b3d95e95d9ff50ee1d8c25cec6f3b1025e261a97ecacf0f787189e311899b8591
data/CHANGELOG.md CHANGED
@@ -1,29 +1,38 @@
1
1
  # Release History: opentelemetry-instrumentation-sidekiq
2
2
 
3
+ ### v0.18.0 / 2021-05-21
4
+
5
+ * ADDED: Updated API depedency for 1.0.0.rc1
6
+ * TEST: update test for redis instrumentation refactor [#760](https://github.com/open-telemetry/opentelemetry-ruby/pull/760)
7
+ * BREAKING CHANGE: Remove optional parent_context from in_span
8
+
9
+ * FIXED: Remove optional parent_context from in_span
10
+ * FIXED: Instrument Redis more thoroughly by patching Client#process.
11
+
3
12
  ### v0.17.0 / 2021-04-22
4
13
 
5
- * ADDED: Accept config for sidekiq peer service attribute
14
+ * ADDED: Accept config for sidekiq peer service attribute
6
15
 
7
16
  ### v0.16.0 / 2021-03-17
8
17
 
9
- * FIXED: Example scripts now reference local common lib
10
- * DOCS: Replace Gitter with GitHub Discussions
18
+ * FIXED: Example scripts now reference local common lib
19
+ * DOCS: Replace Gitter with GitHub Discussions
11
20
 
12
21
  ### v0.15.0 / 2021-02-18
13
22
 
14
- * ADDED: Add instrumentation config validation
23
+ * ADDED: Add instrumentation config validation
15
24
 
16
25
  ### v0.14.0 / 2021-02-03
17
26
 
18
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
27
+ * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
19
28
 
20
- * ADDED: Replace getter and setter callables and remove rack specific propagators
29
+ * ADDED: Replace getter and setter callables and remove rack specific propagators
21
30
 
22
31
  ### v0.13.0 / 2021-01-29
23
32
 
24
- * ADDED: Instrument sidekiq background work
25
- * FIXED: Adjust Sidekiq middlewares to match semantic conventions
26
- * FIXED: Set minimum compatible version and use untraced helper
33
+ * ADDED: Instrument sidekiq background work
34
+ * FIXED: Adjust Sidekiq middlewares to match semantic conventions
35
+ * FIXED: Set minimum compatible version and use untraced helper
27
36
 
28
37
  ### v0.12.0 / 2020-12-24
29
38
 
@@ -31,7 +40,7 @@
31
40
 
32
41
  ### v0.11.0 / 2020-12-11
33
42
 
34
- * FIXED: Copyright comments to not reference year
43
+ * FIXED: Copyright comments to not reference year
35
44
 
36
45
  ### v0.10.0 / 2020-12-03
37
46
 
@@ -39,9 +48,9 @@
39
48
 
40
49
  ### v0.9.0 / 2020-11-27
41
50
 
42
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
51
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
43
52
 
44
- * ADDED: Add timeout for force_flush and shutdown
53
+ * ADDED: Add timeout for force_flush and shutdown
45
54
 
46
55
  ### v0.8.0 / 2020-10-27
47
56
 
@@ -49,9 +58,9 @@
49
58
 
50
59
  ### v0.7.0 / 2020-10-07
51
60
 
52
- * DOCS: Adding README for Sidekiq instrumentation
53
- * DOCS: Remove duplicate reference in Sidekiq README
54
- * DOCS: Standardize toplevel docs structure and readme
61
+ * DOCS: Adding README for Sidekiq instrumentation
62
+ * DOCS: Remove duplicate reference in Sidekiq README
63
+ * DOCS: Standardize toplevel docs structure and readme
55
64
 
56
65
  ### v0.6.0 / 2020-09-10
57
66
 
data/README.md CHANGED
@@ -33,7 +33,16 @@ end
33
33
 
34
34
  Example usage can be seen in the `./example/sidekiq.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/sidekiq/example/sidekiq.rb)
35
35
 
36
- ## How can I get invovled?
36
+ ## Development
37
+
38
+ You'll need Redis installed locally to run the test suite. Once you've
39
+ installed it, it will start and stop automatically when you run `rake`.
40
+
41
+ ```
42
+ redis-server test/redis.conf
43
+ ```
44
+
45
+ ## How can I get involved?
37
46
 
38
47
  The `opentelemetry-instrumentation-sidekiq` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
39
48
 
@@ -13,16 +13,17 @@ module OpenTelemetry
13
13
  # by way of its middleware system
14
14
  class TracerMiddleware
15
15
  def call(_worker, msg, _queue)
16
- parent_context = OpenTelemetry.propagation.extract(msg)
17
- tracer.in_span(
18
- span_name(msg),
19
- attributes: build_attributes(msg),
20
- with_parent: parent_context,
21
- kind: :consumer
22
- ) do |span|
23
- span.add_event('created_at', timestamp: msg['created_at'])
24
- span.add_event('enqueued_at', timestamp: msg['enqueued_at'])
25
- yield
16
+ extracted_context = OpenTelemetry.propagation.extract(msg)
17
+ OpenTelemetry::Context.with_current(extracted_context) do
18
+ tracer.in_span(
19
+ span_name(msg),
20
+ attributes: build_attributes(msg),
21
+ kind: :consumer
22
+ ) do |span|
23
+ span.add_event('created_at', timestamp: msg['created_at'])
24
+ span.add_event('enqueued_at', timestamp: msg['enqueued_at'])
25
+ yield
26
+ end
26
27
  end
27
28
  end
28
29
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Sidekiq
10
- VERSION = '0.17.0'
10
+ VERSION = '0.18.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.17.0
19
+ version: 1.0.0.rc1
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.17.0
26
+ version: 1.0.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.17.0
33
+ version: 0.18.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.17.0
40
+ version: 0.18.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-base
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.17.0
47
+ version: 0.18.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.17.0
54
+ version: 0.18.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.0'
103
+ version: 1.0.0.rc1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.0'
110
+ version: 1.0.0.rc1
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -203,10 +203,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
203
203
  licenses:
204
204
  - Apache-2.0
205
205
  metadata:
206
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sidekiq/v0.17.0/file.CHANGELOG.html
206
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sidekiq/v0.18.0/file.CHANGELOG.html
207
207
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/sidekiq
208
208
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
209
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sidekiq/v0.17.0
209
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-sidekiq/v0.18.0
210
210
  post_install_message:
211
211
  rdoc_options: []
212
212
  require_paths: