opentelemetry-instrumentation-active_job 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/opentelemetry/instrumentation/active_job/handlers/enqueue.rb +2 -1
- data/lib/opentelemetry/instrumentation/active_job/handlers/perform.rb +1 -1
- data/lib/opentelemetry/instrumentation/active_job/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/active_job/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86cb8695f1b05690deecd4ccb14dd1f027da943ba2d671749b64654255c49b69
|
4
|
+
data.tar.gz: 81b0d5dc06219c45e09cd245048ec64200f0efd7a2af6d4aee58ef9265fb1c52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6f2d8126a3b18ecf9841dddad5d136f44e15cbae65e5277dacf1fe3dd7f92fd6f8c232b7e04b397322597792f668365ebb3c72dda06e5cc0fa3afcca8af16e
|
7
|
+
data.tar.gz: b224ae9a29caee4b2453d3990c9f198d7937779d8585b3c93daee122c83c69e1430005705667f4b5ca7becb90adf2d78f8afd5c80b7077ae33be04b7561336cb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-active_job
|
2
2
|
|
3
|
+
### v0.7.7 / 2024-08-21
|
4
|
+
|
5
|
+
* FIXED: Propagate context between enqueue and perform
|
6
|
+
|
7
|
+
### v0.7.6 / 2024-08-15
|
8
|
+
|
9
|
+
* FIXED: Prefix ::ActiveSupport when installing the instrumentation
|
10
|
+
|
3
11
|
### v0.7.5 / 2024-08-15
|
4
12
|
|
5
13
|
* FIXED: Use Active Support Lazy Load Hooks to avoid prematurely initializing ActiveRecord::Base and ActiveJob::Base
|
@@ -23,8 +23,9 @@ module OpenTelemetry
|
|
23
23
|
job = payload.fetch(:job)
|
24
24
|
span_name = span_name(job, EVENT_NAME)
|
25
25
|
span = tracer.start_span(span_name, kind: :producer, attributes: @mapper.call(payload))
|
26
|
+
token = OpenTelemetry::Context.attach(OpenTelemetry::Trace.context_with_span(span))
|
26
27
|
OpenTelemetry.propagation.inject(job.__otel_headers) # This must be transmitted over the wire
|
27
|
-
{ span: span, ctx_token:
|
28
|
+
{ span: span, ctx_token: token }
|
28
29
|
end
|
29
30
|
end
|
30
31
|
end
|
@@ -27,7 +27,7 @@ module OpenTelemetry
|
|
27
27
|
# TODO: Refactor into a propagation strategy
|
28
28
|
propagation_style = @config[:propagation_style]
|
29
29
|
if propagation_style == :child
|
30
|
-
span = tracer.start_span(span_name, kind: :consumer, attributes: @mapper.call(payload))
|
30
|
+
span = tracer.start_span(span_name, with_parent: parent_context, kind: :consumer, attributes: @mapper.call(payload))
|
31
31
|
else
|
32
32
|
span_context = OpenTelemetry::Trace.current_span(parent_context).context
|
33
33
|
links = [OpenTelemetry::Trace::Link.new(span_context)] if span_context.valid? && propagation_style == :link
|
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.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -232,10 +232,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
232
232
|
licenses:
|
233
233
|
- Apache-2.0
|
234
234
|
metadata:
|
235
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.7.
|
235
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.7.7/file/CHANGELOG.md
|
236
236
|
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/active_job
|
237
237
|
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.
|
238
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-active_job/0.7.7
|
239
239
|
post_install_message:
|
240
240
|
rdoc_options: []
|
241
241
|
require_paths:
|