-
Notifications
You must be signed in to change notification settings - Fork 3
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 the proto dependency in goldendataset for traces #61
Conversation
consumer/pdata/common.go
Outdated
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap { | ||
return AttributeMap{orig} | ||
} | ||
|
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.
How is this different from newAttributeMap()
? Do both need to exist? If so, one should probably be implemented in terms of the other:
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap { | |
return AttributeMap{orig} | |
} | |
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap { | |
return newAttributeMap(orig) | |
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.
They are the same. But if I export newAttributeMap(orig *[]otlpcommon.KeyValue)
by capitalize the first letter, the compiler will complaint that it conflicts with the existing NewAttributeMap()
method. Do you know if there is a better approach for this kind of situation?
Co-authored-by: Anthony Mirabella <[email protected]>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description:
Remove the proto dependency in
goldendataset
for generating traces. Functions being called by GenerateTraces() will use PData instead of protos for the final constructing of Traces.Link to tracking Issue:
3229
Testing: The unit test is updated to use PData in test cases.