Class ImmutableStatusData

  • All Implemented Interfaces:
    StatusData
    Direct Known Subclasses:
    AutoValue_ImmutableStatusData

    @Immutable
    abstract class ImmutableStatusData
    extends java.lang.Object
    implements StatusData
    Defines the status of a Span by providing a standard StatusCode in conjunction with an optional descriptive message. Instances of Status are created by starting with the template for the appropriate StatusCode and supplementing it with additional information: Status.NOT_FOUND.withDescription("Could not find 'important_file.txt'");
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static StatusData ERROR
      The operation contains an error.
      (package private) static StatusData OK
      The operation has been validated by an Application developers or Operator to have completed successfully.
      (package private) static StatusData UNSET
      The default status.
    • Field Detail

      • OK

        static final StatusData OK
        The operation has been validated by an Application developers or Operator to have completed successfully.
      • UNSET

        static final StatusData UNSET
        The default status.
      • ERROR

        static final StatusData ERROR
        The operation contains an error.
    • Constructor Detail

      • ImmutableStatusData

        ImmutableStatusData()
    • Method Detail

      • create

        static StatusData create​(StatusCode statusCode,
                                 java.lang.String description)
        Creates a derived instance of Status with the given description.
        Parameters:
        description - the new description of the Status.
        Returns:
        The newly created Status with the given description.
      • createInternal

        private static StatusData createInternal​(StatusCode statusCode,
                                                 java.lang.String description)