opentelemetry-instrumentation-racecar 0.1.1 → 0.2.0

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: b99bed085832525c7ad37cc4ff52d4cf8b08b44c74c6d426bd4df51f5149b29f
4
- data.tar.gz: 3354410993f139e875e6e41b347698805fe127d8583112cd144efec707c37978
3
+ metadata.gz: c01810488c85a6d62d09cd03c4d6df094abfcbc7c4190eb34f589333022ecc9c
4
+ data.tar.gz: 738f85aafbf3d3f8914c57a53151d9eeadfeabf1a6a07e478982380d600dae96
5
5
  SHA512:
6
- metadata.gz: 863f17694ef7ad881d06334962c0e02a9a0f65e8383ad4c5660c43119261a34bd6197dfe711c999f9d71ac36f3603ac4e2f2f0860dfab85940965a6125ced691
7
- data.tar.gz: ebcc9a0e46884e57fa6aca92c8277171c560dad42b5ead8736be8f9c31d9216feae71bc08efa6bbafddd6bdb2738774f5a6ee0725a1c0103aeb716e98f86d056
6
+ metadata.gz: 9b27a6c9796684542920d106e94ed56c433c42db5c7e89dc99aee1843b6fa78608235b81a302a2e972c598cebe32a2f6a02dea5a812b0d759c3b78bfa7218c47
7
+ data.tar.gz: 27edd0bf67788b1b74dc1e3d81d2be0155c8f320a361a7349651c808e9cdc2bffeda29f7d48ab51c06e6cb520cc3c8a36c868dc5902b76b408b3c948c80f1c1c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History: opentelemetry-instrumentation-racecar
2
2
 
3
+ ### v0.2.0 / 2023-04-17
4
+
5
+ * BREAKING CHANGE: Drop support for EoL Ruby 2.7
6
+
7
+ * ADDED: Drop support for EoL Ruby 2.7
8
+
9
+ ### v0.1.2 / 2023-03-24
10
+
11
+ * FIXED: Skip recording non-utf8 kafka keys in racecar and rdkafka
12
+
3
13
  ### v0.1.1 / 2023-01-14
4
14
 
5
15
  * DOCS: More gem documentation fixes
@@ -35,7 +35,9 @@ module OpenTelemetry
35
35
  'messaging.kafka.offset' => payload[:offset]
36
36
  }
37
37
 
38
- attributes['messaging.kafka.message_key'] = payload[:key] if payload[:key]
38
+ message_key = extract_message_key(payload[:key])
39
+ attributes['messaging.kafka.message_key'] = message_key if message_key
40
+
39
41
  attributes
40
42
  end
41
43
 
@@ -54,6 +56,15 @@ module OpenTelemetry
54
56
  OpenTelemetry::Context.detach(token)
55
57
  OpenTelemetry::Context.detach(parent_token)
56
58
  end
59
+
60
+ def extract_message_key(key)
61
+ # skip encode if already valid utf8
62
+ return key if key.nil? || (key.encoding == Encoding::UTF_8 && key.valid_encoding?)
63
+
64
+ key.encode(Encoding::UTF_8)
65
+ rescue Encoding::UndefinedConversionError
66
+ nil
67
+ end
57
68
  end
58
69
  end
59
70
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Racecar
10
- VERSION = '0.1.1'
10
+ VERSION = '0.2.0'
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.1.1
4
+ version: 0.2.0
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-01-14 00:00:00.000000000 Z
11
+ date: 2023-04-17 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.21.0
33
+ version: 0.22.0
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.21.0
40
+ version: 0.22.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: opentelemetry-test-helpers
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '0.3'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '0.3'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: racecar
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.73.0
173
+ version: 1.48.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.73.0
180
+ version: 1.48.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: simplecov
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -256,10 +256,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
256
256
  licenses:
257
257
  - Apache-2.0
258
258
  metadata:
259
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.1.1/file/CHANGELOG.md
259
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.2.0/file/CHANGELOG.md
260
260
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/racecar
261
261
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
262
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.1.1
262
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-racecar/0.2.0
263
263
  post_install_message:
264
264
  rdoc_options: []
265
265
  require_paths:
@@ -268,14 +268,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
268
  requirements:
269
269
  - - ">="
270
270
  - !ruby/object:Gem::Version
271
- version: 2.6.0
271
+ version: '3.0'
272
272
  required_rubygems_version: !ruby/object:Gem::Requirement
273
273
  requirements:
274
274
  - - ">="
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
277
  requirements: []
278
- rubygems_version: 3.1.6
278
+ rubygems_version: 3.2.33
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Racecar instrumentation for the OpenTelemetry framework