Skip to content

Consider some message scrubbing before parsing JSON payloads #2237

@akkomar

Description

@akkomar

Currently messages are scrubbed after the payload is parsed. While looking into mozdata.monitoring.payload_bytes_error_structured I noticed JSON parse exceptions for some pings that are ignored.
Since some parts of the scrubbing process do not require message to be parsed (e.g. we have document namespace and type available beforehand), we could split and run them before attempting to parse to avoid doing some unnecessary work.

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