-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
May be better to return a pointer to View, since it is a pretty large struct #3199
Comments
Can I take this issue? :) |
The PR was closed based on wrong assumptions: I still believe is the correct way to not pollute the stack and every larger object to be heap allocated and avoid unnecessary copies of the struct. |
We closed that milestone in favor of tracking beta with a project and releases with milestones. It's still on the list of things to do 🙂 |
The view design was changed in the completion of #3399. This issue is no longer relevant to the new design. Closing. |
https://github.com/open-telemetry/opentelemetry-go/blob/main/sdk/metric/view/view.go#L54, also change methods to be on the pointer instead of value, to avoid unnecessary copy every time match is called.
The text was updated successfully, but these errors were encountered: