You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GH-2198: Spring Observability Initial Commit (#2394)
* GH-2198: Spring Observability Initial Commit
Resolves#2198
* Move getContextualContext to conventions.
* Fix generics in test.
* Add docs.
* Fix doc link.
* Remove unnecessary method overrides; make tag names more descriptive.
* Async stop for send.
* Fix checkstyle.
* Fix async stop - don't stop on sync success; change order of spans for test.
* Fix generics in test.
* Fix checkstyle.
* Fix race in test; with async send spans, finished spans order is indeterminate.
* Move getName() from context to convention.
* Fix Race in Test
Fix Race in Test.
Fix Race in Test.
Fix Race in Test.
Fix Race in Test.
A similar listener is provided for the `StreamsBuilderFactoryBean` - see <<streams-micrometer>>.
3400
3399
3400
+
[[observation]]
3401
+
===== Micrometer Observation
3402
+
3403
+
Using Micrometer for observation is now supported, since version 3.0, for the `KafkaTemplate` and listener containers.
3404
+
3405
+
Set `observationEnabled` on each component to enable observation; this will disable <<micrometer,Micrometer Timers>> because the timers will now be managed with each observation.
3406
+
3407
+
Refer to https://micrometer.io/docs/tracing[Micrometer Tracing] for more information.
3408
+
3409
+
To add tags to timers/traces, configure a custom `KafkaTemplateObservationConvention` or `KafkaListenerObservationConvention` to the template or listener container, respectively.
3410
+
3411
+
The default implementations add the `bean.name` tag for template observations and `listener.id` tag for containers.
3412
+
3413
+
You can either subclass `DefaultKafkaTemplateObservationConvention` or `DefaultKafkaListenerObservationConvention` or provide completely new implementations.
Copy file name to clipboardExpand all lines: spring-kafka-docs/src/main/asciidoc/whats-new.adoc
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@ IMPORTANT: When using transactions, the minimum broker version is 2.5.
17
17
18
18
See <<exactly-once>> and https://cwiki.apache.org/confluence/display/KAFKA/KIP-447%3A+Producer+scalability+for+exactly+once+semantics[KIP-447] for more information.
19
19
20
+
[[x30-obs]]
21
+
==== Observation
22
+
23
+
Enabling observation for timers and tracing using Micrometer is now supported.
0 commit comments