Skip to content

test(tracestats): add cardinality overflow sentinel test - #7409

Merged
ichinaski merged 7 commits into
mainfrom
ichinaski/css-cardinality-overflow
Jul 29, 2026
Merged

test(tracestats): add cardinality overflow sentinel test#7409
ichinaski merged 7 commits into
mainfrom
ichinaski/css-cardinality-overflow

Conversation

@ichinaski

@ichinaski ichinaski commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Motivation

CSS Cardinality Limits require tracers to collapse excess stats cardinality into a tracer_blocked_value overflow bucket instead of discarding it, keeping service-level totals intact. Nothing in system-tests covered this contract.

Workflow

  1. ⚠️ Create your PR as draft ⚠️
  2. Work on you PR until the CI passes
  3. Mark it as ready for review
    • Test logic is modified? -> Get a review from RFC owner.
    • Framework is modified, or non obvious usage of it -> get a review from R&P team

🚀 Once your PR is reviewed and the CI green, you can merge it!

🛟 #apm-shared-testing 🛟

Reviewer checklist

  • Anything but tests/ or manifests/ is modified ? I have the approval from R&P team
  • A docker base image is modified?
    • the relevant build-XXX-image label is present
  • A scenario is added, removed or renamed?

Verifies eligible span kinds (server/client/producer/consumer) are computed into stats with their SpanKind while ineligible kinds are excluded. Passes for go/java/dotnet/python; marked missing_feature for nodejs (no SpanKind field) and the no-CSS SDKs.
…ets, gate TS015 for .NET <3.43.0

Addresses PR review: exercise a non-top-level server-kind span, aggregate stats across all /v0.6/stats requests and time buckets, and mark TS015 missing_feature for dd-trace-dotnet <3.43.0 like the sibling CSS tests.
Assert CSS v1.2.0 Cardinality Limits collapse excess stats cardinality into a tracer_blocked_value overflow bucket while preserving service-level totals. dotnet passes; dd-trace-go gated to activate from 2.11.0-dev (#5032); other CSS SDKs marked missing_feature until they honor DD_TRACE_STATS_*_CARDINALITY_LIMIT.
…lity-overflow

# Conflicts:
#	tests/parametric/test_library_tracestats.py
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

manifests/cpp.yml                                                       @DataDog/dd-trace-cpp
manifests/dotnet.yml                                                    @DataDog/apm-dotnet @DataDog/asm-dotnet
manifests/golang.yml                                                    @DataDog/dd-trace-go-guild
manifests/java.yml                                                      @DataDog/asm-java @DataDog/apm-java
manifests/nodejs.yml                                                    @DataDog/dd-trace-js
manifests/python.yml                                                    @DataDog/apm-python @DataDog/asm-python
manifests/ruby.yml                                                      @DataDog/ruby-guild @DataDog/asm-ruby
manifests/rust.yml                                                      @DataDog/apm-rust
tests/parametric/test_library_tracestats.py                             @DataDog/system-tests-core @DataDog/apm-sdk-capabilities

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Jul 29, 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: 8ec9af4 | Docs | Datadog PR Page | Give us feedback!

@ichinaski ichinaski changed the title test(tracestats): add cardinality overflow sentinel test (TS017) test(tracestats): add cardinality overflow sentinel test Jul 29, 2026
@ichinaski
ichinaski marked this pull request as ready for review July 29, 2026 11:12
@ichinaski
ichinaski requested review from a team as code owners July 29, 2026 11:12
@ichinaski
ichinaski requested review from ZStriker19, avara1986, jandro996, mabdinur and manuel-alvarez-alvarez and removed request for a team July 29, 2026 11:12
@ichinaski
ichinaski requested a review from cataphract July 29, 2026 11:12

@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: 8c47bdaf59

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread manifests/golang.yml Outdated
Comment thread tests/parametric/test_library_tracestats.py
@ichinaski
ichinaski requested review from a team as code owners July 29, 2026 13:17
@ichinaski
ichinaski merged commit 3c6969c into main Jul 29, 2026
429 checks passed
@ichinaski
ichinaski deleted the ichinaski/css-cardinality-overflow branch July 29, 2026 15:48
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