Only add host tag to profiles when DD_TRACE_REPORT_HOSTNAME is set#7494
Merged
Only add host tag to profiles when DD_TRACE_REPORT_HOSTNAME is set#7494
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7494 +/- ##
==========================================
- Coverage 80.41% 80.31% -0.11%
==========================================
Files 732 731 -1
Lines 31072 31128 +56
==========================================
+ Hits 24986 24999 +13
- Misses 6086 6129 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Overall package sizeSelf size: 4.58 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 813.08 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BridgeAR
reviewed
Feb 11, 2026
IlyasShabi
approved these changes
Feb 11, 2026
Merged
juan-fernandez
pushed a commit
that referenced
this pull request
Feb 12, 2026
BridgeAR
pushed a commit
that referenced
this pull request
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Only adds the
host:tag to profiles whenDD_TRACE_REPORT_HOSTNAMEis set to true.Motivation
Node.js profiler unconditionally emits host tag with the value of
os.hostname(). This causes issues for serverless usage, where host names are ephemeral and unnecessarily increase cardinality of various lists and metrics.The agent also adds a host tag when necessary, so the profiler needn’t do it. There is also a
DD_TRACE_REPORT_HOSTNAMEenv var that regulates whether the tracer includes host name in the traces, it defaults to false. We changed the logic so we only emit the host tag in profiles if the env var is explicitly set to true.Jira: PROF-13728