micrometer-metrics / micrometer-samples

Sample apps to demo Micrometer features
Apache License 2.0
61 stars 21 forks source link

Kafka Producer zipkin reporter is not initialized #53

Open rick-li opened 8 months ago

rick-li commented 8 months ago

In Kafka Producer sample, zipkin reporter is not initialized, hence tracings are not reported to the zipkin consumer. openfeign sample works fine.

jonatan-ivanov commented 8 months ago

It should be since io.zipkin.reporter2:zipkin-reporter-brave is on the classpath and Boot should auto-configure it.

The tracer is definitely initialized since we have a test for it but we don't start a zipkin instance for testing. Did you start Zipkin to check if spans are published?

rick-li commented 8 months ago

My breakpoint on Zipkin AsyncRepoter auto config is not triggered, might be some other reporter instance is created but i can't figure out which one, i have the Zipkin collector and the openfeign sample project works fine, not sure what is different.

jonatan-ivanov commented 8 months ago

Do you see the log message emitted by the kafka-producer app that contains the traceId?

rick-li commented 8 months ago

Yes

Do you see the log message emitted by the kafka-producer app that contains the traceId?

Yes trace id and logs are there, span.end is called but the zipkin reporter is missing