Uses of Class
brave.http.HttpRequest
-
Uses of HttpRequest in brave.http
Subclasses of HttpRequest in brave.http Modifier and Type Class Description classHttpClientRequestMarks an interface for use inHttpClientHandler.handleSend(HttpClientRequest).classHttpServerRequestMarks an interface for use inHttpServerHandler.handleReceive(HttpServerRequest).Methods in brave.http that return HttpRequest Modifier and Type Method Description HttpRequestHttpResponse. request()The request that initiated this HTTP response ornullif unknown.Methods in brave.http that return types with arguments of type HttpRequest Modifier and Type Method Description SamplerFunction<HttpRequest>HttpTracing. clientRequestSampler()Returns an overriding sampling decision for a new trace.static Matcher<HttpRequest>HttpRequestMatchers. methodEquals(String method)Matcher for case-sensitive HTTP methods, such as "GET" and "POST"static Matcher<HttpRequest>HttpRequestMatchers. pathStartsWith(String pathPrefix)SamplerFunction<HttpRequest>HttpTracing. serverRequestSampler()Returns an overriding sampling decision for a new trace.Methods in brave.http with parameters of type HttpRequest Modifier and Type Method Description voidHttpRequestParser.Default. parse(HttpRequest req, TraceContext context, SpanCustomizer span)This sets the span name to the HTTP method and adds the "http.method" and "http.path" tags.voidHttpRequestParser. parse(HttpRequest request, TraceContext context, SpanCustomizer span)Implement to choose what data from the http request are parsed into the span representing it.protected StringHttpRequestParser.Default. spanName(HttpRequest req, TraceContext context)Returns the span name of the request or null if the data needed is unavailable.BooleanHttpRuleSampler. trySample(HttpRequest request)BooleanHttpSampler. trySample(HttpRequest request)Deprecated.Method parameters in brave.http with type arguments of type HttpRequest Modifier and Type Method Description HttpTracing.BuilderHttpTracing.Builder. clientSampler(SamplerFunction<HttpRequest> clientSampler)HttpRuleSampler.BuilderHttpRuleSampler.Builder. putRule(Matcher<HttpRequest> matcher, Sampler sampler)Adds or replaces the sampler for the matcher.HttpTracing.BuilderHttpTracing.Builder. serverSampler(SamplerFunction<HttpRequest> serverSampler)