Skip to content

Commit

Permalink
Add classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed May 18, 2021
1 parent f816287 commit c59c3cd
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions opentelemetry-api/src/opentelemetry/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


class Measurement:
pass


class Instrument:
pass


class Synchronous(Instrument):
pass


class Asynchronous(Instrument):
pass


class Adding(Instrument):
pass


class Grouping(Instrument):
pass


class Monotonic(Adding):
pass


class NonMonotonic(Adding):
pass


class Counter(Monotonic, Synchronous):
pass


class UpDownCounter(NonMonotonic, Synchronous):
pass


class AsynchronousCounter(Monotonic, Asynchronous):
pass


class AsynchronousUpDownCounter(NonMonotonic, Asynchronous):
pass


class Histogram(Synchronous, Grouping):
pass


class AsynchronousGauge(Asynchronous, Grouping):
pass


class Meter:
def create_counter(self):
pass


class MeterProvider:

def provide(self, name, version=None):
return Meter()

0 comments on commit c59c3cd

Please sign in to comment.