opentelemetry-instrumentation-active_job 0.5.0 → 0.5.2

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: d927ed3ff47e2dce32acee6210340771341434fc8fdb4b04e6512e851cdcfa55
4
- data.tar.gz: 86f52c4e1a8f4d7a9addeac8a529972f980c14cce05df1d31b2dabdf382333c5
3
+ metadata.gz: e99cf4d61a646c1992deec6848d4fcaa5161d5698227807662204bfdfdb73c61
4
+ data.tar.gz: e27ebef92d315c87c8b1e9347ef5682c103ef455089f07643dd176c8cee62229
5
5
  SHA512:
6
- metadata.gz: 3bd8d06bc9ddffdc9178825d7e37133aead4f41c9becd407c40e543a0aa8dfa052afd551719b3432759002cbddeacf1f32d37ac4f35e9fd0ceb893ebe21cc89f
7
- data.tar.gz: fa42ac86f86195c3d665ea814ae63e991af53c86bb82bbc207077c6c312d5d4679322599d4c43d6855659892a43fcd1f0ad81a7e25267bcf023c0e1a9c2ea1cc
6
+ metadata.gz: a397c386a89c5e6f287effa7de1e3978d1d413a7d5455f47358c846630fa504fb324e95ea7ad8204db7145b966db34b57e4ddd7f5d620ff02dcd00eca47539c7
7
+ data.tar.gz: 554ed55ab0cba6842c723652b043752ab7700d1158c37e25d545af442d54c87ad184708fcac40571fa539ce18605ffec6c63222bc8770a44c989c1f339f6cd50
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History: opentelemetry-instrumentation-active_job
2
2
 
3
+ ### v0.5.2 / 2023-08-03
4
+
5
+ * FIXED: Add code semconv attributes
6
+ * FIXED: Remove inline linter rules
7
+
8
+ ### v0.5.1 / 2023-06-05
9
+
10
+ * FIXED: Base config options
11
+
3
12
  ### v0.5.0 / 2023-04-17
4
13
 
5
14
  * BREAKING CHANGE: Drop support for EoL Ruby 2.7
@@ -24,10 +24,10 @@ module OpenTelemetry
24
24
  end
25
25
  end
26
26
 
27
- def perform_now # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
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,
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveJob
10
- VERSION = '0.5.0'
10
+ VERSION = '0.5.2'
11
11
  end
12
12
  end
13
13
  end
@@ -15,5 +15,5 @@ module OpenTelemetry
15
15
  end
16
16
  end
17
17
 
18
- require_relative './active_job/instrumentation'
19
- require_relative './active_job/version'
18
+ require_relative 'active_job/instrumentation'
19
+ require_relative 'active_job/version'
@@ -16,4 +16,4 @@ module OpenTelemetry
16
16
  end
17
17
  end
18
18
 
19
- require_relative './instrumentation/active_job'
19
+ require_relative 'instrumentation/active_job'
@@ -4,4 +4,4 @@
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
- require_relative './opentelemetry/instrumentation'
7
+ require_relative 'opentelemetry/instrumentation'
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.5.0
4
+ version: 0.5.2
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-04-17 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.22.0
33
+ version: 0.22.1
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.0
40
+ version: 0.22.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activejob
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.48.1
159
+ version: 1.55.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.48.1
166
+ version: 1.55.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -242,10 +242,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
242
242
  licenses:
243
243
  - Apache-2.0
244
244
  metadata:
245
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.5.0/file/CHANGELOG.md
245
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.5.2/file/CHANGELOG.md
246
246
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_job
247
247
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
248
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.5.0
248
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.5.2
249
249
  post_install_message:
250
250
  rdoc_options: []
251
251
  require_paths: