SpanCustomizer, Serializable, Comparable<NoopSpanCustomizer>public enum NoopSpanCustomizer extends Enum<NoopSpanCustomizer> implements SpanCustomizer
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | Description |
|---|---|---|
SpanCustomizer |
annotate(String value) |
Associates an event that explains latency with the current system time.
|
SpanCustomizer |
name(String name) |
Sets the string name for the logical operation this span represents.
|
SpanCustomizer |
tag(String key,
String value) |
Tags give your span context for search, viewing and analysis.
|
static NoopSpanCustomizer |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static NoopSpanCustomizer[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoopSpanCustomizer INSTANCE
public static NoopSpanCustomizer[] values()
for (NoopSpanCustomizer c : NoopSpanCustomizer.values()) System.out.println(c);
public static NoopSpanCustomizer valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic SpanCustomizer name(String name)
SpanCustomizername in interface SpanCustomizerpublic SpanCustomizer tag(String key, String value)
SpanCustomizertag in interface SpanCustomizerkey - Name used to lookup spans, such as "your_app.version".value - String value, cannot be null.public SpanCustomizer annotate(String value)
SpanCustomizerannotate in interface SpanCustomizervalue - A short tag indicating the event, like "finagle.retry"Copyright © 2018 OpenZipkin. All rights reserved.