Comments (4)
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
andContextExecutorService
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.
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.
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.
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)
- Allow customizing PrometheusProperties via PrometheusConfig
- Update netty to fix a vulnerability HOT 1
- Allow observation to have a mutable access to parent HOT 4
- Using Spring SPEL in the `@Observed` annotation to allow dynamic low and high cardinality values HOT 1
- MeterFilters configured after a Meter has been registered
- Support parsing PrometheusConfig#prometheusProperties from "get"
- Support native histogram with the Prometheus 1.x client
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Bump com.gradle.enterprise from 3.16.2 to 3.17
- Static descriptions for Kafka consumer metrics HOT 6
- Micrometer Prometheus scrape format example does not compile HOT 2
- Improve memory usage of StepBucketHistogram
- Apache HTTP Client connection metrics
- Document support for Prometheus Client 1.x
- Add `Tags.of` method taking array of `Pair` HOT 3
- Document how to customize tags in micrometer-java11 HttpClient instrumentation HOT 8
- Remove unnecessary mockito dependency in micrometer-test
- Switch to `gradle/actions/wrapper-validation@v3` GitHub Action
- NullPointerException in DefaultJmsProcessObservationConvention HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micrometer.