Package io.opentelemetry.semconv
Class ErrorAttributes
java.lang.Object
io.opentelemetry.semconv.ErrorAttributes
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String>Describes a class of error the operation ended with. -
Method Summary
-
Field Details
-
ERROR_TYPE
Describes a class of error the operation ended with.Notes:
- The
error.typeSHOULD be predictable, and SHOULD have low cardinality. - When
error.typeis set to a type (e.g., an exception type), its canonical class name identifying the type within the artifact SHOULD be used. - Instrumentations SHOULD document the list of errors they report.
- The cardinality of
error.typewithin one instrumentation library SHOULD be low. Telemetry consumers that aggregate data from multiple instrumentation libraries and applications should be prepared forerror.typeto have high cardinality at query time when no additional filters are applied. - If the operation has completed successfully, instrumentations SHOULD NOT set
error.type. - If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes), it's RECOMMENDED to:
- Use a domain-specific attribute
- Set
error.typeto capture all errors, regardless of whether they are defined within the domain-specific set or not.
- The
-