kafka-opentracing 0.2.0 → 0.4.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
  SHA1:
3
- metadata.gz: f3f5df9eb553f1d6a14d65e480ab512d0af4a339
4
- data.tar.gz: dbf9fd5e3cf5c537f2852b4b0cddb5026ce6462e
3
+ metadata.gz: 1f909e9717e13026fb1a568c18fbe3981561ba4f
4
+ data.tar.gz: c8ad1bd59b0cf13e48ecb6500529de57b4ac8efd
5
5
  SHA512:
6
- metadata.gz: acbff39eb597abeddb76e98b370fb61f69641e5304b832ed487143af0074aa1a8bd271dface38877df292fd5c00b467a490e7f7d836c2ed9778949a6db365ad1
7
- data.tar.gz: 359567fa1e926ef4f1a55c1d4f9c479cf41c490ecb1c095185fa427909741587758fe98a1a7af9de21e29c6db2ddd9184c680bb4035a5fcd1d99419186cb7301
6
+ metadata.gz: 1c87dbca22d49d0f341f954a4322b244aca196c233ac0695194e9072163d6618c80e2af39a891292a4937b57e0756319f22fda0edc6ddd0cd86daf0683ae69eb
7
+ data.tar.gz: 97c2024d4afeb1b5d866d6959344cee74cecd60895b6c0eb4a13452d76ae86ddfdc9b7733aa5379a5b5a3729f171969c721d1cc2b7462b35e076489b96584fdc
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## 0.4.0 09/06/2019
5
+ * Use follows from relationship for consumer spans
6
+ * https://opentracing.io/docs/best-practices/#tracing-message-bus-scenarios
7
+
8
+ ## 0.3.0 09/06/2019
9
+ * Yanked
10
+
4
11
  ## 0.2.0 08/16/2019
5
12
  * Catch load errors when kafka is not present
6
13
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kafka-opentracing (0.2.0)
4
+ kafka-opentracing (0.4.0)
5
5
  opentracing (~> 0.5.0)
6
6
 
7
7
  GEM
@@ -38,4 +38,4 @@ DEPENDENCIES
38
38
  ruby-kafka (>= 0.7.0)
39
39
 
40
40
  BUNDLED WITH
41
- 2.0.1
41
+ 2.0.2
@@ -192,7 +192,9 @@ module Kafka
192
192
  'message_bus.pre_fetched_in_batch' => true
193
193
  }
194
194
 
195
- tracer.start_active_span('kafka.consumer', child_of: context, tags: tags) do |scope|
195
+ reference = OpenTracing::Reference.follows_from(context)
196
+
197
+ tracer.start_active_span('kafka.consumer', references: [reference], tags: tags) do |scope|
196
198
  begin
197
199
  block.call(message)
198
200
  rescue StandardError
@@ -232,7 +234,9 @@ module Kafka
232
234
  'message_bus.pre_fetched_in_batch' => true
233
235
  }
234
236
 
235
- tracer.start_active_span('kafka.consumer', child_of: context, tags: tags) do |scope|
237
+ reference = OpenTracing::Reference.follows_from(context)
238
+
239
+ tracer.start_active_span('kafka.consumer', references: [reference], tags: tags) do |scope|
236
240
  begin
237
241
  yield message
238
242
  rescue StandardError
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kafka
4
4
  module Tracer
5
- VERSION = '0.2.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafka-opentracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Fischer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-16 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing