Giter Site home page Giter Site logo

Comments (4)

jonatan-ivanov avatar jonatan-ivanov commented on June 1, 2024

You might be in the wrong repo. :)
Micrometer Tracing is for Distributed Tracing but you might want to open this issue for Spring Kafka instead.

Also, please consider these:

  • Why is the KafkaTemplateObservationConvention relevant? Can you repro the issue without it?
  • How about the custom AsyncConfig/ThreadPoolTaskScheduler and ContextExecutorService usage?
  • logging.pattern.console
  • You might want to check what properties under management.tracing.propagation doing (type overrides the other two)

I'm not sure this is because of your custom async config or creating a scope is missing somewhere in the instrumentation.

/cc @artembilan

from micrometer.

oooximionnn avatar oooximionnn commented on June 1, 2024

I did as you said: Why is the KafkaTemplateObservationConvention relevant? Can you repro the issue without it?
But it didn't help.

We also used this link: https://github.com/micrometer-metrics/micrometer-samples/blob/main/kafka-producer/src/main/java/com/example/micrometer/ManualConfiguration.java
It didn't help.

from micrometer.

oooximionnn avatar oooximionnn commented on June 1, 2024

The problem is related to the transition to spring boot 3. On Spring boot 2, the Sleuth library was used for tracing and kafka event tracing was present. But when we started using examples and instructions from micrometer, trace id did not appear, it only appeared in kafka headers

from micrometer.

artembilan avatar artembilan commented on June 1, 2024

The kafkaTemplate.setObservationEnabled(true); adds an observation around a producer record send operation.
It has nothing to do with whatever is there afterwards with returned Future.
I believe that .thenAccept(result -> { might be performed on a different thread which is out of @Async control.

from micrometer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.