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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2f611f3efbc3f35b9e0d58031844bc5d2ad060fc1e506b4a0725e28d376ea50
4
- data.tar.gz: 65217a6e1ff43d6d3011581e9c811b8072e751b1cd49b873dabb1f1ac12ad9c2
3
+ metadata.gz: 86cb8695f1b05690deecd4ccb14dd1f027da943ba2d671749b64654255c49b69
4
+ data.tar.gz: 81b0d5dc06219c45e09cd245048ec64200f0efd7a2af6d4aee58ef9265fb1c52
5
5
  SHA512:
6
- metadata.gz: fc1fddc77bd99891601c505684d7c418550b0b29067d5b0ffd030b41f7addaf8eec4f3419ae2cb0e2744622a9a38b1a395c2ec12f1dd93b4d1069079e9667097
7
- data.tar.gz: 2e7250e62b5fac75799c73ca0b89e6217cac445b3cb477c9abb6a33197fa43682ce1533b0c7105dcd49dc2b71ea8496f524a870e293829cdd1b2ff1b8f7fcf83
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: OpenTelemetry::Context.attach(OpenTelemetry::Trace.context_with_span(span)) }
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
@@ -71,7 +71,7 @@ module OpenTelemetry
71
71
  def patch_activejob
72
72
  Handlers.subscribe
73
73
 
74
- ActiveSupport.on_load(:active_job) do
74
+ ::ActiveSupport.on_load(:active_job) do
75
75
  ::ActiveJob::Base.prepend(Patches::Base) unless ::ActiveJob::Base <= Patches::Base
76
76
  end
77
77
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module ActiveJob
10
- VERSION = '0.7.5'
10
+ VERSION = '0.7.7'
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.5
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-15 00:00:00.000000000 Z
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.5/file/CHANGELOG.md
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.5
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: