chore(telemetry): track process creation via it headers#5464
chore(telemetry): track process creation via it headers#5464
Conversation
|
👋 Hey @DataDog/ruby-guild, please fill "Change log entry" section in the pull request description. If changes need to be present in CHANGELOG.md you can state it this way **Change log entry**
Yes. A brief summary to be placed into the CHANGELOG.md(possible answers Yes/Yep/Yeah) Or you can opt out like that **Change log entry**
None.(possible answers No/Nope/None) Visited at: 2026-03-23 21:04:22 UTC |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 2751beb | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
BenchmarksBenchmark execution time: 2026-03-24 18:03:47 Comparing candidate commit 2751beb in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 46 metrics, 0 unstable metrics.
|
51ecc95 to
fd64edc
Compare
fd64edc to
4fbe9f8
Compare
Typing analysisNote: Ignored files are excluded from the next sections. Untyped methodsThis PR introduces 1 untyped method and 1 partially typed method. It decreases the percentage of typed methods from 61.64% to 61.62% (-0.02%). Untyped methods (+1-0)❌ Introduced:Partially typed methods (+1-0)❌ Introduced:If you believe a method or an attribute is rightfully untyped or partially typed, you can add |
Strech
left a comment
There was a problem hiding this comment.
I think it looks good in general. But I think we can do a bit better by:
- Using AI (claude?) to write more detailed and standardized RBS files
- Following testing style from the existing specs
- Improving the caller-callee dependency from child-parent to parent-child
What does this PR do?
Adds telemetry session ID headers (DD-Session-ID, DD-Root-Session-ID, DD-Parent-Session-ID) for the Stable Service Instance Identifier RFC. Tracks process lineage across forks and Process.spawn.
Motivation:
Support Stable Service Instance Identifier RFC and pass system-tests test_session_id_headers_across_forks and test_session_id_headers_across_spawned.
Change log entry:
n/a (this is an internal change that only impacts instrumentation telemetry collection)
How to test the change?
System tests:
./run.sh -k test_session_id_headers_acrossin system-tests with dd-trace-rb in binaries/dd-trace-rb.