Package io.opentelemetry.sdk.trace.data
Class ImmutableStatusData
java.lang.Object
io.opentelemetry.sdk.trace.data.ImmutableStatusData
- All Implemented Interfaces:
StatusData
- Direct Known Subclasses:
AutoValue_ImmutableStatusData
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
FieldsModifier and TypeFieldDescription(package private) static final StatusDataThe operation contains an error.(package private) static final StatusDataThe operation has been validated by an Application developers or Operator to have completed successfully.(package private) static final StatusDataThe default status. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StatusDatacreate(StatusCode statusCode, String description) Creates a derived instance ofStatuswith the given description.private static StatusDatacreateInternal(StatusCode statusCode, String description) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.trace.data.StatusData
getDescription, getStatusCode
-
Field Details
-
OK
The operation has been validated by an Application developers or Operator to have completed successfully. -
UNSET
The default status. -
ERROR
The operation contains an error.
-
-
Constructor Details
-
ImmutableStatusData
ImmutableStatusData()
-
-
Method Details
-
create
Creates a derived instance ofStatuswith the given description.- Parameters:
description- the new description of theStatus.- Returns:
- The newly created
Statuswith the given description.
-
createInternal
-