Interface SpanData.Status

  • Enclosing interface:
    SpanData

    public static interface SpanData.Status
    Defines the status of a Span by providing a standard StatusCode in conjunction with an optional descriptive message.
    • Method Detail

      • ok

        static SpanData.Status ok()
        Returns a SpanData.Status indicating the operation has been validated by an application developer or operator to have completed successfully.
      • getStatusCode

        io.opentelemetry.api.trace.StatusCode getStatusCode()
        Returns the status code.
      • getDescription

        @Nullable
        String getDescription()
        Returns the description of this Status for human consumption.
        Returns:
        the description of this Status.
      • isUnset

        default boolean isUnset()
        Returns true if this Status is UNSET, i.e., not an error.
        Returns:
        true if this Status is UNSET.
      • isOk

        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.
        Returns:
        true if this Status is OK or UNSET.