Class SpannerInterceptorProvider (6.66.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
Type Description
SpannerInterceptorProvider

createDefault(OpenTelemetry openTelemetry)

public static SpannerInterceptorProvider createDefault(OpenTelemetry openTelemetry)
Parameter
Name Description
openTelemetry io.opentelemetry.api.OpenTelemetry
Returns
Type Description
SpannerInterceptorProvider

Methods

getInterceptors()

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

with(ClientInterceptor clientInterceptor)

public SpannerInterceptorProvider with(ClientInterceptor clientInterceptor)
Parameter
Name Description
clientInterceptor io.grpc.ClientInterceptor
Returns
Type Description
SpannerInterceptorProvider