I have a custom Kafka instrumentation solution which starts a new transaction at reception (KafkaListener interceptor) and correlate it with the producer transaction (see this thread for more info). One of the issue I encounter is that Kafka is used to broadcast events, all the microservices consume the events but depending on the some logic, only a small subset execute the message, the rest of the service just discard the event after reception.
This makes my APM transaction view quite unreadable because a lot of transactions are showing up for every single service just to announce the reception of the event but only a few actually do something.
I know this is related to our architecture and the way we built it but I was wondering if there was a way using the API to discard/delete a transaction based on a certain condition or use a label to hide it from the transaction view ?
Kibana version : 7.3.0
Elasticsearch version : 7.3.0
APM Server version : 7.3.0
APM Agent language and version : java 1.8.0
Browser version : n/a
Original install method (e.g. download page, yum, deb, from source, etc.) and version : Kubernetes environment (Docker image)
Fresh install or upgraded from other version? Fresh install
Is there anything special in your setup? No
Other components : Spring-boot:2.1.0.RELEASE, spirng-kafka:2.2.7-RELEASE