Skip to content

Commit

Permalink
switch cloud functions test to simple span processor to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Nov 16, 2023
1 parent 4ecc4f4 commit 14a1ab0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.SdkTracerProvider;
import io.opentelemetry.sdk.trace.export.BatchSpanProcessor;
import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor;
import io.opentelemetry.sdk.trace.export.SpanExporter;
import java.io.IOException;
import java.time.Duration;
Expand Down Expand Up @@ -228,7 +228,7 @@ private static OpenTelemetrySdk setupTraceExporter(Resource resource) throws IOE
new XCloudTraceContextPropagator(true))))
.setTracerProvider(
SdkTracerProvider.builder()
.addSpanProcessor(BatchSpanProcessor.builder(traceExporter).build())
.addSpanProcessor(SimpleSpanProcessor.create(traceExporter))
.setResource(resource)
.build())
.build();
Expand Down

0 comments on commit 14a1ab0

Please sign in to comment.