druid/extensions-contrib/opentelemetry-emitter/src
Bartosz Mikulski 0bc9f9f303
#12912 Fix KafkaEmitter not emitting queryType for a native query (#12915)
Fixes KafkaEmitter not emitting queryType for a native query. The Event to JSON serialization was extracted to the external class: EventToJsonSerializer. This was done to simplify the testing logic for the serialization as well as extract the responsibility of serialization to the separate class.

The logic builds ObjectNode incrementally based on the event .toMap method. Parsing each entry individually ensures that the Jackson polymorphic annotations are respected. Not respecting these annotation caused the missing of the queryType from output event.
2022-08-24 14:07:00 +05:30
..
main OpenTelemetry emitter extension (#12015) 2022-01-15 12:18:04 +08:00
test/java/org/apache/druid/emitter/opentelemetry #12912 Fix KafkaEmitter not emitting queryType for a native query (#12915) 2022-08-24 14:07:00 +05:30