opentelemetry-instrumentation-ruby_kafka 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/opentelemetry/instrumentation/ruby_kafka/patches/client.rb +1 -1
- data/lib/opentelemetry/instrumentation/ruby_kafka/patches/consumer.rb +1 -1
- data/lib/opentelemetry/instrumentation/ruby_kafka/patches/producer.rb +1 -1
- data/lib/opentelemetry/instrumentation/ruby_kafka/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 889aebe969f1ee653fee15e68a11e1a2c7ff025ad94f8a1f39e671deee2ad0ee
|
4
|
+
data.tar.gz: 1450dabd0e0be3d7f23fe406fb5d38533dee41b089c2478fcacb288e462f223b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa19505b710f56998c29d73f3c15607f88806ea659829603ebc10cda1f41ab3d204cabdc6d153f267d07f90ba825a54d928ec5a900d163b8f72bafa242f3148
|
7
|
+
data.tar.gz: 3d9ae0671d53a89fc22652256c8221be6bfb1290cc4efceeb762027a6060ef84d845fda1a5227ea154284bdfb5fc4f9bf1ddd34b015e0fccbe4dea83838aa1c4
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -32,7 +32,7 @@ end
|
|
32
32
|
|
33
33
|
## Examples
|
34
34
|
|
35
|
-
Example usage can be seen in the `./example/ruby_kafka.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/ruby_kafka/example/ruby_kafka.rb)
|
35
|
+
Example usage can be seen in the `./example/ruby_kafka.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/ruby_kafka/example/ruby_kafka.rb)
|
36
36
|
|
37
37
|
## How can I get involved?
|
38
38
|
|
@@ -70,7 +70,7 @@ The `opentelemetry-instrumentation-ruby_kafka` gem is distributed under the Apac
|
|
70
70
|
[ruby_kafka-home]: https://github.com/zendesk/ruby-kafka
|
71
71
|
[bundler-home]: https://bundler.io
|
72
72
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
73
|
-
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
73
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
|
74
74
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
75
75
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
76
76
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
@@ -12,7 +12,7 @@ module OpenTelemetry
|
|
12
12
|
module Patches
|
13
13
|
# The Client module contains the instrumentation patch the Client#deliver_message and Client#each_message methods.
|
14
14
|
module Client
|
15
|
-
def deliver_message(value, key: nil, headers: {},
|
15
|
+
def deliver_message(value, topic:, key: nil, headers: {}, partition: nil, partition_key: nil, retries: 1)
|
16
16
|
attributes = {
|
17
17
|
'messaging.system' => 'kafka',
|
18
18
|
'messaging.destination' => topic,
|
@@ -35,7 +35,7 @@ module OpenTelemetry
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
def each_batch(min_bytes: 1, max_bytes: 10_485_760, max_wait_time: 1, automatically_mark_as_processed: true)
|
38
|
+
def each_batch(min_bytes: 1, max_bytes: 10_485_760, max_wait_time: 1, automatically_mark_as_processed: true)
|
39
39
|
super do |batch|
|
40
40
|
attributes = {
|
41
41
|
'messaging.system' => 'kafka',
|
@@ -10,7 +10,7 @@ module OpenTelemetry
|
|
10
10
|
module Patches
|
11
11
|
# The Producer module contains the instrumentation patch the Producer#produce method
|
12
12
|
module Producer
|
13
|
-
def produce(value, key: nil, headers: {},
|
13
|
+
def produce(value, topic:, key: nil, headers: {}, partition: nil, partition_key: nil, create_time: Time.now)
|
14
14
|
attributes = {
|
15
15
|
'messaging.system' => 'kafka',
|
16
16
|
'messaging.destination' => topic,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-ruby_kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.4'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '2.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.41.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 1.41.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: ruby-kafka
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +212,14 @@ files:
|
|
212
212
|
- lib/opentelemetry/instrumentation/ruby_kafka/patches/producer.rb
|
213
213
|
- lib/opentelemetry/instrumentation/ruby_kafka/utils.rb
|
214
214
|
- lib/opentelemetry/instrumentation/ruby_kafka/version.rb
|
215
|
-
homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
215
|
+
homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
216
216
|
licenses:
|
217
217
|
- Apache-2.0
|
218
218
|
metadata:
|
219
|
-
changelog_uri: https://
|
220
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/ruby_kafka
|
221
|
-
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
222
|
-
documentation_uri: https://
|
219
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ruby_kafka/0.19.1/file/CHANGELOG.md
|
220
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/ruby_kafka
|
221
|
+
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
222
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-ruby_kafka/0.19.1
|
223
223
|
post_install_message:
|
224
224
|
rdoc_options: []
|
225
225
|
require_paths:
|