feat(mqtt): add APM instrumentation for mqtt package#7733
feat(mqtt): add APM instrumentation for mqtt package#7733
Conversation
Generated by `dd-apm create mqtt --mode=agent` using the APM Instrumentation Toolkit. Instruments MQTT publish (producer) and message receipt (consumer) operations with distributed tracing spans, including topic, QoS, and connection metadata. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
BenchmarksBenchmark execution time: 2026-03-10 19:48:35 Comparing candidate commit f9158bd in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 230 metrics, 30 unstable metrics. |
Overall package sizeSelf size: 4.98 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
✨ Fix all issues with BitsAI or with Cursor
|
| { | ||
| "version": "2", | ||
| "supportedConfigurations": { | ||
| "DD_AAS_DOTNET_EXTENSION_VERSION": ["A"], |
There was a problem hiding this comment.
Something very bad happened in this file... Maybe from a rebase issue?
tlhunter
left a comment
There was a problem hiding this comment.
The supported configurations file needs to be fixed. Does it need to be changed at all? I would only think so if this integration is released as experimental.
This integration is purely experimental. It was run to assess how the toolkit is working. |
|
In that case I'll mark the PR as draft for now |
What does this PR do?
Adds APM instrumentation for the
mqttpackage (v5.15.0), enabling distributed tracing for MQTT publish/subscribe operations in Node.js applications.Generated by running:
Motivation
MQTT is a widely used messaging protocol for IoT and lightweight pub/sub use cases. This integration gives Datadog customers visibility into MQTT message flows as part of their distributed traces.
Instrumented operations:
Additional Notes
no-unused-varsfortracer/span) — the lint fix agent timed out; these should be cleaned up before mergingTry it out
TOOLKIT_BRANCH=main bash <(gh api 'repos/DataDog/apm-instrumentation-toolkit/contents/bootstrap.sh?ref=main' --jq '.content | @base64d')🤖 Generated with APM Instrumentation Toolkit