Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: workaround for missing Logger messages (attempt 3) #47

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

grzuy
Copy link
Collaborator

@grzuy grzuy commented Feb 11, 2025

closes #43

alternative to #46

@grzuy grzuy force-pushed the logger-messages-3 branch from 7430d54 to 0fae412 Compare February 11, 2025 14:26
@grzuy grzuy marked this pull request as ready for review February 11, 2025 14:26
@grzuy grzuy requested a review from marpo60 February 11, 2025 14:27
reason: "[critical] Critical!",
occurrences: [_]
}
] = TestApp.Repo.all(ErrorTracker.Error) |> TestApp.Repo.preload(:occurrences)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests that both messages are treated as separate errors (with different fingerprints) and not different occurrences of the same error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is flaky with tower 0.7

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed e620855

@KristerV
Copy link

yeah this is nice. the errors group very well now. as far as my app spews them anyway.

@grzuy
Copy link
Collaborator Author

grzuy commented Feb 11, 2025

yeah this is nice. the errors group very well now. as far as my app spews them anyway.

Thanks for testing it 💯

@marpo60
Copy link

marpo60 commented Feb 11, 2025

LGTM
image (4)
image (5)
image (6)

@grzuy grzuy force-pushed the logger-messages-3 branch from e620855 to b5cefad Compare February 11, 2025 17:25
@grzuy grzuy merged commit b5cefad into main Feb 11, 2025
8 checks passed
@grzuy grzuy deleted the logger-messages-3 branch February 11, 2025 17:31
@grzuy
Copy link
Collaborator Author

grzuy commented Feb 11, 2025

released in v0.3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logger.error() doesn't reach ErrorTracker
3 participants