Skip to content

Add stack information when stack_info is set in logging integration. #2804

@antonpirker

Description

@antonpirker

Problem Statement

The stack information should be added to events send with the logging integration when stack_info=True is set.

Code like this should have a stack attached in the resulting event in Sentry:

logger.error(
    "Option %s set to %s. previous update channel: %s",
    key,
    value,
    channel,
    stack_info=True,
)

Solution Brainstorm

Check for the parameter in logging integration and add the stack information if parameter is True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions