Commit 3fc604d
committed
Add messagingReceiveInstrumentationEnabled configuration to Kafka autoconfigure
The Kafka instrumentation autoconfiguration was missing the ability to configure
messagingReceiveInstrumentationEnabled from the property
'otel.instrumentation.messaging.experimental.receive-telemetry.enabled'.
This is required to control creation of separate spans in Spring Boot
autoconfiguration for Kafka consumers.
Changes:
- Added setMessagingReceiveInstrumentationEnabled() call in KafkaInstrumentationAutoConfiguration
- Uses the standard property 'otel.instrumentation.messaging.experimental.receive-telemetry.enabled'
- Follows the same pattern as other messaging instrumentations (JMS, Pulsar, etc.)
Fixes the missing configuration that was preventing proper control of Kafka
consumer span creation in Spring Boot applications.1 parent 63cf3ef commit 3fc604d
File tree
1 file changed
+4
-3
lines changed- instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/kafka
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments