-
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
Remove "Attribute" part from common pdata collections names #5001
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5001 +/- ##
==========================================
- Coverage 91.08% 91.05% -0.03%
==========================================
Files 180 180
Lines 10700 10788 +88
==========================================
+ Hits 9746 9823 +77
- Misses 737 747 +10
- Partials 217 218 +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.
Just a nit, otherwise it looks good.
d664c69
to
09fef01
Compare
NewMap = pdata.NewMap | ||
NewMapFromRaw = pdata.NewMapFromRaw |
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.
nit: separate PR, I would prefer to rename internal/pdata
to maybe just internal
, I am confused about the 2 packages named the same, when code refers to one vs the other.
Please rebase |
e9763d3
to
5054199
Compare
e752665
to
87b96f4
Compare
e38b217
to
df3cd35
Compare
All of the pdata wrappers for collections include Attribute part in its name because the fields used to be part of the attributes fields only. But it's not the case anymore since `pdata.LogRecord.Body` uses AnyValue that can contain any common collection. This change renames AttributeMap and AttributeValueSlice collections by removing Attribute part from their names and making them consistent.
df3cd35
to
1e2bb7e
Compare
…emetry#5001) * Remove "Attribute" part from common pdata collections names All of the pdata wrappers for collections include Attribute part in its name because the fields used to be part of the attributes fields only. But it's not the case anymore since `pdata.LogRecord.Body` uses AnyValue that can contain any common collection. This change renames AttributeMap and AttributeValueSlice collections by removing Attribute part from their names and making them consistent. * Change NewMapFromRaw to take interface{} Co-authored-by: Bogdan Drutu <[email protected]>
All of the pdata wrappers for collections include Attribute part in its name because the fields used to be part of the attributes fields only. But it's not the case anymore since pdata.LogRecord.Body uses AnyValue that can contain any common collection. This change renames AttributeMap and AttributeValueSlice collections by removing Attribute part from their names and making them consistent.
Renames:
pdata.AttributeMap
struct in favor ofpdata.Map
pdata.NewAttributeMap
func in favor ofpdata.NewMap
pdata.NewAttributeMapFromMap
func in favor ofpdata.NewMapFromRaw
pdata.AttributeValueSlice
struct in favor ofpdata.Slice
pdata.NewAttributeValueSlice
func in favor ofpdata.NewSlice
Link to tracking Issue: #4988