Fix build breakage due to post-merge conflict.
MODIFY
instrumentation/aws-lambda-1.0/library/src/main/java/io/opentelemetry/instrumentation/awslambda/v1_0/TracingRequestStreamHandler.java
instrumentation/aws-lambda-1.0/library/src/main/java/io/opentelemetry/instrumentation/awslambda/v1_0/TracingRequestStreamHandler.java
@@ -57,7 +57,7 @@ public abstract class TracingRequestStreamHandler implements RequestStreamHandle
doHandleRequest(input, new OutputStreamWrapper(output, span), context);
} catch (Throwable t) {
tracer.endExceptionally(span, t);
- OpenTelemetrySdk.getTracerManagement().forceFlush().join(1, TimeUnit.SECONDS);
+ OpenTelemetrySdk.getGlobalTracerManagement().forceFlush().join(1, TimeUnit.SECONDS);
throw t;
}
}
@@ -94,7 +94,7 @@ public abstract class TracingRequestStreamHandler implements RequestStreamHandle
public void close() throws IOException {
delegate.close();
tracer.end(span);
- OpenTelemetrySdk.getTracerManagement().forceFlush().join(1, TimeUnit.SECONDS);
+ OpenTelemetrySdk.getGlobalTracerManagement().forceFlush().join(1, TimeUnit.SECONDS);
}
@Override

Fix build breakage due to post-merge conflict. (#1496)