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

[API EPIC 3/4] SDK Wrapper #2586

Closed

Conversation

MadVikingGod
Copy link
Contributor

This is a series of patches to update the metrics API. Here is the diff against the previous step

  1. New API [API Epic 1/4] Metric api prototype #2557
  2. Move retained packages under SDK [API Epic 2/4] Move packages to sdk #2585
  3. Create a wrapper for current SDK to be used as new API (This patch)
  4. Fix reaming tests and examples. #????

This creates a wrapper to enable the use of the current SDK as an implementation of the new API. It does some work to remove now unneeded concepts because we access the API differently.

The Moved compoents are:
- metric/metrictest
- metric/number
- metric/internal/registry
- metric/sdkapi
Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just nits. Probably should be handled later.

sdk/metric/sdk.go Show resolved Hide resolved
sdk/metric/sdk.go Show resolved Hide resolved
sdk/metric/sdk.go Show resolved Hide resolved
@MadVikingGod
Copy link
Contributor Author

I was going to pull these changes into one on the end if you are ok with that @dashpole.

return a, nil
}

func (m *Accumulator) RegisterCallback(insts []instrument.Asynchronous, f func(context.Context)) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing doc string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants