Codota Logo
com.nike.wingtips.tags
Code IndexAdd Codota to your IDE (free)

How to use com.nike.wingtips.tags

Best Java code snippets using com.nike.wingtips.tags (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: Nike-Inc/wingtips

/**
 * @return {@link OpenTracingHttpTagStrategy#getDefaultInstance()}.
 */
protected HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> getOpenTracingHttpTagStrategy() {
  return OpenTracingHttpTagStrategy.getDefaultInstance();
}
origin: Nike-Inc/wingtips

/**
 * @return {@link NoOpHttpTagStrategy#getDefaultInstance()}.
 */
protected HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> getNoOpTagStrategy() {
  return NoOpHttpTagStrategy.getDefaultInstance();
}
origin: Nike-Inc/wingtips

  @SuppressWarnings("WeakerAccess")
  protected void addErrorTagToSpan(Span span, String errorTagValue) {
    putTagIfValueIsNotBlank(span, KnownZipkinTags.ERROR, errorTagValue);
  }
}
origin: Nike-Inc/wingtips

/**
 * @return {@link ZipkinHttpTagStrategy#getDefaultInstance()}.
 */
protected HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> getZipkinHttpTagStrategy() {
  return ZipkinHttpTagStrategy.getDefaultInstance();
}
origin: com.nike.riposte/riposte-core

@Override
public void doHandleRequestTagging(
  @NotNull Span span, @NotNull RequestInfo<?> request
) {
  tagAndNamingStrategy.handleRequestTagging(span, request, tagAndNamingAdapter);
}
origin: Nike-Inc/wingtips

@Override
protected void doHandleRequestTagging(
  @NotNull Span span,
  @NotNull REQ request,
  @NotNull HttpTagAndSpanNamingAdapter<REQ, ?> adapter
) {
  putTagIfValueIsNotBlank(span, KnownZipkinTags.HTTP_METHOD, adapter.getRequestHttpMethod(request));
  putTagIfValueIsNotBlank(span, KnownZipkinTags.HTTP_PATH, adapter.getRequestPath(request));
  putTagIfValueIsNotBlank(span, KnownZipkinTags.HTTP_URL, adapter.getRequestUrl(request));
  putTagIfValueIsNotBlank(span, KnownZipkinTags.HTTP_ROUTE, adapter.getRequestUriPathTemplate(request, null));
}
origin: Nike-Inc/wingtips

WingtipsRequestSpanCompletionAsyncListener(
  TracingState originalRequestTracingState,
  HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> tagAndNamingStrategy,
  HttpTagAndSpanNamingAdapter<HttpServletRequest, HttpServletResponse> tagAndNamingAdapter
) {
  this.originalRequestTracingState = originalRequestTracingState;
  // We should never get a null tag strategy or tag adapter in reality, but just in case we do, default to
  //      the no-op impls.
  if (tagAndNamingStrategy == null) {
    tagAndNamingStrategy = NoOpHttpTagStrategy.getDefaultInstance();
  }
  if (tagAndNamingAdapter == null) {
    tagAndNamingAdapter = NoOpHttpTagAdapter.getDefaultInstance();
  }
  this.tagAndNamingStrategy = tagAndNamingStrategy;
  this.tagAndNamingAdapter = tagAndNamingAdapter;
}
origin: Nike-Inc/wingtips

@Override
protected void doHandleRequestTagging(
  @NotNull Span span,
  @NotNull REQ request,
  @NotNull HttpTagAndSpanNamingAdapter<REQ, ?> adapter
) {
  putTagIfValueIsNotBlank(span, KnownOpenTracingTags.HTTP_METHOD, adapter.getRequestHttpMethod(request));
  putTagIfValueIsNotBlank(span, KnownOpenTracingTags.HTTP_URL, adapter.getRequestUrl(request));
}
origin: Nike-Inc/riposte

/**
 * Creates a new instance that uses {@link ZipkinHttpTagStrategy#getDefaultInstance()} and {@link
 * RiposteWingtipsNettyClientTagAdapter#getDefaultInstance()} to do the work of span naming and tagging.
 */
public DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy() {
  this(ZipkinHttpTagStrategy.getDefaultInstance(), RiposteWingtipsNettyClientTagAdapter.getDefaultInstance());
}
origin: com.nike.riposte/riposte-core

@Override
protected void doHandleRequestTagging(@NotNull Span span, @NotNull HttpRequest request) {
  tagAndNamingStrategy.handleRequestTagging(span, request, tagAndNamingAdapter);
}
origin: com.nike.riposte/riposte-core

/**
 * Creates a new instance that uses {@link ZipkinHttpTagStrategy#getDefaultInstance()} and {@link
 * RiposteWingtipsServerTagAdapter#getDefaultInstance()} to do the work of span naming and tagging.
 */
public DefaultRiposteServerSpanNamingAndTaggingStrategy() {
  this(ZipkinHttpTagStrategy.getDefaultInstance(), RiposteWingtipsServerTagAdapter.getDefaultInstance());
}
origin: Nike-Inc/riposte

@Override
public void doHandleRequestTagging(
  @NotNull Span span, @NotNull RequestInfo<?> request
) {
  tagAndNamingStrategy.handleRequestTagging(span, request, tagAndNamingAdapter);
}
origin: com.nike.riposte/riposte-core

/**
 * Creates a new instance that uses {@link ZipkinHttpTagStrategy#getDefaultInstance()} and {@link
 * RiposteWingtipsNettyClientTagAdapter#getDefaultInstance()} to do the work of span naming and tagging.
 */
public DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy() {
  this(ZipkinHttpTagStrategy.getDefaultInstance(), RiposteWingtipsNettyClientTagAdapter.getDefaultInstance());
}
origin: Nike-Inc/riposte

@Override
public void doHandleRequestTagging(
  @NotNull Span span, @NotNull RequestBuilderWrapper request
) {
  tagAndNamingStrategy.handleRequestTagging(span, request, tagAndNamingAdapter);
}
origin: Nike-Inc/riposte

/**
 * Creates a new instance that uses {@link ZipkinHttpTagStrategy#getDefaultInstance()} and {@link
 * RiposteWingtipsServerTagAdapter#getDefaultInstance()} to do the work of span naming and tagging.
 */
public DefaultRiposteServerSpanNamingAndTaggingStrategy() {
  this(ZipkinHttpTagStrategy.getDefaultInstance(), RiposteWingtipsServerTagAdapter.getDefaultInstance());
}
origin: Nike-Inc/riposte

@Override
protected void doHandleRequestTagging(@NotNull Span span, @NotNull HttpRequest request) {
  tagAndNamingStrategy.handleRequestTagging(span, request, tagAndNamingAdapter);
}
origin: Nike-Inc/riposte

/**
 * Creates a new instance that uses {@link ZipkinHttpTagStrategy#getDefaultInstance()} and {@link
 * AsyncHttpClientHelperTagAdapter#getDefaultInstance()} to do the work of span naming and tagging.
 */
public DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy() {
  this(ZipkinHttpTagStrategy.getDefaultInstance(), AsyncHttpClientHelperTagAdapter.getDefaultInstance());
}
origin: Nike-Inc/wingtips

/**
 * Creates a new instance with the subspan option set to the value of the {@code surroundCallsWithSubspan}
 * argument, and the default {@link HttpTagAndSpanNamingStrategy} and {@link HttpTagAndSpanNamingAdapter}
 * ({@link ZipkinHttpTagStrategy} and {@link ApacheHttpClientTagAdapter}).
 *
 * @param surroundCallsWithSubspan Pass in true to have requests surrounded in a subspan, false to disable the
 * subspan option.
 */
public WingtipsApacheHttpClientInterceptor(boolean surroundCallsWithSubspan) {
  this(
    surroundCallsWithSubspan,
    ZipkinHttpTagStrategy.<HttpRequest, HttpResponse>getDefaultInstance(),
    ApacheHttpClientTagAdapter.getDefaultInstance()
  );
}
origin: Nike-Inc/wingtips

/**
 * Constructor that lets you choose whether downstream calls will be surrounded with a subspan. The default
 * {@link HttpTagAndSpanNamingStrategy} and {@link HttpTagAndSpanNamingAdapter} will be used
 * ({@link ZipkinHttpTagStrategy} and {@link SpringHttpClientTagAdapter}).
 *
 * @param surroundCallsWithSubspan pass in true to have downstream calls surrounded with a new span, false to only
 * propagate the current span's info downstream (no subspan).
 */
public WingtipsAsyncClientHttpRequestInterceptor(boolean surroundCallsWithSubspan) {
  this(
    surroundCallsWithSubspan,
    ZipkinHttpTagStrategy.<HttpRequest, ClientHttpResponse>getDefaultInstance(),
    SpringHttpClientTagAdapter.getDefaultInstance()
  );
}

origin: Nike-Inc/wingtips

/**
 * Constructor that lets you choose whether downstream calls will be surrounded with a subspan. The default
 * {@link HttpTagAndSpanNamingStrategy} and {@link HttpTagAndSpanNamingAdapter} will be used
 * ({@link ZipkinHttpTagStrategy} and {@link SpringHttpClientTagAdapter}).
 * 
 * @param surroundCallsWithSubspan pass in true to have downstream calls surrounded with a new span, false to only
 * propagate the current span's info downstream (no subspan).
 */
public WingtipsClientHttpRequestInterceptor(boolean surroundCallsWithSubspan) {
  this(
    surroundCallsWithSubspan,
    ZipkinHttpTagStrategy.<HttpRequest, ClientHttpResponse>getDefaultInstance(),
    SpringHttpClientTagAdapter.getDefaultInstance()
  );
}
com.nike.wingtips.tags

Most used classes

  • ZipkinHttpTagStrategy
    Applies Zipkin standard tags for: * http.method * http.path * http.url * http.route * http.statu
  • HttpTagAndSpanNamingStrategy
    There are many libraries that facilitate HTTP Requests. This abstract class allows for a consistent
  • OpenTracingHttpTagStrategy
    In an effort to match tag patterns consistent with other implementations and with the OpenTracing st
  • NoOpHttpTagAdapter
  • NoOpHttpTagStrategy
  • HttpTagAndSpanNamingAdapterTest$BasicImpl,
  • HttpTagAndSpanNamingStrategyTest$BasicImpl
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