public class WingtipsToZipkinSpanConverterDefaultImpl extends java.lang.Object implements WingtipsToZipkinSpanConverter
WingtipsToZipkinSpanConverter that knows how to create the appropriate client/server/local annotations
for the Span based on the Wingtips Span's Span.getSpanPurpose().| Constructor and Description |
|---|
WingtipsToZipkinSpanConverterDefaultImpl() |
| Modifier and Type | Method and Description |
|---|---|
zipkin.Span |
convertWingtipsSpanToZipkinSpan(com.nike.wingtips.Span wingtipsSpan,
zipkin.Endpoint zipkinEndpoint,
java.lang.String localComponentNamespace) |
protected zipkin.Span.Builder |
createNewZipkinSpanBuilderWithSpanPurposeAnnotations(com.nike.wingtips.Span wingtipsSpan,
long startEpochMicros,
long durationMicros,
zipkin.Endpoint zipkinEndpoint,
java.lang.String localComponentNamespace) |
protected java.lang.Long |
nullSafeLong(java.lang.String lowerHexStr) |
public WingtipsToZipkinSpanConverterDefaultImpl()
public zipkin.Span convertWingtipsSpanToZipkinSpan(com.nike.wingtips.Span wingtipsSpan,
zipkin.Endpoint zipkinEndpoint,
java.lang.String localComponentNamespace)
convertWingtipsSpanToZipkinSpan in interface WingtipsToZipkinSpanConverterwingtipsSpan - The Wingtips span to convert.zipkinEndpoint - The Zipkin Endpoint associated with the current service. This is often a singleton that gets reused
throughout the life of the service. Used when creating Zipkin client/server/local annotations.localComponentNamespace - The Constants.LOCAL_COMPONENT namespace that should be used when creating certain Zipkin
annotations when the Wingtips span's Span.getSpanPurpose() is
Span.SpanPurpose.LOCAL_ONLY. See the 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.Span after it has been converted to a Span.protected zipkin.Span.Builder createNewZipkinSpanBuilderWithSpanPurposeAnnotations(com.nike.wingtips.Span wingtipsSpan,
long startEpochMicros,
long durationMicros,
zipkin.Endpoint zipkinEndpoint,
java.lang.String localComponentNamespace)
protected java.lang.Long nullSafeLong(java.lang.String lowerHexStr)