-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Rename pdata.AttributeValue to pdata.Value #4978
Conversation
d961f59
to
167d450
Compare
Codecov Report
@@ Coverage Diff @@
## main #4978 +/- ##
==========================================
+ Coverage 90.92% 90.96% +0.03%
==========================================
Files 183 183
Lines 10692 10692
==========================================
+ Hits 9722 9726 +4
+ Misses 752 749 -3
+ Partials 218 217 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall the change looks good, just some comments that need updating.
167d450
to
bdf80fc
Compare
@codeboten thanks for the review. I addressed all your comments |
555da20
to
11dc60a
Compare
ff2e1e5
to
081b8b9
Compare
I realized that this PR solves only part of the problem. Removed Will keep this PR in draft until we have an agreement on the path forward. |
081b8b9
to
cdfb20c
Compare
The PR is updated to use |
bc6dee5
to
06b6862
Compare
`pdata.AttributeValue` is a wrapper over `opentelemetry.proto.common.v1.AnyValue` type. It's not exclusively used with Attributes field, `pdata.LogRecord.Body` also uses it which makes the name misleading. This change renames all API related to `pdata.AttributeValue` to `pdata.Value` keeping the old API as deprecated
06b6862
to
5e0526f
Compare
`pdata.AttributeValue` is a wrapper over `opentelemetry.proto.common.v1.AnyValue` type. It's not exclusively used with Attributes field, `pdata.LogRecord.Body` also uses it which makes the name misleading. This change renames all API related to `pdata.AttributeValue` to `pdata.Value` keeping the old API as deprecated Co-authored-by: Bogdan Drutu <[email protected]>
pdata.AttributeValue
is a wrapper overopentelemetry.proto.common.v1.AnyValue
type. It's not exclusively used with Attributes field,pdata.LogRecord.Body
also uses it which makes the name misleading. This change renames all API related topdata.AttributeValue
topdata.Value
keeping the old API as deprecated.Updates: #4818
UPD: The PR is updated to use
Value
naming instead ofAnyValue
as suggested by @bogdandrutu in #4988 (comment)