Class KafkaAttributesExtractorUtils
java.lang.Object
io.micronaut.tracing.opentelemetry.instrument.kafka.KafkaAttributesExtractorUtils
Utility class to help get kafka headers and put them as span attributes.
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
putAttributes
(KafkaTelemetryConfiguration kafkaTelemetryConfiguration, io.opentelemetry.api.common.AttributesBuilder attributes, org.apache.kafka.common.header.Headers headers) Add message headers as span attributes.
-
Method Details
-
putAttributes
public static void putAttributes(KafkaTelemetryConfiguration kafkaTelemetryConfiguration, io.opentelemetry.api.common.AttributesBuilder attributes, org.apache.kafka.common.header.Headers headers) Add message headers as span attributes.- Parameters:
kafkaTelemetryConfiguration
- kafkaTelemetryPropertiesattributes
- attributes builderheaders
- kafka message headers
-