Skip to content

add OTel span links for MQTT pubsub tracing #3101

Open
Umang01-hash wants to merge 3 commits intodevelopmentfrom
mqtt/span_links
Open

add OTel span links for MQTT pubsub tracing #3101
Umang01-hash wants to merge 3 commits intodevelopmentfrom
mqtt/span_links

Conversation

@Umang01-hash
Copy link
Member

@Umang01-hash Umang01-hash commented Mar 5, 2026

Pull Request Template

Description:

MQTT 3.1.1 Limitation:

Unlike Kafka, SQS, and Google PubSub — which carry trace context in message headers/attributes — MQTT 3.1.1 has no user properties mechanism. The traceparent injected on publish cannot be transmitted through the broker to subscribers. As a result, subscriber spans are correctly created as orphan consumer spans (no link to the producer span).

Screenshots:

Screenshot 2026-03-05 at 1 36 53 PM Screenshot 2026-03-05 at 1 35 38 PM

Checklist:

  • I have formatted my code using goimport and golangci-lint.
  • All new code is covered by unit tests.
  • This PR does not decrease the overall code coverage.
  • I have reviewed the code comments and documentation for clarity.

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant