gpt4 book ai didi

com.nike.wingtips.tags.ZipkinHttpTagStrategy.getDefaultInstance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 10:10:49 26 4
gpt4 key购买 nike

本文整理了Java中com.nike.wingtips.tags.ZipkinHttpTagStrategy.getDefaultInstance()方法的一些代码示例,展示了ZipkinHttpTagStrategy.getDefaultInstance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipkinHttpTagStrategy.getDefaultInstance()方法的具体详情如下:
包路径:com.nike.wingtips.tags.ZipkinHttpTagStrategy
类名称:ZipkinHttpTagStrategy
方法名:getDefaultInstance

ZipkinHttpTagStrategy.getDefaultInstance介绍

暂无

代码示例

代码示例来源:origin: Nike-Inc/wingtips

/**
 * @return {@link ZipkinHttpTagStrategy#getDefaultInstance()}.
 */
protected HttpTagAndSpanNamingStrategy<HttpServletRequest, HttpServletResponse> getZipkinHttpTagStrategy() {
  return ZipkinHttpTagStrategy.getDefaultInstance();
}

代码示例来源: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: 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

/**
 * 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

/**
 * 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/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: Nike-Inc/wingtips

@Test
public void getDefaultInstance_returns_DEFAULT_INSTANCE() {
  // expect
  assertThat(ZipkinHttpTagStrategy.getDefaultInstance()).isSameAs(ZipkinHttpTagStrategy.DEFAULT_INSTANCE);
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void default_constructor_sets_fields_as_expected() {
  // when
  WingtipsHttpClientBuilder impl = new WingtipsHttpClientBuilder();
  // then
  assertThat(impl.surroundCallsWithSubspan).isTrue();
  assertThat(impl.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(impl.tagAndNamingAdapter).isSameAs(ApacheHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void default_constructor_creates_instance_with_subspan_option_on() {
  // when
  WingtipsAsyncClientHttpRequestInterceptor interceptor = new WingtipsAsyncClientHttpRequestInterceptor();
  // then
  assertThat(interceptor.surroundCallsWithSubspan).isTrue();
  assertThat(interceptor.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(interceptor.tagAndNamingAdapter).isSameAs(SpringHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void default_constructor_sets_fields_as_expected() {
  // when
  WingtipsApacheHttpClientInterceptor impl = new WingtipsApacheHttpClientInterceptor();
  // then
  assertThat(impl.surroundCallsWithSubspan).isTrue();
  assertThat(impl.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(impl.tagAndNamingAdapter).isSameAs(ApacheHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void zero_arg_create_factory_method_sets_fields_as_expected() {
  // when
  WingtipsHttpClientBuilder impl = WingtipsHttpClientBuilder.create();
  // then
  assertThat(impl.surroundCallsWithSubspan).isTrue();
  assertThat(impl.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(impl.tagAndNamingAdapter).isSameAs(ApacheHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void default_constructor_creates_instance_with_subspan_option_on() {
  // when
  WingtipsClientHttpRequestInterceptor interceptor = new WingtipsClientHttpRequestInterceptor();
  // then
  assertThat(interceptor.surroundCallsWithSubspan).isTrue();
  assertThat(interceptor.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(interceptor.tagAndNamingAdapter).isSameAs(SpringHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@Test
public void getZipkinHttpTagStrategy_works_as_expected() {
  // given
  RequestTracingFilter filter = new RequestTracingFilter();
  // expect
  assertThat(filter.getZipkinHttpTagStrategy())
    .isNotNull()
    .isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@DataProvider(value = {
  "true",
  "false"
})
@Test
public void single_arg_create_factory_method_sets_fields_as_expected(boolean argValue) {
  // when
  WingtipsHttpClientBuilder impl = WingtipsHttpClientBuilder.create(argValue);
  // then
  assertThat(impl.surroundCallsWithSubspan).isEqualTo(argValue);
  assertThat(impl.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(impl.tagAndNamingAdapter).isSameAs(ApacheHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/wingtips

@DataProvider(value = {
  "true",
  "false"
})
@Test
public void single_arg_constructor_sets_fields_as_expected(boolean argValue) {
  // when
  WingtipsApacheHttpClientInterceptor impl = new WingtipsApacheHttpClientInterceptor(argValue);
  // then
  assertThat(impl.surroundCallsWithSubspan).isEqualTo(argValue);
  assertThat(impl.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(impl.tagAndNamingAdapter).isSameAs(ApacheHttpClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/riposte

@Test
public void getDefaultInstance_returns_DEFAULT_INSTANCE() {
  // when
  DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy instance =
    DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy.getDefaultInstance();
  // then
  assertThat(instance)
    .isSameAs(DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy.DEFAULT_INSTANCE);
  assertThat(instance.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(instance.tagAndNamingAdapter).isSameAs(RiposteWingtipsNettyClientTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/riposte

@Test
public void getDefaultInstance_returns_DEFAULT_INSTANCE() {
  // when
  DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy instance =
    DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy.getDefaultInstance();
  // then
  assertThat(instance)
    .isSameAs(DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy.DEFAULT_INSTANCE);
  assertThat(instance.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(instance.tagAndNamingAdapter).isSameAs(AsyncHttpClientHelperTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/riposte

@Test
public void default_constructor_creates_instance_using_default_ZipkinHttpTagStrategy_and_AsyncHttpClientHelperTagAdapter() {
  // when
  DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy instance =
    new DefaultAsyncHttpClientHelperSpanNamingAndTaggingStrategy();
  // then
  assertThat(instance.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(instance.tagAndNamingAdapter).isSameAs(AsyncHttpClientHelperTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/riposte

@Test
public void default_constructor_creates_instance_using_default_ZipkinHttpTagStrategy_and_RiposteWingtipsServerTagAdapter() {
  // when
  DefaultRiposteServerSpanNamingAndTaggingStrategy instance =
    new DefaultRiposteServerSpanNamingAndTaggingStrategy();
  // then
  assertThat(instance.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(instance.tagAndNamingAdapter).isSameAs(RiposteWingtipsServerTagAdapter.getDefaultInstance());
}

代码示例来源:origin: Nike-Inc/riposte

@Test
public void default_constructor_creates_instance_using_default_ZipkinHttpTagStrategy_and_RiposteWingtipsNettyClientTagAdapter() {
  // when
  DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy instance =
    new DefaultRiposteProxyRouterSpanNamingAndTaggingStrategy();
  // then
  assertThat(instance.tagAndNamingStrategy).isSameAs(ZipkinHttpTagStrategy.getDefaultInstance());
  assertThat(instance.tagAndNamingAdapter).isSameAs(RiposteWingtipsNettyClientTagAdapter.getDefaultInstance());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com