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

Verify compliant metric SDK specification implementation: MeterProvider/Aggregation/Last Value Aggregation #3650

Closed
2 tasks done
Tracked by #3674
MrAlias opened this issue Feb 3, 2023 · 4 comments
Assignees
Labels
area:metrics Part of OpenTelemetry Metrics pkg:SDK Related to an SDK package

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Feb 3, 2023

  • Identify all the normative requirements, recommendations, and options the specification defines as comments to this issue
  • Ensure the current metric SDK implementation is compliant with these normative requirements, recommendations, and options in those comments.
@MrAlias MrAlias converted this from a draft issue Feb 3, 2023
@MrAlias MrAlias added pkg:SDK Related to an SDK package area:metrics Part of OpenTelemetry Metrics labels Feb 3, 2023
@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 1, 2023

The Last Value Aggregation informs the SDK to collect data for the Gauge Metric Point.

This Aggregation does not have any configuration parameters.

This Aggregation informs the SDK to collect:

  • The last Measurement.
  • The timestamp of the last Measurement.

There are no normative statements in this section.

@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 1, 2023

The LastValue aggregation indeed has no configuration values:

// LastValue is an aggregation that summarizes a set of measurements as the
// last one made.
type LastValue struct{} // LastValue has no parameters.

@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 1, 2023

The LastValue aggregation informs the SDK to use a last-value aggregation that matches the specification:

return internal.NewLastValue[N](), nil

@MrAlias
Copy link
Contributor Author

MrAlias commented Jun 1, 2023

done

@MrAlias MrAlias closed this as completed Jun 1, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Go: Metric SDK (GA) Jun 1, 2023
@MrAlias MrAlias self-assigned this Jun 1, 2023
@MrAlias MrAlias added this to the v1.17.0/v0.40.0 milestone Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics pkg:SDK Related to an SDK package
Projects
No open projects
Development

No branches or pull requests

1 participant