Skip to content

[parametric] Validate version and env tag are set on CSS payloads when non-empty#6869

Merged
ajgajg1134 merged 13 commits into
mainfrom
andrew.glaude/versionCSS
Jul 1, 2026
Merged

[parametric] Validate version and env tag are set on CSS payloads when non-empty#6869
ajgajg1134 merged 13 commits into
mainfrom
andrew.glaude/versionCSS

Conversation

@ajgajg1134

@ajgajg1134 ajgajg1134 commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extends CSS tests to validate env and version are set when non-empty

Motivation

This test was written to catch a bug in dd-trace-go v2.8.0 (DataDog/dd-trace-go#4734) where the client-side stats concentrator ignored per-span version meta tags and collapsed all spans into a version="" bucket. The bug was introduced when /info polling was added to dynamically activate client-side stats — the concentrator's aggregation key was initialized once at construction time from global config, never reading per-span version tags.

Version is a PAYLOAD level tag so it is considered constant per tracer version so we only assert it at the payload level.

Test plan

Run the tests :)

…gregationkeys_TS003

Extends TS003 to cover per-span version tags as a distinct stats aggregation
key. Catches the bug introduced in dd-trace-go v2.8.0 (fixed in PR #4734)
where the client-side stats concentrator ignored per-span version meta and
collapsed all spans into a version="" bucket.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@ajgajg1134 ajgajg1134 requested review from a team as code owners May 6, 2026 19:40
@ajgajg1134 ajgajg1134 requested review from zacharycmontoya and removed request for a team May 6, 2026 19:40
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/parametric/test_library_tracestats.py                             @DataDog/system-tests-core @DataDog/apm-sdk-capabilities

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa00140f19

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tests/parametric/test_library_tracestats.py Outdated
@datadog-official

datadog-official Bot commented May 6, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 638d31f | Docs | Datadog PR Page | Give us feedback!

…-rc.2

Per-span version tag support in client-side stats aggregation key was
fixed in dd-trace-go#4734 and released in v2.8.2-rc.2. Gate the new
version dimension assertion so CI does not fail on older tracer builds.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@ajgajg1134 ajgajg1134 requested a review from a team as a code owner May 8, 2026 16:34
@gh-worker-ownership-write-b05516 gh-worker-ownership-write-b05516 Bot removed the request for review from a team July 1, 2026 18:26
@ajgajg1134 ajgajg1134 changed the title [parametric] Add version as aggregation key dimension in test_distinct_aggregationkeys_TS003 [parametric] Validate version and env tag are set on CSS payloads when non-empty Jul 1, 2026
@ajgajg1134 ajgajg1134 merged commit 15a9b88 into main Jul 1, 2026
430 checks passed
@ajgajg1134 ajgajg1134 deleted the andrew.glaude/versionCSS branch July 1, 2026 19:41
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.

4 participants