From 35d543786cdc6fb4733fd2ff1c7f0b55dc959106 Mon Sep 17 00:00:00 2001 From: Matthias Haeussler Date: Wed, 24 Jul 2024 08:44:49 +0000 Subject: [PATCH] cleanup --- .../io/novatec/todobackend/OpenTelemetryConfiguration.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/exercises/manual-instrumentation-java/initial/todobackend-springboot/src/main/java/io/novatec/todobackend/OpenTelemetryConfiguration.java b/exercises/manual-instrumentation-java/initial/todobackend-springboot/src/main/java/io/novatec/todobackend/OpenTelemetryConfiguration.java index b8eac2d..7014c82 100644 --- a/exercises/manual-instrumentation-java/initial/todobackend-springboot/src/main/java/io/novatec/todobackend/OpenTelemetryConfiguration.java +++ b/exercises/manual-instrumentation-java/initial/todobackend-springboot/src/main/java/io/novatec/todobackend/OpenTelemetryConfiguration.java @@ -37,17 +37,13 @@ public OpenTelemetry openTelemetry(){ OtlpGrpcSpanExporter jaegerOtlpExporter = OtlpGrpcSpanExporter.builder() .setEndpoint("http://localhost:4317") - .setTimeout(30, TimeUnit.SECONDS) .build(); SdkTracerProvider sdkTracerProvider = SdkTracerProvider.builder() .addSpanProcessor(SimpleSpanProcessor.create(LoggingSpanExporter.create())) .addSpanProcessor(SimpleSpanProcessor.create(jaegerOtlpExporter)) - // .addSpanProcessor(BatchSpanProcessor.builder(LoggingSpanExporter.create()).build()) // same results for now .setResource(resource) .build(); - // .buildAndRegisterGlobal(); - OpenTelemetry openTelemetry = OpenTelemetrySdk.builder() .setTracerProvider(sdkTracerProvider)