Index
A B C E F H M N P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addRule(String, String, float) - Method in class brave.http.HttpRuleSampler.Builder
-
Deprecated.Since 5.8, use
HttpRuleSampler.Builder.putRule(Matcher, Sampler)
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.
- clientParser() - Method in class brave.http.HttpTracing
- clientParser(HttpClientParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for http client spans.
- clientRequestSampler() - Method in class brave.http.HttpTracing
-
Returns an overriding sampling decision for a new trace.
- clientSampler() - Method in class brave.http.HttpTracing
-
Deprecated.Since 5.8, use
HttpTracing.clientRequestSampler()
- clientSampler(HttpSampler) - Method in class brave.http.HttpTracing.Builder
-
Deprecated.Since 5.8, use
HttpTracing.Builder.clientSampler(SamplerFunction)
- 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(HttpTracing, HttpClientAdapter<Req, Resp>) - Static method in class brave.http.HttpClientHandler
-
Deprecated.Since 5.7, use
HttpClientHandler.create(HttpTracing)
as it is more portable. - create(HttpTracing, HttpServerAdapter<Req, Resp>) - Static method in class brave.http.HttpServerHandler
-
Deprecated.Since 5.7, use
HttpServerHandler.create(HttpTracing)
as it is more portable. - 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.
- customize(HttpTracing.Builder) - Method in interface brave.http.HttpTracingCustomizer
E
- error(Integer, Throwable, SpanCustomizer) - Method in class brave.http.HttpParser
-
Override to change what data from the http error are parsed into the span modeling it.
- errorParser() - Method in class brave.http.HttpParser
-
Override when making custom types.
F
- finishTimestamp() - Method in class brave.http.HttpClientResponse
- finishTimestamp() - Method in class brave.http.HttpServerResponse
- finishTimestamp(Resp) - Method in class brave.http.HttpAdapter
-
The timestamp in epoch microseconds of the end of this request or zero to take this implicitly from the current clock.
H
- 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.
- handleReceive(TraceContext.Extractor<C>, C, Req) - Method in class brave.http.HttpServerHandler
-
Deprecated.Since 5.7, use
HttpServerHandler.handleReceive(HttpServerRequest)
- handleReceive(TraceContext.Extractor<Req>, Req) - Method in class brave.http.HttpServerHandler
-
Deprecated.Since 5.7, use
HttpServerHandler.handleReceive(HttpServerRequest)
- handleReceive(Resp, Throwable, Span) - Method in class brave.http.HttpClientHandler
-
Finishes the client span after assigning it tags according to the response or error.
- 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(TraceContext.Injector<C>, C, Req) - Method in class brave.http.HttpClientHandler
-
Deprecated.Since 5.7, use
HttpClientHandler.handleSend(HttpClientRequest)
. - handleSend(TraceContext.Injector<C>, C, Req, Span) - Method in class brave.http.HttpClientHandler
-
Deprecated.Since 5.7, use
HttpClientHandler.handleSend(HttpClientRequest)
. - handleSend(TraceContext.Injector<Req>, Req) - Method in class brave.http.HttpClientHandler
-
Deprecated.Since 5.7, use
HttpClientHandler.handleSend(HttpClientRequest)
, as this allows more advanced samplers to be used. - handleSend(TraceContext.Injector<Req>, Req, Span) - Method in class brave.http.HttpClientHandler
-
Deprecated.Since 5.7, use
HttpClientHandler.handleSend(HttpClientRequest, Span)
. - handleSend(Resp, Throwable, Span) - Method in class brave.http.HttpServerHandler
-
Finishes the server span after assigning it tags according to the response or error.
- header(String) - Method in class brave.http.HttpRequest
- header(String, String) - Method in class brave.http.HttpClientRequest
-
Sets a request header with the indicated name.
- HttpAdapter<Req,Resp> - Class in brave.http
- HttpClientAdapter<Req,Resp> - Class in brave.http
- HttpClientAdapter() - Constructor for class brave.http.HttpClientAdapter
- 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
HttpClientParser
. - HttpClientParser - Class in brave.http
-
Parses the request and response into reasonable defaults for http client spans.
- HttpClientParser() - Constructor for class brave.http.HttpClientParser
- 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(Object, Throwable, Span)
. - HttpClientResponse() - Constructor for class brave.http.HttpClientResponse
- HttpParser - Class in brave.http
- HttpParser() - Constructor for class brave.http.HttpParser
- 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
- HttpRuleSampler - Class in brave.http
-
Assigns sample rates to http routes.
- HttpRuleSampler.Builder - Class in brave.http
- HttpSampler - Class in brave.http
-
Deprecated.Since 5.8, use
RequestSampler<HttpRequest>
. - HttpSampler() - Constructor for class brave.http.HttpSampler
-
Deprecated.
- HttpServerAdapter<Req,Resp> - Class in brave.http
- HttpServerAdapter() - Constructor for class brave.http.HttpServerAdapter
- 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
HttpServerParser
. - HttpServerParser - Class in brave.http
-
Parses the request and response into reasonable defaults for http server spans.
- HttpServerParser() - Constructor for class brave.http.HttpServerParser
- 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
- 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.HttpClientResponse
- method() - Method in class brave.http.HttpRequest
- method() - Method in class brave.http.HttpServerResponse
- method(Req) - Method in class brave.http.HttpAdapter
-
The HTTP method, or verb, such as "GET" or "POST" or null if unreadable.
- methodEquals(String) - Static method in class brave.http.HttpRequestMatchers
-
Matcher for case-sensitive HTTP methods, such as "GET" and "POST"
- methodFromResponse(Resp) - Method in class brave.http.HttpAdapter
-
Like
HttpAdapter.method(Object)
except used in response parsing.
N
- NEVER_SAMPLE - Static variable in class brave.http.HttpSampler
-
Deprecated.Returns false to never start new traces for http requests.
- newBuilder() - Static method in class brave.http.HttpRuleSampler
- newBuilder(Tracing) - Static method in class brave.http.HttpTracing
- nextSpan(Req) - Method in class brave.http.HttpClientHandler
-
Deprecated.since 5.8 use
Tracer.nextSpan(SamplerFunction, Object)
- NOOP - Static variable in interface brave.http.HttpTracingCustomizer
-
Use to avoid comparing against null references
P
- parseClientAddress(Req, Endpoint.Builder) - Method in class brave.http.HttpServerAdapter
-
Deprecated.
HttpServerAdapter.parseClientIpAndPort(Req, brave.Span)
addresses this functionality. This will be removed in Brave v6. - parseClientIpAndPort(Span) - Method in class brave.http.HttpServerRequest
-
Override and return true when it is possible to parse the
remote IP and port
from thedelegate
. - parseClientIpAndPort(Req, Span) - Method in class brave.http.HttpServerAdapter
-
Used by
HttpServerHandler.handleReceive(HttpServerRequest)
to add remote socket information about the client. - parseClientIpFromXForwardedFor(Req, Span) - Method in class brave.http.HttpServerAdapter
-
Returns the first value in the "X-Forwarded-For" header, or null if not present.
- parseServerIpAndPort(Req, Endpoint.Builder) - Method in class brave.http.HttpClientAdapter
-
Deprecated.remote IP information should be added directly by instrumentation. This will be removed in Brave v6.
- path() - Method in class brave.http.HttpRequest
- path(Req) - Method in class brave.http.HttpAdapter
-
The absolute http path, without any query parameters or null if unreadable.
- pathStartsWith(String) - Static method in class brave.http.HttpRequestMatchers
- 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(HttpAdapter<Req, ?>, Req, SpanCustomizer) - Method in class brave.http.HttpClientParser
-
Customizes the span based on the request that will be sent to the server.
- request(HttpAdapter<Req, ?>, Req, SpanCustomizer) - Method in class brave.http.HttpParser
-
Override to change what data from the http request are parsed into the span representing it.
- request(HttpAdapter<Req, ?>, Req, SpanCustomizer) - Method in class brave.http.HttpServerParser
-
Customizes the span based on the request received from the client.
- requestHeader(Req, String) - Method in class brave.http.HttpAdapter
-
Returns one value corresponding to the specified header, or null.
- response(HttpAdapter<?, Resp>, Resp, Throwable, SpanCustomizer) - Method in class brave.http.HttpClientParser
-
Customizes the span based on the response received from the server.
- response(HttpAdapter<?, Resp>, Resp, Throwable, SpanCustomizer) - Method in class brave.http.HttpParser
-
Override to change what data from the http response or error are parsed into the span modeling it.
- response(HttpAdapter<?, Resp>, Resp, Throwable, SpanCustomizer) - Method in class brave.http.HttpServerParser
-
Customizes the span based on the response sent to the client.
- route() - Method in class brave.http.HttpClientResponse
- route() - Method in class brave.http.HttpServerResponse
- route(Resp) - Method in class brave.http.HttpAdapter
-
Returns an expression such as "/items/:itemId" representing an application endpoint, conventionally associated with the tag key "http.route".
S
- serverName() - Method in class brave.http.HttpTracing
-
Used by http clients to indicate the name of the destination service.
- serverParser() - Method in class brave.http.HttpTracing
- serverParser(HttpServerParser) - Method in class brave.http.HttpTracing.Builder
-
Overrides the tagging policy for http client spans.
- serverRequestSampler() - Method in class brave.http.HttpTracing
-
Returns an overriding sampling decision for a new trace.
- serverSampler() - Method in class brave.http.HttpTracing
-
Deprecated.Since 5.8, use
HttpTracing.serverRequestSampler()
- serverSampler(HttpSampler) - Method in class brave.http.HttpTracing.Builder
-
Deprecated.Since 5.8, use
HttpTracing.Builder.serverSampler(SamplerFunction)
- serverSampler(SamplerFunction<HttpRequest>) - Method in class brave.http.HttpTracing.Builder
- spanKind() - Method in class brave.http.HttpClientRequest
- spanKind() - Method in class brave.http.HttpServerRequest
- spanName(HttpAdapter<Req, ?>, Req) - Method in class brave.http.HttpParser
-
Returns the span name of the request.
- startTimestamp() - Method in class brave.http.HttpRequest
- startTimestamp(Req) - Method in class brave.http.HttpAdapter
-
The timestamp in epoch microseconds of the beginning of this request or zero to take this implicitly from the current clock.
- statusCode() - Method in class brave.http.HttpClientResponse
- statusCode() - Method in class brave.http.HttpServerResponse
- statusCode(Resp) - Method in class brave.http.HttpAdapter
-
Deprecated.Since 5.7, use
HttpAdapter.statusCodeAsInt(Object)
which prevents boxing. - statusCodeAsInt(Resp) - Method in class brave.http.HttpAdapter
-
Like
HttpAdapter.statusCode(Object)
except returns a primitive where zero implies absent.
T
- toBuilder() - Method in class brave.http.HttpTracing
- toString() - Method in class brave.http.HttpClientResponse
- toString() - Method in class brave.http.HttpServerResponse
- TRACE_ID - Static variable in class brave.http.HttpSampler
-
Deprecated.Ignores the request and uses the
trace ID instead
. - tracing() - Method in class brave.http.HttpTracing
- tracing(Tracing) - Method in class brave.http.HttpTracing.Builder
- trySample(HttpAdapter<Req, ?>, Req) - Method in class brave.http.HttpRuleSampler
- trySample(HttpAdapter<Req, ?>, Req) - Method in class brave.http.HttpSampler
-
Deprecated.Returns an overriding sampling decision for a new trace.
- trySample(HttpRequest) - Method in class brave.http.HttpRuleSampler
- trySample(HttpRequest) - Method in class brave.http.HttpSampler
-
Deprecated.
U
- unwrap() - Method in class brave.http.HttpClientResponse
-
Returns the underlying http response object.
- unwrap() - Method in class brave.http.HttpServerResponse
-
Returns the underlying http response object.
- url() - Method in class brave.http.HttpRequest
- url(Req) - Method in class brave.http.HttpAdapter
-
The entire URL, including the scheme, host and query parameters if available or null if unreadable.
All Classes All Packages