Skip to content

error.type for wrapped errors #7975

Description

@pellared

Was there any preceding discussion about detecting when the reported type is *fmt.wrapError, and calling Unwrap on it to dig down to instead report the type of the outermost error that is not a wrapping error?

(I ask this because my "error.type" attribute values are almost always winding up as the unhelpful "*fmt.wrapError".)

Originally posted by @seh in #6904

Metadata

Metadata

Labels

enhancementNew feature or requestpkg:semconvRelated to a semconv package

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions