Package brave.jaxrs2

Class ContainerParser


  • public class ContainerParser
    extends Object
    JAX-RS specific type used to customize traced requests based on the JAX-RS resource.

    Note: This should not duplicate data added by HttpTracing. For example, this should not add the tag "http.url".

    • Field Detail

      • NOOP

        public static final ContainerParser NOOP
        Adds no data to the request
      • RESOURCE_CLASS

        public static final String RESOURCE_CLASS
        Simple class name that processed the request. ex BookResource
        See Also:
        Constant Field Values
      • RESOURCE_METHOD

        public static final String RESOURCE_METHOD
        Method name that processed the request. ex listOfBooks
        See Also:
        Constant Field Values
    • Constructor Detail

      • ContainerParser

        public ContainerParser()
    • Method Detail

      • resourceInfo

        protected void resourceInfo​(javax.ws.rs.container.ResourceInfo resourceInfo,
                                    brave.SpanCustomizer customizer)
        Invoked prior to request invocation during ContainerRequestFilter.filter(ContainerRequestContext) where the resource info was injected from context.

        Adds the tags RESOURCE_CLASS and RESOURCE_METHOD. Override or use NOOP to change this behavior.