SpanHandler@Deprecated public interface SpanAdjuster
| Modifier and Type | Method and Description |
|---|---|
zipkin2.Span |
adjust(zipkin2.Span span)
Deprecated.
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();span - to adjustCopyright © 2020 Pivotal Software, Inc.. All rights reserved.