Skip to content

feat: [Trace Stats] Do not set ClientStatsPayload.hostname#905

Merged
lym953 merged 4 commits into
mainfrom
yiming.luo/trace-stat-rm-host
Oct 23, 2025
Merged

feat: [Trace Stats] Do not set ClientStatsPayload.hostname#905
lym953 merged 4 commits into
mainfrom
yiming.luo/trace-stat-rm-host

Conversation

@lym953

@lym953 lym953 commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

This PR

As APM Stats team suggested, ClientStatsPayload.hostname should be left empty so the trace stats backend can aggregate stats properly.

Testing

Still some undercounting. Expecting 5000 for the highvolume (with concurrency) tests, but seeing 4xxx for some runtimes. Will keep investigating.
Screenshot 2025-10-23 at 3 28 04 PM
Screenshot 2025-10-23 at 3 29 21 PM

Notes

#688
https://datadoghq.atlassian.net/browse/SVLS-6907

Some(ClientStatsPayload {
hostname: self.hostname.clone(),
// Do not set hostname so the trace stats backend can aggregate stats properly
hostname: String::new(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change. Other code changes are just removing the unused self.hostname.

@lym953
lym953 marked this pull request as ready for review October 23, 2025 16:21
@lym953
lym953 requested a review from a team as a code owner October 23, 2025 16:21
@lym953
lym953 merged commit 4a6eed2 into main Oct 23, 2025
38 checks passed
@lym953
lym953 deleted the yiming.luo/trace-stat-rm-host branch October 23, 2025 19:30
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.

2 participants