public class NoOpSpanAdjuster extends Object implements SpanAdjuster
| Constructor and Description |
|---|
NoOpSpanAdjuster() |
| 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. |
public Span adjust(Span span)
SpanAdjusterSpan 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();adjust in interface SpanAdjusterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.