Skip to content

Adds system test that reports grpc status code in the stats#6483

Merged
bric3 merged 4 commits intomainfrom
bdu/report-grpc-status-code-to-tracer-client-computed-stats
Mar 18, 2026
Merged

Adds system test that reports grpc status code in the stats#6483
bric3 merged 4 commits intomainfrom
bdu/report-grpc-status-code-to-tracer-client-computed-stats

Conversation

@bric3
Copy link
Copy Markdown
Contributor

@bric3 bric3 commented Mar 12, 2026

Motivation

The java agent didn't included the gRPC status code in the stats payload. It will do so in 1.61.0. So let's add a system test to verify that.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 12, 2026

CODEOWNERS have been resolved as:

manifests/cpp_httpd.yml                                                 @DataDog/dd-trace-cpp
manifests/cpp_nginx.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/python.yml                                                    @DataDog/apm-python @DataDog/asm-python
manifests/ruby.yml                                                      @DataDog/ruby-guild @DataDog/asm-ruby
tests/stats/test_stats.py                                               @DataDog/system-tests-core
utils/docker_fixtures/spec/trace.py                                     @DataDog/system-tests-core

@bric3 bric3 force-pushed the bdu/report-grpc-status-code-to-tracer-client-computed-stats branch 3 times, most recently from b7577af to 5e94312 Compare March 13, 2026 15:49
@datadog-prod-us1-5
Copy link
Copy Markdown

datadog-prod-us1-5 bot commented Mar 13, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ab9a025 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

* Adds a parameteric test for the grpc status code
* Replace parametric test by regular for the grpc status code
@bric3 bric3 force-pushed the bdu/report-grpc-status-code-to-tracer-client-computed-stats branch from 5e94312 to a4048d8 Compare March 13, 2026 17:55
@bric3 bric3 marked this pull request as ready for review March 13, 2026 19:00
@bric3 bric3 requested a review from a team as a code owner March 13, 2026 19:00
Copy link
Copy Markdown

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

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: a4048d858b

ℹ️ 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".

@bric3 bric3 requested review from a team as code owners March 17, 2026 08:49
@bric3 bric3 requested review from daniel-romano-DD, florentinl, juanjux and manuel-alvarez-alvarez and removed request for a team March 17, 2026 08:49
@bric3 bric3 requested a review from dmehala March 17, 2026 08:49
tests/serverless/span_pointers/aws/test_s3_span_pointers.py::Test_PutObject: missing_feature
tests/stats/test_stats.py: v1.54.0
tests/stats/test_stats.py::Test_Client_Drop_P0s::test_client_drop_p0s_false: v2.6.0
tests/stats/test_stats.py::Test_Client_Stats::test_grpc_status_code: irrelevant (variant has no gRPC endpoint)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Two questions:

  • Should we add grpc endpoints to our weblogs ?
  • Should every tracer now report grpc status codes ?

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.

Should we add grpc endpoints to our weblogs ?

In my opinion, yes. Since this is an important part of the stats aggregation.

Should every tracer now report grpc status codes ?

Theoretically, they should since it's part of the CCS protocol.

@bric3 bric3 merged commit c2e1809 into main Mar 18, 2026
460 checks passed
@bric3 bric3 deleted the bdu/report-grpc-status-code-to-tracer-client-computed-stats branch March 18, 2026 12:09
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