How can I get the mq message body ,for example:Activemq、kafka?

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

Kibana version:
7.6
Elasticsearch version:
7.6
APM Server version:
7.6
APM Agent language and version:
JAVA 1.13.0

==================
I see the trace information in the span details of jms and kafka.
but I can not see any message body? I just can see the queue name and the message head of ActiveMq and the queue name. what should I do if I want to see the message body

this is my picture


the first picture is the kafka,the second picture is the activeMq

Hi and thanks for the question.
Firstly, you need to enable body capturing. Then, the agent would only capture bodies of javax.jms.TextMessage and the toString representation of Kafka records' keys and values.
I hope this helps.

thank you ,I get it

what shold i do if I want to caputure the Object type messages? use the public api?

our jms message type is javax.jms.ObjectMessage

How would you like the ObjectMessage to be rendered? Would calling the toString method be good enough?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.