diff --git a/CHANGELOG.md b/CHANGELOG.md index bfac59d9cd..0ecb4cc30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v0.18b0...HEAD) +- Update OTLP exporter to use OTLP proto `0.7.0` + ([#1674](https://github.com/open-telemetry/opentelemetry-python/pull/1674)) ### Added - Document how to work with fork process web server models(Gunicorn, uWSGI etc...) diff --git a/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi index f93d6312eb..da5d542e05 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi @@ -1,56 +1,34 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.logs.v1.logs_pb2 import ( - ResourceLogs as opentelemetry___proto___logs___v1___logs_pb2___ResourceLogs, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class ExportLogsServiceRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import opentelemetry.proto.logs.v1.logs_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class ExportLogsServiceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_LOGS_FIELD_NUMBER: builtins.int @property - def resource_logs(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___logs___v1___logs_pb2___ResourceLogs]: ... + def resource_logs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.logs.v1.logs_pb2.ResourceLogs]: ... def __init__(self, *, - resource_logs : typing___Optional[typing___Iterable[opentelemetry___proto___logs___v1___logs_pb2___ResourceLogs]] = None, + resource_logs : typing.Optional[typing.Iterable[opentelemetry.proto.logs.v1.logs_pb2.ResourceLogs]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"resource_logs",b"resource_logs"]) -> None: ... -type___ExportLogsServiceRequest = ExportLogsServiceRequest + def ClearField(self, field_name: typing_extensions.Literal[u"resource_logs",b"resource_logs"]) -> None: ... +global___ExportLogsServiceRequest = ExportLogsServiceRequest -class ExportLogsServiceResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ExportLogsServiceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___ExportLogsServiceResponse = ExportLogsServiceResponse +global___ExportLogsServiceResponse = ExportLogsServiceResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/collector/metrics/v1/metrics_service_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/collector/metrics/v1/metrics_service_pb2.pyi index 31efaf83cd..be50774a30 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/collector/metrics/v1/metrics_service_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/metrics/v1/metrics_service_pb2.pyi @@ -1,56 +1,34 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.metrics.v1.metrics_pb2 import ( - ResourceMetrics as opentelemetry___proto___metrics___v1___metrics_pb2___ResourceMetrics, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class ExportMetricsServiceRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import opentelemetry.proto.metrics.v1.metrics_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class ExportMetricsServiceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_METRICS_FIELD_NUMBER: builtins.int @property - def resource_metrics(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___metrics___v1___metrics_pb2___ResourceMetrics]: ... + def resource_metrics(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.metrics.v1.metrics_pb2.ResourceMetrics]: ... def __init__(self, *, - resource_metrics : typing___Optional[typing___Iterable[opentelemetry___proto___metrics___v1___metrics_pb2___ResourceMetrics]] = None, + resource_metrics : typing.Optional[typing.Iterable[opentelemetry.proto.metrics.v1.metrics_pb2.ResourceMetrics]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"resource_metrics",b"resource_metrics"]) -> None: ... -type___ExportMetricsServiceRequest = ExportMetricsServiceRequest + def ClearField(self, field_name: typing_extensions.Literal[u"resource_metrics",b"resource_metrics"]) -> None: ... +global___ExportMetricsServiceRequest = ExportMetricsServiceRequest -class ExportMetricsServiceResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ExportMetricsServiceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___ExportMetricsServiceResponse = ExportMetricsServiceResponse +global___ExportMetricsServiceResponse = ExportMetricsServiceResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/collector/trace/v1/trace_service_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/collector/trace/v1/trace_service_pb2.pyi index 1f36dfd707..f40bd9a179 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/collector/trace/v1/trace_service_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/trace/v1/trace_service_pb2.pyi @@ -1,56 +1,34 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.trace.v1.trace_pb2 import ( - ResourceSpans as opentelemetry___proto___trace___v1___trace_pb2___ResourceSpans, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class ExportTraceServiceRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import opentelemetry.proto.trace.v1.trace_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class ExportTraceServiceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_SPANS_FIELD_NUMBER: builtins.int @property - def resource_spans(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___trace___v1___trace_pb2___ResourceSpans]: ... + def resource_spans(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.trace.v1.trace_pb2.ResourceSpans]: ... def __init__(self, *, - resource_spans : typing___Optional[typing___Iterable[opentelemetry___proto___trace___v1___trace_pb2___ResourceSpans]] = None, + resource_spans : typing.Optional[typing.Iterable[opentelemetry.proto.trace.v1.trace_pb2.ResourceSpans]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"resource_spans",b"resource_spans"]) -> None: ... -type___ExportTraceServiceRequest = ExportTraceServiceRequest + def ClearField(self, field_name: typing_extensions.Literal[u"resource_spans",b"resource_spans"]) -> None: ... +global___ExportTraceServiceRequest = ExportTraceServiceRequest -class ExportTraceServiceResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ExportTraceServiceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... def __init__(self, ) -> None: ... -type___ExportTraceServiceResponse = ExportTraceServiceResponse +global___ExportTraceServiceResponse = ExportTraceServiceResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/common/v1/common_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/common/v1/common_pb2.pyi index 4305729cb9..7afb08ab9a 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/common/v1/common_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/common/v1/common_pb2.pyi @@ -1,128 +1,121 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class AnyValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - string_value: typing___Text = ... - bool_value: builtin___bool = ... - int_value: builtin___int = ... - double_value: builtin___float = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class AnyValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STRING_VALUE_FIELD_NUMBER: builtins.int + BOOL_VALUE_FIELD_NUMBER: builtins.int + INT_VALUE_FIELD_NUMBER: builtins.int + DOUBLE_VALUE_FIELD_NUMBER: builtins.int + ARRAY_VALUE_FIELD_NUMBER: builtins.int + KVLIST_VALUE_FIELD_NUMBER: builtins.int + string_value: typing.Text = ... + bool_value: builtins.bool = ... + int_value: builtins.int = ... + double_value: builtins.float = ... @property - def array_value(self) -> type___ArrayValue: ... + def array_value(self) -> global___ArrayValue: ... @property - def kvlist_value(self) -> type___KeyValueList: ... + def kvlist_value(self) -> global___KeyValueList: ... def __init__(self, *, - string_value : typing___Optional[typing___Text] = None, - bool_value : typing___Optional[builtin___bool] = None, - int_value : typing___Optional[builtin___int] = None, - double_value : typing___Optional[builtin___float] = None, - array_value : typing___Optional[type___ArrayValue] = None, - kvlist_value : typing___Optional[type___KeyValueList] = None, + string_value : typing.Text = ..., + bool_value : builtins.bool = ..., + int_value : builtins.int = ..., + double_value : builtins.float = ..., + array_value : typing.Optional[global___ArrayValue] = ..., + kvlist_value : typing.Optional[global___KeyValueList] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"array_value",b"array_value",u"bool_value",b"bool_value",u"double_value",b"double_value",u"int_value",b"int_value",u"kvlist_value",b"kvlist_value",u"string_value",b"string_value",u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"array_value",b"array_value",u"bool_value",b"bool_value",u"double_value",b"double_value",u"int_value",b"int_value",u"kvlist_value",b"kvlist_value",u"string_value",b"string_value",u"value",b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"value",b"value"]) -> typing_extensions___Literal["string_value","bool_value","int_value","double_value","array_value","kvlist_value"]: ... -type___AnyValue = AnyValue + def HasField(self, field_name: typing_extensions.Literal[u"array_value",b"array_value",u"bool_value",b"bool_value",u"double_value",b"double_value",u"int_value",b"int_value",u"kvlist_value",b"kvlist_value",u"string_value",b"string_value",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"array_value",b"array_value",u"bool_value",b"bool_value",u"double_value",b"double_value",u"int_value",b"int_value",u"kvlist_value",b"kvlist_value",u"string_value",b"string_value",u"value",b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing_extensions.Literal["string_value","bool_value","int_value","double_value","array_value","kvlist_value"]: ... +global___AnyValue = AnyValue -class ArrayValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class ArrayValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___AnyValue]: ... + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyValue]: ... def __init__(self, *, - values : typing___Optional[typing___Iterable[type___AnyValue]] = None, + values : typing.Optional[typing.Iterable[global___AnyValue]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"values",b"values"]) -> None: ... -type___ArrayValue = ArrayValue + def ClearField(self, field_name: typing_extensions.Literal[u"values",b"values"]) -> None: ... +global___ArrayValue = ArrayValue -class KeyValueList(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class KeyValueList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___KeyValue]: ... + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KeyValue]: ... def __init__(self, *, - values : typing___Optional[typing___Iterable[type___KeyValue]] = None, + values : typing.Optional[typing.Iterable[global___KeyValue]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"values",b"values"]) -> None: ... -type___KeyValueList = KeyValueList + def ClearField(self, field_name: typing_extensions.Literal[u"values",b"values"]) -> None: ... +global___KeyValueList = KeyValueList -class KeyValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... +class KeyValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... @property - def value(self) -> type___AnyValue: ... + def value(self) -> global___AnyValue: ... def __init__(self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[type___AnyValue] = None, + key : typing.Text = ..., + value : typing.Optional[global___AnyValue] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... -type___KeyValue = KeyValue + def HasField(self, field_name: typing_extensions.Literal[u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___KeyValue = KeyValue -class StringKeyValue(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - key: typing___Text = ... - value: typing___Text = ... +class StringKeyValue(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... + value: typing.Text = ... def __init__(self, *, - key : typing___Optional[typing___Text] = None, - value : typing___Optional[typing___Text] = None, + key : typing.Text = ..., + value : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ... -type___StringKeyValue = StringKeyValue + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___StringKeyValue = StringKeyValue -class InstrumentationLibrary(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - version: typing___Text = ... +class InstrumentationLibrary(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + name: typing.Text = ... + version: typing.Text = ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - version : typing___Optional[typing___Text] = None, + name : typing.Text = ..., + version : typing.Text = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"version",b"version"]) -> None: ... -type___InstrumentationLibrary = InstrumentationLibrary + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"version",b"version"]) -> None: ... +global___InstrumentationLibrary = InstrumentationLibrary diff --git a/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.pyi index 0f280f6f6c..a8d51507aa 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.pyi @@ -1,158 +1,131 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.common.v1.common_pb2 import ( - AnyValue as opentelemetry___proto___common___v1___common_pb2___AnyValue, - InstrumentationLibrary as opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary, - KeyValue as opentelemetry___proto___common___v1___common_pb2___KeyValue, -) - -from opentelemetry.proto.resource.v1.resource_pb2 import ( - Resource as opentelemetry___proto___resource___v1___resource_pb2___Resource, -) - -from typing import ( - Iterable as typing___Iterable, - NewType as typing___NewType, - Optional as typing___Optional, - Text as typing___Text, - cast as typing___cast, -) - -from typing_extensions import Literal as typing_extensions___Literal - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -SeverityNumberValue = typing___NewType("SeverityNumberValue", builtin___int) -type___SeverityNumberValue = SeverityNumberValue -SeverityNumber: _SeverityNumber +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import opentelemetry.proto.common.v1.common_pb2 +import opentelemetry.proto.resource.v1.resource_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +global___SeverityNumber = SeverityNumber class _SeverityNumber( - google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ - SeverityNumberValue - ] + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + SeverityNumber.V + ], + builtins.type, ): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - SEVERITY_NUMBER_UNSPECIFIED = typing___cast(SeverityNumberValue, 0) - SEVERITY_NUMBER_TRACE = typing___cast(SeverityNumberValue, 1) - SEVERITY_NUMBER_TRACE2 = typing___cast(SeverityNumberValue, 2) - SEVERITY_NUMBER_TRACE3 = typing___cast(SeverityNumberValue, 3) - SEVERITY_NUMBER_TRACE4 = typing___cast(SeverityNumberValue, 4) - SEVERITY_NUMBER_DEBUG = typing___cast(SeverityNumberValue, 5) - SEVERITY_NUMBER_DEBUG2 = typing___cast(SeverityNumberValue, 6) - SEVERITY_NUMBER_DEBUG3 = typing___cast(SeverityNumberValue, 7) - SEVERITY_NUMBER_DEBUG4 = typing___cast(SeverityNumberValue, 8) - SEVERITY_NUMBER_INFO = typing___cast(SeverityNumberValue, 9) - SEVERITY_NUMBER_INFO2 = typing___cast(SeverityNumberValue, 10) - SEVERITY_NUMBER_INFO3 = typing___cast(SeverityNumberValue, 11) - SEVERITY_NUMBER_INFO4 = typing___cast(SeverityNumberValue, 12) - SEVERITY_NUMBER_WARN = typing___cast(SeverityNumberValue, 13) - SEVERITY_NUMBER_WARN2 = typing___cast(SeverityNumberValue, 14) - SEVERITY_NUMBER_WARN3 = typing___cast(SeverityNumberValue, 15) - SEVERITY_NUMBER_WARN4 = typing___cast(SeverityNumberValue, 16) - SEVERITY_NUMBER_ERROR = typing___cast(SeverityNumberValue, 17) - SEVERITY_NUMBER_ERROR2 = typing___cast(SeverityNumberValue, 18) - SEVERITY_NUMBER_ERROR3 = typing___cast(SeverityNumberValue, 19) - SEVERITY_NUMBER_ERROR4 = typing___cast(SeverityNumberValue, 20) - SEVERITY_NUMBER_FATAL = typing___cast(SeverityNumberValue, 21) - SEVERITY_NUMBER_FATAL2 = typing___cast(SeverityNumberValue, 22) - SEVERITY_NUMBER_FATAL3 = typing___cast(SeverityNumberValue, 23) - SEVERITY_NUMBER_FATAL4 = typing___cast(SeverityNumberValue, 24) - -SEVERITY_NUMBER_UNSPECIFIED = typing___cast(SeverityNumberValue, 0) -SEVERITY_NUMBER_TRACE = typing___cast(SeverityNumberValue, 1) -SEVERITY_NUMBER_TRACE2 = typing___cast(SeverityNumberValue, 2) -SEVERITY_NUMBER_TRACE3 = typing___cast(SeverityNumberValue, 3) -SEVERITY_NUMBER_TRACE4 = typing___cast(SeverityNumberValue, 4) -SEVERITY_NUMBER_DEBUG = typing___cast(SeverityNumberValue, 5) -SEVERITY_NUMBER_DEBUG2 = typing___cast(SeverityNumberValue, 6) -SEVERITY_NUMBER_DEBUG3 = typing___cast(SeverityNumberValue, 7) -SEVERITY_NUMBER_DEBUG4 = typing___cast(SeverityNumberValue, 8) -SEVERITY_NUMBER_INFO = typing___cast(SeverityNumberValue, 9) -SEVERITY_NUMBER_INFO2 = typing___cast(SeverityNumberValue, 10) -SEVERITY_NUMBER_INFO3 = typing___cast(SeverityNumberValue, 11) -SEVERITY_NUMBER_INFO4 = typing___cast(SeverityNumberValue, 12) -SEVERITY_NUMBER_WARN = typing___cast(SeverityNumberValue, 13) -SEVERITY_NUMBER_WARN2 = typing___cast(SeverityNumberValue, 14) -SEVERITY_NUMBER_WARN3 = typing___cast(SeverityNumberValue, 15) -SEVERITY_NUMBER_WARN4 = typing___cast(SeverityNumberValue, 16) -SEVERITY_NUMBER_ERROR = typing___cast(SeverityNumberValue, 17) -SEVERITY_NUMBER_ERROR2 = typing___cast(SeverityNumberValue, 18) -SEVERITY_NUMBER_ERROR3 = typing___cast(SeverityNumberValue, 19) -SEVERITY_NUMBER_ERROR4 = typing___cast(SeverityNumberValue, 20) -SEVERITY_NUMBER_FATAL = typing___cast(SeverityNumberValue, 21) -SEVERITY_NUMBER_FATAL2 = typing___cast(SeverityNumberValue, 22) -SEVERITY_NUMBER_FATAL3 = typing___cast(SeverityNumberValue, 23) -SEVERITY_NUMBER_FATAL4 = typing___cast(SeverityNumberValue, 24) -type___SeverityNumber = SeverityNumber - -LogRecordFlagsValue = typing___NewType("LogRecordFlagsValue", builtin___int) -type___LogRecordFlagsValue = LogRecordFlagsValue -LogRecordFlags: _LogRecordFlags + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SEVERITY_NUMBER_UNSPECIFIED = SeverityNumber.V(0) + SEVERITY_NUMBER_TRACE = SeverityNumber.V(1) + SEVERITY_NUMBER_TRACE2 = SeverityNumber.V(2) + SEVERITY_NUMBER_TRACE3 = SeverityNumber.V(3) + SEVERITY_NUMBER_TRACE4 = SeverityNumber.V(4) + SEVERITY_NUMBER_DEBUG = SeverityNumber.V(5) + SEVERITY_NUMBER_DEBUG2 = SeverityNumber.V(6) + SEVERITY_NUMBER_DEBUG3 = SeverityNumber.V(7) + SEVERITY_NUMBER_DEBUG4 = SeverityNumber.V(8) + SEVERITY_NUMBER_INFO = SeverityNumber.V(9) + SEVERITY_NUMBER_INFO2 = SeverityNumber.V(10) + SEVERITY_NUMBER_INFO3 = SeverityNumber.V(11) + SEVERITY_NUMBER_INFO4 = SeverityNumber.V(12) + SEVERITY_NUMBER_WARN = SeverityNumber.V(13) + SEVERITY_NUMBER_WARN2 = SeverityNumber.V(14) + SEVERITY_NUMBER_WARN3 = SeverityNumber.V(15) + SEVERITY_NUMBER_WARN4 = SeverityNumber.V(16) + SEVERITY_NUMBER_ERROR = SeverityNumber.V(17) + SEVERITY_NUMBER_ERROR2 = SeverityNumber.V(18) + SEVERITY_NUMBER_ERROR3 = SeverityNumber.V(19) + SEVERITY_NUMBER_ERROR4 = SeverityNumber.V(20) + SEVERITY_NUMBER_FATAL = SeverityNumber.V(21) + SEVERITY_NUMBER_FATAL2 = SeverityNumber.V(22) + SEVERITY_NUMBER_FATAL3 = SeverityNumber.V(23) + SEVERITY_NUMBER_FATAL4 = SeverityNumber.V(24) + +class SeverityNumber(metaclass=_SeverityNumber): + V = typing.NewType("V", builtins.int) + +SEVERITY_NUMBER_UNSPECIFIED = SeverityNumber.V(0) +SEVERITY_NUMBER_TRACE = SeverityNumber.V(1) +SEVERITY_NUMBER_TRACE2 = SeverityNumber.V(2) +SEVERITY_NUMBER_TRACE3 = SeverityNumber.V(3) +SEVERITY_NUMBER_TRACE4 = SeverityNumber.V(4) +SEVERITY_NUMBER_DEBUG = SeverityNumber.V(5) +SEVERITY_NUMBER_DEBUG2 = SeverityNumber.V(6) +SEVERITY_NUMBER_DEBUG3 = SeverityNumber.V(7) +SEVERITY_NUMBER_DEBUG4 = SeverityNumber.V(8) +SEVERITY_NUMBER_INFO = SeverityNumber.V(9) +SEVERITY_NUMBER_INFO2 = SeverityNumber.V(10) +SEVERITY_NUMBER_INFO3 = SeverityNumber.V(11) +SEVERITY_NUMBER_INFO4 = SeverityNumber.V(12) +SEVERITY_NUMBER_WARN = SeverityNumber.V(13) +SEVERITY_NUMBER_WARN2 = SeverityNumber.V(14) +SEVERITY_NUMBER_WARN3 = SeverityNumber.V(15) +SEVERITY_NUMBER_WARN4 = SeverityNumber.V(16) +SEVERITY_NUMBER_ERROR = SeverityNumber.V(17) +SEVERITY_NUMBER_ERROR2 = SeverityNumber.V(18) +SEVERITY_NUMBER_ERROR3 = SeverityNumber.V(19) +SEVERITY_NUMBER_ERROR4 = SeverityNumber.V(20) +SEVERITY_NUMBER_FATAL = SeverityNumber.V(21) +SEVERITY_NUMBER_FATAL2 = SeverityNumber.V(22) +SEVERITY_NUMBER_FATAL3 = SeverityNumber.V(23) +SEVERITY_NUMBER_FATAL4 = SeverityNumber.V(24) + +global___LogRecordFlags = LogRecordFlags class _LogRecordFlags( - google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ - LogRecordFlagsValue - ] + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + LogRecordFlags.V + ], + builtins.type, ): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - LOG_RECORD_FLAG_UNSPECIFIED = typing___cast(LogRecordFlagsValue, 0) - LOG_RECORD_FLAG_TRACE_FLAGS_MASK = typing___cast(LogRecordFlagsValue, 255) + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + LOG_RECORD_FLAG_UNSPECIFIED = LogRecordFlags.V(0) + LOG_RECORD_FLAG_TRACE_FLAGS_MASK = LogRecordFlags.V(255) -LOG_RECORD_FLAG_UNSPECIFIED = typing___cast(LogRecordFlagsValue, 0) -LOG_RECORD_FLAG_TRACE_FLAGS_MASK = typing___cast(LogRecordFlagsValue, 255) -type___LogRecordFlags = LogRecordFlags +class LogRecordFlags(metaclass=_LogRecordFlags): + V = typing.NewType("V", builtins.int) -class ResourceLogs(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +LOG_RECORD_FLAG_UNSPECIFIED = LogRecordFlags.V(0) +LOG_RECORD_FLAG_TRACE_FLAGS_MASK = LogRecordFlags.V(255) + +class ResourceLogs(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_FIELD_NUMBER: builtins.int + INSTRUMENTATION_LIBRARY_LOGS_FIELD_NUMBER: builtins.int @property def resource( self, - ) -> opentelemetry___proto___resource___v1___resource_pb2___Resource: ... + ) -> opentelemetry.proto.resource.v1.resource_pb2.Resource: ... @property def instrumentation_library_logs( self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - type___InstrumentationLibraryLogs + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___InstrumentationLibraryLogs ]: ... def __init__( self, *, - resource: typing___Optional[ - opentelemetry___proto___resource___v1___resource_pb2___Resource - ] = None, - instrumentation_library_logs: typing___Optional[ - typing___Iterable[type___InstrumentationLibraryLogs] - ] = None, + resource: typing.Optional[ + opentelemetry.proto.resource.v1.resource_pb2.Resource + ] = ..., + instrumentation_library_logs: typing.Optional[ + typing.Iterable[global___InstrumentationLibraryLogs] + ] = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions___Literal["resource", b"resource"] - ) -> builtin___bool: ... + self, field_name: typing_extensions.Literal["resource", b"resource"] + ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions___Literal[ + field_name: typing_extensions.Literal[ "instrumentation_library_logs", b"instrumentation_library_logs", "resource", @@ -160,37 +133,39 @@ class ResourceLogs(google___protobuf___message___Message): ], ) -> None: ... -type___ResourceLogs = ResourceLogs +global___ResourceLogs = ResourceLogs -class InstrumentationLibraryLogs(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class InstrumentationLibraryLogs(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INSTRUMENTATION_LIBRARY_FIELD_NUMBER: builtins.int + LOGS_FIELD_NUMBER: builtins.int @property def instrumentation_library( self, - ) -> opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary: ... + ) -> opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary: ... @property def logs( self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - type___LogRecord + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___LogRecord ]: ... def __init__( self, *, - instrumentation_library: typing___Optional[ - opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary - ] = None, - logs: typing___Optional[typing___Iterable[type___LogRecord]] = None, + instrumentation_library: typing.Optional[ + opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary + ] = ..., + logs: typing.Optional[typing.Iterable[global___LogRecord]] = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions___Literal[ + field_name: typing_extensions.Literal[ "instrumentation_library", b"instrumentation_library" ], - ) -> builtin___bool: ... + ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions___Literal[ + field_name: typing_extensions.Literal[ "instrumentation_library", b"instrumentation_library", "logs", @@ -198,54 +173,60 @@ class InstrumentationLibraryLogs(google___protobuf___message___Message): ], ) -> None: ... -type___InstrumentationLibraryLogs = InstrumentationLibraryLogs - -class LogRecord(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - time_unix_nano: builtin___int = ... - severity_number: type___SeverityNumberValue = ... - severity_text: typing___Text = ... - name: typing___Text = ... - dropped_attributes_count: builtin___int = ... - flags: builtin___int = ... - trace_id: builtin___bytes = ... - span_id: builtin___bytes = ... +global___InstrumentationLibraryLogs = InstrumentationLibraryLogs + +class LogRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + SEVERITY_NUMBER_FIELD_NUMBER: builtins.int + SEVERITY_TEXT_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + BODY_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int + FLAGS_FIELD_NUMBER: builtins.int + TRACE_ID_FIELD_NUMBER: builtins.int + SPAN_ID_FIELD_NUMBER: builtins.int + time_unix_nano: builtins.int = ... + severity_number: global___SeverityNumber.V = ... + severity_text: typing.Text = ... + name: typing.Text = ... + dropped_attributes_count: builtins.int = ... + flags: builtins.int = ... + trace_id: builtins.bytes = ... + span_id: builtins.bytes = ... @property - def body( - self, - ) -> opentelemetry___proto___common___v1___common_pb2___AnyValue: ... + def body(self) -> opentelemetry.proto.common.v1.common_pb2.AnyValue: ... @property def attributes( self, - ) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[ - opentelemetry___proto___common___v1___common_pb2___KeyValue + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + opentelemetry.proto.common.v1.common_pb2.KeyValue ]: ... def __init__( self, *, - time_unix_nano: typing___Optional[builtin___int] = None, - severity_number: typing___Optional[type___SeverityNumberValue] = None, - severity_text: typing___Optional[typing___Text] = None, - name: typing___Optional[typing___Text] = None, - body: typing___Optional[ - opentelemetry___proto___common___v1___common_pb2___AnyValue - ] = None, - attributes: typing___Optional[ - typing___Iterable[ - opentelemetry___proto___common___v1___common_pb2___KeyValue - ] - ] = None, - dropped_attributes_count: typing___Optional[builtin___int] = None, - flags: typing___Optional[builtin___int] = None, - trace_id: typing___Optional[builtin___bytes] = None, - span_id: typing___Optional[builtin___bytes] = None, + time_unix_nano: builtins.int = ..., + severity_number: global___SeverityNumber.V = ..., + severity_text: typing.Text = ..., + name: typing.Text = ..., + body: typing.Optional[ + opentelemetry.proto.common.v1.common_pb2.AnyValue + ] = ..., + attributes: typing.Optional[ + typing.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue] + ] = ..., + dropped_attributes_count: builtins.int = ..., + flags: builtins.int = ..., + trace_id: builtins.bytes = ..., + span_id: builtins.bytes = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions___Literal["body", b"body"] - ) -> builtin___bool: ... + self, field_name: typing_extensions.Literal["body", b"body"] + ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions___Literal[ + field_name: typing_extensions.Literal[ "attributes", b"attributes", "body", @@ -269,4 +250,4 @@ class LogRecord(google___protobuf___message___Message): ], ) -> None: ... -type___LogRecord = LogRecord +global___LogRecord = LogRecord diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi index eeb17d2f31..7218e03264 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi @@ -1,104 +1,88 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.resource.v1.resource_pb2 import ( - Resource as opentelemetry___proto___resource___v1___resource_pb2___Resource, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, - Text as typing___Text, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class MetricConfigRequest(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - last_known_fingerprint: builtin___bytes = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import opentelemetry.proto.resource.v1.resource_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class MetricConfigRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_FIELD_NUMBER: builtins.int + LAST_KNOWN_FINGERPRINT_FIELD_NUMBER: builtins.int + last_known_fingerprint: builtins.bytes = ... @property - def resource(self) -> opentelemetry___proto___resource___v1___resource_pb2___Resource: ... + def resource(self) -> opentelemetry.proto.resource.v1.resource_pb2.Resource: ... def __init__(self, *, - resource : typing___Optional[opentelemetry___proto___resource___v1___resource_pb2___Resource] = None, - last_known_fingerprint : typing___Optional[builtin___bytes] = None, + resource : typing.Optional[opentelemetry.proto.resource.v1.resource_pb2.Resource] = ..., + last_known_fingerprint : builtins.bytes = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"resource",b"resource"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"last_known_fingerprint",b"last_known_fingerprint",u"resource",b"resource"]) -> None: ... -type___MetricConfigRequest = MetricConfigRequest - -class MetricConfigResponse(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Schedule(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Pattern(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - equals: typing___Text = ... - starts_with: typing___Text = ... + def HasField(self, field_name: typing_extensions.Literal[u"resource",b"resource"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"last_known_fingerprint",b"last_known_fingerprint",u"resource",b"resource"]) -> None: ... +global___MetricConfigRequest = MetricConfigRequest + +class MetricConfigResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Schedule(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Pattern(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EQUALS_FIELD_NUMBER: builtins.int + STARTS_WITH_FIELD_NUMBER: builtins.int + equals: typing.Text = ... + starts_with: typing.Text = ... def __init__(self, *, - equals : typing___Optional[typing___Text] = None, - starts_with : typing___Optional[typing___Text] = None, + equals : typing.Text = ..., + starts_with : typing.Text = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"equals",b"equals",u"match",b"match",u"starts_with",b"starts_with"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"equals",b"equals",u"match",b"match",u"starts_with",b"starts_with"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"match",b"match"]) -> typing_extensions___Literal["equals","starts_with"]: ... - type___Pattern = Pattern + def HasField(self, field_name: typing_extensions.Literal[u"equals",b"equals",u"match",b"match",u"starts_with",b"starts_with"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"equals",b"equals",u"match",b"match",u"starts_with",b"starts_with"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"match",b"match"]) -> typing_extensions.Literal["equals","starts_with"]: ... - period_sec: builtin___int = ... + EXCLUSION_PATTERNS_FIELD_NUMBER: builtins.int + INCLUSION_PATTERNS_FIELD_NUMBER: builtins.int + PERIOD_SEC_FIELD_NUMBER: builtins.int + period_sec: builtins.int = ... @property - def exclusion_patterns(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MetricConfigResponse.Schedule.Pattern]: ... + def exclusion_patterns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MetricConfigResponse.Schedule.Pattern]: ... @property - def inclusion_patterns(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MetricConfigResponse.Schedule.Pattern]: ... + def inclusion_patterns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MetricConfigResponse.Schedule.Pattern]: ... def __init__(self, *, - exclusion_patterns : typing___Optional[typing___Iterable[type___MetricConfigResponse.Schedule.Pattern]] = None, - inclusion_patterns : typing___Optional[typing___Iterable[type___MetricConfigResponse.Schedule.Pattern]] = None, - period_sec : typing___Optional[builtin___int] = None, + exclusion_patterns : typing.Optional[typing.Iterable[global___MetricConfigResponse.Schedule.Pattern]] = ..., + inclusion_patterns : typing.Optional[typing.Iterable[global___MetricConfigResponse.Schedule.Pattern]] = ..., + period_sec : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"exclusion_patterns",b"exclusion_patterns",u"inclusion_patterns",b"inclusion_patterns",u"period_sec",b"period_sec"]) -> None: ... - type___Schedule = Schedule + def ClearField(self, field_name: typing_extensions.Literal[u"exclusion_patterns",b"exclusion_patterns",u"inclusion_patterns",b"inclusion_patterns",u"period_sec",b"period_sec"]) -> None: ... - fingerprint: builtin___bytes = ... - suggested_wait_time_sec: builtin___int = ... + FINGERPRINT_FIELD_NUMBER: builtins.int + SCHEDULES_FIELD_NUMBER: builtins.int + SUGGESTED_WAIT_TIME_SEC_FIELD_NUMBER: builtins.int + fingerprint: builtins.bytes = ... + suggested_wait_time_sec: builtins.int = ... @property - def schedules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MetricConfigResponse.Schedule]: ... + def schedules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MetricConfigResponse.Schedule]: ... def __init__(self, *, - fingerprint : typing___Optional[builtin___bytes] = None, - schedules : typing___Optional[typing___Iterable[type___MetricConfigResponse.Schedule]] = None, - suggested_wait_time_sec : typing___Optional[builtin___int] = None, + fingerprint : builtins.bytes = ..., + schedules : typing.Optional[typing.Iterable[global___MetricConfigResponse.Schedule]] = ..., + suggested_wait_time_sec : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"fingerprint",b"fingerprint",u"schedules",b"schedules",u"suggested_wait_time_sec",b"suggested_wait_time_sec"]) -> None: ... -type___MetricConfigResponse = MetricConfigResponse + def ClearField(self, field_name: typing_extensions.Literal[u"fingerprint",b"fingerprint",u"schedules",b"schedules",u"suggested_wait_time_sec",b"suggested_wait_time_sec"]) -> None: ... +global___MetricConfigResponse = MetricConfigResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py index 62956103e8..4e98c560fd 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py @@ -21,7 +21,7 @@ package='opentelemetry.proto.metrics.v1', syntax='proto3', serialized_options=b'\n!io.opentelemetry.proto.metrics.v1B\014MetricsProtoP\001Z?github.com/open-telemetry/opentelemetry-proto/gen/go/metrics/v1', - serialized_pb=b'\n,opentelemetry/proto/metrics/v1/metrics.proto\x12\x1eopentelemetry.proto.metrics.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"\xb6\x01\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x66\n\x1finstrumentation_library_metrics\x18\x02 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics\"\xb0\x01\n\x1dInstrumentationLibraryMetrics\x12V\n\x17instrumentation_library\x18\x01 \x01(\x0b\x32\x35.opentelemetry.proto.common.v1.InstrumentationLibrary\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\"\xd5\x03\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04unit\x18\x03 \x01(\t\x12=\n\tint_gauge\x18\x04 \x01(\x0b\x32(.opentelemetry.proto.metrics.v1.IntGaugeH\x00\x12\x43\n\x0c\x64ouble_gauge\x18\x05 \x01(\x0b\x32+.opentelemetry.proto.metrics.v1.DoubleGaugeH\x00\x12\x39\n\x07int_sum\x18\x06 \x01(\x0b\x32&.opentelemetry.proto.metrics.v1.IntSumH\x00\x12?\n\ndouble_sum\x18\x07 \x01(\x0b\x32).opentelemetry.proto.metrics.v1.DoubleSumH\x00\x12\x45\n\rint_histogram\x18\x08 \x01(\x0b\x32,.opentelemetry.proto.metrics.v1.IntHistogramH\x00\x12K\n\x10\x64ouble_histogram\x18\t \x01(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleHistogramH\x00\x42\x06\n\x04\x64\x61ta\"M\n\x08IntGauge\x12\x41\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.IntDataPoint\"S\n\x0b\x44oubleGauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleDataPoint\"\xba\x01\n\x06IntSum\x12\x41\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.IntDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\x12\x14\n\x0cis_monotonic\x18\x03 \x01(\x08\"\xc0\x01\n\tDoubleSum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\x12\x14\n\x0cis_monotonic\x18\x03 \x01(\x08\"\xb3\x01\n\x0cIntHistogram\x12J\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x35.opentelemetry.proto.metrics.v1.IntHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xb9\x01\n\x0f\x44oubleHistogram\x12M\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x38.opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xd2\x01\n\x0cIntDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05value\x18\x04 \x01(\x10\x12>\n\texemplars\x18\x05 \x03(\x0b\x32+.opentelemetry.proto.metrics.v1.IntExemplar\"\xd8\x01\n\x0f\x44oubleDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05value\x18\x04 \x01(\x01\x12\x41\n\texemplars\x18\x05 \x03(\x0b\x32..opentelemetry.proto.metrics.v1.DoubleExemplar\"\x98\x02\n\x15IntHistogramDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x10\x12\x15\n\rbucket_counts\x18\x06 \x03(\x06\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x12>\n\texemplars\x18\x08 \x03(\x0b\x32+.opentelemetry.proto.metrics.v1.IntExemplar\"\x9e\x02\n\x18\x44oubleHistogramDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x06\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x12\x41\n\texemplars\x18\x08 \x03(\x0b\x32..opentelemetry.proto.metrics.v1.DoubleExemplar\"\x9f\x01\n\x0bIntExemplar\x12\x46\n\x0f\x66iltered_labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\r\n\x05value\x18\x03 \x01(\x10\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\"\xa2\x01\n\x0e\x44oubleExemplar\x12\x46\n\x0f\x66iltered_labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\r\n\x05value\x18\x03 \x01(\x01\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c*\x8c\x01\n\x16\x41ggregationTemporality\x12\'\n#AGGREGATION_TEMPORALITY_UNSPECIFIED\x10\x00\x12!\n\x1d\x41GGREGATION_TEMPORALITY_DELTA\x10\x01\x12&\n\"AGGREGATION_TEMPORALITY_CUMULATIVE\x10\x02\x42t\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z?github.com/open-telemetry/opentelemetry-proto/gen/go/metrics/v1b\x06proto3' + serialized_pb=b'\n,opentelemetry/proto/metrics/v1/metrics.proto\x12\x1eopentelemetry.proto.metrics.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"\xb6\x01\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x66\n\x1finstrumentation_library_metrics\x18\x02 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics\"\xb0\x01\n\x1dInstrumentationLibraryMetrics\x12V\n\x17instrumentation_library\x18\x01 \x01(\x0b\x32\x35.opentelemetry.proto.common.v1.InstrumentationLibrary\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\"\x9e\x04\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04unit\x18\x03 \x01(\t\x12=\n\tint_gauge\x18\x04 \x01(\x0b\x32(.opentelemetry.proto.metrics.v1.IntGaugeH\x00\x12\x43\n\x0c\x64ouble_gauge\x18\x05 \x01(\x0b\x32+.opentelemetry.proto.metrics.v1.DoubleGaugeH\x00\x12\x39\n\x07int_sum\x18\x06 \x01(\x0b\x32&.opentelemetry.proto.metrics.v1.IntSumH\x00\x12?\n\ndouble_sum\x18\x07 \x01(\x0b\x32).opentelemetry.proto.metrics.v1.DoubleSumH\x00\x12\x45\n\rint_histogram\x18\x08 \x01(\x0b\x32,.opentelemetry.proto.metrics.v1.IntHistogramH\x00\x12K\n\x10\x64ouble_histogram\x18\t \x01(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleHistogramH\x00\x12G\n\x0e\x64ouble_summary\x18\x0b \x01(\x0b\x32-.opentelemetry.proto.metrics.v1.DoubleSummaryH\x00\x42\x06\n\x04\x64\x61ta\"M\n\x08IntGauge\x12\x41\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.IntDataPoint\"S\n\x0b\x44oubleGauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleDataPoint\"\xba\x01\n\x06IntSum\x12\x41\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.IntDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\x12\x14\n\x0cis_monotonic\x18\x03 \x01(\x08\"\xc0\x01\n\tDoubleSum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\x12\x14\n\x0cis_monotonic\x18\x03 \x01(\x08\"\xb3\x01\n\x0cIntHistogram\x12J\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x35.opentelemetry.proto.metrics.v1.IntHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xb9\x01\n\x0f\x44oubleHistogram\x12M\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x38.opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\\\n\rDoubleSummary\x12K\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x36.opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint\"\xd2\x01\n\x0cIntDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05value\x18\x04 \x01(\x10\x12>\n\texemplars\x18\x05 \x03(\x0b\x32+.opentelemetry.proto.metrics.v1.IntExemplar\"\xd8\x01\n\x0f\x44oubleDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05value\x18\x04 \x01(\x01\x12\x41\n\texemplars\x18\x05 \x03(\x0b\x32..opentelemetry.proto.metrics.v1.DoubleExemplar\"\x98\x02\n\x15IntHistogramDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x10\x12\x15\n\rbucket_counts\x18\x06 \x03(\x06\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x12>\n\texemplars\x18\x08 \x03(\x0b\x32+.opentelemetry.proto.metrics.v1.IntExemplar\"\x9e\x02\n\x18\x44oubleHistogramDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12\x15\n\rbucket_counts\x18\x06 \x03(\x06\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x12\x41\n\texemplars\x18\x08 \x03(\x0b\x32..opentelemetry.proto.metrics.v1.DoubleExemplar\"\xbe\x02\n\x16\x44oubleSummaryDataPoint\x12=\n\x06labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\r\n\x05\x63ount\x18\x04 \x01(\x06\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12_\n\x0fquantile_values\x18\x06 \x03(\x0b\x32\x46.opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.ValueAtQuantile\x1a\x32\n\x0fValueAtQuantile\x12\x10\n\x08quantile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01\"\x9f\x01\n\x0bIntExemplar\x12\x46\n\x0f\x66iltered_labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\r\n\x05value\x18\x03 \x01(\x10\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\"\xa2\x01\n\x0e\x44oubleExemplar\x12\x46\n\x0f\x66iltered_labels\x18\x01 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\r\n\x05value\x18\x03 \x01(\x01\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c*\x8c\x01\n\x16\x41ggregationTemporality\x12\'\n#AGGREGATION_TEMPORALITY_UNSPECIFIED\x10\x00\x12!\n\x1d\x41GGREGATION_TEMPORALITY_DELTA\x10\x01\x12&\n\"AGGREGATION_TEMPORALITY_CUMULATIVE\x10\x02\x42t\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z?github.com/open-telemetry/opentelemetry-proto/gen/go/metrics/v1b\x06proto3' , dependencies=[opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2.DESCRIPTOR,opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2.DESCRIPTOR,]) @@ -46,8 +46,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3258, - serialized_end=3398, + serialized_start=3746, + serialized_end=3886, ) _sym_db.RegisterEnumDescriptor(_AGGREGATIONTEMPORALITY) @@ -204,6 +204,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double_summary', full_name='opentelemetry.proto.metrics.v1.Metric.double_summary', index=9, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -220,7 +227,7 @@ index=0, containing_type=None, fields=[]), ], serialized_start=537, - serialized_end=1006, + serialized_end=1079, ) @@ -250,8 +257,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1008, - serialized_end=1085, + serialized_start=1081, + serialized_end=1158, ) @@ -281,8 +288,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1087, - serialized_end=1170, + serialized_start=1160, + serialized_end=1243, ) @@ -326,8 +333,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1173, - serialized_end=1359, + serialized_start=1246, + serialized_end=1432, ) @@ -371,8 +378,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1362, - serialized_end=1554, + serialized_start=1435, + serialized_end=1627, ) @@ -409,8 +416,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1557, - serialized_end=1736, + serialized_start=1630, + serialized_end=1809, ) @@ -447,8 +454,39 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1739, - serialized_end=1924, + serialized_start=1812, + serialized_end=1997, +) + + +_DOUBLESUMMARY = _descriptor.Descriptor( + name='DoubleSummary', + full_name='opentelemetry.proto.metrics.v1.DoubleSummary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data_points', full_name='opentelemetry.proto.metrics.v1.DoubleSummary.data_points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1999, + serialized_end=2091, ) @@ -506,8 +544,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1927, - serialized_end=2137, + serialized_start=2094, + serialized_end=2304, ) @@ -565,8 +603,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2140, - serialized_end=2356, + serialized_start=2307, + serialized_end=2523, ) @@ -645,8 +683,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2359, - serialized_end=2639, + serialized_start=2526, + serialized_end=2806, ) @@ -725,8 +763,111 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2642, - serialized_end=2928, + serialized_start=2809, + serialized_end=3095, +) + + +_DOUBLESUMMARYDATAPOINT_VALUEATQUANTILE = _descriptor.Descriptor( + name='ValueAtQuantile', + full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.ValueAtQuantile', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='quantile', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.ValueAtQuantile.quantile', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.ValueAtQuantile.value', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3366, + serialized_end=3416, +) + +_DOUBLESUMMARYDATAPOINT = _descriptor.Descriptor( + name='DoubleSummaryDataPoint', + full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='labels', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.labels', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.start_time_unix_nano', index=1, + number=2, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.time_unix_nano', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='count', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.count', index=3, + number=4, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sum', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.sum', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quantile_values', full_name='opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.quantile_values', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_DOUBLESUMMARYDATAPOINT_VALUEATQUANTILE, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3098, + serialized_end=3416, ) @@ -784,8 +925,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2931, - serialized_end=3090, + serialized_start=3419, + serialized_end=3578, ) @@ -843,8 +984,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3093, - serialized_end=3255, + serialized_start=3581, + serialized_end=3743, ) _RESOURCEMETRICS.fields_by_name['resource'].message_type = opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2._RESOURCE @@ -857,6 +998,7 @@ _METRIC.fields_by_name['double_sum'].message_type = _DOUBLESUM _METRIC.fields_by_name['int_histogram'].message_type = _INTHISTOGRAM _METRIC.fields_by_name['double_histogram'].message_type = _DOUBLEHISTOGRAM +_METRIC.fields_by_name['double_summary'].message_type = _DOUBLESUMMARY _METRIC.oneofs_by_name['data'].fields.append( _METRIC.fields_by_name['int_gauge']) _METRIC.fields_by_name['int_gauge'].containing_oneof = _METRIC.oneofs_by_name['data'] @@ -875,6 +1017,9 @@ _METRIC.oneofs_by_name['data'].fields.append( _METRIC.fields_by_name['double_histogram']) _METRIC.fields_by_name['double_histogram'].containing_oneof = _METRIC.oneofs_by_name['data'] +_METRIC.oneofs_by_name['data'].fields.append( + _METRIC.fields_by_name['double_summary']) +_METRIC.fields_by_name['double_summary'].containing_oneof = _METRIC.oneofs_by_name['data'] _INTGAUGE.fields_by_name['data_points'].message_type = _INTDATAPOINT _DOUBLEGAUGE.fields_by_name['data_points'].message_type = _DOUBLEDATAPOINT _INTSUM.fields_by_name['data_points'].message_type = _INTDATAPOINT @@ -885,6 +1030,7 @@ _INTHISTOGRAM.fields_by_name['aggregation_temporality'].enum_type = _AGGREGATIONTEMPORALITY _DOUBLEHISTOGRAM.fields_by_name['data_points'].message_type = _DOUBLEHISTOGRAMDATAPOINT _DOUBLEHISTOGRAM.fields_by_name['aggregation_temporality'].enum_type = _AGGREGATIONTEMPORALITY +_DOUBLESUMMARY.fields_by_name['data_points'].message_type = _DOUBLESUMMARYDATAPOINT _INTDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE _INTDATAPOINT.fields_by_name['exemplars'].message_type = _INTEXEMPLAR _DOUBLEDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE @@ -893,6 +1039,9 @@ _INTHISTOGRAMDATAPOINT.fields_by_name['exemplars'].message_type = _INTEXEMPLAR _DOUBLEHISTOGRAMDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE _DOUBLEHISTOGRAMDATAPOINT.fields_by_name['exemplars'].message_type = _DOUBLEEXEMPLAR +_DOUBLESUMMARYDATAPOINT_VALUEATQUANTILE.containing_type = _DOUBLESUMMARYDATAPOINT +_DOUBLESUMMARYDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE +_DOUBLESUMMARYDATAPOINT.fields_by_name['quantile_values'].message_type = _DOUBLESUMMARYDATAPOINT_VALUEATQUANTILE _INTEXEMPLAR.fields_by_name['filtered_labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE _DOUBLEEXEMPLAR.fields_by_name['filtered_labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE DESCRIPTOR.message_types_by_name['ResourceMetrics'] = _RESOURCEMETRICS @@ -904,10 +1053,12 @@ DESCRIPTOR.message_types_by_name['DoubleSum'] = _DOUBLESUM DESCRIPTOR.message_types_by_name['IntHistogram'] = _INTHISTOGRAM DESCRIPTOR.message_types_by_name['DoubleHistogram'] = _DOUBLEHISTOGRAM +DESCRIPTOR.message_types_by_name['DoubleSummary'] = _DOUBLESUMMARY DESCRIPTOR.message_types_by_name['IntDataPoint'] = _INTDATAPOINT DESCRIPTOR.message_types_by_name['DoubleDataPoint'] = _DOUBLEDATAPOINT DESCRIPTOR.message_types_by_name['IntHistogramDataPoint'] = _INTHISTOGRAMDATAPOINT DESCRIPTOR.message_types_by_name['DoubleHistogramDataPoint'] = _DOUBLEHISTOGRAMDATAPOINT +DESCRIPTOR.message_types_by_name['DoubleSummaryDataPoint'] = _DOUBLESUMMARYDATAPOINT DESCRIPTOR.message_types_by_name['IntExemplar'] = _INTEXEMPLAR DESCRIPTOR.message_types_by_name['DoubleExemplar'] = _DOUBLEEXEMPLAR DESCRIPTOR.enum_types_by_name['AggregationTemporality'] = _AGGREGATIONTEMPORALITY @@ -976,6 +1127,13 @@ }) _sym_db.RegisterMessage(DoubleHistogram) +DoubleSummary = _reflection.GeneratedProtocolMessageType('DoubleSummary', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLESUMMARY, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleSummary) + }) +_sym_db.RegisterMessage(DoubleSummary) + IntDataPoint = _reflection.GeneratedProtocolMessageType('IntDataPoint', (_message.Message,), { 'DESCRIPTOR' : _INTDATAPOINT, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' @@ -1004,6 +1162,21 @@ }) _sym_db.RegisterMessage(DoubleHistogramDataPoint) +DoubleSummaryDataPoint = _reflection.GeneratedProtocolMessageType('DoubleSummaryDataPoint', (_message.Message,), { + + 'ValueAtQuantile' : _reflection.GeneratedProtocolMessageType('ValueAtQuantile', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLESUMMARYDATAPOINT_VALUEATQUANTILE, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint.ValueAtQuantile) + }) + , + 'DESCRIPTOR' : _DOUBLESUMMARYDATAPOINT, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleSummaryDataPoint) + }) +_sym_db.RegisterMessage(DoubleSummaryDataPoint) +_sym_db.RegisterMessage(DoubleSummaryDataPoint.ValueAtQuantile) + IntExemplar = _reflection.GeneratedProtocolMessageType('IntExemplar', (_message.Message,), { 'DESCRIPTOR' : _INTEXEMPLAR, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi index 5462660f08..d4e03f3a39 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi @@ -1,376 +1,465 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, - RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, -) - -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.common.v1.common_pb2 import ( - InstrumentationLibrary as opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary, - StringKeyValue as opentelemetry___proto___common___v1___common_pb2___StringKeyValue, -) - -from opentelemetry.proto.resource.v1.resource_pb2 import ( - Resource as opentelemetry___proto___resource___v1___resource_pb2___Resource, -) - -from typing import ( - Iterable as typing___Iterable, - NewType as typing___NewType, - Optional as typing___Optional, - Text as typing___Text, - cast as typing___cast, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -AggregationTemporalityValue = typing___NewType('AggregationTemporalityValue', builtin___int) -type___AggregationTemporalityValue = AggregationTemporalityValue -AggregationTemporality: _AggregationTemporality -class _AggregationTemporality(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[AggregationTemporalityValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - AGGREGATION_TEMPORALITY_UNSPECIFIED = typing___cast(AggregationTemporalityValue, 0) - AGGREGATION_TEMPORALITY_DELTA = typing___cast(AggregationTemporalityValue, 1) - AGGREGATION_TEMPORALITY_CUMULATIVE = typing___cast(AggregationTemporalityValue, 2) -AGGREGATION_TEMPORALITY_UNSPECIFIED = typing___cast(AggregationTemporalityValue, 0) -AGGREGATION_TEMPORALITY_DELTA = typing___cast(AggregationTemporalityValue, 1) -AGGREGATION_TEMPORALITY_CUMULATIVE = typing___cast(AggregationTemporalityValue, 2) -type___AggregationTemporality = AggregationTemporality - -class ResourceMetrics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import opentelemetry.proto.common.v1.common_pb2 +import opentelemetry.proto.resource.v1.resource_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +global___AggregationTemporality = AggregationTemporality +class _AggregationTemporality(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AggregationTemporality.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + AGGREGATION_TEMPORALITY_UNSPECIFIED = AggregationTemporality.V(0) + AGGREGATION_TEMPORALITY_DELTA = AggregationTemporality.V(1) + AGGREGATION_TEMPORALITY_CUMULATIVE = AggregationTemporality.V(2) +class AggregationTemporality(metaclass=_AggregationTemporality): + V = typing.NewType('V', builtins.int) +AGGREGATION_TEMPORALITY_UNSPECIFIED = AggregationTemporality.V(0) +AGGREGATION_TEMPORALITY_DELTA = AggregationTemporality.V(1) +AGGREGATION_TEMPORALITY_CUMULATIVE = AggregationTemporality.V(2) + +class ResourceMetrics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_FIELD_NUMBER: builtins.int + INSTRUMENTATION_LIBRARY_METRICS_FIELD_NUMBER: builtins.int @property - def resource(self) -> opentelemetry___proto___resource___v1___resource_pb2___Resource: ... + def resource(self) -> opentelemetry.proto.resource.v1.resource_pb2.Resource: ... @property - def instrumentation_library_metrics(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___InstrumentationLibraryMetrics]: ... + def instrumentation_library_metrics(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InstrumentationLibraryMetrics]: ... def __init__(self, *, - resource : typing___Optional[opentelemetry___proto___resource___v1___resource_pb2___Resource] = None, - instrumentation_library_metrics : typing___Optional[typing___Iterable[type___InstrumentationLibraryMetrics]] = None, + resource : typing.Optional[opentelemetry.proto.resource.v1.resource_pb2.Resource] = ..., + instrumentation_library_metrics : typing.Optional[typing.Iterable[global___InstrumentationLibraryMetrics]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"resource",b"resource"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"instrumentation_library_metrics",b"instrumentation_library_metrics",u"resource",b"resource"]) -> None: ... -type___ResourceMetrics = ResourceMetrics + def HasField(self, field_name: typing_extensions.Literal[u"resource",b"resource"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"instrumentation_library_metrics",b"instrumentation_library_metrics",u"resource",b"resource"]) -> None: ... +global___ResourceMetrics = ResourceMetrics -class InstrumentationLibraryMetrics(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class InstrumentationLibraryMetrics(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INSTRUMENTATION_LIBRARY_FIELD_NUMBER: builtins.int + METRICS_FIELD_NUMBER: builtins.int @property - def instrumentation_library(self) -> opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary: ... + def instrumentation_library(self) -> opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary: ... @property - def metrics(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Metric]: ... + def metrics(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Metric]: ... def __init__(self, *, - instrumentation_library : typing___Optional[opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary] = None, - metrics : typing___Optional[typing___Iterable[type___Metric]] = None, + instrumentation_library : typing.Optional[opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary] = ..., + metrics : typing.Optional[typing.Iterable[global___Metric]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"instrumentation_library",b"instrumentation_library"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"instrumentation_library",b"instrumentation_library",u"metrics",b"metrics"]) -> None: ... -type___InstrumentationLibraryMetrics = InstrumentationLibraryMetrics + def HasField(self, field_name: typing_extensions.Literal[u"instrumentation_library",b"instrumentation_library"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"instrumentation_library",b"instrumentation_library",u"metrics",b"metrics"]) -> None: ... +global___InstrumentationLibraryMetrics = InstrumentationLibraryMetrics + +class Metric(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + UNIT_FIELD_NUMBER: builtins.int + INT_GAUGE_FIELD_NUMBER: builtins.int + DOUBLE_GAUGE_FIELD_NUMBER: builtins.int + INT_SUM_FIELD_NUMBER: builtins.int + DOUBLE_SUM_FIELD_NUMBER: builtins.int + INT_HISTOGRAM_FIELD_NUMBER: builtins.int + DOUBLE_HISTOGRAM_FIELD_NUMBER: builtins.int + DOUBLE_SUMMARY_FIELD_NUMBER: builtins.int + name: typing.Text = ... + description: typing.Text = ... + unit: typing.Text = ... -class Metric(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - name: typing___Text = ... - description: typing___Text = ... - unit: typing___Text = ... + @property + def int_gauge(self) -> global___IntGauge: ... @property - def int_gauge(self) -> type___IntGauge: ... + def double_gauge(self) -> global___DoubleGauge: ... @property - def double_gauge(self) -> type___DoubleGauge: ... + def int_sum(self) -> global___IntSum: ... @property - def int_sum(self) -> type___IntSum: ... + def double_sum(self) -> global___DoubleSum: ... @property - def double_sum(self) -> type___DoubleSum: ... + def int_histogram(self) -> global___IntHistogram: ... @property - def int_histogram(self) -> type___IntHistogram: ... + def double_histogram(self) -> global___DoubleHistogram: ... @property - def double_histogram(self) -> type___DoubleHistogram: ... + def double_summary(self) -> global___DoubleSummary: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - unit : typing___Optional[typing___Text] = None, - int_gauge : typing___Optional[type___IntGauge] = None, - double_gauge : typing___Optional[type___DoubleGauge] = None, - int_sum : typing___Optional[type___IntSum] = None, - double_sum : typing___Optional[type___DoubleSum] = None, - int_histogram : typing___Optional[type___IntHistogram] = None, - double_histogram : typing___Optional[type___DoubleHistogram] = None, + name : typing.Text = ..., + description : typing.Text = ..., + unit : typing.Text = ..., + int_gauge : typing.Optional[global___IntGauge] = ..., + double_gauge : typing.Optional[global___DoubleGauge] = ..., + int_sum : typing.Optional[global___IntSum] = ..., + double_sum : typing.Optional[global___DoubleSum] = ..., + int_histogram : typing.Optional[global___IntHistogram] = ..., + double_histogram : typing.Optional[global___DoubleHistogram] = ..., + double_summary : typing.Optional[global___DoubleSummary] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"data",b"data",u"double_gauge",b"double_gauge",u"double_histogram",b"double_histogram",u"double_sum",b"double_sum",u"int_gauge",b"int_gauge",u"int_histogram",b"int_histogram",u"int_sum",b"int_sum"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"data",b"data",u"description",b"description",u"double_gauge",b"double_gauge",u"double_histogram",b"double_histogram",u"double_sum",b"double_sum",u"int_gauge",b"int_gauge",u"int_histogram",b"int_histogram",u"int_sum",b"int_sum",u"name",b"name",u"unit",b"unit"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"data",b"data"]) -> typing_extensions___Literal["int_gauge","double_gauge","int_sum","double_sum","int_histogram","double_histogram"]: ... -type___Metric = Metric + def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"double_gauge",b"double_gauge",u"double_histogram",b"double_histogram",u"double_sum",b"double_sum",u"double_summary",b"double_summary",u"int_gauge",b"int_gauge",u"int_histogram",b"int_histogram",u"int_sum",b"int_sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"description",b"description",u"double_gauge",b"double_gauge",u"double_histogram",b"double_histogram",u"double_sum",b"double_sum",u"double_summary",b"double_summary",u"int_gauge",b"int_gauge",u"int_histogram",b"int_histogram",u"int_sum",b"int_sum",u"name",b"name",u"unit",b"unit"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"data",b"data"]) -> typing_extensions.Literal["int_gauge","double_gauge","int_sum","double_sum","int_histogram","double_histogram","double_summary"]: ... +global___Metric = Metric -class IntGauge(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class IntGauge(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___IntDataPoint]] = None, + data_points : typing.Optional[typing.Iterable[global___IntDataPoint]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"data_points",b"data_points"]) -> None: ... -type___IntGauge = IntGauge + def ClearField(self, field_name: typing_extensions.Literal[u"data_points",b"data_points"]) -> None: ... +global___IntGauge = IntGauge -class DoubleGauge(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class DoubleGauge(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___DoubleDataPoint]] = None, + data_points : typing.Optional[typing.Iterable[global___DoubleDataPoint]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"data_points",b"data_points"]) -> None: ... -type___DoubleGauge = DoubleGauge + def ClearField(self, field_name: typing_extensions.Literal[u"data_points",b"data_points"]) -> None: ... +global___DoubleGauge = DoubleGauge -class IntSum(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - aggregation_temporality: type___AggregationTemporalityValue = ... - is_monotonic: builtin___bool = ... +class IntSum(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int + AGGREGATION_TEMPORALITY_FIELD_NUMBER: builtins.int + IS_MONOTONIC_FIELD_NUMBER: builtins.int + aggregation_temporality: global___AggregationTemporality.V = ... + is_monotonic: builtins.bool = ... @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___IntDataPoint]] = None, - aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, - is_monotonic : typing___Optional[builtin___bool] = None, + data_points : typing.Optional[typing.Iterable[global___IntDataPoint]] = ..., + aggregation_temporality : global___AggregationTemporality.V = ..., + is_monotonic : builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points",u"is_monotonic",b"is_monotonic"]) -> None: ... -type___IntSum = IntSum + def ClearField(self, field_name: typing_extensions.Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points",u"is_monotonic",b"is_monotonic"]) -> None: ... +global___IntSum = IntSum -class DoubleSum(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - aggregation_temporality: type___AggregationTemporalityValue = ... - is_monotonic: builtin___bool = ... +class DoubleSum(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int + AGGREGATION_TEMPORALITY_FIELD_NUMBER: builtins.int + IS_MONOTONIC_FIELD_NUMBER: builtins.int + aggregation_temporality: global___AggregationTemporality.V = ... + is_monotonic: builtins.bool = ... @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___DoubleDataPoint]] = None, - aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, - is_monotonic : typing___Optional[builtin___bool] = None, + data_points : typing.Optional[typing.Iterable[global___DoubleDataPoint]] = ..., + aggregation_temporality : global___AggregationTemporality.V = ..., + is_monotonic : builtins.bool = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points",u"is_monotonic",b"is_monotonic"]) -> None: ... -type___DoubleSum = DoubleSum + def ClearField(self, field_name: typing_extensions.Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points",u"is_monotonic",b"is_monotonic"]) -> None: ... +global___DoubleSum = DoubleSum -class IntHistogram(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - aggregation_temporality: type___AggregationTemporalityValue = ... +class IntHistogram(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int + AGGREGATION_TEMPORALITY_FIELD_NUMBER: builtins.int + aggregation_temporality: global___AggregationTemporality.V = ... @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntHistogramDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntHistogramDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___IntHistogramDataPoint]] = None, - aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, + data_points : typing.Optional[typing.Iterable[global___IntHistogramDataPoint]] = ..., + aggregation_temporality : global___AggregationTemporality.V = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... -type___IntHistogram = IntHistogram + def ClearField(self, field_name: typing_extensions.Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... +global___IntHistogram = IntHistogram -class DoubleHistogram(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - aggregation_temporality: type___AggregationTemporalityValue = ... +class DoubleHistogram(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int + AGGREGATION_TEMPORALITY_FIELD_NUMBER: builtins.int + aggregation_temporality: global___AggregationTemporality.V = ... @property - def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleHistogramDataPoint]: ... + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleHistogramDataPoint]: ... def __init__(self, *, - data_points : typing___Optional[typing___Iterable[type___DoubleHistogramDataPoint]] = None, - aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, + data_points : typing.Optional[typing.Iterable[global___DoubleHistogramDataPoint]] = ..., + aggregation_temporality : global___AggregationTemporality.V = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... -type___DoubleHistogram = DoubleHistogram + def ClearField(self, field_name: typing_extensions.Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... +global___DoubleHistogram = DoubleHistogram + +class DoubleSummary(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_POINTS_FIELD_NUMBER: builtins.int + + @property + def data_points(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleSummaryDataPoint]: ... -class IntDataPoint(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start_time_unix_nano: builtin___int = ... - time_unix_nano: builtin___int = ... - value: builtin___int = ... + def __init__(self, + *, + data_points : typing.Optional[typing.Iterable[global___DoubleSummaryDataPoint]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_points",b"data_points"]) -> None: ... +global___DoubleSummary = DoubleSummary + +class IntDataPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LABELS_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + EXEMPLARS_FIELD_NUMBER: builtins.int + start_time_unix_nano: builtins.int = ... + time_unix_nano: builtins.int = ... + value: builtins.int = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... @property - def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntExemplar]: ... + def exemplars(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntExemplar]: ... def __init__(self, *, - labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - start_time_unix_nano : typing___Optional[builtin___int] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - value : typing___Optional[builtin___int] = None, - exemplars : typing___Optional[typing___Iterable[type___IntExemplar]] = None, + labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + start_time_unix_nano : builtins.int = ..., + time_unix_nano : builtins.int = ..., + value : builtins.int = ..., + exemplars : typing.Optional[typing.Iterable[global___IntExemplar]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"exemplars",b"exemplars",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"time_unix_nano",b"time_unix_nano",u"value",b"value"]) -> None: ... -type___IntDataPoint = IntDataPoint - -class DoubleDataPoint(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start_time_unix_nano: builtin___int = ... - time_unix_nano: builtin___int = ... - value: builtin___float = ... + def ClearField(self, field_name: typing_extensions.Literal[u"exemplars",b"exemplars",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"time_unix_nano",b"time_unix_nano",u"value",b"value"]) -> None: ... +global___IntDataPoint = IntDataPoint + +class DoubleDataPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LABELS_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + EXEMPLARS_FIELD_NUMBER: builtins.int + start_time_unix_nano: builtins.int = ... + time_unix_nano: builtins.int = ... + value: builtins.float = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... @property - def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleExemplar]: ... + def exemplars(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleExemplar]: ... def __init__(self, *, - labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - start_time_unix_nano : typing___Optional[builtin___int] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - value : typing___Optional[builtin___float] = None, - exemplars : typing___Optional[typing___Iterable[type___DoubleExemplar]] = None, + labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + start_time_unix_nano : builtins.int = ..., + time_unix_nano : builtins.int = ..., + value : builtins.float = ..., + exemplars : typing.Optional[typing.Iterable[global___DoubleExemplar]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"exemplars",b"exemplars",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"time_unix_nano",b"time_unix_nano",u"value",b"value"]) -> None: ... -type___DoubleDataPoint = DoubleDataPoint - -class IntHistogramDataPoint(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start_time_unix_nano: builtin___int = ... - time_unix_nano: builtin___int = ... - count: builtin___int = ... - sum: builtin___int = ... - bucket_counts: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - explicit_bounds: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... + def ClearField(self, field_name: typing_extensions.Literal[u"exemplars",b"exemplars",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"time_unix_nano",b"time_unix_nano",u"value",b"value"]) -> None: ... +global___DoubleDataPoint = DoubleDataPoint + +class IntHistogramDataPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LABELS_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + BUCKET_COUNTS_FIELD_NUMBER: builtins.int + EXPLICIT_BOUNDS_FIELD_NUMBER: builtins.int + EXEMPLARS_FIELD_NUMBER: builtins.int + start_time_unix_nano: builtins.int = ... + time_unix_nano: builtins.int = ... + count: builtins.int = ... + sum: builtins.int = ... + bucket_counts: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int] = ... + explicit_bounds: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float] = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... @property - def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntExemplar]: ... + def exemplars(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IntExemplar]: ... def __init__(self, *, - labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - start_time_unix_nano : typing___Optional[builtin___int] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - count : typing___Optional[builtin___int] = None, - sum : typing___Optional[builtin___int] = None, - bucket_counts : typing___Optional[typing___Iterable[builtin___int]] = None, - explicit_bounds : typing___Optional[typing___Iterable[builtin___float]] = None, - exemplars : typing___Optional[typing___Iterable[type___IntExemplar]] = None, + labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + start_time_unix_nano : builtins.int = ..., + time_unix_nano : builtins.int = ..., + count : builtins.int = ..., + sum : builtins.int = ..., + bucket_counts : typing.Optional[typing.Iterable[builtins.int]] = ..., + explicit_bounds : typing.Optional[typing.Iterable[builtins.float]] = ..., + exemplars : typing.Optional[typing.Iterable[global___IntExemplar]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bucket_counts",b"bucket_counts",u"count",b"count",u"exemplars",b"exemplars",u"explicit_bounds",b"explicit_bounds",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... -type___IntHistogramDataPoint = IntHistogramDataPoint - -class DoubleHistogramDataPoint(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - start_time_unix_nano: builtin___int = ... - time_unix_nano: builtin___int = ... - count: builtin___int = ... - sum: builtin___float = ... - bucket_counts: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... - explicit_bounds: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... + def ClearField(self, field_name: typing_extensions.Literal[u"bucket_counts",b"bucket_counts",u"count",b"count",u"exemplars",b"exemplars",u"explicit_bounds",b"explicit_bounds",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... +global___IntHistogramDataPoint = IntHistogramDataPoint + +class DoubleHistogramDataPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LABELS_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + BUCKET_COUNTS_FIELD_NUMBER: builtins.int + EXPLICIT_BOUNDS_FIELD_NUMBER: builtins.int + EXEMPLARS_FIELD_NUMBER: builtins.int + start_time_unix_nano: builtins.int = ... + time_unix_nano: builtins.int = ... + count: builtins.int = ... + sum: builtins.float = ... + bucket_counts: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int] = ... + explicit_bounds: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float] = ... @property - def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... @property - def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleExemplar]: ... + def exemplars(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleExemplar]: ... def __init__(self, *, - labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - start_time_unix_nano : typing___Optional[builtin___int] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - count : typing___Optional[builtin___int] = None, - sum : typing___Optional[builtin___float] = None, - bucket_counts : typing___Optional[typing___Iterable[builtin___int]] = None, - explicit_bounds : typing___Optional[typing___Iterable[builtin___float]] = None, - exemplars : typing___Optional[typing___Iterable[type___DoubleExemplar]] = None, + labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + start_time_unix_nano : builtins.int = ..., + time_unix_nano : builtins.int = ..., + count : builtins.int = ..., + sum : builtins.float = ..., + bucket_counts : typing.Optional[typing.Iterable[builtins.int]] = ..., + explicit_bounds : typing.Optional[typing.Iterable[builtins.float]] = ..., + exemplars : typing.Optional[typing.Iterable[global___DoubleExemplar]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"bucket_counts",b"bucket_counts",u"count",b"count",u"exemplars",b"exemplars",u"explicit_bounds",b"explicit_bounds",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... -type___DoubleHistogramDataPoint = DoubleHistogramDataPoint + def ClearField(self, field_name: typing_extensions.Literal[u"bucket_counts",b"bucket_counts",u"count",b"count",u"exemplars",b"exemplars",u"explicit_bounds",b"explicit_bounds",u"labels",b"labels",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... +global___DoubleHistogramDataPoint = DoubleHistogramDataPoint + +class DoubleSummaryDataPoint(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class ValueAtQuantile(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUANTILE_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + quantile: builtins.float = ... + value: builtins.float = ... + + def __init__(self, + *, + quantile : builtins.float = ..., + value : builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"quantile",b"quantile",u"value",b"value"]) -> None: ... + + LABELS_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + COUNT_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + QUANTILE_VALUES_FIELD_NUMBER: builtins.int + start_time_unix_nano: builtins.int = ... + time_unix_nano: builtins.int = ... + count: builtins.int = ... + sum: builtins.float = ... -class IntExemplar(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - time_unix_nano: builtin___int = ... - value: builtin___int = ... - span_id: builtin___bytes = ... - trace_id: builtin___bytes = ... + @property + def labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... @property - def filtered_labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def quantile_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DoubleSummaryDataPoint.ValueAtQuantile]: ... def __init__(self, *, - filtered_labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - value : typing___Optional[builtin___int] = None, - span_id : typing___Optional[builtin___bytes] = None, - trace_id : typing___Optional[builtin___bytes] = None, + labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + start_time_unix_nano : builtins.int = ..., + time_unix_nano : builtins.int = ..., + count : builtins.int = ..., + sum : builtins.float = ..., + quantile_values : typing.Optional[typing.Iterable[global___DoubleSummaryDataPoint.ValueAtQuantile]] = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"filtered_labels",b"filtered_labels",u"span_id",b"span_id",u"time_unix_nano",b"time_unix_nano",u"trace_id",b"trace_id",u"value",b"value"]) -> None: ... -type___IntExemplar = IntExemplar + def ClearField(self, field_name: typing_extensions.Literal[u"count",b"count",u"labels",b"labels",u"quantile_values",b"quantile_values",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... +global___DoubleSummaryDataPoint = DoubleSummaryDataPoint + +class IntExemplar(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FILTERED_LABELS_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + SPAN_ID_FIELD_NUMBER: builtins.int + TRACE_ID_FIELD_NUMBER: builtins.int + time_unix_nano: builtins.int = ... + value: builtins.int = ... + span_id: builtins.bytes = ... + trace_id: builtins.bytes = ... + + @property + def filtered_labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... -class DoubleExemplar(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - time_unix_nano: builtin___int = ... - value: builtin___float = ... - span_id: builtin___bytes = ... - trace_id: builtin___bytes = ... + def __init__(self, + *, + filtered_labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + time_unix_nano : builtins.int = ..., + value : builtins.int = ..., + span_id : builtins.bytes = ..., + trace_id : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"filtered_labels",b"filtered_labels",u"span_id",b"span_id",u"time_unix_nano",b"time_unix_nano",u"trace_id",b"trace_id",u"value",b"value"]) -> None: ... +global___IntExemplar = IntExemplar + +class DoubleExemplar(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FILTERED_LABELS_FIELD_NUMBER: builtins.int + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + SPAN_ID_FIELD_NUMBER: builtins.int + TRACE_ID_FIELD_NUMBER: builtins.int + time_unix_nano: builtins.int = ... + value: builtins.float = ... + span_id: builtins.bytes = ... + trace_id: builtins.bytes = ... @property - def filtered_labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... + def filtered_labels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]: ... def __init__(self, *, - filtered_labels : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - value : typing___Optional[builtin___float] = None, - span_id : typing___Optional[builtin___bytes] = None, - trace_id : typing___Optional[builtin___bytes] = None, + filtered_labels : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.StringKeyValue]] = ..., + time_unix_nano : builtins.int = ..., + value : builtins.float = ..., + span_id : builtins.bytes = ..., + trace_id : builtins.bytes = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"filtered_labels",b"filtered_labels",u"span_id",b"span_id",u"time_unix_nano",b"time_unix_nano",u"trace_id",b"trace_id",u"value",b"value"]) -> None: ... -type___DoubleExemplar = DoubleExemplar + def ClearField(self, field_name: typing_extensions.Literal[u"filtered_labels",b"filtered_labels",u"span_id",b"span_id",u"time_unix_nano",b"time_unix_nano",u"trace_id",b"trace_id",u"value",b"value"]) -> None: ... +global___DoubleExemplar = DoubleExemplar diff --git a/opentelemetry-proto/src/opentelemetry/proto/resource/v1/resource_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/resource/v1/resource_pb2.pyi index 4f6cb1419e..c2c5881753 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/resource/v1/resource_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/resource/v1/resource_pb2.pyi @@ -1,51 +1,30 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.common.v1.common_pb2 import ( - KeyValue as opentelemetry___proto___common___v1___common_pb2___KeyValue, -) - -from typing import ( - Iterable as typing___Iterable, - Optional as typing___Optional, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class Resource(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - dropped_attributes_count: builtin___int = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import opentelemetry.proto.common.v1.common_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class Resource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ATTRIBUTES_FIELD_NUMBER: builtins.int + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int + dropped_attributes_count: builtins.int = ... @property - def attributes(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___KeyValue]: ... + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.KeyValue]: ... def __init__(self, *, - attributes : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___KeyValue]] = None, - dropped_attributes_count : typing___Optional[builtin___int] = None, + attributes : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue]] = ..., + dropped_attributes_count : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count"]) -> None: ... -type___Resource = Resource + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count"]) -> None: ... +global___Resource = Resource diff --git a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_config_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_config_pb2.pyi index 0b0fe87c62..e02bf3d5ba 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_config_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_config_pb2.pyi @@ -1,113 +1,100 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from typing import ( - NewType as typing___NewType, - Optional as typing___Optional, - cast as typing___cast, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class TraceConfig(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - max_number_of_attributes: builtin___int = ... - max_number_of_timed_events: builtin___int = ... - max_number_of_attributes_per_timed_event: builtin___int = ... - max_number_of_links: builtin___int = ... - max_number_of_attributes_per_link: builtin___int = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class TraceConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSTANT_SAMPLER_FIELD_NUMBER: builtins.int + TRACE_ID_RATIO_BASED_FIELD_NUMBER: builtins.int + RATE_LIMITING_SAMPLER_FIELD_NUMBER: builtins.int + MAX_NUMBER_OF_ATTRIBUTES_FIELD_NUMBER: builtins.int + MAX_NUMBER_OF_TIMED_EVENTS_FIELD_NUMBER: builtins.int + MAX_NUMBER_OF_ATTRIBUTES_PER_TIMED_EVENT_FIELD_NUMBER: builtins.int + MAX_NUMBER_OF_LINKS_FIELD_NUMBER: builtins.int + MAX_NUMBER_OF_ATTRIBUTES_PER_LINK_FIELD_NUMBER: builtins.int + max_number_of_attributes: builtins.int = ... + max_number_of_timed_events: builtins.int = ... + max_number_of_attributes_per_timed_event: builtins.int = ... + max_number_of_links: builtins.int = ... + max_number_of_attributes_per_link: builtins.int = ... @property - def constant_sampler(self) -> type___ConstantSampler: ... + def constant_sampler(self) -> global___ConstantSampler: ... @property - def trace_id_ratio_based(self) -> type___TraceIdRatioBased: ... + def trace_id_ratio_based(self) -> global___TraceIdRatioBased: ... @property - def rate_limiting_sampler(self) -> type___RateLimitingSampler: ... + def rate_limiting_sampler(self) -> global___RateLimitingSampler: ... def __init__(self, *, - constant_sampler : typing___Optional[type___ConstantSampler] = None, - trace_id_ratio_based : typing___Optional[type___TraceIdRatioBased] = None, - rate_limiting_sampler : typing___Optional[type___RateLimitingSampler] = None, - max_number_of_attributes : typing___Optional[builtin___int] = None, - max_number_of_timed_events : typing___Optional[builtin___int] = None, - max_number_of_attributes_per_timed_event : typing___Optional[builtin___int] = None, - max_number_of_links : typing___Optional[builtin___int] = None, - max_number_of_attributes_per_link : typing___Optional[builtin___int] = None, + constant_sampler : typing.Optional[global___ConstantSampler] = ..., + trace_id_ratio_based : typing.Optional[global___TraceIdRatioBased] = ..., + rate_limiting_sampler : typing.Optional[global___RateLimitingSampler] = ..., + max_number_of_attributes : builtins.int = ..., + max_number_of_timed_events : builtins.int = ..., + max_number_of_attributes_per_timed_event : builtins.int = ..., + max_number_of_links : builtins.int = ..., + max_number_of_attributes_per_link : builtins.int = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"constant_sampler",b"constant_sampler",u"rate_limiting_sampler",b"rate_limiting_sampler",u"sampler",b"sampler",u"trace_id_ratio_based",b"trace_id_ratio_based"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"constant_sampler",b"constant_sampler",u"max_number_of_attributes",b"max_number_of_attributes",u"max_number_of_attributes_per_link",b"max_number_of_attributes_per_link",u"max_number_of_attributes_per_timed_event",b"max_number_of_attributes_per_timed_event",u"max_number_of_links",b"max_number_of_links",u"max_number_of_timed_events",b"max_number_of_timed_events",u"rate_limiting_sampler",b"rate_limiting_sampler",u"sampler",b"sampler",u"trace_id_ratio_based",b"trace_id_ratio_based"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions___Literal[u"sampler",b"sampler"]) -> typing_extensions___Literal["constant_sampler","trace_id_ratio_based","rate_limiting_sampler"]: ... -type___TraceConfig = TraceConfig - -class ConstantSampler(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - ConstantDecisionValue = typing___NewType('ConstantDecisionValue', builtin___int) - type___ConstantDecisionValue = ConstantDecisionValue - ConstantDecision: _ConstantDecision - class _ConstantDecision(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[ConstantSampler.ConstantDecisionValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - ALWAYS_OFF = typing___cast(ConstantSampler.ConstantDecisionValue, 0) - ALWAYS_ON = typing___cast(ConstantSampler.ConstantDecisionValue, 1) - ALWAYS_PARENT = typing___cast(ConstantSampler.ConstantDecisionValue, 2) - ALWAYS_OFF = typing___cast(ConstantSampler.ConstantDecisionValue, 0) - ALWAYS_ON = typing___cast(ConstantSampler.ConstantDecisionValue, 1) - ALWAYS_PARENT = typing___cast(ConstantSampler.ConstantDecisionValue, 2) - type___ConstantDecision = ConstantDecision - - decision: type___ConstantSampler.ConstantDecisionValue = ... + def HasField(self, field_name: typing_extensions.Literal[u"constant_sampler",b"constant_sampler",u"rate_limiting_sampler",b"rate_limiting_sampler",u"sampler",b"sampler",u"trace_id_ratio_based",b"trace_id_ratio_based"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"constant_sampler",b"constant_sampler",u"max_number_of_attributes",b"max_number_of_attributes",u"max_number_of_attributes_per_link",b"max_number_of_attributes_per_link",u"max_number_of_attributes_per_timed_event",b"max_number_of_attributes_per_timed_event",u"max_number_of_links",b"max_number_of_links",u"max_number_of_timed_events",b"max_number_of_timed_events",u"rate_limiting_sampler",b"rate_limiting_sampler",u"sampler",b"sampler",u"trace_id_ratio_based",b"trace_id_ratio_based"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sampler",b"sampler"]) -> typing_extensions.Literal["constant_sampler","trace_id_ratio_based","rate_limiting_sampler"]: ... +global___TraceConfig = TraceConfig + +class ConstantSampler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _ConstantDecision(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ConstantDecision.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + ALWAYS_OFF = ConstantSampler.ConstantDecision.V(0) + ALWAYS_ON = ConstantSampler.ConstantDecision.V(1) + ALWAYS_PARENT = ConstantSampler.ConstantDecision.V(2) + class ConstantDecision(metaclass=_ConstantDecision): + V = typing.NewType('V', builtins.int) + ALWAYS_OFF = ConstantSampler.ConstantDecision.V(0) + ALWAYS_ON = ConstantSampler.ConstantDecision.V(1) + ALWAYS_PARENT = ConstantSampler.ConstantDecision.V(2) + + DECISION_FIELD_NUMBER: builtins.int + decision: global___ConstantSampler.ConstantDecision.V = ... def __init__(self, *, - decision : typing___Optional[type___ConstantSampler.ConstantDecisionValue] = None, + decision : global___ConstantSampler.ConstantDecision.V = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"decision",b"decision"]) -> None: ... -type___ConstantSampler = ConstantSampler + def ClearField(self, field_name: typing_extensions.Literal[u"decision",b"decision"]) -> None: ... +global___ConstantSampler = ConstantSampler -class TraceIdRatioBased(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - samplingRatio: builtin___float = ... +class TraceIdRatioBased(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SAMPLINGRATIO_FIELD_NUMBER: builtins.int + samplingRatio: builtins.float = ... def __init__(self, *, - samplingRatio : typing___Optional[builtin___float] = None, + samplingRatio : builtins.float = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"samplingRatio",b"samplingRatio"]) -> None: ... -type___TraceIdRatioBased = TraceIdRatioBased + def ClearField(self, field_name: typing_extensions.Literal[u"samplingRatio",b"samplingRatio"]) -> None: ... +global___TraceIdRatioBased = TraceIdRatioBased -class RateLimitingSampler(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - qps: builtin___int = ... +class RateLimitingSampler(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QPS_FIELD_NUMBER: builtins.int + qps: builtins.int = ... def __init__(self, *, - qps : typing___Optional[builtin___int] = None, + qps : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"qps",b"qps"]) -> None: ... -type___RateLimitingSampler = RateLimitingSampler + def ClearField(self, field_name: typing_extensions.Literal[u"qps",b"qps"]) -> None: ... +global___RateLimitingSampler = RateLimitingSampler diff --git a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi index fc1cf87e40..71e323b99e 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi @@ -1,261 +1,250 @@ -# @generated by generate_proto_mypy_stubs.py. Do not edit! -import sys -from google.protobuf.descriptor import ( - Descriptor as google___protobuf___descriptor___Descriptor, - EnumDescriptor as google___protobuf___descriptor___EnumDescriptor, - FileDescriptor as google___protobuf___descriptor___FileDescriptor, -) - -from google.protobuf.internal.containers import ( - RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, -) - -from google.protobuf.internal.enum_type_wrapper import ( - _EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper, -) - -from google.protobuf.message import ( - Message as google___protobuf___message___Message, -) - -from opentelemetry.proto.common.v1.common_pb2 import ( - InstrumentationLibrary as opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary, - KeyValue as opentelemetry___proto___common___v1___common_pb2___KeyValue, -) - -from opentelemetry.proto.resource.v1.resource_pb2 import ( - Resource as opentelemetry___proto___resource___v1___resource_pb2___Resource, -) - -from typing import ( - Iterable as typing___Iterable, - NewType as typing___NewType, - Optional as typing___Optional, - Text as typing___Text, - cast as typing___cast, -) - -from typing_extensions import ( - Literal as typing_extensions___Literal, -) - - -builtin___bool = bool -builtin___bytes = bytes -builtin___float = float -builtin___int = int - - -DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... - -class ResourceSpans(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import opentelemetry.proto.common.v1.common_pb2 +import opentelemetry.proto.resource.v1.resource_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class ResourceSpans(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESOURCE_FIELD_NUMBER: builtins.int + INSTRUMENTATION_LIBRARY_SPANS_FIELD_NUMBER: builtins.int @property - def resource(self) -> opentelemetry___proto___resource___v1___resource_pb2___Resource: ... + def resource(self) -> opentelemetry.proto.resource.v1.resource_pb2.Resource: ... @property - def instrumentation_library_spans(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___InstrumentationLibrarySpans]: ... + def instrumentation_library_spans(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InstrumentationLibrarySpans]: ... def __init__(self, *, - resource : typing___Optional[opentelemetry___proto___resource___v1___resource_pb2___Resource] = None, - instrumentation_library_spans : typing___Optional[typing___Iterable[type___InstrumentationLibrarySpans]] = None, + resource : typing.Optional[opentelemetry.proto.resource.v1.resource_pb2.Resource] = ..., + instrumentation_library_spans : typing.Optional[typing.Iterable[global___InstrumentationLibrarySpans]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"resource",b"resource"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"instrumentation_library_spans",b"instrumentation_library_spans",u"resource",b"resource"]) -> None: ... -type___ResourceSpans = ResourceSpans + def HasField(self, field_name: typing_extensions.Literal[u"resource",b"resource"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"instrumentation_library_spans",b"instrumentation_library_spans",u"resource",b"resource"]) -> None: ... +global___ResourceSpans = ResourceSpans -class InstrumentationLibrarySpans(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... +class InstrumentationLibrarySpans(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INSTRUMENTATION_LIBRARY_FIELD_NUMBER: builtins.int + SPANS_FIELD_NUMBER: builtins.int @property - def instrumentation_library(self) -> opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary: ... + def instrumentation_library(self) -> opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary: ... @property - def spans(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Span]: ... + def spans(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Span]: ... def __init__(self, *, - instrumentation_library : typing___Optional[opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary] = None, - spans : typing___Optional[typing___Iterable[type___Span]] = None, + instrumentation_library : typing.Optional[opentelemetry.proto.common.v1.common_pb2.InstrumentationLibrary] = ..., + spans : typing.Optional[typing.Iterable[global___Span]] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"instrumentation_library",b"instrumentation_library"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"instrumentation_library",b"instrumentation_library",u"spans",b"spans"]) -> None: ... -type___InstrumentationLibrarySpans = InstrumentationLibrarySpans - -class Span(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - SpanKindValue = typing___NewType('SpanKindValue', builtin___int) - type___SpanKindValue = SpanKindValue - SpanKind: _SpanKind - class _SpanKind(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Span.SpanKindValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - SPAN_KIND_UNSPECIFIED = typing___cast(Span.SpanKindValue, 0) - SPAN_KIND_INTERNAL = typing___cast(Span.SpanKindValue, 1) - SPAN_KIND_SERVER = typing___cast(Span.SpanKindValue, 2) - SPAN_KIND_CLIENT = typing___cast(Span.SpanKindValue, 3) - SPAN_KIND_PRODUCER = typing___cast(Span.SpanKindValue, 4) - SPAN_KIND_CONSUMER = typing___cast(Span.SpanKindValue, 5) - SPAN_KIND_UNSPECIFIED = typing___cast(Span.SpanKindValue, 0) - SPAN_KIND_INTERNAL = typing___cast(Span.SpanKindValue, 1) - SPAN_KIND_SERVER = typing___cast(Span.SpanKindValue, 2) - SPAN_KIND_CLIENT = typing___cast(Span.SpanKindValue, 3) - SPAN_KIND_PRODUCER = typing___cast(Span.SpanKindValue, 4) - SPAN_KIND_CONSUMER = typing___cast(Span.SpanKindValue, 5) - type___SpanKind = SpanKind - - class Event(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - time_unix_nano: builtin___int = ... - name: typing___Text = ... - dropped_attributes_count: builtin___int = ... + def HasField(self, field_name: typing_extensions.Literal[u"instrumentation_library",b"instrumentation_library"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"instrumentation_library",b"instrumentation_library",u"spans",b"spans"]) -> None: ... +global___InstrumentationLibrarySpans = InstrumentationLibrarySpans + +class Span(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _SpanKind(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SpanKind.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SPAN_KIND_UNSPECIFIED = Span.SpanKind.V(0) + SPAN_KIND_INTERNAL = Span.SpanKind.V(1) + SPAN_KIND_SERVER = Span.SpanKind.V(2) + SPAN_KIND_CLIENT = Span.SpanKind.V(3) + SPAN_KIND_PRODUCER = Span.SpanKind.V(4) + SPAN_KIND_CONSUMER = Span.SpanKind.V(5) + class SpanKind(metaclass=_SpanKind): + V = typing.NewType('V', builtins.int) + SPAN_KIND_UNSPECIFIED = Span.SpanKind.V(0) + SPAN_KIND_INTERNAL = Span.SpanKind.V(1) + SPAN_KIND_SERVER = Span.SpanKind.V(2) + SPAN_KIND_CLIENT = Span.SpanKind.V(3) + SPAN_KIND_PRODUCER = Span.SpanKind.V(4) + SPAN_KIND_CONSUMER = Span.SpanKind.V(5) + + class Event(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int + time_unix_nano: builtins.int = ... + name: typing.Text = ... + dropped_attributes_count: builtins.int = ... @property - def attributes(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___KeyValue]: ... + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.KeyValue]: ... def __init__(self, *, - time_unix_nano : typing___Optional[builtin___int] = None, - name : typing___Optional[typing___Text] = None, - attributes : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___KeyValue]] = None, - dropped_attributes_count : typing___Optional[builtin___int] = None, + time_unix_nano : builtins.int = ..., + name : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue]] = ..., + dropped_attributes_count : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"name",b"name",u"time_unix_nano",b"time_unix_nano"]) -> None: ... - type___Event = Event - - class Link(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - trace_id: builtin___bytes = ... - span_id: builtin___bytes = ... - trace_state: typing___Text = ... - dropped_attributes_count: builtin___int = ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"name",b"name",u"time_unix_nano",b"time_unix_nano"]) -> None: ... + + class Link(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TRACE_ID_FIELD_NUMBER: builtins.int + SPAN_ID_FIELD_NUMBER: builtins.int + TRACE_STATE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int + trace_id: builtins.bytes = ... + span_id: builtins.bytes = ... + trace_state: typing.Text = ... + dropped_attributes_count: builtins.int = ... @property - def attributes(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___KeyValue]: ... + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.KeyValue]: ... def __init__(self, *, - trace_id : typing___Optional[builtin___bytes] = None, - span_id : typing___Optional[builtin___bytes] = None, - trace_state : typing___Optional[typing___Text] = None, - attributes : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___KeyValue]] = None, - dropped_attributes_count : typing___Optional[builtin___int] = None, + trace_id : builtins.bytes = ..., + span_id : builtins.bytes = ..., + trace_state : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue]] = ..., + dropped_attributes_count : builtins.int = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"span_id",b"span_id",u"trace_id",b"trace_id",u"trace_state",b"trace_state"]) -> None: ... - type___Link = Link - - trace_id: builtin___bytes = ... - span_id: builtin___bytes = ... - trace_state: typing___Text = ... - parent_span_id: builtin___bytes = ... - name: typing___Text = ... - kind: type___Span.SpanKindValue = ... - start_time_unix_nano: builtin___int = ... - end_time_unix_nano: builtin___int = ... - dropped_attributes_count: builtin___int = ... - dropped_events_count: builtin___int = ... - dropped_links_count: builtin___int = ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"span_id",b"span_id",u"trace_id",b"trace_id",u"trace_state",b"trace_state"]) -> None: ... + + TRACE_ID_FIELD_NUMBER: builtins.int + SPAN_ID_FIELD_NUMBER: builtins.int + TRACE_STATE_FIELD_NUMBER: builtins.int + PARENT_SPAN_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + START_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + END_TIME_UNIX_NANO_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + DROPPED_EVENTS_COUNT_FIELD_NUMBER: builtins.int + LINKS_FIELD_NUMBER: builtins.int + DROPPED_LINKS_COUNT_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + trace_id: builtins.bytes = ... + span_id: builtins.bytes = ... + trace_state: typing.Text = ... + parent_span_id: builtins.bytes = ... + name: typing.Text = ... + kind: global___Span.SpanKind.V = ... + start_time_unix_nano: builtins.int = ... + end_time_unix_nano: builtins.int = ... + dropped_attributes_count: builtins.int = ... + dropped_events_count: builtins.int = ... + dropped_links_count: builtins.int = ... @property - def attributes(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___KeyValue]: ... + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[opentelemetry.proto.common.v1.common_pb2.KeyValue]: ... @property - def events(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Span.Event]: ... + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Span.Event]: ... @property - def links(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Span.Link]: ... + def links(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Span.Link]: ... @property - def status(self) -> type___Status: ... + def status(self) -> global___Status: ... def __init__(self, *, - trace_id : typing___Optional[builtin___bytes] = None, - span_id : typing___Optional[builtin___bytes] = None, - trace_state : typing___Optional[typing___Text] = None, - parent_span_id : typing___Optional[builtin___bytes] = None, - name : typing___Optional[typing___Text] = None, - kind : typing___Optional[type___Span.SpanKindValue] = None, - start_time_unix_nano : typing___Optional[builtin___int] = None, - end_time_unix_nano : typing___Optional[builtin___int] = None, - attributes : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___KeyValue]] = None, - dropped_attributes_count : typing___Optional[builtin___int] = None, - events : typing___Optional[typing___Iterable[type___Span.Event]] = None, - dropped_events_count : typing___Optional[builtin___int] = None, - links : typing___Optional[typing___Iterable[type___Span.Link]] = None, - dropped_links_count : typing___Optional[builtin___int] = None, - status : typing___Optional[type___Status] = None, + trace_id : builtins.bytes = ..., + span_id : builtins.bytes = ..., + trace_state : typing.Text = ..., + parent_span_id : builtins.bytes = ..., + name : typing.Text = ..., + kind : global___Span.SpanKind.V = ..., + start_time_unix_nano : builtins.int = ..., + end_time_unix_nano : builtins.int = ..., + attributes : typing.Optional[typing.Iterable[opentelemetry.proto.common.v1.common_pb2.KeyValue]] = ..., + dropped_attributes_count : builtins.int = ..., + events : typing.Optional[typing.Iterable[global___Span.Event]] = ..., + dropped_events_count : builtins.int = ..., + links : typing.Optional[typing.Iterable[global___Span.Link]] = ..., + dropped_links_count : builtins.int = ..., + status : typing.Optional[global___Status] = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions___Literal[u"status",b"status"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"dropped_events_count",b"dropped_events_count",u"dropped_links_count",b"dropped_links_count",u"end_time_unix_nano",b"end_time_unix_nano",u"events",b"events",u"kind",b"kind",u"links",b"links",u"name",b"name",u"parent_span_id",b"parent_span_id",u"span_id",b"span_id",u"start_time_unix_nano",b"start_time_unix_nano",u"status",b"status",u"trace_id",b"trace_id",u"trace_state",b"trace_state"]) -> None: ... -type___Span = Span - -class Status(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - DeprecatedStatusCodeValue = typing___NewType('DeprecatedStatusCodeValue', builtin___int) - type___DeprecatedStatusCodeValue = DeprecatedStatusCodeValue - DeprecatedStatusCode: _DeprecatedStatusCode - class _DeprecatedStatusCode(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Status.DeprecatedStatusCodeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - DEPRECATED_STATUS_CODE_OK = typing___cast(Status.DeprecatedStatusCodeValue, 0) - DEPRECATED_STATUS_CODE_CANCELLED = typing___cast(Status.DeprecatedStatusCodeValue, 1) - DEPRECATED_STATUS_CODE_UNKNOWN_ERROR = typing___cast(Status.DeprecatedStatusCodeValue, 2) - DEPRECATED_STATUS_CODE_INVALID_ARGUMENT = typing___cast(Status.DeprecatedStatusCodeValue, 3) - DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED = typing___cast(Status.DeprecatedStatusCodeValue, 4) - DEPRECATED_STATUS_CODE_NOT_FOUND = typing___cast(Status.DeprecatedStatusCodeValue, 5) - DEPRECATED_STATUS_CODE_ALREADY_EXISTS = typing___cast(Status.DeprecatedStatusCodeValue, 6) - DEPRECATED_STATUS_CODE_PERMISSION_DENIED = typing___cast(Status.DeprecatedStatusCodeValue, 7) - DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED = typing___cast(Status.DeprecatedStatusCodeValue, 8) - DEPRECATED_STATUS_CODE_FAILED_PRECONDITION = typing___cast(Status.DeprecatedStatusCodeValue, 9) - DEPRECATED_STATUS_CODE_ABORTED = typing___cast(Status.DeprecatedStatusCodeValue, 10) - DEPRECATED_STATUS_CODE_OUT_OF_RANGE = typing___cast(Status.DeprecatedStatusCodeValue, 11) - DEPRECATED_STATUS_CODE_UNIMPLEMENTED = typing___cast(Status.DeprecatedStatusCodeValue, 12) - DEPRECATED_STATUS_CODE_INTERNAL_ERROR = typing___cast(Status.DeprecatedStatusCodeValue, 13) - DEPRECATED_STATUS_CODE_UNAVAILABLE = typing___cast(Status.DeprecatedStatusCodeValue, 14) - DEPRECATED_STATUS_CODE_DATA_LOSS = typing___cast(Status.DeprecatedStatusCodeValue, 15) - DEPRECATED_STATUS_CODE_UNAUTHENTICATED = typing___cast(Status.DeprecatedStatusCodeValue, 16) - DEPRECATED_STATUS_CODE_OK = typing___cast(Status.DeprecatedStatusCodeValue, 0) - DEPRECATED_STATUS_CODE_CANCELLED = typing___cast(Status.DeprecatedStatusCodeValue, 1) - DEPRECATED_STATUS_CODE_UNKNOWN_ERROR = typing___cast(Status.DeprecatedStatusCodeValue, 2) - DEPRECATED_STATUS_CODE_INVALID_ARGUMENT = typing___cast(Status.DeprecatedStatusCodeValue, 3) - DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED = typing___cast(Status.DeprecatedStatusCodeValue, 4) - DEPRECATED_STATUS_CODE_NOT_FOUND = typing___cast(Status.DeprecatedStatusCodeValue, 5) - DEPRECATED_STATUS_CODE_ALREADY_EXISTS = typing___cast(Status.DeprecatedStatusCodeValue, 6) - DEPRECATED_STATUS_CODE_PERMISSION_DENIED = typing___cast(Status.DeprecatedStatusCodeValue, 7) - DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED = typing___cast(Status.DeprecatedStatusCodeValue, 8) - DEPRECATED_STATUS_CODE_FAILED_PRECONDITION = typing___cast(Status.DeprecatedStatusCodeValue, 9) - DEPRECATED_STATUS_CODE_ABORTED = typing___cast(Status.DeprecatedStatusCodeValue, 10) - DEPRECATED_STATUS_CODE_OUT_OF_RANGE = typing___cast(Status.DeprecatedStatusCodeValue, 11) - DEPRECATED_STATUS_CODE_UNIMPLEMENTED = typing___cast(Status.DeprecatedStatusCodeValue, 12) - DEPRECATED_STATUS_CODE_INTERNAL_ERROR = typing___cast(Status.DeprecatedStatusCodeValue, 13) - DEPRECATED_STATUS_CODE_UNAVAILABLE = typing___cast(Status.DeprecatedStatusCodeValue, 14) - DEPRECATED_STATUS_CODE_DATA_LOSS = typing___cast(Status.DeprecatedStatusCodeValue, 15) - DEPRECATED_STATUS_CODE_UNAUTHENTICATED = typing___cast(Status.DeprecatedStatusCodeValue, 16) - type___DeprecatedStatusCode = DeprecatedStatusCode - - StatusCodeValue = typing___NewType('StatusCodeValue', builtin___int) - type___StatusCodeValue = StatusCodeValue - StatusCode: _StatusCode - class _StatusCode(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[Status.StatusCodeValue]): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... - STATUS_CODE_UNSET = typing___cast(Status.StatusCodeValue, 0) - STATUS_CODE_OK = typing___cast(Status.StatusCodeValue, 1) - STATUS_CODE_ERROR = typing___cast(Status.StatusCodeValue, 2) - STATUS_CODE_UNSET = typing___cast(Status.StatusCodeValue, 0) - STATUS_CODE_OK = typing___cast(Status.StatusCodeValue, 1) - STATUS_CODE_ERROR = typing___cast(Status.StatusCodeValue, 2) - type___StatusCode = StatusCode - - deprecated_code: type___Status.DeprecatedStatusCodeValue = ... - message: typing___Text = ... - code: type___Status.StatusCodeValue = ... + def HasField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"dropped_attributes_count",b"dropped_attributes_count",u"dropped_events_count",b"dropped_events_count",u"dropped_links_count",b"dropped_links_count",u"end_time_unix_nano",b"end_time_unix_nano",u"events",b"events",u"kind",b"kind",u"links",b"links",u"name",b"name",u"parent_span_id",b"parent_span_id",u"span_id",b"span_id",u"start_time_unix_nano",b"start_time_unix_nano",u"status",b"status",u"trace_id",b"trace_id",u"trace_state",b"trace_state"]) -> None: ... +global___Span = Span + +class Status(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class _DeprecatedStatusCode(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DeprecatedStatusCode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + DEPRECATED_STATUS_CODE_OK = Status.DeprecatedStatusCode.V(0) + DEPRECATED_STATUS_CODE_CANCELLED = Status.DeprecatedStatusCode.V(1) + DEPRECATED_STATUS_CODE_UNKNOWN_ERROR = Status.DeprecatedStatusCode.V(2) + DEPRECATED_STATUS_CODE_INVALID_ARGUMENT = Status.DeprecatedStatusCode.V(3) + DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED = Status.DeprecatedStatusCode.V(4) + DEPRECATED_STATUS_CODE_NOT_FOUND = Status.DeprecatedStatusCode.V(5) + DEPRECATED_STATUS_CODE_ALREADY_EXISTS = Status.DeprecatedStatusCode.V(6) + DEPRECATED_STATUS_CODE_PERMISSION_DENIED = Status.DeprecatedStatusCode.V(7) + DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED = Status.DeprecatedStatusCode.V(8) + DEPRECATED_STATUS_CODE_FAILED_PRECONDITION = Status.DeprecatedStatusCode.V(9) + DEPRECATED_STATUS_CODE_ABORTED = Status.DeprecatedStatusCode.V(10) + DEPRECATED_STATUS_CODE_OUT_OF_RANGE = Status.DeprecatedStatusCode.V(11) + DEPRECATED_STATUS_CODE_UNIMPLEMENTED = Status.DeprecatedStatusCode.V(12) + DEPRECATED_STATUS_CODE_INTERNAL_ERROR = Status.DeprecatedStatusCode.V(13) + DEPRECATED_STATUS_CODE_UNAVAILABLE = Status.DeprecatedStatusCode.V(14) + DEPRECATED_STATUS_CODE_DATA_LOSS = Status.DeprecatedStatusCode.V(15) + DEPRECATED_STATUS_CODE_UNAUTHENTICATED = Status.DeprecatedStatusCode.V(16) + class DeprecatedStatusCode(metaclass=_DeprecatedStatusCode): + V = typing.NewType('V', builtins.int) + DEPRECATED_STATUS_CODE_OK = Status.DeprecatedStatusCode.V(0) + DEPRECATED_STATUS_CODE_CANCELLED = Status.DeprecatedStatusCode.V(1) + DEPRECATED_STATUS_CODE_UNKNOWN_ERROR = Status.DeprecatedStatusCode.V(2) + DEPRECATED_STATUS_CODE_INVALID_ARGUMENT = Status.DeprecatedStatusCode.V(3) + DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED = Status.DeprecatedStatusCode.V(4) + DEPRECATED_STATUS_CODE_NOT_FOUND = Status.DeprecatedStatusCode.V(5) + DEPRECATED_STATUS_CODE_ALREADY_EXISTS = Status.DeprecatedStatusCode.V(6) + DEPRECATED_STATUS_CODE_PERMISSION_DENIED = Status.DeprecatedStatusCode.V(7) + DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED = Status.DeprecatedStatusCode.V(8) + DEPRECATED_STATUS_CODE_FAILED_PRECONDITION = Status.DeprecatedStatusCode.V(9) + DEPRECATED_STATUS_CODE_ABORTED = Status.DeprecatedStatusCode.V(10) + DEPRECATED_STATUS_CODE_OUT_OF_RANGE = Status.DeprecatedStatusCode.V(11) + DEPRECATED_STATUS_CODE_UNIMPLEMENTED = Status.DeprecatedStatusCode.V(12) + DEPRECATED_STATUS_CODE_INTERNAL_ERROR = Status.DeprecatedStatusCode.V(13) + DEPRECATED_STATUS_CODE_UNAVAILABLE = Status.DeprecatedStatusCode.V(14) + DEPRECATED_STATUS_CODE_DATA_LOSS = Status.DeprecatedStatusCode.V(15) + DEPRECATED_STATUS_CODE_UNAUTHENTICATED = Status.DeprecatedStatusCode.V(16) + + class _StatusCode(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[StatusCode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + STATUS_CODE_UNSET = Status.StatusCode.V(0) + STATUS_CODE_OK = Status.StatusCode.V(1) + STATUS_CODE_ERROR = Status.StatusCode.V(2) + class StatusCode(metaclass=_StatusCode): + V = typing.NewType('V', builtins.int) + STATUS_CODE_UNSET = Status.StatusCode.V(0) + STATUS_CODE_OK = Status.StatusCode.V(1) + STATUS_CODE_ERROR = Status.StatusCode.V(2) + + DEPRECATED_CODE_FIELD_NUMBER: builtins.int + MESSAGE_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + deprecated_code: global___Status.DeprecatedStatusCode.V = ... + message: typing.Text = ... + code: global___Status.StatusCode.V = ... def __init__(self, *, - deprecated_code : typing___Optional[type___Status.DeprecatedStatusCodeValue] = None, - message : typing___Optional[typing___Text] = None, - code : typing___Optional[type___Status.StatusCodeValue] = None, + deprecated_code : global___Status.DeprecatedStatusCode.V = ..., + message : typing.Text = ..., + code : global___Status.StatusCode.V = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions___Literal[u"code",b"code",u"deprecated_code",b"deprecated_code",u"message",b"message"]) -> None: ... -type___Status = Status + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"deprecated_code",b"deprecated_code",u"message",b"message"]) -> None: ... +global___Status = Status diff --git a/scripts/proto_codegen.sh b/scripts/proto_codegen.sh index f70286eca4..d3082b0599 100755 --- a/scripts/proto_codegen.sh +++ b/scripts/proto_codegen.sh @@ -12,7 +12,7 @@ # PROTO_REPO_DIR - the path to an existing checkout of the opentelemetry-proto repo # Pinned commit/branch/tag for the current version used in opentelemetry-proto python package. -PROTO_REPO_BRANCH_OR_COMMIT="v0.6.0" +PROTO_REPO_BRANCH_OR_COMMIT="v0.7.0" set -e