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: add slog contextual information #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lmendes86
Copy link

We needed to add contextual information to sentry errors because the current solution only sends the error and leaves behind all the other attributes in the slog execution. We think it is a good idea to add all those extra attributes in the sentry error to have more context to know what happened on the application side.

I hope this helps!

rreuvekamp and others added 2 commits March 6, 2024 15:42
Currently the record.Message is lost, though in our case it often provides
useful context in our case
Prefix logged error with the record.Message
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.

3 participants