Class SpannerInterceptorProvider (6.62.0)

public class SpannerInterceptorProvider implements GrpcInterceptorProvider

For internal use only. An interceptor provider that provides a list of grpc interceptors for GapicSpannerRpc to handle logging and error augmentation by intercepting grpc calls.

Inheritance

java.lang.Object > SpannerInterceptorProvider

Static Methods

createDefault()

public static SpannerInterceptorProvider createDefault()
Returns
TypeDescription
SpannerInterceptorProvider

createDefault(OpenTelemetry openTelemetry)

public static SpannerInterceptorProvider createDefault(OpenTelemetry openTelemetry)
Parameter
NameDescription
openTelemetryio.opentelemetry.api.OpenTelemetry
Returns
TypeDescription
SpannerInterceptorProvider

Methods

getInterceptors()

public List<ClientInterceptor> getInterceptors()
Returns
TypeDescription
List<io.grpc.ClientInterceptor>

with(ClientInterceptor clientInterceptor)

public SpannerInterceptorProvider with(ClientInterceptor clientInterceptor)
Parameter
NameDescription
clientInterceptorio.grpc.ClientInterceptor
Returns
TypeDescription
SpannerInterceptorProvider