Skip to content

otelecho: deprecate and remove the echo.error span attribute #9485

Description

@theycallmeloki

What happened?

The otelecho middleware retains the historical echo.error span attribute (the full handler error string) for backward compatibility, alongside the low-cardinality error.type attribute added in #9434.

echo.error is unbounded-cardinality free text on a span attribute, which is a known cardinality hazard (called out in #9376). It is retained for compatibility, but should be deprecated and eventually removed.

What you expected to happen?

Track the deprecation and removal of echo.error here, so the retention in otelecho middleware can be dropped once consumers have migrated to error.type.

Environment

  • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions