SkyAPM / go2sky

Distributed tracing and monitor SDK in Go for Apache SkyWalking APM
https://skywalking.apache.org/
Apache License 2.0
447 stars 122 forks source link

How to trace MQTT #99

Closed kehuili closed 2 years ago

kehuili commented 3 years ago

In examples, we need to pass request context to extract or inject information, however, there's no such thing in MQTT when publish or subscribe messages. I would like to know if there is a way to trace MQTT, thanks.

wu-sheng commented 2 years ago

I am not sure what do you mean no such thing. Header or so-called metadata exist in queue, including Kafka, RocketMQ, ActiveMQ, etc. It is a common concept, and there are various queue-based instrumentation in different language agents.