public interface SpanAdjuster
SpanReporter should inject the collection of SpanAdjuster and
allow Span manipulation before the actual reporting is done.| Modifier and Type | Method and Description |
|---|---|
Span |
adjust(Span span)
You can adjust the
Span by creating a new one using the Span.SpanBuilder
before reporting it. |
Span adjust(Span span)
Span by creating a new one using the Span.SpanBuilder
before reporting it.
In Sleuth 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.