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).Fields in brave.http with type parameters of type HttpRequest Modifier and Type Field Description static brave.Tag<HttpRequest>HttpTags. METHODThis tags "http.method" as the value ofmethod(), such as "GET" or "POST".static brave.Tag<HttpRequest>HttpTags. PATHThis tags "http.path" as the value ofpath().static brave.Tag<HttpRequest>HttpTags. ROUTEThis tags "http.route" as the value ofroute().static brave.Tag<HttpRequest>HttpTags. URLThis tags "http.url" as the value ofurl().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 brave.sampler.SamplerFunction<HttpRequest>HttpTracing. clientRequestSampler()Returns an overriding sampling decision for a new trace.static brave.sampler.Matcher<HttpRequest>HttpRequestMatchers. methodEquals(String method)Matcher for case-sensitive HTTP methods, such as "GET" and "POST"static brave.sampler.Matcher<HttpRequest>HttpRequestMatchers. pathStartsWith(String pathPrefix)static brave.Tag<HttpRequest>HttpTags. requestHeader(String headerName)Creates a tag for the given HTTP request header.static brave.Tag<HttpRequest>HttpTags. requestHeader(String key, String headerName)LikeHttpTags.requestHeader(String), except controls the tag key used.brave.sampler.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, brave.propagation.TraceContext context, brave.SpanCustomizer span)This sets the span name to the HTTP method and adds the "http.method" and "http.path" tags.voidHttpRequestParser. parse(HttpRequest request, brave.propagation.TraceContext context, brave.SpanCustomizer span)Implement to choose what data from the http request are parsed into the span representing it.protected StringHttpRequestParser.Default. spanName(HttpRequest req, brave.propagation.TraceContext context)Returns the span name of the request or null if the data needed is unavailable.BooleanHttpRuleSampler. trySample(HttpRequest request)Method parameters in brave.http with type arguments of type HttpRequest Modifier and Type Method Description HttpTracing.BuilderHttpTracing.Builder. clientSampler(brave.sampler.SamplerFunction<HttpRequest> clientSampler)HttpRuleSampler.BuilderHttpRuleSampler.Builder. putRule(brave.sampler.Matcher<HttpRequest> matcher, brave.sampler.Sampler sampler)Adds or replaces the sampler for the matcher.HttpTracing.BuilderHttpTracing.Builder. serverSampler(brave.sampler.SamplerFunction<HttpRequest> serverSampler)
-