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

Missing ABC for Metric #390

Closed
GoPavel opened this issue Jan 30, 2020 · 2 comments · Fixed by #391
Closed

Missing ABC for Metric #390

GoPavel opened this issue Jan 30, 2020 · 2 comments · Fixed by #391
Labels
bug Something isn't working good first issue Good first issue help wanted

Comments

@GoPavel
Copy link
Contributor

GoPavel commented Jan 30, 2020

Missing ABC for Metric seems strange to me.
I guess in the PR #311 and Issue #66 settle to add ABC for all interfaces.

Maybe it should look like:

class Metric(abc.ABC):
    """...
    """

    @abc.abstractmethod
    def get_handle(self, label_set: LabelSet) -> "object":
        """...
        """
@GoPavel GoPavel added the bug Something isn't working label Jan 30, 2020
@codeboten
Copy link
Contributor

Thanks for catching this. Mind submitting a PR @GoPavel since you already have most of the code written up here?

GoPavel added a commit to GoPavel/opentelemetry-python that referenced this issue Jan 31, 2020
@GoPavel
Copy link
Contributor Author

GoPavel commented Jan 31, 2020

Thanks for catching this. Mind submitting a PR @GoPavel since you already have most of the code written up here?

Ok. Could you review it?

toumorokoshi pushed a commit that referenced this issue Jan 31, 2020
toumorokoshi pushed a commit to toumorokoshi/opentelemetry-python that referenced this issue Feb 17, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this issue Nov 1, 2020
* feat: add initial benchmark suite

* fix: remove nock

* feat: add propagator benchmarks

* fix: use new package names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good first issue help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants