Skip to content

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

Description

@olizilla

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions