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

WIP: Metric uniqueness checking #566

Closed
wants to merge 22 commits into from

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Mar 17, 2020

This is an unfinished proof of concept for #514, intended to help with the review for #520

Changes:

  • a new metric.MeterImpl impl that keeps state about registered instruments and calls through to the real implementation
  • a new metric.Descriptor field for the library name

None of these details are intended for final review and could change, but this should demonstrate how #560 helps address #514.

@jmacd jmacd added the area:metrics Part of OpenTelemetry Metrics label Mar 17, 2020
@jmacd
Copy link
Contributor Author

jmacd commented Mar 17, 2020

This is not really up for review, it's just to help with #560. I'm not quite pleased with the addition of an argument to the NewDescriptor() method, and I'm not sure if the spec allows us to use a default value. If the spec allows that, I'd prefer to have an Option to set the library name in the descriptor.

@jmacd jmacd closed this Mar 19, 2020
@jmacd
Copy link
Contributor Author

jmacd commented Mar 19, 2020

I will do this over after #560 merges.

@jmacd jmacd deleted the jmacd/metric_uniq branch May 11, 2020 16:29
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant