opentelemetry-instrumentation-racecar 0.3.3 → 0.3.4

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: a7716ab6b6d5bdf019626d3dfb8ff34900a21f9ffb5c29f1a87c22ceb9ef3a24
4
- data.tar.gz: eb5c119305ac2897c527cca5c3d70608dd785871f22a7a7d16a388944d605cfd
3
+ metadata.gz: 433d0c1098ae5efb704f23e1647e028444db5a05e108ea29b509cf39f552349d
4
+ data.tar.gz: 6bcacff686c897624a8f5159a644621f29789ec0931aed4b98a49ab1eefe3497
5
5
  SHA512:
6
- metadata.gz: 4d2ebc9a2e47c38dade6d5a4b30df050185ecf63e48382e2173c0a98066962b54a4a4c51f3fa0afc65be0d050ff53f409a7edd58af39ff31726403c7c7863896
7
- data.tar.gz: 235048cc96859a2fc4a0be255f2a5521d8234a2b6eebf9405d9f53fbcc88a1f535b5f195253da36c75ebe2ff2496236dbe5f1d8dcba296e18f23047d8941b400
6
+ metadata.gz: aea98bec642e753cc6171a8dbadd19aaa93a9a0254ed0caf7fa398cbc1873863e5ec88d40e04370c147fe8e74a912bb70ef4cee23d3c06d13b39ff058182fec9
7
+ data.tar.gz: 3fa97aee0779bcd2d688f5edae9c8bd4f4b6970362296bd72ad209c6941ef8ca9e03a06981f8c3d1c5f5af89384440ed3a2e439b61463507e06a9aee3f68761b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-racecar
2
2
 
3
+ ### v0.3.4 / 2024-07-09
4
+
5
+ * FIXED: Suppress header access with symbol key deprecation warning in Racecar Instrumentation
6
+
3
7
  ### v0.3.3 / 2024-07-02
4
8
 
5
9
  * DOCS: Fix CHANGELOGs to reflect a past breaking change
@@ -4,6 +4,13 @@ module OpenTelemetry
4
4
  module Instrumentation
5
5
  # This class contains the ASN subsciber that instruments message processing
6
6
  class ProcessMessageSubscriber
7
+ GETTER = if Gem::Version.new(::Rdkafka::VERSION) >= Gem::Version.new('0.13.0')
8
+ Context::Propagation.text_map_getter
9
+ else
10
+ OpenTelemetry::Common::Propagation.symbol_key_getter
11
+ end
12
+ private_constant :GETTER
13
+
7
14
  def tracer
8
15
  Racecar::Instrumentation.instance.tracer
9
16
  end
@@ -11,7 +18,7 @@ module OpenTelemetry
11
18
  def start(_name, _id, payload)
12
19
  attrs = attributes(payload)
13
20
 
14
- parent_context = OpenTelemetry.propagation.extract(payload[:headers], getter: OpenTelemetry::Common::Propagation.symbol_key_getter)
21
+ parent_context = OpenTelemetry.propagation.extract(payload[:headers], getter: GETTER)
15
22
  parent_token = OpenTelemetry::Context.attach(parent_context)
16
23
 
17
24
  span_context = OpenTelemetry::Trace.current_span(parent_context).context
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Racecar
10
- VERSION = '0.3.3'
10
+ VERSION = '0.3.4'
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-racecar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-07-02 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -228,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
228
228
  licenses:
229
229
  - Apache-2.0
230
230
  metadata:
231
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.3.3/file/CHANGELOG.md
231
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.3.4/file/CHANGELOG.md
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/racecar
233
233
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
234
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.3.3
234
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.3.4
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: