Class TracingFilter

  • All Implemented Interfaces:
    javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter

    @Priority(-2147483638)
    public class TracingFilter
    extends AbstractTracingFilter
    Adds tracing of (overall) Jersey calls.
    • Constructor Detail

      • TracingFilter

        public TracingFilter()
    • Method Detail

      • configureSpan

        protected void configureSpan​(io.opentracing.Tracer.SpanBuilder spanBuilder)
        Description copied from class: AbstractTracingFilter
        Configure additional properties of a span that is named and has a parent.
        Specified by:
        configureSpan in class AbstractTracingFilter
        Parameters:
        spanBuilder - builder of the new span
      • tracingEnabled

        protected boolean tracingEnabled​(javax.ws.rs.container.ContainerRequestContext context)
        Description copied from class: AbstractTracingFilter
        Whether this tracing filter is enabled.
        Specified by:
        tracingEnabled in class AbstractTracingFilter
        Parameters:
        context - request context
        Returns:
        true if filter should trigger and start a new span
      • spanName

        protected String spanName​(javax.ws.rs.container.ContainerRequestContext context)
        Description copied from class: AbstractTracingFilter
        Create name of the newly created span.
        Specified by:
        spanName in class AbstractTracingFilter
        Parameters:
        context - request context
        Returns:
        name of the span to be created