Skip to content

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

@olizilla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions