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

pino err serializer doesn't play nicely with loki log queries #133

Open
olizilla opened this issue Mar 17, 2023 · 0 comments
Open

pino err serializer doesn't play nicely with loki log queries #133

olizilla opened this issue Mar 17, 2023 · 0 comments

Comments

@olizilla
Copy link
Contributor

We have a custom serializer for the err context object, but it's producing log lines that confuse the loki log query json parser.

Screenshot 2023-03-17 at 12 58 35

The log property is always set, but for error lines it appears empty. Trying to parse the log property as json fails with an error about a missing } but the real problem is the new lines... there is a closing } after the error 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

No branches or pull requests

1 participant