This extractor sets the error.type attribute based on the exception passed to {@link + * AttributesExtractor#onEnd(AttributesBuilder, Context, Object, Object, Throwable)}. If an + * exception is present, it uses the exception's class name as the error type, which follows the + * OpenTelemetry semantic conventions for error reporting. + * + *
The error type is extracted from the exception's class name (e.g.,
+ * "java.lang.IllegalStateException") to provide low-cardinality error classification.
+ */
+final class SofaRpcErrorAttributesExtractor
+ implements AttributesExtractor