Skip to content

[Feature]: enhance otelzap exception logs to follow OpenTelemetry semantic conventions #8718

@iblancasa

Description

@iblancasa

Component

Zap bridge

Problem Statement

otelzap currently treats zap errors like ordinary structured fields. When applications log with zap.Error, zap.NamedError, or equivalent error-carrying fields, the bridge forwards that data under generic attribute names such as error or the caller-provided key.

That makes exception data inconsistent with the OpenTelemetry log semantic conventions and harder to recognize as exception information once it leaves the process.

Proposed Solution

Make it follow the OpenTelemetry semantic conventions for exceptions in logs are here: Semantic conventions for exceptions in logs.

Alternatives

No response

Prior Art

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bridge: zapRelated to the zap bridgeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions