Skip to content

Make the logging integration send Sentry logs #4150

@antonpirker

Description

@antonpirker

Make the logging integration create breadcrumbs and issues.

Something like this:

sentry_sdk.init(
    ...
    _experiments={
        "enable_sentry_logs": True
    }
)

logger = logging.Logger("some-logger")
logger.info('Finished sending answer! #chunks=%s', chunks).  # <-- will send sentry logs

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions