gpt4 book ai didi

com.nike.wingtips.zipkin.util.ZipkinSpanSenderDefaultHttpImpl.()方法的使用及代码示例

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

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

ZipkinSpanSenderDefaultHttpImpl.<init>介绍

[英]Convenience constructor that calls the kitchen-sink constructor passing in #DEFAULT_CONNECT_TIMEOUT_MILLIS, #DEFAULT_READ_TIMEOUT_MILLIS, and #DEFAULT_SPAN_BATCH_SENDING_PERIOD_MILLIS for the default connect timeout, read timeout, and span batching period respectively.
[中]方便构造函数,调用厨房水槽构造函数,分别传入默认连接超时、读取超时和批处理期间的默认连接超时、读取超时和批处理期间。

代码示例

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

@Override
  public void call() throws Throwable {
    new ZipkinSpanSenderDefaultHttpImpl(badUrl, true);
  }
});

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

/**
 * Convenience constructor that uses {@link WingtipsToZipkinSpanConverterDefaultImpl} and {@link ZipkinSpanSenderDefaultHttpImpl} as the
 * implementations for {@link #zipkinSpanConverter} and {@link #zipkinSpanSender}.
 *
 * @param serviceName The name of this service. This is used to build the Zipkin {@link Endpoint} that will be used for client/server/local
 *                    Zipkin annotations when sending spans to Zipkin.
 * @param localComponentNamespace The {@link zipkin.Constants#LOCAL_COMPONENT} namespace that should be used when creating certain Zipkin
 *                                annotations when the Wingtips span's {@link Span#getSpanPurpose()} is
 *                                {@link com.nike.wingtips.Span.SpanPurpose#LOCAL_ONLY}. See the {@link zipkin.Constants#LOCAL_COMPONENT}
 *                                javadocs for more information on what this is and how it's used by the Zipkin server, so you know
 *                                what value you should send.
 * @param postZipkinSpansBaseUrl The base URL of the Zipkin server. This should include the scheme, host, and port (if non-standard for the scheme).
 *                               e.g. {@code http://localhost:9411}, or {@code https://zipkinserver.doesnotexist.com/}
 */
public WingtipsToZipkinLifecycleListener(String serviceName, String localComponentNamespace, String postZipkinSpansBaseUrl) {
  this(serviceName,
     localComponentNamespace,
     new WingtipsToZipkinSpanConverterDefaultImpl(),
     new ZipkinSpanSenderDefaultHttpImpl(postZipkinSpansBaseUrl, true)
  );
}

代码示例来源:origin: com.nike.wingtips/wingtips-zipkin

/**
 * Convenience constructor that uses {@link WingtipsToZipkinSpanConverterDefaultImpl} and {@link ZipkinSpanSenderDefaultHttpImpl} as the
 * implementations for {@link #zipkinSpanConverter} and {@link #zipkinSpanSender}.
 *
 * @param serviceName The name of this service. This is used to build the Zipkin {@link Endpoint} that will be used for client/server/local
 *                    Zipkin annotations when sending spans to Zipkin.
 * @param localComponentNamespace The {@link zipkin.Constants#LOCAL_COMPONENT} namespace that should be used when creating certain Zipkin
 *                                annotations when the Wingtips span's {@link Span#getSpanPurpose()} is
 *                                {@link com.nike.wingtips.Span.SpanPurpose#LOCAL_ONLY}. See the {@link zipkin.Constants#LOCAL_COMPONENT}
 *                                javadocs for more information on what this is and how it's used by the Zipkin server, so you know
 *                                what value you should send.
 * @param postZipkinSpansBaseUrl The base URL of the Zipkin server. This should include the scheme, host, and port (if non-standard for the scheme).
 *                               e.g. {@code http://localhost:9411}, or {@code https://zipkinserver.doesnotexist.com/}
 */
public WingtipsToZipkinLifecycleListener(String serviceName, String localComponentNamespace, String postZipkinSpansBaseUrl) {
  this(serviceName,
     localComponentNamespace,
     new WingtipsToZipkinSpanConverterDefaultImpl(),
     new ZipkinSpanSenderDefaultHttpImpl(postZipkinSpansBaseUrl, true)
  );
}

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