Search in sources :

Example 1 with OtlpHttpLogExporter

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);
}
Also used : OtlpHttpLogExporter(io.opentelemetry.exporter.otlp.http.logs.OtlpHttpLogExporter) LogExporter(io.opentelemetry.sdk.logs.export.LogExporter) OtlpGrpcLogExporter(io.opentelemetry.exporter.otlp.logs.OtlpGrpcLogExporter) ValueSource(org.junit.jupiter.params.provider.ValueSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

OtlpHttpLogExporter (io.opentelemetry.exporter.otlp.http.logs.OtlpHttpLogExporter)1 OtlpGrpcLogExporter (io.opentelemetry.exporter.otlp.logs.OtlpGrpcLogExporter)1 LogExporter (io.opentelemetry.sdk.logs.export.LogExporter)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 ValueSource (org.junit.jupiter.params.provider.ValueSource)1