-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Issue in webhookevent receiver #35028
Comments
transferring to contrib repo |
Pinging code owners for receiver/webhookevent: @atoulme @shalper2. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@francisan taking a look now! |
The behavior comes from the way that go's |
Removing |
Thanks @crobert-1 |
**Description:** Fixed a bug where request bodies containing newlines caused logs to split into separate entries. **Link to tracking Issue:** [35028](#35028) **Testing:** Added a new unit test to `req_to_log_test.go` for the case where request body data contains newline characters **Documentation:** Some comments in `req_to_log.go` for clarity were added.
**Description:** Fixed a bug where request bodies containing newlines caused logs to split into separate entries. **Link to tracking Issue:** [35028](open-telemetry#35028) **Testing:** Added a new unit test to `req_to_log_test.go` for the case where request body data contains newline characters **Documentation:** Some comments in `req_to_log.go` for clarity were added.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I am facing one issue in below webhookevent receiver.
receivers:
webhookevent:
processors:
transform/tr:
exporters:
logging:
loglevel: debug
service:
pipelines:
logs/receivers:
receivers: [webhookevent]
processors: [transform/tr]
exporters: [logging]
If I put any new line in between Json, then rather than considering it as a single log statement, it will consider it as two different log statements.
For example,
If we use below Json, then it will consider it as a single log. We are good here.
{"name" : "francis" ,"city" : "newyork"}
But if we use below Json, then it will consider it as 4 different logs. I think, ideally it should consider it as a single log statement.
{
"name": "francis",
"city": "newyork"
}
{ --->log1
"name": "francis", --->log2
"city": "newyork" --->log3
} --->log4
Why is it behaving in this way?
The text was updated successfully, but these errors were encountered: