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

Remove the proto dependency in goldendataset for traces #61

Closed
wants to merge 16 commits into from

Conversation

IrisTuntun
Copy link

@IrisTuntun IrisTuntun commented May 24, 2021

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.

@IrisTuntun IrisTuntun requested review from alolita and Aneurysm9 May 24, 2021 19:46
Comment on lines 357 to 360
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap {
return AttributeMap{orig}
}

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:

Suggested change
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap {
return AttributeMap{orig}
}
func NewAttributeMapFromKeyValues(orig *[]otlpcommon.KeyValue) AttributeMap {
return newAttributeMap(orig)

Copy link
Author

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?

@bogdandrutu bogdandrutu requested a review from rakyll as a code owner June 7, 2021 08:57
@github-actions
Copy link

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 22, 2022
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants