From ffe32b9f3e5e01b3c090454a33f9abc942141689 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Mon, 21 Sep 2020 21:12:31 -0700 Subject: [PATCH] Add support for OTLP v0.5.0 --- .../collector/logs/v1/logs_service_pb2.py | 128 +++ .../collector/logs/v1/logs_service_pb2.pyi | 72 ++ .../logs/v1/logs_service_pb2_grpc.py | 75 ++ .../opentelemetry/proto/logs/v1/logs_pb2.py | 402 ++++++++++ .../opentelemetry/proto/logs/v1/logs_pb2.pyi | 227 ++++++ .../metrics/experimental/configservice_pb2.py | 267 +++++++ .../experimental/configservice_pb2.pyi | 132 ++++ .../experimental/configservice_pb2_grpc.py | 82 ++ .../proto/metrics/v1/metrics_pb2.py | 747 ++++++++++++------ .../proto/metrics/v1/metrics_pb2.pyi | 396 ++++++---- .../opentelemetry/proto/trace/v1/trace_pb2.py | 60 +- .../proto/trace/v1/trace_pb2.pyi | 88 +-- scripts/proto_codegen.sh | 2 +- 13 files changed, 2198 insertions(+), 480 deletions(-) create mode 100644 opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.py create mode 100644 opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi create mode 100644 opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2_grpc.py create mode 100644 opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.py create mode 100644 opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.pyi create mode 100644 opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.py create mode 100644 opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi create mode 100644 opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2_grpc.py diff --git a/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.py b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.py new file mode 100644 index 00000000000..ade8e516c9e --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/collector/logs/v1/logs_service.proto + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from opentelemetry.proto.logs.v1 import logs_pb2 as opentelemetry_dot_proto_dot_logs_dot_v1_dot_logs__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='opentelemetry/proto/collector/logs/v1/logs_service.proto', + package='opentelemetry.proto.collector.logs.v1', + syntax='proto3', + serialized_options=b'\n(io.opentelemetry.proto.collector.logs.v1B\020LogsServiceProtoP\001ZFgithub.com/open-telemetry/opentelemetry-proto/gen/go/collector/logs/v1', + serialized_pb=b'\n8opentelemetry/proto/collector/logs/v1/logs_service.proto\x12%opentelemetry.proto.collector.logs.v1\x1a&opentelemetry/proto/logs/v1/logs.proto\"\\\n\x18\x45xportLogsServiceRequest\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"\x1b\n\x19\x45xportLogsServiceResponse2\x9d\x01\n\x0bLogsService\x12\x8d\x01\n\x06\x45xport\x12?.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest\x1a@.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse\"\x00\x42\x86\x01\n(io.opentelemetry.proto.collector.logs.v1B\x10LogsServiceProtoP\x01ZFgithub.com/open-telemetry/opentelemetry-proto/gen/go/collector/logs/v1b\x06proto3' + , + dependencies=[opentelemetry_dot_proto_dot_logs_dot_v1_dot_logs__pb2.DESCRIPTOR,]) + + + + +_EXPORTLOGSSERVICEREQUEST = _descriptor.Descriptor( + name='ExportLogsServiceRequest', + full_name='opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_logs', full_name='opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resource_logs', 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=139, + serialized_end=231, +) + + +_EXPORTLOGSSERVICERESPONSE = _descriptor.Descriptor( + name='ExportLogsServiceResponse', + full_name='opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=233, + serialized_end=260, +) + +_EXPORTLOGSSERVICEREQUEST.fields_by_name['resource_logs'].message_type = opentelemetry_dot_proto_dot_logs_dot_v1_dot_logs__pb2._RESOURCELOGS +DESCRIPTOR.message_types_by_name['ExportLogsServiceRequest'] = _EXPORTLOGSSERVICEREQUEST +DESCRIPTOR.message_types_by_name['ExportLogsServiceResponse'] = _EXPORTLOGSSERVICERESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExportLogsServiceRequest = _reflection.GeneratedProtocolMessageType('ExportLogsServiceRequest', (_message.Message,), { + 'DESCRIPTOR' : _EXPORTLOGSSERVICEREQUEST, + '__module__' : 'opentelemetry.proto.collector.logs.v1.logs_service_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest) + }) +_sym_db.RegisterMessage(ExportLogsServiceRequest) + +ExportLogsServiceResponse = _reflection.GeneratedProtocolMessageType('ExportLogsServiceResponse', (_message.Message,), { + 'DESCRIPTOR' : _EXPORTLOGSSERVICERESPONSE, + '__module__' : 'opentelemetry.proto.collector.logs.v1.logs_service_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse) + }) +_sym_db.RegisterMessage(ExportLogsServiceResponse) + + +DESCRIPTOR._options = None + +_LOGSSERVICE = _descriptor.ServiceDescriptor( + name='LogsService', + full_name='opentelemetry.proto.collector.logs.v1.LogsService', + file=DESCRIPTOR, + index=0, + serialized_options=None, + serialized_start=263, + serialized_end=420, + methods=[ + _descriptor.MethodDescriptor( + name='Export', + full_name='opentelemetry.proto.collector.logs.v1.LogsService.Export', + index=0, + containing_service=None, + input_type=_EXPORTLOGSSERVICEREQUEST, + output_type=_EXPORTLOGSSERVICERESPONSE, + serialized_options=None, + ), +]) +_sym_db.RegisterServiceDescriptor(_LOGSSERVICE) + +DESCRIPTOR.services_by_name['LogsService'] = _LOGSSERVICE + +# @@protoc_insertion_point(module_scope) 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 new file mode 100644 index 00000000000..a2082a132f0 --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2.pyi @@ -0,0 +1,72 @@ +# @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, + Union as typing___Union, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int +if sys.version_info < (3,): + builtin___buffer = buffer + builtin___unicode = unicode + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class ExportLogsServiceRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + 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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> ExportLogsServiceRequest: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> ExportLogsServiceRequest: ... + def ClearField(self, field_name: typing_extensions___Literal[u"resource_logs",b"resource_logs"]) -> None: ... +type___ExportLogsServiceRequest = ExportLogsServiceRequest + +class ExportLogsServiceResponse(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + def __init__(self, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> ExportLogsServiceResponse: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> ExportLogsServiceResponse: ... +type___ExportLogsServiceResponse = ExportLogsServiceResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2_grpc.py b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2_grpc.py new file mode 100644 index 00000000000..c929cdc84c0 --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/collector/logs/v1/logs_service_pb2_grpc.py @@ -0,0 +1,75 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from opentelemetry.proto.collector.logs.v1 import logs_service_pb2 as opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2 + + +class LogsServiceStub(object): + """Service that can be used to push logs between one Application instrumented with + OpenTelemetry and an collector, or between an collector and a central collector (in this + case logs are sent/received to/from multiple Applications). + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Export = channel.unary_unary( + '/opentelemetry.proto.collector.logs.v1.LogsService/Export', + request_serializer=opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceRequest.SerializeToString, + response_deserializer=opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceResponse.FromString, + ) + + +class LogsServiceServicer(object): + """Service that can be used to push logs between one Application instrumented with + OpenTelemetry and an collector, or between an collector and a central collector (in this + case logs are sent/received to/from multiple Applications). + """ + + def Export(self, request, context): + """For performance reasons, it is recommended to keep this RPC + alive for the entire life of the application. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LogsServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Export': grpc.unary_unary_rpc_method_handler( + servicer.Export, + request_deserializer=opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceRequest.FromString, + response_serializer=opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opentelemetry.proto.collector.logs.v1.LogsService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class LogsService(object): + """Service that can be used to push logs between one Application instrumented with + OpenTelemetry and an collector, or between an collector and a central collector (in this + case logs are sent/received to/from multiple Applications). + """ + + @staticmethod + def Export(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opentelemetry.proto.collector.logs.v1.LogsService/Export', + opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceRequest.SerializeToString, + opentelemetry_dot_proto_dot_collector_dot_logs_dot_v1_dot_logs__service__pb2.ExportLogsServiceResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.py b/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.py new file mode 100644 index 00000000000..1e158bdade3 --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/logs/v1/logs_pb2.py @@ -0,0 +1,402 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/logs/v1/logs.proto + +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from opentelemetry.proto.common.v1 import common_pb2 as opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2 +from opentelemetry.proto.resource.v1 import resource_pb2 as opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='opentelemetry/proto/logs/v1/logs.proto', + package='opentelemetry.proto.logs.v1', + syntax='proto3', + serialized_options=b'\n\036io.opentelemetry.proto.logs.v1B\tLogsProtoP\001Z builtin___str: ... + @classmethod + def Value(cls, name: builtin___str) -> SeverityNumberValue: ... + @classmethod + def keys(cls) -> typing___List[builtin___str]: ... + @classmethod + def values(cls) -> typing___List[SeverityNumberValue]: ... + @classmethod + def items(cls) -> typing___List[typing___Tuple[builtin___str, SeverityNumberValue]]: ... + 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 +class LogRecordFlags(object): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + @classmethod + def Name(cls, number: builtin___int) -> builtin___str: ... + @classmethod + def Value(cls, name: builtin___str) -> LogRecordFlagsValue: ... + @classmethod + def keys(cls) -> typing___List[builtin___str]: ... + @classmethod + def values(cls) -> typing___List[LogRecordFlagsValue]: ... + @classmethod + def items(cls) -> typing___List[typing___Tuple[builtin___str, LogRecordFlagsValue]]: ... + LOG_RECORD_FLAG_UNSPECIFIED = typing___cast(LogRecordFlagsValue, 0) + LOG_RECORD_FLAG_TRACE_FLAGS_MASK = typing___cast(LogRecordFlagsValue, 255) +LOG_RECORD_FLAG_UNSPECIFIED = typing___cast(LogRecordFlagsValue, 0) +LOG_RECORD_FLAG_TRACE_FLAGS_MASK = typing___cast(LogRecordFlagsValue, 255) +type___LogRecordFlags = LogRecordFlags + +class ResourceLogs(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def resource(self) -> opentelemetry___proto___resource___v1___resource_pb2___Resource: ... + + @property + def instrumentation_library_logs(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> ResourceLogs: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> ResourceLogs: ... + 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_logs",b"instrumentation_library_logs",u"resource",b"resource"]) -> None: ... +type___ResourceLogs = ResourceLogs + +class InstrumentationLibraryLogs(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def instrumentation_library(self) -> opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary: ... + + @property + def logs(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___LogRecord]: ... + + def __init__(self, + *, + instrumentation_library : typing___Optional[opentelemetry___proto___common___v1___common_pb2___InstrumentationLibrary] = None, + logs : typing___Optional[typing___Iterable[type___LogRecord]] = None, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> InstrumentationLibraryLogs: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> InstrumentationLibraryLogs: ... + 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"logs",b"logs"]) -> 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 = ... + + @property + 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]: ... + + 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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> LogRecord: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> LogRecord: ... + def HasField(self, field_name: typing_extensions___Literal[u"body",b"body"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"attributes",b"attributes",u"body",b"body",u"dropped_attributes_count",b"dropped_attributes_count",u"flags",b"flags",u"name",b"name",u"severity_number",b"severity_number",u"severity_text",b"severity_text",u"span_id",b"span_id",u"time_unix_nano",b"time_unix_nano",u"trace_id",b"trace_id"]) -> None: ... +type___LogRecord = LogRecord diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.py b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.py new file mode 100644 index 00000000000..c2a8deb607a --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.py @@ -0,0 +1,267 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: opentelemetry/proto/metrics/experimental/configservice.proto + +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from opentelemetry.proto.resource.v1 import resource_pb2 as opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='opentelemetry/proto/metrics/experimental/configservice.proto', + package='opentelemetry.proto.metrics.experimental', + syntax='proto3', + serialized_options=b'\n+io.opentelemetry.proto.metrics.experimentalB\030MetricConfigServiceProtoP\001ZIgithub.com/open-telemetry/opentelemetry-proto/gen/go/metrics/experimental', + serialized_pb=b'\n.opentelemetry.proto.metrics.experimental.MetricConfigResponseB\x94\x01\n+io.opentelemetry.proto.metrics.experimentalB\x18MetricConfigServiceProtoP\x01ZIgithub.com/open-telemetry/opentelemetry-proto/gen/go/metrics/experimentalb\x06proto3' + , + dependencies=[opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2.DESCRIPTOR,]) + + + + +_METRICCONFIGREQUEST = _descriptor.Descriptor( + name='MetricConfigRequest', + full_name='opentelemetry.proto.metrics.experimental.MetricConfigRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource', full_name='opentelemetry.proto.metrics.experimental.MetricConfigRequest.resource', index=0, + number=1, 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), + _descriptor.FieldDescriptor( + name='last_known_fingerprint', full_name='opentelemetry.proto.metrics.experimental.MetricConfigRequest.last_known_fingerprint', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + 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=154, + serialized_end=268, +) + + +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN = _descriptor.Descriptor( + name='Pattern', + full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='equals', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern.equals', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='starts_with', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern.starts_with', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + 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=[ + _descriptor.OneofDescriptor( + name='match', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern.match', + index=0, containing_type=None, fields=[]), + ], + serialized_start=692, + serialized_end=751, +) + +_METRICCONFIGRESPONSE_SCHEDULE = _descriptor.Descriptor( + name='Schedule', + full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='exclusion_patterns', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.exclusion_patterns', 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='inclusion_patterns', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.inclusion_patterns', index=1, + number=2, 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='period_sec', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.period_sec', index=2, + number=3, type=5, cpp_type=1, 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), + ], + extensions=[ + ], + nested_types=[_METRICCONFIGRESPONSE_SCHEDULE_PATTERN, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=442, + serialized_end=751, +) + +_METRICCONFIGRESPONSE = _descriptor.Descriptor( + name='MetricConfigResponse', + full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='fingerprint', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.fingerprint', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='schedules', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.schedules', index=1, + number=2, 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='suggested_wait_time_sec', full_name='opentelemetry.proto.metrics.experimental.MetricConfigResponse.suggested_wait_time_sec', index=2, + number=3, type=5, cpp_type=1, 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), + ], + extensions=[ + ], + nested_types=[_METRICCONFIGRESPONSE_SCHEDULE, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=271, + serialized_end=751, +) + +_METRICCONFIGREQUEST.fields_by_name['resource'].message_type = opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2._RESOURCE +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN.containing_type = _METRICCONFIGRESPONSE_SCHEDULE +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN.oneofs_by_name['match'].fields.append( + _METRICCONFIGRESPONSE_SCHEDULE_PATTERN.fields_by_name['equals']) +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN.fields_by_name['equals'].containing_oneof = _METRICCONFIGRESPONSE_SCHEDULE_PATTERN.oneofs_by_name['match'] +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN.oneofs_by_name['match'].fields.append( + _METRICCONFIGRESPONSE_SCHEDULE_PATTERN.fields_by_name['starts_with']) +_METRICCONFIGRESPONSE_SCHEDULE_PATTERN.fields_by_name['starts_with'].containing_oneof = _METRICCONFIGRESPONSE_SCHEDULE_PATTERN.oneofs_by_name['match'] +_METRICCONFIGRESPONSE_SCHEDULE.fields_by_name['exclusion_patterns'].message_type = _METRICCONFIGRESPONSE_SCHEDULE_PATTERN +_METRICCONFIGRESPONSE_SCHEDULE.fields_by_name['inclusion_patterns'].message_type = _METRICCONFIGRESPONSE_SCHEDULE_PATTERN +_METRICCONFIGRESPONSE_SCHEDULE.containing_type = _METRICCONFIGRESPONSE +_METRICCONFIGRESPONSE.fields_by_name['schedules'].message_type = _METRICCONFIGRESPONSE_SCHEDULE +DESCRIPTOR.message_types_by_name['MetricConfigRequest'] = _METRICCONFIGREQUEST +DESCRIPTOR.message_types_by_name['MetricConfigResponse'] = _METRICCONFIGRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MetricConfigRequest = _reflection.GeneratedProtocolMessageType('MetricConfigRequest', (_message.Message,), { + 'DESCRIPTOR' : _METRICCONFIGREQUEST, + '__module__' : 'opentelemetry.proto.metrics.experimental.configservice_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.experimental.MetricConfigRequest) + }) +_sym_db.RegisterMessage(MetricConfigRequest) + +MetricConfigResponse = _reflection.GeneratedProtocolMessageType('MetricConfigResponse', (_message.Message,), { + + 'Schedule' : _reflection.GeneratedProtocolMessageType('Schedule', (_message.Message,), { + + 'Pattern' : _reflection.GeneratedProtocolMessageType('Pattern', (_message.Message,), { + 'DESCRIPTOR' : _METRICCONFIGRESPONSE_SCHEDULE_PATTERN, + '__module__' : 'opentelemetry.proto.metrics.experimental.configservice_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule.Pattern) + }) + , + 'DESCRIPTOR' : _METRICCONFIGRESPONSE_SCHEDULE, + '__module__' : 'opentelemetry.proto.metrics.experimental.configservice_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.experimental.MetricConfigResponse.Schedule) + }) + , + 'DESCRIPTOR' : _METRICCONFIGRESPONSE, + '__module__' : 'opentelemetry.proto.metrics.experimental.configservice_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.experimental.MetricConfigResponse) + }) +_sym_db.RegisterMessage(MetricConfigResponse) +_sym_db.RegisterMessage(MetricConfigResponse.Schedule) +_sym_db.RegisterMessage(MetricConfigResponse.Schedule.Pattern) + + +DESCRIPTOR._options = None + +_METRICCONFIG = _descriptor.ServiceDescriptor( + name='MetricConfig', + full_name='opentelemetry.proto.metrics.experimental.MetricConfig', + file=DESCRIPTOR, + index=0, + serialized_options=None, + serialized_start=754, + serialized_end=915, + methods=[ + _descriptor.MethodDescriptor( + name='GetMetricConfig', + full_name='opentelemetry.proto.metrics.experimental.MetricConfig.GetMetricConfig', + index=0, + containing_service=None, + input_type=_METRICCONFIGREQUEST, + output_type=_METRICCONFIGRESPONSE, + serialized_options=None, + ), +]) +_sym_db.RegisterServiceDescriptor(_METRICCONFIG) + +DESCRIPTOR.services_by_name['MetricConfig'] = _METRICCONFIG + +# @@protoc_insertion_point(module_scope) diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi new file mode 100644 index 00000000000..ffe85a7a8bf --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2.pyi @@ -0,0 +1,132 @@ +# @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, + Union as typing___Union, +) + +from typing_extensions import ( + Literal as typing_extensions___Literal, +) + + +builtin___bool = bool +builtin___bytes = bytes +builtin___float = float +builtin___int = int +if sys.version_info < (3,): + builtin___buffer = buffer + builtin___unicode = unicode + + +DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... + +class MetricConfigRequest(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + last_known_fingerprint: builtin___bytes = ... + + @property + 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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> MetricConfigRequest: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> MetricConfigRequest: ... + 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 __init__(self, + *, + equals : typing___Optional[typing___Text] = None, + starts_with : typing___Optional[typing___Text] = None, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> MetricConfigResponse.Schedule.Pattern: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> MetricConfigResponse.Schedule.Pattern: ... + 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 + + period_sec: builtin___int = ... + + @property + def exclusion_patterns(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___MetricConfigResponse.Schedule.Pattern]: ... + + @property + def inclusion_patterns(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> MetricConfigResponse.Schedule: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> MetricConfigResponse.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: ... + type___Schedule = Schedule + + fingerprint: builtin___bytes = ... + suggested_wait_time_sec: builtin___int = ... + + @property + def schedules(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> MetricConfigResponse: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> 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: ... +type___MetricConfigResponse = MetricConfigResponse diff --git a/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2_grpc.py b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2_grpc.py new file mode 100644 index 00000000000..a2b2408446e --- /dev/null +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/experimental/configservice_pb2_grpc.py @@ -0,0 +1,82 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from opentelemetry.proto.metrics.experimental import configservice_pb2 as opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2 + + +class MetricConfigStub(object): + """MetricConfig is a service that enables updating metric schedules, trace + parameters, and other configurations on the SDK without having to restart the + instrumented application. The collector can also serve as the configuration + service, acting as a bridge between third-party configuration services and + the SDK, piping updated configs from a third-party source to an instrumented + application. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetMetricConfig = channel.unary_unary( + '/opentelemetry.proto.metrics.experimental.MetricConfig/GetMetricConfig', + request_serializer=opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigRequest.SerializeToString, + response_deserializer=opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigResponse.FromString, + ) + + +class MetricConfigServicer(object): + """MetricConfig is a service that enables updating metric schedules, trace + parameters, and other configurations on the SDK without having to restart the + instrumented application. The collector can also serve as the configuration + service, acting as a bridge between third-party configuration services and + the SDK, piping updated configs from a third-party source to an instrumented + application. + """ + + def GetMetricConfig(self, request, context): + """Missing associated documentation comment in .proto file""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MetricConfigServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetMetricConfig': grpc.unary_unary_rpc_method_handler( + servicer.GetMetricConfig, + request_deserializer=opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigRequest.FromString, + response_serializer=opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'opentelemetry.proto.metrics.experimental.MetricConfig', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class MetricConfig(object): + """MetricConfig is a service that enables updating metric schedules, trace + parameters, and other configurations on the SDK without having to restart the + instrumented application. The collector can also serve as the configuration + service, acting as a bridge between third-party configuration services and + the SDK, piping updated configs from a third-party source to an instrumented + application. + """ + + @staticmethod + def GetMetricConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/opentelemetry.proto.metrics.experimental.MetricConfig/GetMetricConfig', + opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigRequest.SerializeToString, + opentelemetry_dot_proto_dot_metrics_dot_experimental_dot_configservice__pb2.MetricConfigResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) 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 e4b62369a05..62956103e85 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/metrics/v1/metrics.proto +from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection @@ -20,83 +21,41 @@ 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\"\x8f\x03\n\x06Metric\x12K\n\x11metric_descriptor\x18\x01 \x01(\x0b\x32\x30.opentelemetry.proto.metrics.v1.MetricDescriptor\x12I\n\x11int64_data_points\x18\x02 \x03(\x0b\x32..opentelemetry.proto.metrics.v1.Int64DataPoint\x12K\n\x12\x64ouble_data_points\x18\x03 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.DoubleDataPoint\x12Q\n\x15histogram_data_points\x18\x04 \x03(\x0b\x32\x32.opentelemetry.proto.metrics.v1.HistogramDataPoint\x12M\n\x13summary_data_points\x18\x05 \x03(\x0b\x32\x30.opentelemetry.proto.metrics.v1.SummaryDataPoint\"\xa9\x03\n\x10MetricDescriptor\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\x43\n\x04type\x18\x04 \x01(\x0e\x32\x35.opentelemetry.proto.metrics.v1.MetricDescriptor.Type\x12Q\n\x0btemporality\x18\x05 \x01(\x0e\x32<.opentelemetry.proto.metrics.v1.MetricDescriptor.Temporality\"v\n\x04Type\x12\x10\n\x0cINVALID_TYPE\x10\x00\x12\t\n\x05INT64\x10\x01\x12\x13\n\x0fMONOTONIC_INT64\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\x14\n\x10MONOTONIC_DOUBLE\x10\x04\x12\r\n\tHISTOGRAM\x10\x05\x12\x0b\n\x07SUMMARY\x10\x06\"T\n\x0bTemporality\x12\x17\n\x13INVALID_TEMPORALITY\x10\x00\x12\x11\n\rINSTANTANEOUS\x10\x01\x12\t\n\x05\x44\x45LTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\x03\"\x94\x01\n\x0eInt64DataPoint\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(\x03\"\x95\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\"\xf1\x03\n\x12HistogramDataPoint\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(\x04\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12J\n\x07\x62uckets\x18\x06 \x03(\x0b\x32\x39.opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket\x12\x17\n\x0f\x65xplicit_bounds\x18\x07 \x03(\x01\x1a\xe4\x01\n\x06\x42ucket\x12\r\n\x05\x63ount\x18\x01 \x01(\x04\x12T\n\x08\x65xemplar\x18\x02 \x01(\x0b\x32\x42.opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar\x1au\n\x08\x45xemplar\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\x42\n\x0b\x61ttachments\x18\x03 \x03(\x0b\x32-.opentelemetry.proto.common.v1.StringKeyValue\"\xba\x02\n\x10SummaryDataPoint\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(\x04\x12\x0b\n\x03sum\x18\x05 \x01(\x01\x12]\n\x11percentile_values\x18\x06 \x03(\x0b\x32\x42.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile\x1a\x36\n\x11ValueAtPercentile\x12\x12\n\npercentile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01\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\"\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' , dependencies=[opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2.DESCRIPTOR,opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2.DESCRIPTOR,]) - - -_METRICDESCRIPTOR_TYPE = _descriptor.EnumDescriptor( - name='Type', - full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.Type', +_AGGREGATIONTEMPORALITY = _descriptor.EnumDescriptor( + name='AggregationTemporality', + full_name='opentelemetry.proto.metrics.v1.AggregationTemporality', filename=None, file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( - name='INVALID_TYPE', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INT64', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MONOTONIC_INT64', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DOUBLE', index=3, number=3, + name='AGGREGATION_TEMPORALITY_UNSPECIFIED', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='MONOTONIC_DOUBLE', index=4, number=4, + name='AGGREGATION_TEMPORALITY_DELTA', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='HISTOGRAM', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUMMARY', index=6, number=6, + name='AGGREGATION_TEMPORALITY_CUMULATIVE', index=2, number=2, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, - serialized_start=1160, - serialized_end=1278, + serialized_start=3258, + serialized_end=3398, ) -_sym_db.RegisterEnumDescriptor(_METRICDESCRIPTOR_TYPE) +_sym_db.RegisterEnumDescriptor(_AGGREGATIONTEMPORALITY) + +AggregationTemporality = enum_type_wrapper.EnumTypeWrapper(_AGGREGATIONTEMPORALITY) +AGGREGATION_TEMPORALITY_UNSPECIFIED = 0 +AGGREGATION_TEMPORALITY_DELTA = 1 +AGGREGATION_TEMPORALITY_CUMULATIVE = 2 -_METRICDESCRIPTOR_TEMPORALITY = _descriptor.EnumDescriptor( - name='Temporality', - full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.Temporality', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='INVALID_TEMPORALITY', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INSTANTANEOUS', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELTA', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUMULATIVE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1280, - serialized_end=1364, -) -_sym_db.RegisterEnumDescriptor(_METRICDESCRIPTOR_TEMPORALITY) _RESOURCEMETRICS = _descriptor.Descriptor( @@ -183,37 +142,65 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='metric_descriptor', full_name='opentelemetry.proto.metrics.v1.Metric.metric_descriptor', index=0, - number=1, type=11, cpp_type=10, label=1, + name='name', full_name='opentelemetry.proto.metrics.v1.Metric.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='opentelemetry.proto.metrics.v1.Metric.description', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unit', full_name='opentelemetry.proto.metrics.v1.Metric.unit', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int_gauge', full_name='opentelemetry.proto.metrics.v1.Metric.int_gauge', index=3, + number=4, 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), _descriptor.FieldDescriptor( - name='int64_data_points', full_name='opentelemetry.proto.metrics.v1.Metric.int64_data_points', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='double_gauge', full_name='opentelemetry.proto.metrics.v1.Metric.double_gauge', index=4, + number=5, 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), _descriptor.FieldDescriptor( - name='double_data_points', full_name='opentelemetry.proto.metrics.v1.Metric.double_data_points', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='int_sum', full_name='opentelemetry.proto.metrics.v1.Metric.int_sum', index=5, + number=6, 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), _descriptor.FieldDescriptor( - name='histogram_data_points', full_name='opentelemetry.proto.metrics.v1.Metric.histogram_data_points', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='double_sum', full_name='opentelemetry.proto.metrics.v1.Metric.double_sum', index=6, + number=7, 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), _descriptor.FieldDescriptor( - name='summary_data_points', full_name='opentelemetry.proto.metrics.v1.Metric.summary_data_points', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='int_histogram', full_name='opentelemetry.proto.metrics.v1.Metric.int_histogram', index=7, + number=8, 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), + _descriptor.FieldDescriptor( + name='double_histogram', full_name='opentelemetry.proto.metrics.v1.Metric.double_histogram', index=8, + number=9, 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), @@ -228,51 +215,102 @@ syntax='proto3', extension_ranges=[], oneofs=[ + _descriptor.OneofDescriptor( + name='data', full_name='opentelemetry.proto.metrics.v1.Metric.data', + index=0, containing_type=None, fields=[]), ], serialized_start=537, - serialized_end=936, + serialized_end=1006, ) -_METRICDESCRIPTOR = _descriptor.Descriptor( - name='MetricDescriptor', - full_name='opentelemetry.proto.metrics.v1.MetricDescriptor', +_INTGAUGE = _descriptor.Descriptor( + name='IntGauge', + full_name='opentelemetry.proto.metrics.v1.IntGauge', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='data_points', full_name='opentelemetry.proto.metrics.v1.IntGauge.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=1008, + serialized_end=1085, +) + + +_DOUBLEGAUGE = _descriptor.Descriptor( + name='DoubleGauge', + full_name='opentelemetry.proto.metrics.v1.DoubleGauge', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ _descriptor.FieldDescriptor( - name='description', full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.description', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='data_points', full_name='opentelemetry.proto.metrics.v1.DoubleGauge.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=1087, + serialized_end=1170, +) + + +_INTSUM = _descriptor.Descriptor( + name='IntSum', + full_name='opentelemetry.proto.metrics.v1.IntSum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ _descriptor.FieldDescriptor( - name='unit', full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.unit', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + name='data_points', full_name='opentelemetry.proto.metrics.v1.IntSum.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), _descriptor.FieldDescriptor( - name='type', full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.type', index=3, - number=4, type=14, cpp_type=8, label=1, + name='aggregation_temporality', full_name='opentelemetry.proto.metrics.v1.IntSum.aggregation_temporality', index=1, + number=2, type=14, cpp_type=8, 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='temporality', full_name='opentelemetry.proto.metrics.v1.MetricDescriptor.temporality', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, + name='is_monotonic', full_name='opentelemetry.proto.metrics.v1.IntSum.is_monotonic', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -281,8 +319,6 @@ ], nested_types=[], enum_types=[ - _METRICDESCRIPTOR_TYPE, - _METRICDESCRIPTOR_TEMPORALITY, ], serialized_options=None, is_extendable=False, @@ -290,42 +326,111 @@ extension_ranges=[], oneofs=[ ], - serialized_start=939, - serialized_end=1364, + serialized_start=1173, + serialized_end=1359, ) -_INT64DATAPOINT = _descriptor.Descriptor( - name='Int64DataPoint', - full_name='opentelemetry.proto.metrics.v1.Int64DataPoint', +_DOUBLESUM = _descriptor.Descriptor( + name='DoubleSum', + full_name='opentelemetry.proto.metrics.v1.DoubleSum', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='labels', full_name='opentelemetry.proto.metrics.v1.Int64DataPoint.labels', index=0, + name='data_points', full_name='opentelemetry.proto.metrics.v1.DoubleSum.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), _descriptor.FieldDescriptor( - name='start_time_unix_nano', full_name='opentelemetry.proto.metrics.v1.Int64DataPoint.start_time_unix_nano', index=1, - number=2, type=6, cpp_type=4, label=1, + name='aggregation_temporality', full_name='opentelemetry.proto.metrics.v1.DoubleSum.aggregation_temporality', index=1, + number=2, type=14, cpp_type=8, 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.Int64DataPoint.time_unix_nano', index=2, - number=3, type=6, cpp_type=4, label=1, + name='is_monotonic', full_name='opentelemetry.proto.metrics.v1.DoubleSum.is_monotonic', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + 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=1362, + serialized_end=1554, +) + + +_INTHISTOGRAM = _descriptor.Descriptor( + name='IntHistogram', + full_name='opentelemetry.proto.metrics.v1.IntHistogram', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data_points', full_name='opentelemetry.proto.metrics.v1.IntHistogram.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), + _descriptor.FieldDescriptor( + name='aggregation_temporality', full_name='opentelemetry.proto.metrics.v1.IntHistogram.aggregation_temporality', index=1, + number=2, type=14, cpp_type=8, 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1557, + serialized_end=1736, +) + + +_DOUBLEHISTOGRAM = _descriptor.Descriptor( + name='DoubleHistogram', + full_name='opentelemetry.proto.metrics.v1.DoubleHistogram', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data_points', full_name='opentelemetry.proto.metrics.v1.DoubleHistogram.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), _descriptor.FieldDescriptor( - name='value', full_name='opentelemetry.proto.metrics.v1.Int64DataPoint.value', index=3, - number=4, type=3, cpp_type=2, label=1, + name='aggregation_temporality', full_name='opentelemetry.proto.metrics.v1.DoubleHistogram.aggregation_temporality', index=1, + number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -342,43 +447,50 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1367, - serialized_end=1515, + serialized_start=1739, + serialized_end=1924, ) -_DOUBLEDATAPOINT = _descriptor.Descriptor( - name='DoubleDataPoint', - full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint', +_INTDATAPOINT = _descriptor.Descriptor( + name='IntDataPoint', + full_name='opentelemetry.proto.metrics.v1.IntDataPoint', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='labels', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.labels', index=0, + name='labels', full_name='opentelemetry.proto.metrics.v1.IntDataPoint.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.DoubleDataPoint.start_time_unix_nano', index=1, + name='start_time_unix_nano', full_name='opentelemetry.proto.metrics.v1.IntDataPoint.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.DoubleDataPoint.time_unix_nano', index=2, + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.IntDataPoint.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='value', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.value', index=3, - number=4, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + name='value', full_name='opentelemetry.proto.metrics.v1.IntDataPoint.value', index=3, + number=4, type=16, cpp_type=2, 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='exemplars', full_name='opentelemetry.proto.metrics.v1.IntDataPoint.exemplars', index=4, + number=5, 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), @@ -394,35 +506,49 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1518, - serialized_end=1667, + serialized_start=1927, + serialized_end=2137, ) -_HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR = _descriptor.Descriptor( - name='Exemplar', - full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar', +_DOUBLEDATAPOINT = _descriptor.Descriptor( + name='DoubleDataPoint', + full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar.value', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + name='labels', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.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='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar.time_unix_nano', index=1, + name='start_time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.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='attachments', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar.attachments', index=2, - number=3, type=11, cpp_type=10, label=3, + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.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='value', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.value', index=3, + number=4, 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='exemplars', full_name='opentelemetry.proto.metrics.v1.DoubleDataPoint.exemplars', index=4, + number=5, 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, @@ -439,35 +565,78 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2050, - serialized_end=2167, + serialized_start=2140, + serialized_end=2356, ) -_HISTOGRAMDATAPOINT_BUCKET = _descriptor.Descriptor( - name='Bucket', - full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket', + +_INTHISTOGRAMDATAPOINT = _descriptor.Descriptor( + name='IntHistogramDataPoint', + full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='count', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.count', index=0, - number=1, type=4, cpp_type=4, label=1, + name='labels', full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint.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.IntHistogramDataPoint.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='exemplar', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.exemplar', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint.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.IntHistogramDataPoint.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.IntHistogramDataPoint.sum', index=4, + number=5, type=16, cpp_type=2, 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='bucket_counts', full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint.bucket_counts', index=5, + number=6, type=6, cpp_type=4, 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='explicit_bounds', full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint.explicit_bounds', index=6, + number=7, type=1, cpp_type=5, 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='exemplars', full_name='opentelemetry.proto.metrics.v1.IntHistogramDataPoint.exemplars', index=7, + number=8, 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=[_HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR, ], + nested_types=[], enum_types=[ ], serialized_options=None, @@ -476,70 +645,78 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1939, - serialized_end=2167, + serialized_start=2359, + serialized_end=2639, ) -_HISTOGRAMDATAPOINT = _descriptor.Descriptor( - name='HistogramDataPoint', - full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint', + +_DOUBLEHISTOGRAMDATAPOINT = _descriptor.Descriptor( + name='DoubleHistogramDataPoint', + full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='labels', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.labels', index=0, + name='labels', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.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.HistogramDataPoint.start_time_unix_nano', index=1, + name='start_time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.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.HistogramDataPoint.time_unix_nano', index=2, + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.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.HistogramDataPoint.count', index=3, - number=4, type=4, cpp_type=4, label=1, + name='count', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.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.HistogramDataPoint.sum', index=4, + name='sum', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.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='buckets', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.buckets', index=5, - number=6, type=11, cpp_type=10, label=3, + name='bucket_counts', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.bucket_counts', index=5, + number=6, type=6, cpp_type=4, 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='explicit_bounds', full_name='opentelemetry.proto.metrics.v1.HistogramDataPoint.explicit_bounds', index=6, + name='explicit_bounds', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.explicit_bounds', index=6, number=7, type=1, cpp_type=5, 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='exemplars', full_name='opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint.exemplars', index=7, + number=8, 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=[_HISTOGRAMDATAPOINT_BUCKET, ], + nested_types=[], enum_types=[ ], serialized_options=None, @@ -548,29 +725,50 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1670, - serialized_end=2167, + serialized_start=2642, + serialized_end=2928, ) -_SUMMARYDATAPOINT_VALUEATPERCENTILE = _descriptor.Descriptor( - name='ValueAtPercentile', - full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile', +_INTEXEMPLAR = _descriptor.Descriptor( + name='IntExemplar', + full_name='opentelemetry.proto.metrics.v1.IntExemplar', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='percentile', full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile.percentile', index=0, - number=1, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + name='filtered_labels', full_name='opentelemetry.proto.metrics.v1.IntExemplar.filtered_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='value', full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile.value', index=1, - number=2, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.IntExemplar.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='value', full_name='opentelemetry.proto.metrics.v1.IntExemplar.value', index=2, + number=3, type=16, cpp_type=2, 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='span_id', full_name='opentelemetry.proto.metrics.v1.IntExemplar.span_id', index=3, + number=4, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='trace_id', full_name='opentelemetry.proto.metrics.v1.IntExemplar.trace_id', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -586,63 +784,57 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2430, - serialized_end=2484, + serialized_start=2931, + serialized_end=3090, ) -_SUMMARYDATAPOINT = _descriptor.Descriptor( - name='SummaryDataPoint', - full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint', + +_DOUBLEEXEMPLAR = _descriptor.Descriptor( + name='DoubleExemplar', + full_name='opentelemetry.proto.metrics.v1.DoubleExemplar', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='labels', full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.labels', index=0, + name='filtered_labels', full_name='opentelemetry.proto.metrics.v1.DoubleExemplar.filtered_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.SummaryDataPoint.start_time_unix_nano', index=1, + name='time_unix_nano', full_name='opentelemetry.proto.metrics.v1.DoubleExemplar.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.SummaryDataPoint.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.SummaryDataPoint.count', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, + name='value', full_name='opentelemetry.proto.metrics.v1.DoubleExemplar.value', index=2, + number=3, 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='sum', full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.sum', index=4, - number=5, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + name='span_id', full_name='opentelemetry.proto.metrics.v1.DoubleExemplar.span_id', index=3, + number=4, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='percentile_values', full_name='opentelemetry.proto.metrics.v1.SummaryDataPoint.percentile_values', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], + name='trace_id', full_name='opentelemetry.proto.metrics.v1.DoubleExemplar.trace_id', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], - nested_types=[_SUMMARYDATAPOINT_VALUEATPERCENTILE, ], + nested_types=[], enum_types=[ ], serialized_options=None, @@ -651,42 +843,74 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2170, - serialized_end=2484, + serialized_start=3093, + serialized_end=3255, ) _RESOURCEMETRICS.fields_by_name['resource'].message_type = opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2._RESOURCE _RESOURCEMETRICS.fields_by_name['instrumentation_library_metrics'].message_type = _INSTRUMENTATIONLIBRARYMETRICS _INSTRUMENTATIONLIBRARYMETRICS.fields_by_name['instrumentation_library'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._INSTRUMENTATIONLIBRARY _INSTRUMENTATIONLIBRARYMETRICS.fields_by_name['metrics'].message_type = _METRIC -_METRIC.fields_by_name['metric_descriptor'].message_type = _METRICDESCRIPTOR -_METRIC.fields_by_name['int64_data_points'].message_type = _INT64DATAPOINT -_METRIC.fields_by_name['double_data_points'].message_type = _DOUBLEDATAPOINT -_METRIC.fields_by_name['histogram_data_points'].message_type = _HISTOGRAMDATAPOINT -_METRIC.fields_by_name['summary_data_points'].message_type = _SUMMARYDATAPOINT -_METRICDESCRIPTOR.fields_by_name['type'].enum_type = _METRICDESCRIPTOR_TYPE -_METRICDESCRIPTOR.fields_by_name['temporality'].enum_type = _METRICDESCRIPTOR_TEMPORALITY -_METRICDESCRIPTOR_TYPE.containing_type = _METRICDESCRIPTOR -_METRICDESCRIPTOR_TEMPORALITY.containing_type = _METRICDESCRIPTOR -_INT64DATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE +_METRIC.fields_by_name['int_gauge'].message_type = _INTGAUGE +_METRIC.fields_by_name['double_gauge'].message_type = _DOUBLEGAUGE +_METRIC.fields_by_name['int_sum'].message_type = _INTSUM +_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.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'] +_METRIC.oneofs_by_name['data'].fields.append( + _METRIC.fields_by_name['double_gauge']) +_METRIC.fields_by_name['double_gauge'].containing_oneof = _METRIC.oneofs_by_name['data'] +_METRIC.oneofs_by_name['data'].fields.append( + _METRIC.fields_by_name['int_sum']) +_METRIC.fields_by_name['int_sum'].containing_oneof = _METRIC.oneofs_by_name['data'] +_METRIC.oneofs_by_name['data'].fields.append( + _METRIC.fields_by_name['double_sum']) +_METRIC.fields_by_name['double_sum'].containing_oneof = _METRIC.oneofs_by_name['data'] +_METRIC.oneofs_by_name['data'].fields.append( + _METRIC.fields_by_name['int_histogram']) +_METRIC.fields_by_name['int_histogram'].containing_oneof = _METRIC.oneofs_by_name['data'] +_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'] +_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 +_INTSUM.fields_by_name['aggregation_temporality'].enum_type = _AGGREGATIONTEMPORALITY +_DOUBLESUM.fields_by_name['data_points'].message_type = _DOUBLEDATAPOINT +_DOUBLESUM.fields_by_name['aggregation_temporality'].enum_type = _AGGREGATIONTEMPORALITY +_INTHISTOGRAM.fields_by_name['data_points'].message_type = _INTHISTOGRAMDATAPOINT +_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 +_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 -_HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR.fields_by_name['attachments'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE -_HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR.containing_type = _HISTOGRAMDATAPOINT_BUCKET -_HISTOGRAMDATAPOINT_BUCKET.fields_by_name['exemplar'].message_type = _HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR -_HISTOGRAMDATAPOINT_BUCKET.containing_type = _HISTOGRAMDATAPOINT -_HISTOGRAMDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE -_HISTOGRAMDATAPOINT.fields_by_name['buckets'].message_type = _HISTOGRAMDATAPOINT_BUCKET -_SUMMARYDATAPOINT_VALUEATPERCENTILE.containing_type = _SUMMARYDATAPOINT -_SUMMARYDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE -_SUMMARYDATAPOINT.fields_by_name['percentile_values'].message_type = _SUMMARYDATAPOINT_VALUEATPERCENTILE +_DOUBLEDATAPOINT.fields_by_name['exemplars'].message_type = _DOUBLEEXEMPLAR +_INTHISTOGRAMDATAPOINT.fields_by_name['labels'].message_type = opentelemetry_dot_proto_dot_common_dot_v1_dot_common__pb2._STRINGKEYVALUE +_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 +_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 DESCRIPTOR.message_types_by_name['InstrumentationLibraryMetrics'] = _INSTRUMENTATIONLIBRARYMETRICS DESCRIPTOR.message_types_by_name['Metric'] = _METRIC -DESCRIPTOR.message_types_by_name['MetricDescriptor'] = _METRICDESCRIPTOR -DESCRIPTOR.message_types_by_name['Int64DataPoint'] = _INT64DATAPOINT +DESCRIPTOR.message_types_by_name['IntGauge'] = _INTGAUGE +DESCRIPTOR.message_types_by_name['DoubleGauge'] = _DOUBLEGAUGE +DESCRIPTOR.message_types_by_name['IntSum'] = _INTSUM +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['IntDataPoint'] = _INTDATAPOINT DESCRIPTOR.message_types_by_name['DoubleDataPoint'] = _DOUBLEDATAPOINT -DESCRIPTOR.message_types_by_name['HistogramDataPoint'] = _HISTOGRAMDATAPOINT -DESCRIPTOR.message_types_by_name['SummaryDataPoint'] = _SUMMARYDATAPOINT +DESCRIPTOR.message_types_by_name['IntHistogramDataPoint'] = _INTHISTOGRAMDATAPOINT +DESCRIPTOR.message_types_by_name['DoubleHistogramDataPoint'] = _DOUBLEHISTOGRAMDATAPOINT +DESCRIPTOR.message_types_by_name['IntExemplar'] = _INTEXEMPLAR +DESCRIPTOR.message_types_by_name['DoubleExemplar'] = _DOUBLEEXEMPLAR +DESCRIPTOR.enum_types_by_name['AggregationTemporality'] = _AGGREGATIONTEMPORALITY _sym_db.RegisterFileDescriptor(DESCRIPTOR) ResourceMetrics = _reflection.GeneratedProtocolMessageType('ResourceMetrics', (_message.Message,), { @@ -710,19 +934,54 @@ }) _sym_db.RegisterMessage(Metric) -MetricDescriptor = _reflection.GeneratedProtocolMessageType('MetricDescriptor', (_message.Message,), { - 'DESCRIPTOR' : _METRICDESCRIPTOR, +IntGauge = _reflection.GeneratedProtocolMessageType('IntGauge', (_message.Message,), { + 'DESCRIPTOR' : _INTGAUGE, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntGauge) + }) +_sym_db.RegisterMessage(IntGauge) + +DoubleGauge = _reflection.GeneratedProtocolMessageType('DoubleGauge', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLEGAUGE, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.MetricDescriptor) + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleGauge) }) -_sym_db.RegisterMessage(MetricDescriptor) +_sym_db.RegisterMessage(DoubleGauge) -Int64DataPoint = _reflection.GeneratedProtocolMessageType('Int64DataPoint', (_message.Message,), { - 'DESCRIPTOR' : _INT64DATAPOINT, +IntSum = _reflection.GeneratedProtocolMessageType('IntSum', (_message.Message,), { + 'DESCRIPTOR' : _INTSUM, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.Int64DataPoint) + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntSum) }) -_sym_db.RegisterMessage(Int64DataPoint) +_sym_db.RegisterMessage(IntSum) + +DoubleSum = _reflection.GeneratedProtocolMessageType('DoubleSum', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLESUM, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleSum) + }) +_sym_db.RegisterMessage(DoubleSum) + +IntHistogram = _reflection.GeneratedProtocolMessageType('IntHistogram', (_message.Message,), { + 'DESCRIPTOR' : _INTHISTOGRAM, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntHistogram) + }) +_sym_db.RegisterMessage(IntHistogram) + +DoubleHistogram = _reflection.GeneratedProtocolMessageType('DoubleHistogram', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLEHISTOGRAM, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleHistogram) + }) +_sym_db.RegisterMessage(DoubleHistogram) + +IntDataPoint = _reflection.GeneratedProtocolMessageType('IntDataPoint', (_message.Message,), { + 'DESCRIPTOR' : _INTDATAPOINT, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntDataPoint) + }) +_sym_db.RegisterMessage(IntDataPoint) DoubleDataPoint = _reflection.GeneratedProtocolMessageType('DoubleDataPoint', (_message.Message,), { 'DESCRIPTOR' : _DOUBLEDATAPOINT, @@ -731,43 +990,33 @@ }) _sym_db.RegisterMessage(DoubleDataPoint) -HistogramDataPoint = _reflection.GeneratedProtocolMessageType('HistogramDataPoint', (_message.Message,), { - - 'Bucket' : _reflection.GeneratedProtocolMessageType('Bucket', (_message.Message,), { +IntHistogramDataPoint = _reflection.GeneratedProtocolMessageType('IntHistogramDataPoint', (_message.Message,), { + 'DESCRIPTOR' : _INTHISTOGRAMDATAPOINT, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntHistogramDataPoint) + }) +_sym_db.RegisterMessage(IntHistogramDataPoint) - 'Exemplar' : _reflection.GeneratedProtocolMessageType('Exemplar', (_message.Message,), { - 'DESCRIPTOR' : _HISTOGRAMDATAPOINT_BUCKET_EXEMPLAR, - '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar) - }) - , - 'DESCRIPTOR' : _HISTOGRAMDATAPOINT_BUCKET, - '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket) - }) - , - 'DESCRIPTOR' : _HISTOGRAMDATAPOINT, +DoubleHistogramDataPoint = _reflection.GeneratedProtocolMessageType('DoubleHistogramDataPoint', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLEHISTOGRAMDATAPOINT, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.HistogramDataPoint) + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleHistogramDataPoint) }) -_sym_db.RegisterMessage(HistogramDataPoint) -_sym_db.RegisterMessage(HistogramDataPoint.Bucket) -_sym_db.RegisterMessage(HistogramDataPoint.Bucket.Exemplar) +_sym_db.RegisterMessage(DoubleHistogramDataPoint) -SummaryDataPoint = _reflection.GeneratedProtocolMessageType('SummaryDataPoint', (_message.Message,), { +IntExemplar = _reflection.GeneratedProtocolMessageType('IntExemplar', (_message.Message,), { + 'DESCRIPTOR' : _INTEXEMPLAR, + '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.IntExemplar) + }) +_sym_db.RegisterMessage(IntExemplar) - 'ValueAtPercentile' : _reflection.GeneratedProtocolMessageType('ValueAtPercentile', (_message.Message,), { - 'DESCRIPTOR' : _SUMMARYDATAPOINT_VALUEATPERCENTILE, - '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile) - }) - , - 'DESCRIPTOR' : _SUMMARYDATAPOINT, +DoubleExemplar = _reflection.GeneratedProtocolMessageType('DoubleExemplar', (_message.Message,), { + 'DESCRIPTOR' : _DOUBLEEXEMPLAR, '__module__' : 'opentelemetry.proto.metrics.v1.metrics_pb2' - # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.SummaryDataPoint) + # @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.DoubleExemplar) }) -_sym_db.RegisterMessage(SummaryDataPoint) -_sym_db.RegisterMessage(SummaryDataPoint.ValueAtPercentile) +_sym_db.RegisterMessage(DoubleExemplar) DESCRIPTOR._options = None 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 964e23e3a86..16a6b3d4b53 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/metrics/v1/metrics_pb2.pyi @@ -52,6 +52,28 @@ if sys.version_info < (3,): DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ... +AggregationTemporalityValue = typing___NewType('AggregationTemporalityValue', builtin___int) +type___AggregationTemporalityValue = AggregationTemporalityValue +class AggregationTemporality(object): + DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + @classmethod + def Name(cls, number: builtin___int) -> builtin___str: ... + @classmethod + def Value(cls, name: builtin___str) -> AggregationTemporalityValue: ... + @classmethod + def keys(cls) -> typing___List[builtin___str]: ... + @classmethod + def values(cls) -> typing___List[AggregationTemporalityValue]: ... + @classmethod + def items(cls) -> typing___List[typing___Tuple[builtin___str, AggregationTemporalityValue]]: ... + 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 = ... @@ -102,29 +124,39 @@ type___InstrumentationLibraryMetrics = InstrumentationLibraryMetrics class Metric(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + name: typing___Text = ... + description: typing___Text = ... + unit: typing___Text = ... @property - def metric_descriptor(self) -> type___MetricDescriptor: ... + def int_gauge(self) -> type___IntGauge: ... @property - def int64_data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Int64DataPoint]: ... + def double_gauge(self) -> type___DoubleGauge: ... @property - def double_data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleDataPoint]: ... + def int_sum(self) -> type___IntSum: ... @property - def histogram_data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___HistogramDataPoint]: ... + def double_sum(self) -> type___DoubleSum: ... @property - def summary_data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SummaryDataPoint]: ... + def int_histogram(self) -> type___IntHistogram: ... + + @property + def double_histogram(self) -> type___DoubleHistogram: ... def __init__(self, *, - metric_descriptor : typing___Optional[type___MetricDescriptor] = None, - int64_data_points : typing___Optional[typing___Iterable[type___Int64DataPoint]] = None, - double_data_points : typing___Optional[typing___Iterable[type___DoubleDataPoint]] = None, - histogram_data_points : typing___Optional[typing___Iterable[type___HistogramDataPoint]] = None, - summary_data_points : typing___Optional[typing___Iterable[type___SummaryDataPoint]] = None, + 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, ) -> None: ... if sys.version_info >= (3,): @classmethod @@ -132,90 +164,138 @@ class Metric(google___protobuf___message___Message): else: @classmethod def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> Metric: ... - def HasField(self, field_name: typing_extensions___Literal[u"metric_descriptor",b"metric_descriptor"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"double_data_points",b"double_data_points",u"histogram_data_points",b"histogram_data_points",u"int64_data_points",b"int64_data_points",u"metric_descriptor",b"metric_descriptor",u"summary_data_points",b"summary_data_points"]) -> 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 -class MetricDescriptor(google___protobuf___message___Message): +class IntGauge(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - TypeValue = typing___NewType('TypeValue', builtin___int) - type___TypeValue = TypeValue - class Type(object): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntDataPoint]: ... + + def __init__(self, + *, + data_points : typing___Optional[typing___Iterable[type___IntDataPoint]] = None, + ) -> None: ... + if sys.version_info >= (3,): @classmethod - def Name(cls, number: builtin___int) -> builtin___str: ... + def FromString(cls, s: builtin___bytes) -> IntGauge: ... + else: @classmethod - def Value(cls, name: builtin___str) -> MetricDescriptor.TypeValue: ... + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> IntGauge: ... + def ClearField(self, field_name: typing_extensions___Literal[u"data_points",b"data_points"]) -> None: ... +type___IntGauge = IntGauge + +class DoubleGauge(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleDataPoint]: ... + + def __init__(self, + *, + data_points : typing___Optional[typing___Iterable[type___DoubleDataPoint]] = None, + ) -> None: ... + if sys.version_info >= (3,): @classmethod - def keys(cls) -> typing___List[builtin___str]: ... + def FromString(cls, s: builtin___bytes) -> DoubleGauge: ... + else: @classmethod - def values(cls) -> typing___List[MetricDescriptor.TypeValue]: ... + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> DoubleGauge: ... + def ClearField(self, field_name: typing_extensions___Literal[u"data_points",b"data_points"]) -> None: ... +type___DoubleGauge = DoubleGauge + +class IntSum(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + aggregation_temporality: type___AggregationTemporalityValue = ... + is_monotonic: builtin___bool = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___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, + ) -> None: ... + if sys.version_info >= (3,): @classmethod - def items(cls) -> typing___List[typing___Tuple[builtin___str, MetricDescriptor.TypeValue]]: ... - INVALID_TYPE = typing___cast(MetricDescriptor.TypeValue, 0) - INT64 = typing___cast(MetricDescriptor.TypeValue, 1) - MONOTONIC_INT64 = typing___cast(MetricDescriptor.TypeValue, 2) - DOUBLE = typing___cast(MetricDescriptor.TypeValue, 3) - MONOTONIC_DOUBLE = typing___cast(MetricDescriptor.TypeValue, 4) - HISTOGRAM = typing___cast(MetricDescriptor.TypeValue, 5) - SUMMARY = typing___cast(MetricDescriptor.TypeValue, 6) - INVALID_TYPE = typing___cast(MetricDescriptor.TypeValue, 0) - INT64 = typing___cast(MetricDescriptor.TypeValue, 1) - MONOTONIC_INT64 = typing___cast(MetricDescriptor.TypeValue, 2) - DOUBLE = typing___cast(MetricDescriptor.TypeValue, 3) - MONOTONIC_DOUBLE = typing___cast(MetricDescriptor.TypeValue, 4) - HISTOGRAM = typing___cast(MetricDescriptor.TypeValue, 5) - SUMMARY = typing___cast(MetricDescriptor.TypeValue, 6) - type___Type = Type - - TemporalityValue = typing___NewType('TemporalityValue', builtin___int) - type___TemporalityValue = TemporalityValue - class Temporality(object): - DESCRIPTOR: google___protobuf___descriptor___EnumDescriptor = ... + def FromString(cls, s: builtin___bytes) -> IntSum: ... + else: @classmethod - def Name(cls, number: builtin___int) -> builtin___str: ... + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> 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: ... +type___IntSum = IntSum + +class DoubleSum(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + aggregation_temporality: type___AggregationTemporalityValue = ... + is_monotonic: builtin___bool = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___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, + ) -> None: ... + if sys.version_info >= (3,): @classmethod - def Value(cls, name: builtin___str) -> MetricDescriptor.TemporalityValue: ... + def FromString(cls, s: builtin___bytes) -> DoubleSum: ... + else: @classmethod - def keys(cls) -> typing___List[builtin___str]: ... + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> 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: ... +type___DoubleSum = DoubleSum + +class IntHistogram(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + aggregation_temporality: type___AggregationTemporalityValue = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntHistogramDataPoint]: ... + + def __init__(self, + *, + data_points : typing___Optional[typing___Iterable[type___IntHistogramDataPoint]] = None, + aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, + ) -> None: ... + if sys.version_info >= (3,): @classmethod - def values(cls) -> typing___List[MetricDescriptor.TemporalityValue]: ... + def FromString(cls, s: builtin___bytes) -> IntHistogram: ... + else: @classmethod - def items(cls) -> typing___List[typing___Tuple[builtin___str, MetricDescriptor.TemporalityValue]]: ... - INVALID_TEMPORALITY = typing___cast(MetricDescriptor.TemporalityValue, 0) - INSTANTANEOUS = typing___cast(MetricDescriptor.TemporalityValue, 1) - DELTA = typing___cast(MetricDescriptor.TemporalityValue, 2) - CUMULATIVE = typing___cast(MetricDescriptor.TemporalityValue, 3) - INVALID_TEMPORALITY = typing___cast(MetricDescriptor.TemporalityValue, 0) - INSTANTANEOUS = typing___cast(MetricDescriptor.TemporalityValue, 1) - DELTA = typing___cast(MetricDescriptor.TemporalityValue, 2) - CUMULATIVE = typing___cast(MetricDescriptor.TemporalityValue, 3) - type___Temporality = Temporality + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> IntHistogram: ... + def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... +type___IntHistogram = IntHistogram - name: typing___Text = ... - description: typing___Text = ... - unit: typing___Text = ... - type: type___MetricDescriptor.TypeValue = ... - temporality: type___MetricDescriptor.TemporalityValue = ... +class DoubleHistogram(google___protobuf___message___Message): + DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + aggregation_temporality: type___AggregationTemporalityValue = ... + + @property + def data_points(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleHistogramDataPoint]: ... def __init__(self, *, - name : typing___Optional[typing___Text] = None, - description : typing___Optional[typing___Text] = None, - unit : typing___Optional[typing___Text] = None, - type : typing___Optional[type___MetricDescriptor.TypeValue] = None, - temporality : typing___Optional[type___MetricDescriptor.TemporalityValue] = None, + data_points : typing___Optional[typing___Iterable[type___DoubleHistogramDataPoint]] = None, + aggregation_temporality : typing___Optional[type___AggregationTemporalityValue] = None, ) -> None: ... if sys.version_info >= (3,): @classmethod - def FromString(cls, s: builtin___bytes) -> MetricDescriptor: ... + def FromString(cls, s: builtin___bytes) -> DoubleHistogram: ... else: @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> MetricDescriptor: ... - def ClearField(self, field_name: typing_extensions___Literal[u"description",b"description",u"name",b"name",u"temporality",b"temporality",u"type",b"type",u"unit",b"unit"]) -> None: ... -type___MetricDescriptor = MetricDescriptor + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> DoubleHistogram: ... + def ClearField(self, field_name: typing_extensions___Literal[u"aggregation_temporality",b"aggregation_temporality",u"data_points",b"data_points"]) -> None: ... +type___DoubleHistogram = DoubleHistogram -class Int64DataPoint(google___protobuf___message___Message): +class IntDataPoint(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... start_time_unix_nano: builtin___int = ... time_unix_nano: builtin___int = ... @@ -224,21 +304,25 @@ class Int64DataPoint(google___protobuf___message___Message): @property 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 __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, ) -> None: ... if sys.version_info >= (3,): @classmethod - def FromString(cls, s: builtin___bytes) -> Int64DataPoint: ... + def FromString(cls, s: builtin___bytes) -> IntDataPoint: ... else: @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> Int64DataPoint: ... - def ClearField(self, field_name: typing_extensions___Literal[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___Int64DataPoint = Int64DataPoint + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> IntDataPoint: ... + 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 = ... @@ -249,12 +333,16 @@ class DoubleDataPoint(google___protobuf___message___Message): @property 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 __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, ) -> None: ... if sys.version_info >= (3,): @classmethod @@ -262,67 +350,23 @@ class DoubleDataPoint(google___protobuf___message___Message): else: @classmethod def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> DoubleDataPoint: ... - def ClearField(self, field_name: typing_extensions___Literal[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: ... + 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 HistogramDataPoint(google___protobuf___message___Message): +class IntHistogramDataPoint(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Bucket(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class Exemplar(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - value: builtin___float = ... - time_unix_nano: builtin___int = ... - - @property - def attachments(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... - - def __init__(self, - *, - value : typing___Optional[builtin___float] = None, - time_unix_nano : typing___Optional[builtin___int] = None, - attachments : typing___Optional[typing___Iterable[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]] = None, - ) -> None: ... - if sys.version_info >= (3,): - @classmethod - def FromString(cls, s: builtin___bytes) -> HistogramDataPoint.Bucket.Exemplar: ... - else: - @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> HistogramDataPoint.Bucket.Exemplar: ... - def ClearField(self, field_name: typing_extensions___Literal[u"attachments",b"attachments",u"time_unix_nano",b"time_unix_nano",u"value",b"value"]) -> None: ... - type___Exemplar = Exemplar - - count: builtin___int = ... - - @property - def exemplar(self) -> type___HistogramDataPoint.Bucket.Exemplar: ... - - def __init__(self, - *, - count : typing___Optional[builtin___int] = None, - exemplar : typing___Optional[type___HistogramDataPoint.Bucket.Exemplar] = None, - ) -> None: ... - if sys.version_info >= (3,): - @classmethod - def FromString(cls, s: builtin___bytes) -> HistogramDataPoint.Bucket: ... - else: - @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> HistogramDataPoint.Bucket: ... - def HasField(self, field_name: typing_extensions___Literal[u"exemplar",b"exemplar"]) -> builtin___bool: ... - def ClearField(self, field_name: typing_extensions___Literal[u"count",b"count",u"exemplar",b"exemplar"]) -> None: ... - type___Bucket = Bucket - start_time_unix_nano: builtin___int = ... time_unix_nano: builtin___int = ... count: builtin___int = ... - sum: builtin___float = ... + sum: builtin___int = ... + bucket_counts: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ... explicit_bounds: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ... @property def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... @property - def buckets(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___HistogramDataPoint.Bucket]: ... + def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___IntExemplar]: ... def __init__(self, *, @@ -330,50 +374,34 @@ class HistogramDataPoint(google___protobuf___message___Message): 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, - buckets : typing___Optional[typing___Iterable[type___HistogramDataPoint.Bucket]] = 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, ) -> None: ... if sys.version_info >= (3,): @classmethod - def FromString(cls, s: builtin___bytes) -> HistogramDataPoint: ... + def FromString(cls, s: builtin___bytes) -> IntHistogramDataPoint: ... else: @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> HistogramDataPoint: ... - def ClearField(self, field_name: typing_extensions___Literal[u"buckets",b"buckets",u"count",b"count",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___HistogramDataPoint = HistogramDataPoint + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> IntHistogramDataPoint: ... + 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 SummaryDataPoint(google___protobuf___message___Message): +class DoubleHistogramDataPoint(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - class ValueAtPercentile(google___protobuf___message___Message): - DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... - percentile: builtin___float = ... - value: builtin___float = ... - - def __init__(self, - *, - percentile : typing___Optional[builtin___float] = None, - value : typing___Optional[builtin___float] = None, - ) -> None: ... - if sys.version_info >= (3,): - @classmethod - def FromString(cls, s: builtin___bytes) -> SummaryDataPoint.ValueAtPercentile: ... - else: - @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> SummaryDataPoint.ValueAtPercentile: ... - def ClearField(self, field_name: typing_extensions___Literal[u"percentile",b"percentile",u"value",b"value"]) -> None: ... - type___ValueAtPercentile = ValueAtPercentile - 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] = ... @property def labels(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[opentelemetry___proto___common___v1___common_pb2___StringKeyValue]: ... @property - def percentile_values(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___SummaryDataPoint.ValueAtPercentile]: ... + def exemplars(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___DoubleExemplar]: ... def __init__(self, *, @@ -382,13 +410,69 @@ class SummaryDataPoint(google___protobuf___message___Message): time_unix_nano : typing___Optional[builtin___int] = None, count : typing___Optional[builtin___int] = None, sum : typing___Optional[builtin___float] = None, - percentile_values : typing___Optional[typing___Iterable[type___SummaryDataPoint.ValueAtPercentile]] = 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, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> DoubleHistogramDataPoint: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> 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: ... +type___DoubleHistogramDataPoint = DoubleHistogramDataPoint + +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 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___int] = None, + span_id : typing___Optional[builtin___bytes] = None, + trace_id : typing___Optional[builtin___bytes] = None, + ) -> None: ... + if sys.version_info >= (3,): + @classmethod + def FromString(cls, s: builtin___bytes) -> IntExemplar: ... + else: + @classmethod + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> IntExemplar: ... + 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 + +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 = ... + + @property + 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, ) -> None: ... if sys.version_info >= (3,): @classmethod - def FromString(cls, s: builtin___bytes) -> SummaryDataPoint: ... + def FromString(cls, s: builtin___bytes) -> DoubleExemplar: ... else: @classmethod - def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> SummaryDataPoint: ... - def ClearField(self, field_name: typing_extensions___Literal[u"count",b"count",u"labels",b"labels",u"percentile_values",b"percentile_values",u"start_time_unix_nano",b"start_time_unix_nano",u"sum",b"sum",u"time_unix_nano",b"time_unix_nano"]) -> None: ... -type___SummaryDataPoint = SummaryDataPoint + def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> 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: ... +type___DoubleExemplar = DoubleExemplar diff --git a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.py b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.py index 636c4411442..7fb57c4bf05 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.py +++ b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.py @@ -20,7 +20,7 @@ package='opentelemetry.proto.trace.v1', syntax='proto3', serialized_options=b'\n\037io.opentelemetry.proto.trace.v1B\nTraceProtoP\001Z=github.com/open-telemetry/opentelemetry-proto/gen/go/trace/v1', - serialized_pb=b'\n(opentelemetry/proto/trace/v1/trace.proto\x12\x1copentelemetry.proto.trace.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"\xae\x01\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12`\n\x1dinstrumentation_library_spans\x18\x02 \x03(\x0b\x32\x39.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans\"\xa8\x01\n\x1bInstrumentationLibrarySpans\x12V\n\x17instrumentation_library\x18\x01 \x01(\x0b\x32\x35.opentelemetry.proto.common.v1.InstrumentationLibrary\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\"\xb3\x07\n\x04Span\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x04 \x01(\x0c\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x39\n\x04kind\x18\x06 \x01(\x0e\x32+.opentelemetry.proto.trace.v1.Span.SpanKind\x12\x1c\n\x14start_time_unix_nano\x18\x07 \x01(\x06\x12\x1a\n\x12\x65nd_time_unix_nano\x18\x08 \x01(\x06\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\n \x01(\r\x12\x38\n\x06\x65vents\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.trace.v1.Span.Event\x12\x1c\n\x14\x64ropped_events_count\x18\x0c \x01(\r\x12\x36\n\x05links\x18\r \x03(\x0b\x32\'.opentelemetry.proto.trace.v1.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x0e \x01(\r\x12\x34\n\x06status\x18\x0f \x01(\x0b\x32$.opentelemetry.proto.trace.v1.Status\x1a\x8c\x01\n\x05\x45vent\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\nattributes\x18\x03 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x04 \x01(\r\x1a\x9d\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12;\n\nattributes\x18\x04 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x05 \x01(\r\"g\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08INTERNAL\x10\x01\x12\n\n\x06SERVER\x10\x02\x12\n\n\x06\x43LIENT\x10\x03\x12\x0c\n\x08PRODUCER\x10\x04\x12\x0c\n\x08\x43ONSUMER\x10\x05\"\x98\x03\n\x06Status\x12=\n\x04\x63ode\x18\x01 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xbd\x02\n\nStatusCode\x12\x06\n\x02Ok\x10\x00\x12\r\n\tCancelled\x10\x01\x12\x10\n\x0cUnknownError\x10\x02\x12\x13\n\x0fInvalidArgument\x10\x03\x12\x14\n\x10\x44\x65\x61\x64lineExceeded\x10\x04\x12\x0c\n\x08NotFound\x10\x05\x12\x11\n\rAlreadyExists\x10\x06\x12\x14\n\x10PermissionDenied\x10\x07\x12\x15\n\x11ResourceExhausted\x10\x08\x12\x16\n\x12\x46\x61iledPrecondition\x10\t\x12\x0b\n\x07\x41\x62orted\x10\n\x12\x0e\n\nOutOfRange\x10\x0b\x12\x11\n\rUnimplemented\x10\x0c\x12\x11\n\rInternalError\x10\r\x12\x0f\n\x0bUnavailable\x10\x0e\x12\x0c\n\x08\x44\x61taLoss\x10\x0f\x12\x13\n\x0fUnauthenticated\x10\x10\x42n\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z=github.com/open-telemetry/opentelemetry-proto/gen/go/trace/v1b\x06proto3' + serialized_pb=b'\n(opentelemetry/proto/trace/v1/trace.proto\x12\x1copentelemetry.proto.trace.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"\xae\x01\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12`\n\x1dinstrumentation_library_spans\x18\x02 \x03(\x0b\x32\x39.opentelemetry.proto.trace.v1.InstrumentationLibrarySpans\"\xa8\x01\n\x1bInstrumentationLibrarySpans\x12V\n\x17instrumentation_library\x18\x01 \x01(\x0b\x32\x35.opentelemetry.proto.common.v1.InstrumentationLibrary\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\"\xe6\x07\n\x04Span\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12\x16\n\x0eparent_span_id\x18\x04 \x01(\x0c\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x39\n\x04kind\x18\x06 \x01(\x0e\x32+.opentelemetry.proto.trace.v1.Span.SpanKind\x12\x1c\n\x14start_time_unix_nano\x18\x07 \x01(\x06\x12\x1a\n\x12\x65nd_time_unix_nano\x18\x08 \x01(\x06\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\n \x01(\r\x12\x38\n\x06\x65vents\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.trace.v1.Span.Event\x12\x1c\n\x14\x64ropped_events_count\x18\x0c \x01(\r\x12\x36\n\x05links\x18\r \x03(\x0b\x32\'.opentelemetry.proto.trace.v1.Span.Link\x12\x1b\n\x13\x64ropped_links_count\x18\x0e \x01(\r\x12\x34\n\x06status\x18\x0f \x01(\x0b\x32$.opentelemetry.proto.trace.v1.Status\x1a\x8c\x01\n\x05\x45vent\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\nattributes\x18\x03 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x04 \x01(\r\x1a\x9d\x01\n\x04Link\x12\x10\n\x08trace_id\x18\x01 \x01(\x0c\x12\x0f\n\x07span_id\x18\x02 \x01(\x0c\x12\x13\n\x0btrace_state\x18\x03 \x01(\t\x12;\n\nattributes\x18\x04 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x05 \x01(\r\"\x99\x01\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x16\n\x12SPAN_KIND_INTERNAL\x10\x01\x12\x14\n\x10SPAN_KIND_SERVER\x10\x02\x12\x14\n\x10SPAN_KIND_CLIENT\x10\x03\x12\x16\n\x12SPAN_KIND_PRODUCER\x10\x04\x12\x16\n\x12SPAN_KIND_CONSUMER\x10\x05\"\xf0\x04\n\x06Status\x12=\n\x04\x63ode\x18\x01 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\x12\x0f\n\x07message\x18\x02 \x01(\t\"\x95\x04\n\nStatusCode\x12\x12\n\x0eSTATUS_CODE_OK\x10\x00\x12\x19\n\x15STATUS_CODE_CANCELLED\x10\x01\x12\x1d\n\x19STATUS_CODE_UNKNOWN_ERROR\x10\x02\x12 \n\x1cSTATUS_CODE_INVALID_ARGUMENT\x10\x03\x12!\n\x1dSTATUS_CODE_DEADLINE_EXCEEDED\x10\x04\x12\x19\n\x15STATUS_CODE_NOT_FOUND\x10\x05\x12\x1e\n\x1aSTATUS_CODE_ALREADY_EXISTS\x10\x06\x12!\n\x1dSTATUS_CODE_PERMISSION_DENIED\x10\x07\x12\"\n\x1eSTATUS_CODE_RESOURCE_EXHAUSTED\x10\x08\x12#\n\x1fSTATUS_CODE_FAILED_PRECONDITION\x10\t\x12\x17\n\x13STATUS_CODE_ABORTED\x10\n\x12\x1c\n\x18STATUS_CODE_OUT_OF_RANGE\x10\x0b\x12\x1d\n\x19STATUS_CODE_UNIMPLEMENTED\x10\x0c\x12\x1e\n\x1aSTATUS_CODE_INTERNAL_ERROR\x10\r\x12\x1b\n\x17STATUS_CODE_UNAVAILABLE\x10\x0e\x12\x19\n\x15STATUS_CODE_DATA_LOSS\x10\x0f\x12\x1f\n\x1bSTATUS_CODE_UNAUTHENTICATED\x10\x10\x42n\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z=github.com/open-telemetry/opentelemetry-proto/gen/go/trace/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,]) @@ -37,30 +37,30 @@ serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='INTERNAL', index=1, number=1, + name='SPAN_KIND_INTERNAL', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='SERVER', index=2, number=2, + name='SPAN_KIND_SERVER', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CLIENT', index=3, number=3, + name='SPAN_KIND_CLIENT', index=3, number=3, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='PRODUCER', index=4, number=4, + name='SPAN_KIND_PRODUCER', index=4, number=4, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CONSUMER', index=5, number=5, + name='SPAN_KIND_CONSUMER', index=5, number=5, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, - serialized_start=1359, - serialized_end=1462, + serialized_start=1360, + serialized_end=1513, ) _sym_db.RegisterEnumDescriptor(_SPAN_SPANKIND) @@ -71,78 +71,78 @@ file=DESCRIPTOR, values=[ _descriptor.EnumValueDescriptor( - name='Ok', index=0, number=0, + name='STATUS_CODE_OK', index=0, number=0, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='Cancelled', index=1, number=1, + name='STATUS_CODE_CANCELLED', index=1, number=1, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='UnknownError', index=2, number=2, + name='STATUS_CODE_UNKNOWN_ERROR', index=2, number=2, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='InvalidArgument', index=3, number=3, + name='STATUS_CODE_INVALID_ARGUMENT', index=3, number=3, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='DeadlineExceeded', index=4, number=4, + name='STATUS_CODE_DEADLINE_EXCEEDED', index=4, number=4, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='NotFound', index=5, number=5, + name='STATUS_CODE_NOT_FOUND', index=5, number=5, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='AlreadyExists', index=6, number=6, + name='STATUS_CODE_ALREADY_EXISTS', index=6, number=6, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='PermissionDenied', index=7, number=7, + name='STATUS_CODE_PERMISSION_DENIED', index=7, number=7, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='ResourceExhausted', index=8, number=8, + name='STATUS_CODE_RESOURCE_EXHAUSTED', index=8, number=8, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='FailedPrecondition', index=9, number=9, + name='STATUS_CODE_FAILED_PRECONDITION', index=9, number=9, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='Aborted', index=10, number=10, + name='STATUS_CODE_ABORTED', index=10, number=10, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='OutOfRange', index=11, number=11, + name='STATUS_CODE_OUT_OF_RANGE', index=11, number=11, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='Unimplemented', index=12, number=12, + name='STATUS_CODE_UNIMPLEMENTED', index=12, number=12, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='InternalError', index=13, number=13, + name='STATUS_CODE_INTERNAL_ERROR', index=13, number=13, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='Unavailable', index=14, number=14, + name='STATUS_CODE_UNAVAILABLE', index=14, number=14, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='DataLoss', index=15, number=15, + name='STATUS_CODE_DATA_LOSS', index=15, number=15, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='Unauthenticated', index=16, number=16, + name='STATUS_CODE_UNAUTHENTICATED', index=16, number=16, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, - serialized_start=1556, - serialized_end=1873, + serialized_start=1607, + serialized_end=2140, ) _sym_db.RegisterEnumDescriptor(_STATUS_STATUSCODE) @@ -458,7 +458,7 @@ oneofs=[ ], serialized_start=515, - serialized_end=1462, + serialized_end=1513, ) @@ -496,8 +496,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1465, - serialized_end=1873, + serialized_start=1516, + serialized_end=2140, ) _RESOURCESPANS.fields_by_name['resource'].message_type = opentelemetry_dot_proto_dot_resource_dot_v1_dot_resource__pb2._RESOURCE 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 e0726557d65..ad2c0167054 100644 --- a/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi +++ b/opentelemetry-proto/src/opentelemetry/proto/trace/v1/trace_pb2.pyi @@ -116,17 +116,17 @@ class Span(google___protobuf___message___Message): @classmethod def items(cls) -> typing___List[typing___Tuple[builtin___str, Span.SpanKindValue]]: ... SPAN_KIND_UNSPECIFIED = typing___cast(Span.SpanKindValue, 0) - INTERNAL = typing___cast(Span.SpanKindValue, 1) - SERVER = typing___cast(Span.SpanKindValue, 2) - CLIENT = typing___cast(Span.SpanKindValue, 3) - PRODUCER = typing___cast(Span.SpanKindValue, 4) - CONSUMER = typing___cast(Span.SpanKindValue, 5) + 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) - INTERNAL = typing___cast(Span.SpanKindValue, 1) - SERVER = typing___cast(Span.SpanKindValue, 2) - CLIENT = typing___cast(Span.SpanKindValue, 3) - PRODUCER = typing___cast(Span.SpanKindValue, 4) - CONSUMER = typing___cast(Span.SpanKindValue, 5) + 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): @@ -249,40 +249,40 @@ class Status(google___protobuf___message___Message): def values(cls) -> typing___List[Status.StatusCodeValue]: ... @classmethod def items(cls) -> typing___List[typing___Tuple[builtin___str, Status.StatusCodeValue]]: ... - Ok = typing___cast(Status.StatusCodeValue, 0) - Cancelled = typing___cast(Status.StatusCodeValue, 1) - UnknownError = typing___cast(Status.StatusCodeValue, 2) - InvalidArgument = typing___cast(Status.StatusCodeValue, 3) - DeadlineExceeded = typing___cast(Status.StatusCodeValue, 4) - NotFound = typing___cast(Status.StatusCodeValue, 5) - AlreadyExists = typing___cast(Status.StatusCodeValue, 6) - PermissionDenied = typing___cast(Status.StatusCodeValue, 7) - ResourceExhausted = typing___cast(Status.StatusCodeValue, 8) - FailedPrecondition = typing___cast(Status.StatusCodeValue, 9) - Aborted = typing___cast(Status.StatusCodeValue, 10) - OutOfRange = typing___cast(Status.StatusCodeValue, 11) - Unimplemented = typing___cast(Status.StatusCodeValue, 12) - InternalError = typing___cast(Status.StatusCodeValue, 13) - Unavailable = typing___cast(Status.StatusCodeValue, 14) - DataLoss = typing___cast(Status.StatusCodeValue, 15) - Unauthenticated = typing___cast(Status.StatusCodeValue, 16) - Ok = typing___cast(Status.StatusCodeValue, 0) - Cancelled = typing___cast(Status.StatusCodeValue, 1) - UnknownError = typing___cast(Status.StatusCodeValue, 2) - InvalidArgument = typing___cast(Status.StatusCodeValue, 3) - DeadlineExceeded = typing___cast(Status.StatusCodeValue, 4) - NotFound = typing___cast(Status.StatusCodeValue, 5) - AlreadyExists = typing___cast(Status.StatusCodeValue, 6) - PermissionDenied = typing___cast(Status.StatusCodeValue, 7) - ResourceExhausted = typing___cast(Status.StatusCodeValue, 8) - FailedPrecondition = typing___cast(Status.StatusCodeValue, 9) - Aborted = typing___cast(Status.StatusCodeValue, 10) - OutOfRange = typing___cast(Status.StatusCodeValue, 11) - Unimplemented = typing___cast(Status.StatusCodeValue, 12) - InternalError = typing___cast(Status.StatusCodeValue, 13) - Unavailable = typing___cast(Status.StatusCodeValue, 14) - DataLoss = typing___cast(Status.StatusCodeValue, 15) - Unauthenticated = typing___cast(Status.StatusCodeValue, 16) + STATUS_CODE_OK = typing___cast(Status.StatusCodeValue, 0) + STATUS_CODE_CANCELLED = typing___cast(Status.StatusCodeValue, 1) + STATUS_CODE_UNKNOWN_ERROR = typing___cast(Status.StatusCodeValue, 2) + STATUS_CODE_INVALID_ARGUMENT = typing___cast(Status.StatusCodeValue, 3) + STATUS_CODE_DEADLINE_EXCEEDED = typing___cast(Status.StatusCodeValue, 4) + STATUS_CODE_NOT_FOUND = typing___cast(Status.StatusCodeValue, 5) + STATUS_CODE_ALREADY_EXISTS = typing___cast(Status.StatusCodeValue, 6) + STATUS_CODE_PERMISSION_DENIED = typing___cast(Status.StatusCodeValue, 7) + STATUS_CODE_RESOURCE_EXHAUSTED = typing___cast(Status.StatusCodeValue, 8) + STATUS_CODE_FAILED_PRECONDITION = typing___cast(Status.StatusCodeValue, 9) + STATUS_CODE_ABORTED = typing___cast(Status.StatusCodeValue, 10) + STATUS_CODE_OUT_OF_RANGE = typing___cast(Status.StatusCodeValue, 11) + STATUS_CODE_UNIMPLEMENTED = typing___cast(Status.StatusCodeValue, 12) + STATUS_CODE_INTERNAL_ERROR = typing___cast(Status.StatusCodeValue, 13) + STATUS_CODE_UNAVAILABLE = typing___cast(Status.StatusCodeValue, 14) + STATUS_CODE_DATA_LOSS = typing___cast(Status.StatusCodeValue, 15) + STATUS_CODE_UNAUTHENTICATED = typing___cast(Status.StatusCodeValue, 16) + STATUS_CODE_OK = typing___cast(Status.StatusCodeValue, 0) + STATUS_CODE_CANCELLED = typing___cast(Status.StatusCodeValue, 1) + STATUS_CODE_UNKNOWN_ERROR = typing___cast(Status.StatusCodeValue, 2) + STATUS_CODE_INVALID_ARGUMENT = typing___cast(Status.StatusCodeValue, 3) + STATUS_CODE_DEADLINE_EXCEEDED = typing___cast(Status.StatusCodeValue, 4) + STATUS_CODE_NOT_FOUND = typing___cast(Status.StatusCodeValue, 5) + STATUS_CODE_ALREADY_EXISTS = typing___cast(Status.StatusCodeValue, 6) + STATUS_CODE_PERMISSION_DENIED = typing___cast(Status.StatusCodeValue, 7) + STATUS_CODE_RESOURCE_EXHAUSTED = typing___cast(Status.StatusCodeValue, 8) + STATUS_CODE_FAILED_PRECONDITION = typing___cast(Status.StatusCodeValue, 9) + STATUS_CODE_ABORTED = typing___cast(Status.StatusCodeValue, 10) + STATUS_CODE_OUT_OF_RANGE = typing___cast(Status.StatusCodeValue, 11) + STATUS_CODE_UNIMPLEMENTED = typing___cast(Status.StatusCodeValue, 12) + STATUS_CODE_INTERNAL_ERROR = typing___cast(Status.StatusCodeValue, 13) + STATUS_CODE_UNAVAILABLE = typing___cast(Status.StatusCodeValue, 14) + STATUS_CODE_DATA_LOSS = typing___cast(Status.StatusCodeValue, 15) + STATUS_CODE_UNAUTHENTICATED = typing___cast(Status.StatusCodeValue, 16) type___StatusCode = StatusCode code: type___Status.StatusCodeValue = ... diff --git a/scripts/proto_codegen.sh b/scripts/proto_codegen.sh index f7742db6f68..e06a8a9320b 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.4.0" +PROTO_REPO_BRANCH_OR_COMMIT="v0.5.0" set -e