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

[configtelemetry] Update strings returned by Level.[String|MarshalText] #6533

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Nov 12, 2022

  • All returned strings are capitalized.
  • "" is returned for integers that are out of Level enum range.
  • It also affects Level.MarshalText output, but it's not a problem because UnmarshalText method accepts strings in all cases, e.g. "normal", "Normal" and "NORMAL".

Updates #6490

@dmitryax dmitryax requested review from a team and Aneurysm9 November 12, 2022 01:01
@dmitryax dmitryax force-pushed the update-configtelemetryLevel-string branch 2 times, most recently from 81df9f3 to 906b7b4 Compare November 12, 2022 01:02
@dmitryax dmitryax changed the title [configtelemetry] Update strings returned by Level.[String|Marshal] [configtelemetry] Update strings returned by Level.[String|MarshalText] Nov 12, 2022
…xt]`

  - All returned strings are capitalized.
  - "" is returned for integers that are out of Level enum range.
  - It also affects `Level.MarshalText` output, but it's not a problem because `UnmarshalText` method accepts strings in
  all cases, e.g. "normal", "Normal" and "NORMAL".
@dmitryax dmitryax force-pushed the update-configtelemetryLevel-string branch from 906b7b4 to 0c98c3e Compare November 12, 2022 08:36
@codecov
Copy link

codecov bot commented Nov 12, 2022

Codecov Report

Base: 91.33% // Head: 91.33% // No change to project coverage 👍

Coverage data is based on head (0c98c3e) compared to base (d55b152).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6533   +/-   ##
=======================================
  Coverage   91.33%   91.33%           
=======================================
  Files         242      242           
  Lines       13888    13888           
=======================================
  Hits        12684    12684           
  Misses        959      959           
  Partials      245      245           
Impacted Files Coverage Δ
config/configtelemetry/configtelemetry.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bogdandrutu bogdandrutu merged commit 375a859 into open-telemetry:main Nov 14, 2022
@dmitryax dmitryax deleted the update-configtelemetryLevel-string branch November 16, 2022 04:37
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