Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4083,7 +4083,7 @@ manifest:
: bug (APMAPI-2474)
tests/parametric/otel_env_vars/test_otel_exporter_otlp_traces_protocol.py::Test_OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: v1.61.0
? tests/parametric/otel_env_vars/test_otel_exporter_otlp_traces_protocol.py::Test_OTEL_EXPORTER_OTLP_TRACES_PROTOCOL::test_grpc_protocol_is_used_for_trace_export
: incomplete_test_app (gRPC trace requests are not captured by the HTTP request assertion)
: bug (APMAPI-2503)
tests/parametric/otel_env_vars/test_otel_exporter_otlp_traces_timeout.py::Test_OTEL_EXPORTER_OTLP_TRACES_TIMEOUT: v1.61.0
? tests/parametric/otel_env_vars/test_otel_exporter_otlp_traces_timeout.py::Test_OTEL_EXPORTER_OTLP_TRACES_TIMEOUT::test_stable_values
: bug (APMAPI-2485)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
}

CONTENT_TYPES = {
"grpc": "application/grpc",
"http/protobuf": "application/x-protobuf",
"http/json": "application/json",
}
Expand Down Expand Up @@ -85,6 +84,13 @@ def _assert_protocol(
expected_protocol: str,
) -> None:
request = _trace_request(test_agent, test_library)

# The gRPC listener forwards decoded payloads internally over HTTP. A
# successful export to its dedicated port proves gRPC; forwarded headers do
# not represent the original gRPC wire format.
if expected_protocol == "grpc":
return

headers = {name.lower(): value for name, value in request["headers"].items()}
assert headers.get("content-type", "").startswith(CONTENT_TYPES[expected_protocol])

Expand Down
Loading