@Immutable public abstract class ImmutableStatus extends Object implements SpanData.Status
Span by providing a standard StatusCanonicalCode in
conjunction with an optional descriptive message. Instances of Status are created by
starting with the template for the appropriate StatusCanonicalCode and supplementing it
with additional information: Status.NOT_FOUND.withDescription("Could not find
'important_file.txt'");| Modifier and Type | Field and Description |
|---|---|
static SpanData.Status |
ERROR
The operation contains an error.
|
static SpanData.Status |
OK
The operation has been validated by an Application developers or Operator to have completed
successfully.
|
static SpanData.Status |
UNSET
The default status.
|
| Constructor and Description |
|---|
ImmutableStatus() |
| Modifier and Type | Method and Description |
|---|---|
static SpanData.Status |
create(io.opentelemetry.trace.StatusCanonicalCode canonicalCode,
String description)
Creates a derived instance of
Status with the given description. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonicalCode, getDescription, isOk, isUnsetpublic static final SpanData.Status OK
public static final SpanData.Status UNSET
public static final SpanData.Status ERROR
public static SpanData.Status create(io.opentelemetry.trace.StatusCanonicalCode canonicalCode, @Nullable String description)
Status with the given description.description - the new description of the Status.Status with the given description.