Codota Logo
WingtipsAsyncClientHttpRequestInterceptor.propagateTracingHeadersAndExecute
Code IndexAdd Codota to your IDE (free)

How to use
propagateTracingHeadersAndExecute
method
in
com.nike.wingtips.spring.interceptor.WingtipsAsyncClientHttpRequestInterceptor

Best Java code snippets using com.nike.wingtips.spring.interceptor.WingtipsAsyncClientHttpRequestInterceptor.propagateTracingHeadersAndExecute (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: Nike-Inc/wingtips

@Override
@SuppressWarnings("deprecation")
public ListenableFuture<ClientHttpResponse> intercept(
  HttpRequest request, byte[] body, AsyncClientHttpRequestExecution execution
) throws IOException {
  // We need to wrap the request with HttpRequestWrapperWithModifiableHeaders so that tracing info can be
  //      propagated on the headers.
  HttpRequestWrapperWithModifiableHeaders wrapperRequest = new HttpRequestWrapperWithModifiableHeaders(request);
  if (surroundCallsWithSubspan) {
    return createAsyncSubSpanAndExecute(wrapperRequest, body, execution);
  }
  
  return propagateTracingHeadersAndExecute(wrapperRequest, body, execution);
}
origin: com.nike.wingtips/wingtips-spring

@Override
@SuppressWarnings("deprecation")
public ListenableFuture<ClientHttpResponse> intercept(
  HttpRequest request, byte[] body, AsyncClientHttpRequestExecution execution
) throws IOException {
  // We need to wrap the request with HttpRequestWrapperWithModifiableHeaders so that tracing info can be
  //      propagated on the headers.
  HttpRequestWrapperWithModifiableHeaders wrapperRequest = new HttpRequestWrapperWithModifiableHeaders(request);
  if (surroundCallsWithSubspan) {
    return createAsyncSubSpanAndExecute(wrapperRequest, body, execution);
  }
  
  return propagateTracingHeadersAndExecute(wrapperRequest, body, execution);
}
origin: Nike-Inc/wingtips

ListenableFuture<ClientHttpResponse> result = propagateTracingHeadersAndExecute(
  wrapperRequest, body, execution
);
origin: com.nike.wingtips/wingtips-spring

ListenableFuture<ClientHttpResponse> result = propagateTracingHeadersAndExecute(
  wrapperRequest, body, execution
);
com.nike.wingtips.spring.interceptorWingtipsAsyncClientHttpRequestInterceptorpropagateTracingHeadersAndExecute

Javadoc

Calls WingtipsSpringUtil#propagateTracingHeaders(HttpMessage,Span) to propagate the current span's tracing state on the given request's headers, then returns AsyncClientHttpRequestExecution#executeAsync(HttpRequest,byte[]) to execute the request.

Popular methods of WingtipsAsyncClientHttpRequestInterceptor

  • <init>
    Constuctor that lets you define whether downstream calls will be surrounded with a subspan and provi
  • createAsyncSubSpanAndExecute
    Creates a subspan (or new trace if no current span exists) to surround the HTTP request, then return
  • getSubspanSpanName
    Returns the name that should be used for the subspan surrounding the call. Defaults to whatever Http
  • intercept

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Kernel (java.awt.image)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ImageIO (javax.imageio)
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now