diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java index 582706a31..3466ecd2c 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/Context.java @@ -205,7 +205,7 @@ public Builder loadW3CTraceParentContext(String traceParent) { */ @CanIgnoreReturnValue public Builder loadOpenTelemetryContext() { - io.opentelemetry.context.Context currentContext = io.opentelemetry.context.Context.current(); + io.opentelemetry.context.Context currentContext = io.opentelemetry.context.Context.current(); SpanContext spanContext = Span.fromContext(currentContext).getSpanContext(); if (spanContext != null && spanContext.isValid()) { setTraceId(spanContext.getTraceId());