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

Fix connector logger zap kind key #8878

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

bogdandrutu
Copy link
Member

No description provided.

@bogdandrutu bogdandrutu requested review from a team and mx-psi November 14, 2023 03:21
@@ -25,34 +22,34 @@ const (

func ReceiverLogger(logger *zap.Logger, id component.ID, dt component.DataType) *zap.Logger {
return logger.With(
zap.String(zapKindKey, zapKindReceiver),
zap.String(zapKindKey, strings.ToLower(component.KindReceiver.String())),
Copy link
Member Author

Choose a reason for hiding this comment

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

Using ToLower just to make sure we are not changing the previous strings. The String() method returns upper case to be consistent with other funcs like StabilityLevel.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e873023) 90.86% compared to head (aec4873) 90.87%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8878   +/-   ##
=======================================
  Coverage   90.86%   90.87%           
=======================================
  Files         317      317           
  Lines       17212    17225   +13     
=======================================
+ Hits        15640    15653   +13     
  Misses       1281     1281           
  Partials      291      291           

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

@bogdandrutu bogdandrutu merged commit df8aaae into open-telemetry:main Nov 14, 2023
32 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 14, 2023
@bogdandrutu bogdandrutu deleted the fixconnectorlogger branch October 14, 2024 20:28
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.

2 participants