
brave.http.HttpClientParser Maven / Gradle / Ivy
package brave.http;
import brave.SpanCustomizer;
import brave.internal.Nullable;
/**
* Parses the request and response into reasonable defaults for http client spans. Subclass to
* customize, for example, to add tags based on response headers.
*/
public class HttpClientParser extends HttpParser {
/**
* Customizes the span based on the request that will be sent to the server.
*
* {@inheritDoc}
*/
@Override public void request(HttpAdapter adapter, Req req,
SpanCustomizer customizer) {
super.request(adapter, req, customizer);
}
/**
* Customizes the span based on the response received from the server.
*
* {@inheritDoc}
*/
@Override public void response(HttpAdapter, Resp> adapter, @Nullable Resp res,
@Nullable Throwable error, SpanCustomizer customizer) {
super.response(adapter, res, error, customizer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy