Skip to content
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

[DebugExporter] Add EventName from LogRecord to output #11967

Merged

Conversation

cijothomas
Copy link
Member

Description

  1. Adds event name from LogRecord to debug exporter.
  2. Also modified the example config file to include logs too. (It only had traces/metrics). Not really required for this change, but hope that is okay to club into same PR!

Link to tracking issue

Fixes #11966

Testing

Manually tested with Otel client that exported a LogRecord with event name and without event name.

(1st time contributor here, still learning the process.)

CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.67%. Comparing base (3132112) to head (c969458).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11967   +/-   ##
=======================================
  Coverage   91.67%   91.67%           
=======================================
  Files         455      455           
  Lines       24038    24040    +2     
=======================================
+ Hits        22037    22039    +2     
  Misses       1629     1629           
  Partials      372      372           

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

@cijothomas
Copy link
Member Author

@codeboten The changelog CI check looks broken, unrelated to this PR. Could you help fix that, so this PR can have its CI check pass.

Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

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

Awesome, thanks Cijo!

@codeboten codeboten enabled auto-merge January 9, 2025 19:14
@codeboten codeboten added this pull request to the merge queue Jan 9, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2025
#### Description
1. Adds event name from LogRecord to debug exporter.
2. Also modified the example config file to include logs too. (It only
had traces/metrics). Not really required for this change, but hope that
is okay to club into same PR!

#### Link to tracking issue
Fixes #11966 

#### Testing
Manually tested with Otel client that exported a LogRecord with event
name and without event name.

(1st time contributor here, still learning the process.)

---------

Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 9, 2025
@codeboten codeboten added this pull request to the merge queue Jan 9, 2025
Merged via the queue into open-telemetry:main with commit 12b0369 Jan 9, 2025
54 checks passed
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.

Add EventName to DebugExporter output for Logs
4 participants