-
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
Move aggregation to sdk/metric
#4432
Comments
Do we plan to prefix all the other aggregation structures with |
FWIW, I think when the spec is going to allow custom aggregators it plans to call them |
During the SIG meeting we agreed to try implementing the proposal. |
sdk/metric
sdk/metric
Flattening this into |
I in-lined the fields into parameters in #4435 to resolve this and decouple |
opentelemetry-go/exporters/stdout/stdoutmetric/config.go Lines 106 to 107 in 10d9038
It uses these methods to validate the aggregation selector a user passes. It doesn't seem like this is a necessary things for the exporter to be doing. I'm going to remove it in #4435. |
This exists for all the metric exporters as well. |
This is an output after reviewing #4396
I propose to move the aggregation code to
sdk/metric
and define the aggregation type like this:Reasons:
Copy
/Err
functions. I think that having all methods unexported like in mostOption
interfaces is cleaner. This argument will be invalid if we decide to allow user-defined Aggregations.metric
,metricdata
andmetricdatatests
packages. Usually the users would only needmetric
package in production code.metricdata
andmetricdatatests
packages would usually be used in test code.otel/metric
#3995My only doubt is if we would eventually support user-defined Aggregations. Would it be any problem if allow it up-front? But I find this as a separate issue. Even if we decide to remove the
private()
method I would still be in favor of this proposal.The text was updated successfully, but these errors were encountered: