Adds process_tags to telemetry payload#3627
Conversation
|
Benchmarks [ tracer ]Benchmark execution time: 2026-02-17 09:43:13 Comparing candidate commit 72b5fd3 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 193 metrics, 0 unstable metrics. scenario:ComposerTelemetryBench/benchTelemetryParsing-opcache
|
b2f20fa to
e053e64
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3627 +/- ##
==========================================
- Coverage 62.21% 62.11% -0.11%
==========================================
Files 141 141
Lines 13387 13387
Branches 1753 1753
==========================================
- Hits 8329 8315 -14
- Misses 4260 4273 +13
- Partials 798 799 +1 see 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
# What does this PR do? This PR adds a `process_tags` field to the telemetry `Application` struct. This tag can be set during configuration or later (when the process_tags are acquired). # Motivation `dd-trace-php` needs to be send the process_tags for its telemetry according to this [RFC](https://docs.google.com/document/d/1AFdLUuVk70i0bJd5335-RxqsvwAV9ovAqcO2z5mEMbA/edit?tab=t.0#heading=h.s9l1lctqlg11). It is important to note that the tracer will set the configuration of its sidecar before we can retrieve the process_tags. That's why I created a function specifically to set the processs_tags. # How to test the change? The change is tested in dd-trace-php through this PR: DataDog/dd-trace-php#3627 Co-authored-by: louis.tricot <[email protected]>
bwoebi
left a comment
There was a problem hiding this comment.
Looks good to me, thanks!
This PR implements this RFC for telemetry.
Add process_tags to process_tags payload. We should be able to set process_tags when configuring the sidecar (for sidecar reconnect) and we also add a function to be able to set them just after they are acquired
This PR comes with this libdatadog PR: DataDog/libdatadog#1459.