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

Split up metric instrument constructors #1254

Merged
merged 30 commits into from
Oct 28, 2020
Merged

Conversation

lzchen
Copy link
Contributor

@lzchen lzchen commented Oct 16, 2020

Originally we abstracted the metric instrument constructors to avoid duplicate code.
Split them up so we don't take a dependency on the implementation of the instrument to determine what instrument is instantiated. Rather we depend on the type of MeterProvider implementation now.

Fixes #1182

@lzchen lzchen marked this pull request as ready for review October 19, 2020 18:37
@lzchen lzchen requested review from a team, toumorokoshi and hectorhdzg and removed request for a team October 19, 2020 18:37
Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

Nice 💯

@lzchen lzchen requested a review from ocelotl October 20, 2020 15:13
Copy link
Member

@hectorhdzg hectorhdzg left a comment

Choose a reason for hiding this comment

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

LGTM

@NathanielRN
Copy link
Contributor

Hello! I have a PR to move some files you have in this PR to the Contrib repo, please let me know if this gets merged before the PR in the Contrib repo. Please see https://github.com/open-telemetry/opentelemetry-python-contrib/pulls/73

Copy link
Contributor

@ocelotl ocelotl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

👍

@codeboten codeboten merged commit 26eef99 into open-telemetry:master Oct 28, 2020
@lzchen lzchen deleted the metric branch October 28, 2020 02:52
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
* fix: default url for otelcol

* docs: review example from default url otelcol

Co-authored-by: Mayur Kale <[email protected]>
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.

Make the metric instrument constructors base off MeterProvider implementation
6 participants