Add Attributes to OTLP Metrics Test#7039
Conversation
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd8b9d19f5
ℹ️ 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".
| tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET) | ||
| tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics::test_dd_metrics_are_absent: bug (APMAPI-1952) | ||
| tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics::test_otel_metrics_are_present: missing_feature | ||
| tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics::test_otel_metrics_are_present_and_attributed: v1.63.0 |
There was a problem hiding this comment.
Set the Java runtime metrics start delay before enabling
When this manifest makes the Java OTLP runtime-metrics test active, it runs under otlp_runtime_metrics, which enables runtime metrics with only a 20s library_interface_timeout but does not set DD_DOGSTATSD_START_DELAY=0; I checked the adjacent runtime_metrics_enabled scenario, and it explicitly adds that env var because the Java tracer otherwise waits 30s before emitting runtime metrics. With Java now activated here, the test can assert before any OTLP runtime metrics have been flushed, so the presence checks will fail or be flaky until the OTLP scenario gets the same Java startup-delay override.
Useful? React with 👍 / 👎.
Motivation
This PR adds Attributes to OTLP Metrics tests. It sets the framework for metric testing w/ Attributes and implements JVM Metric Attributes. The other languages are left empty so the test result remains the same as before, and language experts can add in the correct attributes.
This PR also adds validation for extra metrics from this Java PR, and enables the test for the correct Java version.
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present