opentelemetry-instrumentation-active_job 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +9 -0
 - data/lib/opentelemetry/instrumentation/active_job/patches/active_job_callbacks.rb +3 -2
 - 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 -8
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e99cf4d61a646c1992deec6848d4fcaa5161d5698227807662204bfdfdb73c61
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e27ebef92d315c87c8b1e9347ef5682c103ef455089f07643dd176c8cee62229
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
| 
      
 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.5. 
     | 
| 
      
 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- 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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:
         
     |