Skip to content

[receiver/webhookevent] Add new json splitter to webhookeventreceiver #39768

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

Closed

Conversation

mterhar
Copy link
Member

@mterhar mterhar commented Apr 29, 2025

Description

Adds the ability to split webhook body contents at JSON boundaries so you don't have to worry about newline characters.

Link to tracking issue

Fixes #39766

Testing

Added a test case to show newline vs json handling.

Documentation

Readme was updated with an additional example.

@atoulme
Copy link
Contributor

atoulme commented May 8, 2025

@shalper2 please review

@shalper2
Copy link
Contributor

shalper2 commented May 8, 2025

hey hey sorry for the long wait, i completely missed this! everything looks awesome just two minor requests on my end and a cheeky rebase should be enough

mterhar added 2 commits May 9, 2025 20:10
1. add default to factory
2. Add tests to req_to_log_test.go
@mterhar mterhar force-pushed the mterhar.webhook-json-boundary branch from 478d35c to 3984b10 Compare May 9, 2025 20:10
Copy link
Contributor

@shalper2 shalper2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looks great!

@mterhar mterhar changed the title Add new json splitter to webhookeventreceiver [receiver/webhookevent] Add new json splitter to webhookeventreceiver May 10, 2025
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

Copy link
Contributor

github-actions bot commented Jun 7, 2025

Closed as inactive. Feel free to reopen if this PR is still being worked on.

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

Successfully merging this pull request may close these issues.

[receiver/webhookevent] Allow split at JSON boundary regardless of newline
4 participants