Class AbstractTracingFilter

    • Constructor Detail

      • AbstractTracingFilter

        public AbstractTracingFilter()
    • Method Detail

      • url

        protected String url​(ContainerRequestContext requestContext)
        Resolves host name based on the "host" header. If this header is not set, then URI.toString() is called.
        Parameters:
        requestContext - request context
        Returns:
        resolved url
      • tracingEnabled

        protected abstract boolean tracingEnabled​(ContainerRequestContext context)
        Whether this tracing filter is enabled.
        Parameters:
        context - request context
        Returns:
        true if filter should trigger and start a new span
      • spanName

        protected abstract String spanName​(ContainerRequestContext context)
        Create name of the newly created span.
        Parameters:
        context - request context
        Returns:
        name of the span to be created
      • configureSpan

        protected abstract void configureSpan​(io.opentracing.Tracer.SpanBuilder spanBuilder)
        Configure additional properties of a span that is named and has a parent.
        Parameters:
        spanBuilder - builder of the new span