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

[pdata] Update pcommon.ValueType.String() output #6247

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Oct 6, 2022

Recently we updated all names related to pdata String value. It makes sense to update string returned by Value.String accordingly to avoid discrepancy with other value types

Updates #6249

@dmitryax dmitryax requested review from a team and Aneurysm9 October 6, 2022 16:09
@dmitryax dmitryax marked this pull request as draft October 6, 2022 16:13
@bogdandrutu
Copy link
Member

Please check the tests.

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

Base: 92.22% // Head: 92.22% // Increases project coverage by +0.00% 🎉

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6247   +/-   ##
=======================================
  Coverage   92.22%   92.22%           
=======================================
  Files         219      219           
  Lines       13484    13446   -38     
=======================================
- Hits        12435    12401   -34     
+ Misses        819      815    -4     
  Partials      230      230           
Impacted Files Coverage Δ
...er/loggingexporter/internal/otlptext/databuffer.go 100.00% <100.00%> (+1.73%) ⬆️
exporter/loggingexporter/internal/otlptext/logs.go 100.00% <100.00%> (ø)
pdata/pcommon/common.go 93.12% <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.

pdata/pcommon/common.go Outdated Show resolved Hide resolved
@bogdandrutu
Copy link
Member

@dmitryax the issue is not resolved with this PR, see update there.

CHANGELOG.md Outdated Show resolved Hide resolved
@dmitryax dmitryax changed the title [pdata] Update return value of pcommon.ValueType.String for ValueTypeStr [pdata] Update value returned by pcommon.ValueTypeStr.String() Oct 6, 2022
Update `pcommon.ValueType.String` output to string representation of corresponding type identifiers for consistency with other enum types
@dmitryax dmitryax changed the title [pdata] Update value returned by pcommon.ValueTypeStr.String() [pdata] Update pcommon.ValueType.String() output Oct 6, 2022
@bogdandrutu bogdandrutu merged commit 05d1c5f into open-telemetry:main Oct 6, 2022
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