public static enum Span.Options extends Enum<Span.Options>
Span options. These options are NOT propagated to child spans. These options determine
features such as whether a Span should record any annotations or events.| Enum Constant and Description |
|---|
RECORD_EVENTS
This option is set if the Span is part of a sampled distributed trace OR the
StartSpanOptions.getRecordEvents() is true. |
| Modifier and Type | Method and Description |
|---|---|
static Span.Options |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Span.Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Span.Options RECORD_EVENTS
StartSpanOptions.getRecordEvents() is true.public static Span.Options[] values()
for (Span.Options c : Span.Options.values()) System.out.println(c);
public static Span.Options 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 null