Skip to content

feat: add fallback to DD_VERSION for trace stats computation#125

Open
duncanpharvey wants to merge 1 commit intomainfrom
duncan-harvey/trace-stats-version
Open

feat: add fallback to DD_VERSION for trace stats computation#125
duncanpharvey wants to merge 1 commit intomainfrom
duncan-harvey/trace-stats-version

Conversation

@duncanpharvey
Copy link
Copy Markdown
Collaborator

@duncanpharvey duncanpharvey commented May 4, 2026

What does this PR do?

Adds a fallback in trace stats computation to use DD_VERSION if no version is available in the trace payload.

Motivation

Some initial traces from the .NET tracer do not include the version in the trace payload.

https://datadoghq.atlassian.net/browse/SVLS-9006

Screenshot 2026-05-05 at 3 33 59 PM

Additional Notes

Describe how to test/QA your changes

Invoked .NET functions that undercounted some stats by version and validated that all trace stats submitted to intake have a version.

plow "$url" -c 50 -n 50000
Screenshot 2026-05-04 at 2 43 03 PM

With 50% sampling enabled:

Screenshot 2026-05-04 at 4 31 16 PM

@duncanpharvey duncanpharvey force-pushed the duncan-harvey/trace-stats-version branch from 09c3b64 to 3ca99bc Compare May 4, 2026 18:37
@duncanpharvey duncanpharvey force-pushed the duncan-harvey/trace-stats-version branch from 3ca99bc to 8431c35 Compare May 4, 2026 18:38
@duncanpharvey duncanpharvey marked this pull request as ready for review May 4, 2026 18:45
@duncanpharvey duncanpharvey requested a review from a team as a code owner May 4, 2026 18:45
@duncanpharvey duncanpharvey requested review from Copilot, kathiehuang and lucaspimentel and removed request for a team and Copilot May 4, 2026 18:45
@apiarian-datadog
Copy link
Copy Markdown
Contributor

apiarian-datadog commented May 4, 2026

do you also test these things with sampling enabled?

@duncanpharvey
Copy link
Copy Markdown
Collaborator Author

do you also test these things with sampling enabled?

Now I have!

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.

3 participants