public class SpanTranslator extends Object
It will rewrite span IDs so that multi-host Zipkin spans are converted to single-host Stackdriver spans. Zipkin Spans with both server-side and client-side information will be split into two Stackdriver Trace Spans where the client-side span is a parent of the server-side span. Other parent-child relationships will be preserved.
Imported from from https://github.com/GoogleCloudPlatform/stackdriver-zipkin/
Constructor and Description |
---|
SpanTranslator(LabelExtractor labelExtractor)
Create a SpanTranslator.
|
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.Timestamp |
createTimestamp(long microseconds) |
TraceSpan |
translate(Span zipkinSpan)
Converts a Zipkin Span into a Stackdriver Trace Span.
|
public SpanTranslator(LabelExtractor labelExtractor)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.