Class OpenTelemetryPreInvocationInterceptor

  • All Implemented Interfaces:
    org.glassfish.jersey.client.spi.PreInvocationInterceptor

    public class OpenTelemetryPreInvocationInterceptor
    extends Object
    implements org.glassfish.jersey.client.spi.PreInvocationInterceptor
    This class is an implementation of the PreInvocationInterceptor interface that propagates telemetry span context to client request context before invocation.This is the key to enable async client request
    • Constructor Detail

      • OpenTelemetryPreInvocationInterceptor

        public OpenTelemetryPreInvocationInterceptor()
    • Method Detail

      • beforeRequest

        public void beforeRequest​(jakarta.ws.rs.client.ClientRequestContext clientRequestContext)
        Specified by:
        beforeRequest in interface org.glassfish.jersey.client.spi.PreInvocationInterceptor