opentelemetry-instrumentation-active_job 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/opentelemetry/instrumentation/active_job/patches/active_job_callbacks.rb +4 -3
- data/lib/opentelemetry/instrumentation/active_job/version.rb +1 -1
- data/lib/opentelemetry/instrumentation/active_job.rb +2 -2
- data/lib/opentelemetry/instrumentation.rb +1 -1
- data/lib/opentelemetry-instrumentation-active_job.rb +1 -1
- metadata +8 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f27d88a247a40e687f3b998919d50f9f95927475bc51b3d315a834057848cc59
|
4
|
+
data.tar.gz: 759252e7ab2353424e542325506c8c663a60683155f1c13393075ba896bfa31a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55626639d46cab948c41b8e393f1989505f2eac46ef37ceac89bd748d7dee22b3144dd2575431b071b06d6a6e7072b3635775c3f0b6f0aa5096db7125ccde40
|
7
|
+
data.tar.gz: 49cfc91980e64d0b82919375b2c30735db5da47c44fdd67f8aac18d134f1f3fce7a7fcb580fae5816f0f5bf9b7d18a03faa21ad74e9adbfcd719fcbaa7756bfa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-active_job
|
2
2
|
|
3
|
+
### v0.6.0 / 2023-09-07
|
4
|
+
|
5
|
+
* FIXED: Align messaging instrumentation operation names
|
6
|
+
|
7
|
+
### v0.5.2 / 2023-08-03
|
8
|
+
|
9
|
+
* FIXED: Add code semconv attributes
|
10
|
+
* FIXED: Remove inline linter rules
|
11
|
+
|
3
12
|
### v0.5.1 / 2023-06-05
|
4
13
|
|
5
14
|
* FIXED: Base config options
|
@@ -14,7 +14,7 @@ module OpenTelemetry
|
|
14
14
|
base.class_eval do
|
15
15
|
around_enqueue do |job, block|
|
16
16
|
span_kind = job.class.queue_adapter_name == 'inline' ? :client : :producer
|
17
|
-
span_name = "#{otel_config[:span_naming] == :job_class ? job.class : job.queue_name}
|
17
|
+
span_name = "#{otel_config[:span_naming] == :job_class ? job.class : job.queue_name} publish"
|
18
18
|
span_attributes = job_attributes(job)
|
19
19
|
otel_tracer.in_span(span_name, attributes: span_attributes, kind: span_kind) do
|
20
20
|
OpenTelemetry.propagation.inject(job.metadata)
|
@@ -24,10 +24,10 @@ module OpenTelemetry
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
def perform_now
|
27
|
+
def perform_now
|
28
28
|
span_kind = self.class.queue_adapter_name == 'inline' ? :server : :consumer
|
29
29
|
span_name = "#{otel_config[:span_naming] == :job_class ? self.class : queue_name} process"
|
30
|
-
span_attributes = job_attributes(self).merge('messaging.operation' => 'process')
|
30
|
+
span_attributes = job_attributes(self).merge('messaging.operation' => 'process', 'code.function' => 'perform_now')
|
31
31
|
executions_count = (executions || 0) + 1 # because we run before the count is incremented in ActiveJob::Execution
|
32
32
|
|
33
33
|
extracted_context = OpenTelemetry.propagation.extract(metadata)
|
@@ -67,6 +67,7 @@ module OpenTelemetry
|
|
67
67
|
|
68
68
|
def job_attributes(job)
|
69
69
|
otel_attributes = {
|
70
|
+
'code.namespace' => job.class.name,
|
70
71
|
'messaging.destination_kind' => 'queue',
|
71
72
|
'messaging.system' => job.class.queue_adapter_name,
|
72
73
|
'messaging.destination' => job.queue_name,
|
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.
|
4
|
+
version: 0.6.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: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: '2.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.56.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.56.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: simplecov
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,20 +206,6 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0.9'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: yard-doctest
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 0.1.6
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.1.6
|
223
209
|
description: ActiveJob instrumentation for the OpenTelemetry framework
|
224
210
|
email:
|
225
211
|
- cncf-opentelemetry-contributors@lists.cncf.io
|
@@ -242,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
242
228
|
licenses:
|
243
229
|
- Apache-2.0
|
244
230
|
metadata:
|
245
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.
|
231
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.6.0/file/CHANGELOG.md
|
246
232
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_job
|
247
233
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
248
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.
|
234
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.6.0
|
249
235
|
post_install_message:
|
250
236
|
rdoc_options: []
|
251
237
|
require_paths:
|