Skip to content

fix(pdata/plog): unmarshal event_name from json #13123

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

Merged

Conversation

IgorPidik
Copy link
Contributor

@IgorPidik IgorPidik commented Jun 1, 2025

Description

This PR adds missing logic to process event_name field when unmarshaling LogRecords from JSON.

Testing

Added eventName to json (un)marshal tests.

Fixes #13127

@bogdandrutu bogdandrutu enabled auto-merge June 1, 2025 21:39
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.26%. Comparing base (0f0e1f6) to head (042a30d).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13123   +/-   ##
=======================================
  Coverage   91.26%   91.26%           
=======================================
  Files         508      508           
  Lines       28747    28749    +2     
=======================================
+ Hits        26235    26237    +2     
  Misses       1994     1994           
  Partials      518      518           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bogdandrutu
Copy link
Member

Please add a changelog entry

auto-merge was automatically disabled June 2, 2025 06:27

Head branch was pushed to by a user without write access

@github-actions github-actions bot requested a review from bogdandrutu June 2, 2025 06:27
@IgorPidik
Copy link
Contributor Author

IgorPidik commented Jun 2, 2025

Please add a changelog entry

Thank you for the review! I added the changelog entry.

@IgorPidik IgorPidik force-pushed the ip/fix-event-name-unmarshal-json branch from 5f69db2 to 042a30d Compare June 4, 2025 15:02
@bogdandrutu bogdandrutu enabled auto-merge June 4, 2025 16:01
@bogdandrutu bogdandrutu added this pull request to the merge queue Jun 4, 2025
Merged via the queue into open-telemetry:main with commit 8377ee7 Jun 4, 2025
55 checks passed
malus2077 pushed a commit to malus2077/opentelemetry-collector that referenced this pull request Jun 5, 2025
#### Description
This PR adds missing logic to process `event_name` field when
unmarshaling LogRecords from JSON.

#### Testing
Added `eventName` to json (un)marshal tests.

Fixes open-telemetry#13127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

event_name field skipped when unmarshalling LogRecord from Json
2 participants