Skip to content

Add log exception support to Logger API/SDK #4907

@iblancasa

Description

@iblancasa

Is your feature request related to a problem? Please describe.

The Logs API/SDK in opentelemetry-python does not currently support emitting exceptions via the Logger API. This is now part of the spec.

The API introduces “Exception (optional)” parameter on emit() and the SDK requirement to map exceptions to exception.* attributes.

Describe the solution you'd like

Implement exception support for logs in opentelemetry-python.

Additional context

I will send a PR regarding this.

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