opentracing-contrib / java-kafka-client

OpenTracing Instrumentation for Apache Kafka Client
Apache License 2.0
125 stars 64 forks source link

About relationship between producer span and consumer span #54

Closed hotdust closed 5 years ago

hotdust commented 5 years ago

I try to make a tracer of rocketmq, and have a question about relationship between producer span and consumer span.

Question: The relationship between producer span and consumer span is addReference, but not asChildOf. It's very appreciated that if talk about thinking that choose addReference other than asChildOf.

Personal point: Consumers look like other service interface, so asChildOf replationship maybe better.

malafeev commented 5 years ago

it's as specification: https://github.com/opentracing/specification/blob/master/semantic_conventions.md#message-bus

hotdust commented 5 years ago

sorry for not reading specification carefullly.