Skip to content

[sentry_logging] Create separate Sentry issues for each distinct event level log #3499

@kaciula

Description

@kaciula

Problem Statement

I've added the LoggingIntegration from sentry_logging and I'm using Logger.severe to create warning issues in Sentry. The problem is that all calls add events to a single Sentry issue with the same strack trace:

Thread: main
#0 (<asynchronous suspension>)
#1 (<asynchronous suspension>)
#2      LoggingIntegration._onLog (package:sentry_logging/src/logging_integration.dart:87)

I would have expected that each distinct Logger.severe call creates a separate Sentry issue so I can track and resolve them independently.

Solution Brainstorm

Create distinct stack traces based on where the logging call was made from. This would lead to distinct Sentry issues.

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions