public static interface SpanData.Status
Span by providing a standard StatusCanonicalCode in
conjunction with an optional descriptive message.| Modifier and Type | Method and Description |
|---|---|
io.opentelemetry.trace.StatusCanonicalCode |
getCanonicalCode()
Returns the canonical status code.
|
String |
getDescription()
Returns the description of this
Status for human consumption. |
default boolean |
isOk()
Returns
true if this Status is ok, i.e., status is not set, or has been
overridden to be ok by an operator. |
default boolean |
isUnset()
Returns
true if this Status is UNSET, i.e., not an error. |
io.opentelemetry.trace.StatusCanonicalCode getCanonicalCode()
@Nullable String getDescription()
Status for human consumption.Status.default boolean isUnset()
true if this Status is UNSET, i.e., not an error.true if this Status is UNSET.default boolean isOk()
true if this Status is ok, i.e., status is not set, or has been
overridden to be ok by an operator.true if this Status is OK or UNSET.