opentelemetry-instrumentation-active_job 0.7.7 → 0.8.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: 86cb8695f1b05690deecd4ccb14dd1f027da943ba2d671749b64654255c49b69
4
- data.tar.gz: 81b0d5dc06219c45e09cd245048ec64200f0efd7a2af6d4aee58ef9265fb1c52
3
+ metadata.gz: d3f9870e956cb5ce27a9ae1c5aea93b8eebb727e0c6f3e8bca9ec63d80af2304
4
+ data.tar.gz: ebb0c8cf5be90f44ca0c4590bb79713110fff13c010a553314274784efa399cc
5
5
  SHA512:
6
- metadata.gz: 8b6f2d8126a3b18ecf9841dddad5d136f44e15cbae65e5277dacf1fe3dd7f92fd6f8c232b7e04b397322597792f668365ebb3c72dda06e5cc0fa3afcca8af16e
7
- data.tar.gz: b224ae9a29caee4b2453d3990c9f198d7937779d8585b3c93daee122c83c69e1430005705667f4b5ca7becb90adf2d78f8afd5c80b7077ae33be04b7561336cb
6
+ metadata.gz: 84e49cf4b757ed9937697cd45d41a15c946abab49834f0079b95b2f44923858a5c87c63c4fd4446589eb1c207df6dc21bbc4b87cc8f7da197033a4ce8ad00d0a
7
+ data.tar.gz: 397902ef87e9896b273e47af17d60b0cf52034318cbfb821eef818b637198f1efde0752d017ffd0562672253872272dc76306f28ac393040a708cc476d36a48e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History: opentelemetry-instrumentation-active_job
2
2
 
3
+ ### v0.8.0 / 2025-01-16
4
+
5
+ * BREAKING CHANGE: Drop Support for EoL Rails 6.1
6
+ * BREAKING CHANGE: Set minimum supported version to Ruby 3.1
7
+
8
+ * ADDED: Drop Support for EoL Rails 6.1
9
+ * ADDED: Set minimum supported version to Ruby 3.1
10
+
11
+ ### v0.7.8 / 2024-10-24
12
+
13
+ * FIXED: ActiveJob Propagate baggage information properly when performing
14
+
3
15
  ### v0.7.7 / 2024-08-21
4
16
 
5
17
  * FIXED: Propagate context between enqueue and perform
@@ -34,7 +34,7 @@ module OpenTelemetry
34
34
  span = tracer.start_root_span(span_name, kind: :consumer, attributes: @mapper.call(payload), links: links)
35
35
  end
36
36
 
37
- { span: span, ctx_token: attach_consumer_context(span) }
37
+ { span: span, ctx_token: attach_consumer_context(span, parent_context) }
38
38
  end
39
39
 
40
40
  # This method attaches a span to multiple contexts:
@@ -42,9 +42,10 @@ module OpenTelemetry
42
42
  # This is used later to enrich the ingress span in children, e.g. setting span status to error when a child event like `discard` terminates due to an error
43
43
  # 2. Registers the ingress span as the "active" span, which is the default behavior of the SDK.
44
44
  # @param span [OpenTelemetry::Trace::Span] the currently active span used to record the exception and set the status
45
+ # @param parent_context [Context] The context to use as the parent for the consumer context
45
46
  # @return [Numeric] Context token that must be detached when finished
46
- def attach_consumer_context(span)
47
- consumer_context = OpenTelemetry::Trace.context_with_span(span)
47
+ def attach_consumer_context(span, parent_context)
48
+ consumer_context = OpenTelemetry::Trace.context_with_span(span, parent_context: parent_context)
48
49
  internal_context = OpenTelemetry::Instrumentation::ActiveJob.context_with_span(span, parent_context: consumer_context)
49
50
 
50
51
  OpenTelemetry::Context.attach(internal_context)
@@ -9,7 +9,7 @@ module OpenTelemetry
9
9
  module ActiveJob
10
10
  # The Instrumentation class contains logic to detect and install the ActiveJob instrumentation
11
11
  class Instrumentation < OpenTelemetry::Instrumentation::Base
12
- MINIMUM_VERSION = Gem::Version.new('6.1.0')
12
+ MINIMUM_VERSION = Gem::Version.new('7')
13
13
 
14
14
  install do |_config|
15
15
  require_dependencies
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveJob
10
- VERSION = '0.7.7'
10
+ VERSION = '0.8.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-active_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,28 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.1
33
+ version: 0.23.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.22.1
41
- - !ruby/object:Gem::Dependency
42
- name: activejob
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '6.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '6.1'
40
+ version: 0.23.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: appraisal
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +128,28 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.65.0
131
+ version: 1.69.1
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.65.0
138
+ version: 1.69.1
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rubocop-performance
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '1.20'
145
+ version: 1.23.0
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '1.20'
152
+ version: 1.23.0
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: simplecov
169
155
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +170,14 @@ dependencies:
184
170
  requirements:
185
171
  - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: '3.19'
173
+ version: 3.24.0
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: '3.19'
180
+ version: 3.24.0
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: yard
197
183
  requirement: !ruby/object:Gem::Requirement
@@ -232,11 +218,11 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
232
218
  licenses:
233
219
  - Apache-2.0
234
220
  metadata:
235
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.7.7/file/CHANGELOG.md
221
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.8.0/file/CHANGELOG.md
236
222
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_job
237
223
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
238
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.7.7
239
- post_install_message:
224
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.8.0
225
+ post_install_message:
240
226
  rdoc_options: []
241
227
  require_paths:
242
228
  - lib
@@ -244,15 +230,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
230
  requirements:
245
231
  - - ">="
246
232
  - !ruby/object:Gem::Version
247
- version: '3.0'
233
+ version: '3.1'
248
234
  required_rubygems_version: !ruby/object:Gem::Requirement
249
235
  requirements:
250
236
  - - ">="
251
237
  - !ruby/object:Gem::Version
252
238
  version: '0'
253
239
  requirements: []
254
- rubygems_version: 3.2.33
255
- signing_key:
240
+ rubygems_version: 3.3.27
241
+ signing_key:
256
242
  specification_version: 4
257
243
  summary: ActiveJob instrumentation for the OpenTelemetry framework
258
244
  test_files: []