Skip to content

LoggingIntegration extra vs context #4687

@martinlehoux

Description

@martinlehoux

Problem Statement

Sentry SDK seems to move away from set_extra in favor of set_context.
But at the same time, the LoggingIntegration still relies on this through _BaseHandler._extra_from_record.
Is there a path forward on this topic? We would like to use the logger extra dict but we don't want to take a step back in our integration.

Solution Brainstorm

Adding a Logger context?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions