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

Make aggregationTemporalitySelector an optional property #3213

Closed
pichlermarc opened this issue Aug 30, 2022 · 3 comments · Fixed by #3225
Closed

Make aggregationTemporalitySelector an optional property #3213

pichlermarc opened this issue Aug 30, 2022 · 3 comments · Fixed by #3225
Assignees
Labels
feature-request sdk:metrics Issues and PRs related to the Metrics SDK
Milestone

Comments

@pichlermarc
Copy link
Member

We should make aggregationTemporalitySelector an optional property on the PushMetricExporter interface, and add logic to the MetricReader to default to AggregationTemproality.CUMULATIVE for all instruments if `aggregationTemporalitySelector is not there.

This would reduce duplicated code in third party exporters, while still allowing the exporter to override the default.

@pichlermarc pichlermarc added this to the Metrics GA milestone Aug 30, 2022
@pichlermarc
Copy link
Member Author

See also: #3153 (comment)

@pichlermarc
Copy link
Member Author

Requires #3153 to be merged first.

@legendecas legendecas added the sdk:metrics Issues and PRs related to the Metrics SDK label Sep 1, 2022
@pichlermarc
Copy link
Member Author

I can work on this. I'll self assign. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request sdk:metrics Issues and PRs related to the Metrics SDK
Projects
None yet
2 participants