All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brave.http.HttpClientParser Maven / Gradle / Ivy

There is a newer version: 6.1.0
Show newest version
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 adapter, @Nullable Resp res, @Nullable Throwable error, SpanCustomizer customizer) { super.response(adapter, res, error, customizer); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy