How to make sentry capture breadcrumbs from loguru too?
I don't know much about Sentry. Maybe can you use a custom sink to create breadcrumbs when logs are emitted?
def breadcrumb_sink(message):
record = message.record
sentry_sdk.add_breadcrumb(
category=record["name"],
message=record["message"],
level=record["level"].name,
)
logger.add(breadcrumb_sink)
@heckad Does the provided solution would work? Do you need more help in any way?
Yes, Thanks great! You are the best maintainer!
Ha ha, thanks! :smile:
I'm closing this issue then. :+1: