Package brave.http

Class HttpRequestParser.Default

  • All Implemented Interfaces:
    HttpRequestParser
    Enclosing interface:
    HttpRequestParser

    public static class HttpRequestParser.Default
    extends Object
    implements HttpRequestParser
    The default data policy sets the span name to the HTTP method and adds the "http.method" and "http.path" tags.
    • Constructor Detail

      • Default

        public Default()
    • Method Detail

      • spanName

        @Nullable
        protected String spanName​(HttpRequest req,
                                  brave.propagation.TraceContext context)
        Returns the span name of the request or null if the data needed is unavailable. Defaults to the http method.