use of io.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest in project opentelemetry-java by open-telemetry.
the class OtlpHttpLogExporterTest method testExportUncompressed.
@Test
void testExportUncompressed() {
server.enqueue(successResponse());
OtlpHttpLogExporter exporter = builder.build();
ExportLogsServiceRequest payload = exportAndAssertResult(exporter, /* expectedResult= */
true);
RecordedRequest recorded = server.takeRequest();
AggregatedHttpRequest request = recorded.request();
assertRequestCommon(request);
assertThat(parseRequestBody(request.content().array())).isEqualTo(payload);
// OkHttp does not support HTTP/2 upgrade on plaintext.
assertThat(recorded.context().sessionProtocol().isMultiplex()).isFalse();
}
Aggregations