Skip to content

Commit ccecbea

Browse files
link04claude
andcommitted
Enable OTLP runtime metrics test for Go v2.9.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 195134e commit ccecbea

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
@@ -261,6 +261,9 @@ jobs:
261261
- name: Run LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID scenario
262262
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID"')
263263
run: ./run.sh LIBRARY_CONF_CUSTOM_HEADER_TAGS_INVALID
264+
- name: Run OTLP_RUNTIME_METRICS scenario
265+
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"OTLP_RUNTIME_METRICS"')
266+
run: ./run.sh OTLP_RUNTIME_METRICS
264267
- name: Run RUNTIME_METRICS_ENABLED scenario
265268
if: always() && steps.build.outcome == 'success' && contains(inputs.scenarios, '"RUNTIME_METRICS_ENABLED"')
266269
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
@@ -1142,6 +1142,7 @@ manifest:
11421142
tests/test_library_conf.py::Test_HeaderTags_Wildcard_Response_Headers: missing_feature
11431143
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
11441144
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1145+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
11451146
tests/test_profiling.py::Test_Profile:
11461147
- weblog_declaration:
11471148
"*": v1.0 # real version not known

manifests/golang.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ manifest:
13951395
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
13961396
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
13971397
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1398+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: v2.9.0-dev
13981399
tests/test_profiling.py::Test_Profile::test_process_tags_svc: missing_feature
13991400
tests/test_protobuf.py: missing_feature
14001401
tests/test_resource_renaming.py:

manifests/java.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4220,6 +4220,7 @@ manifest:
42204220
akka-http: irrelevant (integration injects Date header after bytecode injection occurs)
42214221
play: irrelevant (integration injects Date header after bytecode injection occurs)
42224222
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
4223+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
42234224
tests/test_profiling.py::Test_Profile:
42244225
- weblog_declaration:
42254226
akka-http: v1.22.0

manifests/nodejs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,7 @@ manifest:
23122312
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
23132313
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
23142314
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
2315+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
23152316
tests/test_profiling.py::Test_Profile: *ref_5_16_0
23162317
tests/test_profiling.py::Test_Profile::test_process_tags: missing_feature
23172318
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
@@ -997,6 +997,7 @@ manifest:
997997
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
998998
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
999999
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1000+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
10001001
tests/test_profiling.py::Test_Profile:
10011002
- declaration: missing_feature (profiling seems not to be activated)
10021003
component_version: <1.16.0

manifests/python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,6 +2155,7 @@ manifest:
21552155
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
21562156
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
21572157
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
2158+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
21582159
tests/test_profiling.py::Test_Profile:
21592160
- weblog_declaration:
21602161
"*": v0.1 # actual version unknown

manifests/ruby.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,6 +1961,7 @@ manifest:
19611961
tests/test_library_logs.py::Test_NoExceptions::test_dotnet: irrelevant (only for .NET)
19621962
tests/test_library_logs.py::Test_NoExceptions::test_java_logs: irrelevant (only for Java)
19631963
tests/test_library_logs.py::Test_NoExceptions::test_java_telemetry_logs: irrelevant (only for Java)
1964+
tests/test_otlp_runtime_metrics.py::Test_OtlpRuntimeMetrics: missing_feature
19641965
tests/test_profiling.py::Test_Profile: # Modified by easy win activation script
19651966
- declaration: missing_feature (temporary fix, scenario not working on dd-trace-rb CI)
19661967
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)