B C D E F H M N P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- brave.http - package brave.http
- build() - Method in class brave.http.HttpRuleSampler.Builder
- build() - Method in class brave.http.HttpTracing.Builder
C
- clientOf(String) - Method in class brave.http.HttpTracing
-
Scopes this component for a client of the indicated server.
- clientRequestParser() - Method in class brave.http.HttpTracing
-
Used by
HttpClientHandler.handleSend(HttpClientRequest)to add a span name and tags about the request before it is sent to the server. - clientRequestParser(HttpRequestParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for HTTP client requests.
- clientRequestSampler() - Method in class brave.http.HttpTracing
-
Returns an overriding sampling decision for a new trace.
- clientResponseParser() - Method in class brave.http.HttpTracing
-
Used by
HttpClientHandler.handleReceive(HttpClientResponse, Span)to add tags about the response received from the server. - clientResponseParser(HttpResponseParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for HTTP client responses.
- clientSampler(SamplerFunction<HttpRequest>) - Method in class brave.http.HttpTracing.Builder
- close() - Method in class brave.http.HttpTracing
- create(HttpTracing) - Static method in class brave.http.HttpClientHandler
- create(HttpTracing) - Static method in class brave.http.HttpServerHandler
- create(Tracing) - Static method in class brave.http.HttpTracing
- current() - Static method in class brave.http.HttpTracing
-
Returns the most recently created tracing component iff it hasn't been closed. null otherwise.
- customize(HttpTracing.Builder) - Method in interface brave.http.HttpTracingCustomizer
D
- Default() - Constructor for class brave.http.HttpRequestParser.Default
- Default() - Constructor for class brave.http.HttpResponseParser.Default
- DEFAULT - Static variable in interface brave.http.HttpRequestParser
- DEFAULT - Static variable in interface brave.http.HttpResponseParser
E
- error() - Method in class brave.http.HttpClientResponse
- error() - Method in class brave.http.HttpServerResponse
- error(int, Throwable, SpanCustomizer) - Method in class brave.http.HttpResponseParser.Default
-
Override to change what data from the HTTP error are parsed into the span modeling it.
F
- finishTimestamp() - Method in class brave.http.HttpResponse
-
The timestamp in epoch microseconds of the end of this request or zero to take this implicitly from the current clock.
H
- handleReceive(HttpClientResponse, Span) - Method in class brave.http.HttpClientHandler
-
Finishes the client span after assigning it tags according to the response or error.
- handleReceive(HttpServerRequest) - Method in class brave.http.HttpServerHandler
-
Conditionally joins a span, or starts a new trace, depending on if a trace context was extracted from the request.
- handleSend(HttpClientRequest) - Method in class brave.http.HttpClientHandler
-
Starts the client span after assigning it a name and tags.
- handleSend(HttpClientRequest, Span) - Method in class brave.http.HttpClientHandler
-
Like
HttpClientHandler.handleSend(HttpClientRequest), except explicitly controls the span representing the request. - handleSend(HttpServerResponse, Span) - Method in class brave.http.HttpServerHandler
-
Finishes the server span after assigning it tags according to the response or error.
- handleSendWithParent(HttpClientRequest, TraceContext) - Method in class brave.http.HttpClientHandler
-
Like
HttpClientHandler.handleSend(HttpClientRequest), except explicitly controls the parent of the client span. - header(String) - Method in class brave.http.HttpRequest
-
Returns one value corresponding to the specified header, or null.
- header(String, String) - Method in class brave.http.HttpClientRequest
-
Sets a request header with the indicated name.
- HttpClientHandler<Req,Resp> - Class in brave.http
-
This standardizes a way to instrument http clients, particularly in a way that encourages use of portable customizations via
HttpRequestParserandHttpResponseParser. - HttpClientRequest - Class in brave.http
-
Marks an interface for use in
HttpClientHandler.handleSend(HttpClientRequest). - HttpClientRequest() - Constructor for class brave.http.HttpClientRequest
- HttpClientResponse - Class in brave.http
-
Marks an interface for use in
HttpClientHandler.handleReceive(HttpClientResponse, Span). - HttpClientResponse() - Constructor for class brave.http.HttpClientResponse
- HttpRequest - Class in brave.http
-
Abstract request type used for parsing and sampling of http clients and servers.
- HttpRequestMatchers - Class in brave.http
-
Null safe matchers for use in
HttpRuleSampler. - HttpRequestMatchers() - Constructor for class brave.http.HttpRequestMatchers
- HttpRequestParser - Interface in brave.http
-
Use this to control the request data recorded for an
sampled HTTP client or server span. - HttpRequestParser.Default - Class in brave.http
-
The default data policy sets the span name to the HTTP method and adds the "http.method" and "http.path" tags.
- HttpResponse - Class in brave.http
-
Abstract response type used for parsing and sampling of http clients and servers.
- HttpResponseParser - Interface in brave.http
-
Use this to control the response data recorded for an
sampled HTTP client or server span. - HttpResponseParser.Default - Class in brave.http
-
The default data policy sets the span name to the HTTP route when available, along with the "http.status_code" and "error" tags.
- HttpRuleSampler - Class in brave.http
-
Assigns sample rates to http routes.
- HttpRuleSampler.Builder - Class in brave.http
- HttpServerHandler<Req,Resp> - Class in brave.http
-
This standardizes a way to instrument http servers, particularly in a way that encourages use of portable customizations via
HttpRequestParserandHttpResponseParser. - HttpServerRequest - Class in brave.http
-
Marks an interface for use in
HttpServerHandler.handleReceive(HttpServerRequest). - HttpServerRequest() - Constructor for class brave.http.HttpServerRequest
- HttpServerResponse - Class in brave.http
-
Marks an interface for use in
HttpServerHandler#handleSend(Object, Throwable, Span). - HttpServerResponse() - Constructor for class brave.http.HttpServerResponse
- HttpTags - Class in brave.http
-
Standard tags used in request and response parsers.
- HttpTracing - Class in brave.http
-
Instances built via
HttpTracing.create(Tracing)orHttpTracing.newBuilder(Tracing)are registered automatically such that statically configured instrumentation like HTTP clients can useHttpTracing.current(). - HttpTracing.Builder - Class in brave.http
- HttpTracingCustomizer - Interface in brave.http
-
This allows configuration plugins to collaborate on building an instance of
HttpTracing.
M
- method() - Method in class brave.http.HttpRequest
-
The HTTP method, or verb, such as "GET" or "POST".
- method() - Method in class brave.http.HttpResponse
-
Returns the HTTP method of the request that caused this response or
nullif unreadable. - METHOD - Static variable in class brave.http.HttpTags
-
This tags "http.method" as the value of
HttpRequest.method(), such as "GET" or "POST". - methodEquals(String) - Static method in class brave.http.HttpRequestMatchers
-
Matcher for case-sensitive HTTP methods, such as "GET" and "POST"
N
- newBuilder() - Static method in class brave.http.HttpRuleSampler
- newBuilder(Tracing) - Static method in class brave.http.HttpTracing
- NOOP - Static variable in interface brave.http.HttpTracingCustomizer
-
Use to avoid comparing against null references
P
- parse(HttpRequest, TraceContext, SpanCustomizer) - Method in class brave.http.HttpRequestParser.Default
-
This sets the span name to the HTTP method and adds the "http.method" and "http.path" tags.
- parse(HttpRequest, TraceContext, SpanCustomizer) - Method in interface brave.http.HttpRequestParser
-
Implement to choose what data from the http request are parsed into the span representing it.
- parse(HttpResponse, TraceContext, SpanCustomizer) - Method in class brave.http.HttpResponseParser.Default
-
This tags "http.status_code" when it is not 2xx.
- parse(HttpResponse, TraceContext, SpanCustomizer) - Method in interface brave.http.HttpResponseParser
-
Implement to choose what data from the http response are parsed into the span representing it.
- parseClientIpAndPort(Span) - Method in class brave.http.HttpServerRequest
-
Used by
HttpServerHandler.handleReceive(HttpServerRequest)to add remote socket information about the client from the delegate. - parseClientIpFromXForwardedFor(Span) - Method in class brave.http.HttpServerRequest
-
Uses the first value in the "X-Forwarded-For" header, or returns false if not present.
- path() - Method in class brave.http.HttpRequest
-
The absolute http path, without any query parameters.
- PATH - Static variable in class brave.http.HttpTags
-
This tags "http.path" as the value of
HttpRequest.path(). - pathStartsWith(String) - Static method in class brave.http.HttpRequestMatchers
- propagation() - Method in class brave.http.HttpTracing
-
Returns the propagation component used by HTTP instrumentation.
- propagation(Propagation<String>) - Method in class brave.http.HttpTracing.Builder
- putAllRules(HttpRuleSampler) - Method in class brave.http.HttpRuleSampler.Builder
-
Adds or replaces all rules in this sampler with those of the input.
- putRule(Matcher<HttpRequest>, Sampler) - Method in class brave.http.HttpRuleSampler.Builder
-
Adds or replaces the sampler for the matcher.
R
- request() - Method in class brave.http.HttpClientResponse
-
The request that initiated this HTTP response or
nullif unknown. - request() - Method in class brave.http.HttpResponse
-
The request that initiated this HTTP response or
nullif unknown. - request() - Method in class brave.http.HttpServerResponse
-
The request that initiated this HTTP response or
nullif unknown. - requestHeader(String) - Static method in class brave.http.HttpTags
-
Creates a tag for the given HTTP request header.
- requestHeader(String, String) - Static method in class brave.http.HttpTags
-
Like
HttpTags.requestHeader(String), except controls the tag key used. - route() - Method in class brave.http.HttpRequest
-
Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route".
- route() - Method in class brave.http.HttpResponse
-
Returns the HTTP route of the request that caused this response or
nullif unreadable. - ROUTE - Static variable in class brave.http.HttpTags
-
This tags "http.route" as the value of
HttpRequest.route().
S
- serverName() - Method in class brave.http.HttpTracing
-
Used by http clients to indicate the name of the destination service.
- serverRequestParser() - Method in class brave.http.HttpTracing
-
Used by
HttpServerHandler.handleReceive(HttpServerRequest)to add a span name and tags about the request before the server processes it. - serverRequestParser(HttpRequestParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for HTTP server requests.
- serverRequestSampler() - Method in class brave.http.HttpTracing
-
Returns an overriding sampling decision for a new trace.
- serverResponseParser() - Method in class brave.http.HttpTracing
-
Used by
HttpServerHandler.handleSend(brave.http.HttpServerResponse, brave.Span)to add tags about the response sent to the client. - serverResponseParser(HttpResponseParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for HTTP server responses.
- serverSampler(SamplerFunction<HttpRequest>) - Method in class brave.http.HttpTracing.Builder
- spanKind() - Method in class brave.http.HttpClientRequest
- spanKind() - Method in class brave.http.HttpClientResponse
- spanKind() - Method in class brave.http.HttpServerRequest
- spanKind() - Method in class brave.http.HttpServerResponse
- spanName(HttpRequest, TraceContext) - Method in class brave.http.HttpRequestParser.Default
-
Returns the span name of the request or null if the data needed is unavailable.
- startTimestamp() - Method in class brave.http.HttpRequest
-
The timestamp in epoch microseconds of the beginning of this request or zero to take this implicitly from the current clock.
- STATUS_CODE - Static variable in class brave.http.HttpTags
-
This tags "http.status_code" as the value of
HttpResponse.statusCode(), when a valid status code (100 - 599). - statusCode() - Method in class brave.http.HttpResponse
-
The HTTP status code or zero if unreadable.
T
- toBuilder() - Method in class brave.http.HttpTracing
- tracing() - Method in class brave.http.HttpTracing
- tracing(Tracing) - Method in class brave.http.HttpTracing.Builder
- trySample(HttpRequest) - Method in class brave.http.HttpRuleSampler
U
- url() - Method in class brave.http.HttpRequest
-
The entire URL, including the scheme, host and query parameters if available or null if unreadable.
- URL - Static variable in class brave.http.HttpTags
-
This tags "http.url" as the value of
HttpRequest.url().
All Classes All Packages