Skip to content

[receiver/webhookevent] Allow split at JSON boundary regardless of newline #39766

Open
@mterhar

Description

@mterhar

Component(s)

No response

Is your feature request related to a problem? Please describe.

Some webhooks send multiple json objects without newlines separating them.

Newline separation issue: #38037

Describe the solution you'd like

Add an option to split based on the pattern where one json object closes } and another begins { which should never happen within an object. Optional whitespace between would still show an object hand-off.

Describe alternatives you've considered

More advanced parsers are available but regex appears sufficient.
As with the new-line splitter, these changes can't be made after the receiver since the number of events that come from the receiver is what we need to change.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions