otel: formatting fixes

This commit is contained in:
AgraVator 2025-07-09 15:31:59 +05:30
parent 2ce087eebb
commit 2293e7fada
1 changed files with 5 additions and 3 deletions

View File

@ -50,8 +50,8 @@ import io.grpc.Metadata;
import io.grpc.MethodDescriptor; import io.grpc.MethodDescriptor;
import io.grpc.MetricRecorder; import io.grpc.MetricRecorder;
import io.grpc.NameResolver; import io.grpc.NameResolver;
import io.grpc.Status;
import io.grpc.SecurityLevel; import io.grpc.SecurityLevel;
import io.grpc.Status;
import io.grpc.SynchronizationContext; import io.grpc.SynchronizationContext;
import io.grpc.SynchronizationContext.ScheduledHandle; import io.grpc.SynchronizationContext.ScheduledHandle;
import java.net.SocketAddress; import java.net.SocketAddress;
@ -627,8 +627,10 @@ final class InternalSubchannel implements InternalInstrumented<ChannelStats>, Tr
ChannelLogLevel.INFO, "{0} SHUTDOWN with {1}", transport.getLogId(), printShortStatus(s)); ChannelLogLevel.INFO, "{0} SHUTDOWN with {1}", transport.getLogId(), printShortStatus(s));
shutdownInitiated = true; shutdownInitiated = true;
subchannelMetrics.recordConnectionAttemptFailed(buildLabelSet( subchannelMetrics.recordConnectionAttemptFailed(buildLabelSet(
getAttributeOrDefault(addressIndex.getCurrentEagAttributes(), NameResolver.ATTR_BACKEND_SERVICE), getAttributeOrDefault(
getAttributeOrDefault(addressIndex.getCurrentEagAttributes(), LoadBalancer.ATTR_LOCALITY_NAME), addressIndex.getCurrentEagAttributes(), NameResolver.ATTR_BACKEND_SERVICE),
getAttributeOrDefault(
addressIndex.getCurrentEagAttributes(), LoadBalancer.ATTR_LOCALITY_NAME),
null, null null, null
)); ));
syncContext.execute(new Runnable() { syncContext.execute(new Runnable() {