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 Tag<HttpRequest>HttpTags. METHODThis tags "http.method" as the value ofmethod(), such as "GET" or "POST".static Tag<HttpRequest>HttpTags. PATHThis tags "http.path" as the value ofpath().static Tag<HttpRequest>HttpTags. ROUTEThis tags "http.route" as the value ofroute().static 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 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)static Tag<HttpRequest>HttpTags. requestHeader(String headerName)Creates a tag for the given HTTP request header.static Tag<HttpRequest>HttpTags. requestHeader(String key, String headerName)LikeHttpTags.requestHeader(String), except controls the tag key used.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)
-