Skip to content

Commit 68b5c06

Browse files
link04claude
andauthored
Add OTLP runtime metrics system test (#6715)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c3e05d8 commit 68b5c06

13 files changed

Lines changed: 162 additions & 0 deletions

File tree

.github/workflows/run-end-to-end.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ jobs:
264264
- name: Run LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID scenario
265265
if: steps.build.outcome == 'success' && !cancelled() && contains(inputs.scenarios, '"LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID"')
266266
run: ./run.sh LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID
267+
- name: Run OTLP_RUNTIME_METRICS scenario
268+
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"OTLP_RUNTIME_METRICS"')
269+
run: ./run.sh OTLP_RUNTIME_METRICS
267270
- name: Run RUNTIME_METRICS_ENABLED scenario
268271
if: steps.build.outcome == 'success' && !cancelled() && contains(inputs.scenarios, '"RUNTIME_METRICS_ENABLED"')
269272
run: ./run.sh RUNTIME_METRICS_ENABLED

manifests/cpp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,6 @@ manifest:
310310
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
311311
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
312312
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
313+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
313314
tests/test_telemetry.py::Test_Telemetry::test_telemetry_message_has_datadog_container_id: "irrelevant (cgroup in weblog is 0::/, so this test can't work)"
314315
tests/test_telemetry.py::Test_Telemetry::test_telemetry_message_required_headers: missing_feature

manifests/dotnet.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,7 @@ manifest:
11471147
tests/test_library_conf.py::Test_HeaderTags_Wildcard_Response_Headers: missing_feature
11481148
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
11491149
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1150+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
11501151
tests/test_profiling.py::Test_Profile:
11511152
- weblog_declaration:
11521153
"*": v1.0 # real version not known

manifests/golang.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,7 @@ manifest:
14001400
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
14011401
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
14021402
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1403+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
14031404
tests/test_profiling.py::Test_Profile::test_process_tags_svc: missing_feature
14041405
tests/test_protobuf.py: missing_feature
14051406
tests/test_resource_renaming.py:

manifests/java.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4225,6 +4225,7 @@ manifest:
42254225
akka-http: irrelevant (integration injects Date header after bytecode injection occurs)
42264226
play: irrelevant (integration injects Date header after bytecode injection occurs)
42274227
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
4228+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
42284229
tests/test_profiling.py::Test_Profile:
42294230
- weblog_declaration:
42304231
akka-http: v1.22.0

manifests/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,6 +2317,7 @@ manifest:
23172317
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
23182318
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
23192319
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
2320+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
23202321
tests/test_profiling.py::Test_Profile: *ref_5_16_0
23212322
tests/test_profiling.py::Test_Profile::test_process_tags: missing_feature
23222323
tests/test_profiling.py::Test_Profile::test_process_tags_svc: missing_feature

manifests/php.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ manifest:
10051005
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
10061006
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
10071007
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1008+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
10081009
tests/test_profiling.py::Test_Profile:
10091010
- declaration: missing_feature (profiling seems not to be activated)
10101011
component_version: <1.16.0

manifests/python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,6 +2168,7 @@ manifest:
21682168
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
21692169
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
21702170
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
2171+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
21712172
tests/test_profiling.py::Test_Profile:
21722173
- weblog_declaration:
21732174
"*": v0.1 # actual version unknown

manifests/ruby.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,6 +1966,7 @@ manifest:
19661966
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
19671967
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
19681968
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1969+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
19691970
tests/test_profiling.py::Test_Profile: # Modified by easy win activation script
19701971
- declaration: missing_feature (temporary fix, scenario not working on dd-trace-rb CI)
19711972
component_version: <2.24.0

tests/parametric/test_otel_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
# CORECLR_ENABLE_PROFILING=1 is required in .NET to enable auto-instrumentation
4444
DEFAULT_ENVVARS = {
4545
"DD_METRICS_OTEL_ENABLED": "true",
46+
"DD_RUNTIME_METRICS_ENABLED": "false", # Prevent runtime metrics (System.Runtime, Microsoft.AspNetCore.*) from leaking into custom metric tests
4647
"OTEL_METRIC_EXPORT_INTERVAL": "60000", # Mitigate test flake by increasing the interval so that the only time new metrics are exported are when we manually flush them
4748
"CORECLR_ENABLE_PROFILING": "1",
4849
}

0 commit comments

Comments
 (0)