use of io.opentelemetry.exporter.otlp.http.logs.OtlpHttpLogExporter in project opentelemetry-java by open-telemetry.
the class OtlpExporterIntegrationTest method testOtlpHttpLogExport.
@ParameterizedTest
@ValueSource(strings = { "gzip", "none" })
void testOtlpHttpLogExport(String compression) {
LogExporter otlpHttpLogExporter = OtlpHttpLogExporter.builder().setEndpoint("http://" + collector.getHost() + ":" + collector.getMappedPort(COLLECTOR_OTLP_HTTP_PORT) + "/v1/logs").setCompression(compression).build();
testLogExporter(otlpHttpLogExporter);
}
Aggregations