public interface SpanAdjuster
Tracing implementation,
remember to ensure that you pass to it an adjusted version of the zipkin2.reporter.Reporter
bean. In other words you must reuse the list of available SpanAdjusters and
wrap the provided Reporter interface with it.| Modifier and Type | Method and Description |
|---|---|
zipkin2.Span |
adjust(zipkin2.Span span)
You can adjust the
Span by creating a new one using the Span.toBuilder()
before reporting it. |
zipkin2.Span adjust(zipkin2.Span span)
Span by creating a new one using the Span.toBuilder()
before reporting it.
With the legacy Sleuth approach we're generating spans with a fixed name. Some users want to modify the name
depending on some values of tags. Implementation of this interface can be used to alter
then name. Example:
span -> span.toBuilder().name(scrub(span.getName())).build();Copyright © 2018 Pivotal Software, Inc.. All rights reserved.