Skip to content

anyhow errors are grouped incorrectly #745

Closed
@danechitoaie

Description

@danechitoaie

Environment

Sentry 0.36.0

Any idea would could cause different errors logged from different parts of the app with different messages (using anyhow::anyhow!()) to be incorrectly grouped?

Image

See the above print screen.
Why is that error grouped with the others when it's different error.

One was logged with

let err_msg = "Embeddings request failed!";
let err_anyhow = anyhow::anyhow!(err_msg);
sentry::integrations::anyhow::capture_anyhow(err_anyhow);

and the other with

let err_msg = "Create thread request failed!";
let err_anyhow = anyhow::anyhow!(err_msg);
sentry::integrations::anyhow::capture_anyhow(err_anyhow);

Can this be because both errors are anyhow errors just with different messages? And somehow they have same fingerprint and Sentry groups them by that?

Would me setting a custom fingerprint help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions