Skip to content

test(otlp-trace-metrics): fix Java compatibility checks - #7466

Draft
mabdinur wants to merge 1 commit into
mainfrom
codex/otlp-trace-metrics-follow-up-tests
Draft

test(otlp-trace-metrics): fix Java compatibility checks#7466
mabdinur wants to merge 1 commit into
mainfrom
codex/otlp-trace-metrics-follow-up-tests

Conversation

@mabdinur

@mabdinur mabdinur commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #7363 based on validation against DataDog/dd-trace-java#12144.

  • Normalize raw OTLP protobuf payload keys in the FR01 negative polling tests. Without this, Java fails with KeyError: resourceMetrics before the assertions can inspect received metrics.
  • Accept integer 1 for datadog.span.top_level in test_fr08_13_is_trace_root, matching the existing FR08 assertions and Java wire format. The three datadog.is_trace_root values were already correct.
  • Configure the Test Agent /info response with a db.hostname peer-tag allowlist, wait for the tracer to consume it, and mark the test span as client-kind. This exercises Java peer-tag capture instead of an ineligible internal span.

Validation

  • Ruff 0.14.5 format and lint
  • Mypy
  • Java PR artifact: test_fr08_13_is_trace_root and test_fr08_14_peer_tags both pass

test_fr01_6_disabled_when_apm_tracing_disabled now reaches its intended assertion and confirms a remaining Java implementation gap: OTLP span metrics are still emitted when APM tracing is disabled.

Draft while the OTEL specification and Java implementation are finalized.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/parametric/test_otlp_trace_metrics.py                             @DataDog/system-tests-core @DataDog/apm-sdk-capabilities

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.

1 participant