diff --git a/exporter/otlp-common/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb index 645dfd21f8..6cc98b0e7b 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/logs/v1/logs_service.proto @@ -5,15 +6,11 @@ require 'opentelemetry/proto/logs/v1/logs_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/logs/v1/logs_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse" do - end - end -end + +descriptor_data = "\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\x42p\n(io.opentelemetry.proto.collector.logs.v1B\x10LogsServiceProtoP\x01Z0go.opentelemetry.io/proto/otlp/collector/logs/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb index 56e3bbea69..7e95f43cdb 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto @@ -5,15 +6,11 @@ require 'opentelemetry/proto/metrics/v1/metrics_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/metrics/v1/metrics_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse" do - end - end -end + +descriptor_data = "\n>opentelemetry/proto/collector/metrics/v1/metrics_service.proto\x12(opentelemetry.proto.collector.metrics.v1\x1a,opentelemetry/proto/metrics/v1/metrics.proto\"h\n\x1b\x45xportMetricsServiceRequest\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"\x1e\n\x1c\x45xportMetricsServiceResponse2\xac\x01\n\x0eMetricsService\x12\x99\x01\n\x06\x45xport\x12\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest\x1a\x46.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse\"\x00\x42y\n+io.opentelemetry.proto.collector.metrics.v1B\x13MetricsServiceProtoP\x01Z3go.opentelemetry.io/proto/otlp/collector/metrics/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb index a71fbf168a..f6bc5efc5c 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/trace/v1/trace_service.proto @@ -5,15 +6,11 @@ require 'opentelemetry/proto/trace/v1/trace_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/trace/v1/trace_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse" do - end - end -end + +descriptor_data = "\n:opentelemetry/proto/collector/trace/v1/trace_service.proto\x12&opentelemetry.proto.collector.trace.v1\x1a(opentelemetry/proto/trace/v1/trace.proto\"`\n\x19\x45xportTraceServiceRequest\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"\x1c\n\x1a\x45xportTraceServiceResponse2\xa2\x01\n\x0cTraceService\x12\x91\x01\n\x06\x45xport\x12\x41.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest\x1a\x42.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse\"\x00\x42s\n)io.opentelemetry.proto.collector.trace.v1B\x11TraceServiceProtoP\x01Z1go.opentelemetry.io/proto/otlp/collector/trace/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/common/v1/common_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/common/v1/common_pb.rb index 006d3047d0..c91fe92c51 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/common/v1/common_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/common/v1/common_pb.rb @@ -1,41 +1,14 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/common/v1/common.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/common/v1/common.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.common.v1.AnyValue" do - oneof :value do - optional :string_value, :string, 1 - optional :bool_value, :bool, 2 - optional :int_value, :int64, 3 - optional :double_value, :double, 4 - optional :array_value, :message, 5, "opentelemetry.proto.common.v1.ArrayValue" - optional :kvlist_value, :message, 6, "opentelemetry.proto.common.v1.KeyValueList" - optional :bytes_value, :bytes, 7 - end - end - add_message "opentelemetry.proto.common.v1.ArrayValue" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValueList" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValue" do - optional :key, :string, 1 - optional :value, :message, 2, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.InstrumentationLibrary" do - optional :name, :string, 1 - optional :version, :string, 2 - end - add_message "opentelemetry.proto.common.v1.InstrumentationScope" do - optional :name, :string, 1 - optional :version, :string, 2 - end - end -end + +descriptor_data = "\n*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x8c\x02\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12@\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32).opentelemetry.proto.common.v1.ArrayValueH\x00\x12\x43\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32+.opentelemetry.proto.common.v1.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"G\n\x0cKeyValueList\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\"O\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\";\n\x16InstrumentationLibrary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t:\x02\x18\x01\"5\n\x14InstrumentationScope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\tB[\n io.opentelemetry.proto.common.v1B\x0b\x43ommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/logs/v1/logs_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/logs/v1/logs_pb.rb index d6ea3cd664..6fee743383 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/logs/v1/logs_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/logs/v1/logs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/logs/v1/logs.proto @@ -6,72 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/logs/v1/logs.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.logs.v1.LogsData" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.logs.v1.ResourceLogs" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_logs, :message, 2, "opentelemetry.proto.logs.v1.ScopeLogs" - repeated :instrumentation_library_logs, :message, 1000, "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.ScopeLogs" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.InstrumentationLibraryLogs" do - optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary" - repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.LogRecord" do - optional :time_unix_nano, :fixed64, 1 - optional :observed_time_unix_nano, :fixed64, 11 - optional :severity_number, :enum, 2, "opentelemetry.proto.logs.v1.SeverityNumber" - optional :severity_text, :string, 3 - optional :body, :message, 5, "opentelemetry.proto.common.v1.AnyValue" - repeated :attributes, :message, 6, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 7 - optional :flags, :fixed32, 8 - optional :trace_id, :bytes, 9 - optional :span_id, :bytes, 10 - end - add_enum "opentelemetry.proto.logs.v1.SeverityNumber" do - value :SEVERITY_NUMBER_UNSPECIFIED, 0 - value :SEVERITY_NUMBER_TRACE, 1 - value :SEVERITY_NUMBER_TRACE2, 2 - value :SEVERITY_NUMBER_TRACE3, 3 - value :SEVERITY_NUMBER_TRACE4, 4 - value :SEVERITY_NUMBER_DEBUG, 5 - value :SEVERITY_NUMBER_DEBUG2, 6 - value :SEVERITY_NUMBER_DEBUG3, 7 - value :SEVERITY_NUMBER_DEBUG4, 8 - value :SEVERITY_NUMBER_INFO, 9 - value :SEVERITY_NUMBER_INFO2, 10 - value :SEVERITY_NUMBER_INFO3, 11 - value :SEVERITY_NUMBER_INFO4, 12 - value :SEVERITY_NUMBER_WARN, 13 - value :SEVERITY_NUMBER_WARN2, 14 - value :SEVERITY_NUMBER_WARN3, 15 - value :SEVERITY_NUMBER_WARN4, 16 - value :SEVERITY_NUMBER_ERROR, 17 - value :SEVERITY_NUMBER_ERROR2, 18 - value :SEVERITY_NUMBER_ERROR3, 19 - value :SEVERITY_NUMBER_ERROR4, 20 - value :SEVERITY_NUMBER_FATAL, 21 - value :SEVERITY_NUMBER_FATAL2, 22 - value :SEVERITY_NUMBER_FATAL3, 23 - value :SEVERITY_NUMBER_FATAL4, 24 - end - add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do - value :LOG_RECORD_FLAG_UNSPECIFIED, 0 - value :LOG_RECORD_FLAG_TRACE_FLAGS_MASK, 255 - end - end -end + +descriptor_data = "\n&opentelemetry/proto/logs/v1/logs.proto\x12\x1bopentelemetry.proto.logs.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"L\n\x08LogsData\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"\xff\x01\n\x0cResourceLogs\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12:\n\nscope_logs\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.ScopeLogs\x12\x62\n\x1cinstrumentation_library_logs\x18\xe8\x07 \x03(\x0b\x32\x37.opentelemetry.proto.logs.v1.InstrumentationLibraryLogsB\x02\x18\x01\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xa0\x01\n\tScopeLogs\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12;\n\x0blog_records\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.LogRecord\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xc9\x01\n\x1aInstrumentationLibraryLogs\x12V\n\x17instrumentation_library\x18\x01 \x01(\x0b\x32\x35.opentelemetry.proto.common.v1.InstrumentationLibrary\x12;\n\x0blog_records\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.LogRecord\x12\x12\n\nschema_url\x18\x03 \x01(\t:\x02\x18\x01\"\xef\x02\n\tLogRecord\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x1f\n\x17observed_time_unix_nano\x18\x0b \x01(\x06\x12\x44\n\x0fseverity_number\x18\x02 \x01(\x0e\x32+.opentelemetry.proto.logs.v1.SeverityNumber\x12\x15\n\rseverity_text\x18\x03 \x01(\t\x12\x35\n\x04\x62ody\x18\x05 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\x12;\n\nattributes\x18\x06 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x07 \x01(\r\x12\r\n\x05\x66lags\x18\x08 \x01(\x07\x12\x10\n\x08trace_id\x18\t \x01(\x0c\x12\x0f\n\x07span_id\x18\n \x01(\x0cJ\x04\x08\x04\x10\x05*\xc3\x05\n\x0eSeverityNumber\x12\x1f\n\x1bSEVERITY_NUMBER_UNSPECIFIED\x10\x00\x12\x19\n\x15SEVERITY_NUMBER_TRACE\x10\x01\x12\x1a\n\x16SEVERITY_NUMBER_TRACE2\x10\x02\x12\x1a\n\x16SEVERITY_NUMBER_TRACE3\x10\x03\x12\x1a\n\x16SEVERITY_NUMBER_TRACE4\x10\x04\x12\x19\n\x15SEVERITY_NUMBER_DEBUG\x10\x05\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG2\x10\x06\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG3\x10\x07\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG4\x10\x08\x12\x18\n\x14SEVERITY_NUMBER_INFO\x10\t\x12\x19\n\x15SEVERITY_NUMBER_INFO2\x10\n\x12\x19\n\x15SEVERITY_NUMBER_INFO3\x10\x0b\x12\x19\n\x15SEVERITY_NUMBER_INFO4\x10\x0c\x12\x18\n\x14SEVERITY_NUMBER_WARN\x10\r\x12\x19\n\x15SEVERITY_NUMBER_WARN2\x10\x0e\x12\x19\n\x15SEVERITY_NUMBER_WARN3\x10\x0f\x12\x19\n\x15SEVERITY_NUMBER_WARN4\x10\x10\x12\x19\n\x15SEVERITY_NUMBER_ERROR\x10\x11\x12\x1a\n\x16SEVERITY_NUMBER_ERROR2\x10\x12\x12\x1a\n\x16SEVERITY_NUMBER_ERROR3\x10\x13\x12\x1a\n\x16SEVERITY_NUMBER_ERROR4\x10\x14\x12\x19\n\x15SEVERITY_NUMBER_FATAL\x10\x15\x12\x1a\n\x16SEVERITY_NUMBER_FATAL2\x10\x16\x12\x1a\n\x16SEVERITY_NUMBER_FATAL3\x10\x17\x12\x1a\n\x16SEVERITY_NUMBER_FATAL4\x10\x18*X\n\x0eLogRecordFlags\x12\x1f\n\x1bLOG_RECORD_FLAG_UNSPECIFIED\x10\x00\x12%\n LOG_RECORD_FLAG_TRACE_FLAGS_MASK\x10\xff\x01\x42U\n\x1eio.opentelemetry.proto.logs.v1B\tLogsProtoP\x01Z&go.opentelemetry.io/proto/otlp/logs/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb index f85db6b9c1..eccff76040 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/metrics/v1/metrics.proto @@ -6,135 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/metrics/v1/metrics.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.metrics.v1.MetricsData" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_metrics, :message, 2, "opentelemetry.proto.metrics.v1.ScopeMetrics" - repeated :instrumentation_library_metrics, :message, 1000, "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.ScopeMetrics" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics" do - optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary" - repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.Metric" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :unit, :string, 3 - oneof :data do - optional :gauge, :message, 5, "opentelemetry.proto.metrics.v1.Gauge" - optional :sum, :message, 7, "opentelemetry.proto.metrics.v1.Sum" - optional :histogram, :message, 9, "opentelemetry.proto.metrics.v1.Histogram" - optional :exponential_histogram, :message, 10, "opentelemetry.proto.metrics.v1.ExponentialHistogram" - optional :summary, :message, 11, "opentelemetry.proto.metrics.v1.Summary" - end - end - add_message "opentelemetry.proto.metrics.v1.Gauge" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.Sum" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - optional :is_monotonic, :bool, 3 - end - add_message "opentelemetry.proto.metrics.v1.Histogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.HistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.Summary" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.SummaryDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.NumberDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 8 - oneof :value do - optional :as_double, :double, 4 - optional :as_int, :sfixed64, 6 - end - end - add_message "opentelemetry.proto.metrics.v1.HistogramDataPoint" do - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - repeated :bucket_counts, :fixed64, 6 - repeated :explicit_bounds, :double, 7 - repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 10 - proto3_optional :min, :double, 11 - proto3_optional :max, :double, 12 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - optional :scale, :sint32, 6 - optional :zero_count, :fixed64, 7 - optional :positive, :message, 8, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :negative, :message, 9, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :flags, :uint32, 10 - repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar" - proto3_optional :min, :double, 12 - proto3_optional :max, :double, 13 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do - optional :offset, :sint32, 1 - repeated :bucket_counts, :uint64, 2 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - optional :sum, :double, 5 - repeated :quantile_values, :message, 6, "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" - optional :flags, :uint32, 8 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" do - optional :quantile, :double, 1 - optional :value, :double, 2 - end - add_message "opentelemetry.proto.metrics.v1.Exemplar" do - repeated :filtered_attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :time_unix_nano, :fixed64, 2 - optional :span_id, :bytes, 4 - optional :trace_id, :bytes, 5 - oneof :value do - optional :as_double, :double, 3 - optional :as_int, :sfixed64, 6 - end - end - add_enum "opentelemetry.proto.metrics.v1.AggregationTemporality" do - value :AGGREGATION_TEMPORALITY_UNSPECIFIED, 0 - value :AGGREGATION_TEMPORALITY_DELTA, 1 - value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2 - end - add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do - value :FLAG_NONE, 0 - value :FLAG_NO_RECORDED_VALUE, 1 - end - end -end + +descriptor_data = "\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\"X\n\x0bMetricsData\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"\x94\x02\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x43\n\rscope_metrics\x18\x02 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.ScopeMetrics\x12k\n\x1finstrumentation_library_metrics\x18\xe8\x07 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.InstrumentationLibraryMetricsB\x02\x18\x01\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\x9f\x01\n\x0cScopeMetrics\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xc8\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\x12\x12\n\nschema_url\x18\x03 \x01(\t:\x02\x18\x01\"\x92\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\x36\n\x05gauge\x18\x05 \x01(\x0b\x32%.opentelemetry.proto.metrics.v1.GaugeH\x00\x12\x32\n\x03sum\x18\x07 \x01(\x0b\x32#.opentelemetry.proto.metrics.v1.SumH\x00\x12>\n\thistogram\x18\t \x01(\x0b\x32).opentelemetry.proto.metrics.v1.HistogramH\x00\x12U\n\x15\x65xponential_histogram\x18\n \x01(\x0b\x32\x34.opentelemetry.proto.metrics.v1.ExponentialHistogramH\x00\x12:\n\x07summary\x18\x0b \x01(\x0b\x32\'.opentelemetry.proto.metrics.v1.SummaryH\x00\x42\x06\n\x04\x64\x61taJ\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x08\x10\t\"M\n\x05Gauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\"\xba\x01\n\x03Sum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\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\"\xad\x01\n\tHistogram\x12G\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x32.opentelemetry.proto.metrics.v1.HistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xc3\x01\n\x14\x45xponentialHistogram\x12R\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"P\n\x07Summary\x12\x45\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x30.opentelemetry.proto.metrics.v1.SummaryDataPoint\"\x86\x02\n\x0fNumberDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\x13\n\tas_double\x18\x04 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12;\n\texemplars\x18\x05 \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\r\n\x05\x66lags\x18\x08 \x01(\rB\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xe6\x02\n\x12HistogramDataPoint\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\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.Exemplar\x12\r\n\x05\x66lags\x18\n \x01(\r\x12\x10\n\x03min\x18\x0b \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\x0c \x01(\x01H\x02\x88\x01\x01\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_maxJ\x04\x08\x01\x10\x02\"\xc2\x04\n\x1d\x45xponentialHistogramDataPoint\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\r\n\x05scale\x18\x06 \x01(\x11\x12\x12\n\nzero_count\x18\x07 \x01(\x06\x12W\n\x08positive\x18\x08 \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12W\n\x08negative\x18\t \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12\r\n\x05\x66lags\x18\n \x01(\r\x12;\n\texemplars\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\x10\n\x03min\x18\x0c \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\r \x01(\x01H\x02\x88\x01\x01\x1a\x30\n\x07\x42uckets\x12\x0e\n\x06offset\x18\x01 \x01(\x11\x12\x15\n\rbucket_counts\x18\x02 \x03(\x04\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_max\"\xc5\x02\n\x10SummaryDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x12Y\n\x0fquantile_values\x18\x06 \x03(\x0b\x32@.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile\x12\r\n\x05\x66lags\x18\x08 \x01(\r\x1a\x32\n\x0fValueAtQuantile\x12\x10\n\x08quantile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01J\x04\x08\x01\x10\x02\"\xc1\x01\n\x08\x45xemplar\x12\x44\n\x13\x66iltered_attributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\x13\n\tas_double\x18\x03 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02*\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*;\n\x0e\x44\x61taPointFlags\x12\r\n\tFLAG_NONE\x10\x00\x12\x1a\n\x16\x46LAG_NO_RECORDED_VALUE\x10\x01\x42^\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z)go.opentelemetry.io/proto/otlp/metrics/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/resource/v1/resource_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/resource/v1/resource_pb.rb index a10d5ad1f5..a47c81d56f 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/resource/v1/resource_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/resource/v1/resource_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/resource/v1/resource.proto @@ -5,14 +6,11 @@ require 'opentelemetry/proto/common/v1/common_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/resource/v1/resource.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.resource.v1.Resource" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 2 - end - end -end + +descriptor_data = "\n.opentelemetry/proto/resource/v1/resource.proto\x12\x1fopentelemetry.proto.resource.v1\x1a*opentelemetry/proto/common/v1/common.proto\"i\n\x08Resource\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\rBa\n\"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_config_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_config_pb.rb index 540dc2d65d..453d8b556f 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_config_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_config_pb.rb @@ -1,38 +1,14 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/trace/v1/trace_config.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/trace/v1/trace_config.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.trace.v1.TraceConfig" do - optional :max_number_of_attributes, :int64, 4 - optional :max_number_of_timed_events, :int64, 5 - optional :max_number_of_attributes_per_timed_event, :int64, 6 - optional :max_number_of_links, :int64, 7 - optional :max_number_of_attributes_per_link, :int64, 8 - oneof :sampler do - optional :constant_sampler, :message, 1, "opentelemetry.proto.trace.v1.ConstantSampler" - optional :trace_id_ratio_based, :message, 2, "opentelemetry.proto.trace.v1.TraceIdRatioBased" - optional :rate_limiting_sampler, :message, 3, "opentelemetry.proto.trace.v1.RateLimitingSampler" - end - end - add_message "opentelemetry.proto.trace.v1.ConstantSampler" do - optional :decision, :enum, 1, "opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision" - end - add_enum "opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision" do - value :ALWAYS_OFF, 0 - value :ALWAYS_ON, 1 - value :ALWAYS_PARENT, 2 - end - add_message "opentelemetry.proto.trace.v1.TraceIdRatioBased" do - optional :samplingRatio, :double, 1 - end - add_message "opentelemetry.proto.trace.v1.RateLimitingSampler" do - optional :qps, :int64, 1 - end - end -end + +descriptor_data = "\n/opentelemetry/proto/trace/v1/trace_config.proto\x12\x1copentelemetry.proto.trace.v1\"\xc8\x03\n\x0bTraceConfig\x12I\n\x10\x63onstant_sampler\x18\x01 \x01(\x0b\x32-.opentelemetry.proto.trace.v1.ConstantSamplerH\x00\x12O\n\x14trace_id_ratio_based\x18\x02 \x01(\x0b\x32/.opentelemetry.proto.trace.v1.TraceIdRatioBasedH\x00\x12R\n\x15rate_limiting_sampler\x18\x03 \x01(\x0b\x32\x31.opentelemetry.proto.trace.v1.RateLimitingSamplerH\x00\x12 \n\x18max_number_of_attributes\x18\x04 \x01(\x03\x12\"\n\x1amax_number_of_timed_events\x18\x05 \x01(\x03\x12\x30\n(max_number_of_attributes_per_timed_event\x18\x06 \x01(\x03\x12\x1b\n\x13max_number_of_links\x18\x07 \x01(\x03\x12)\n!max_number_of_attributes_per_link\x18\x08 \x01(\x03\x42\t\n\x07sampler\"\xa9\x01\n\x0f\x43onstantSampler\x12P\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision\"D\n\x10\x43onstantDecision\x12\x0e\n\nALWAYS_OFF\x10\x00\x12\r\n\tALWAYS_ON\x10\x01\x12\x11\n\rALWAYS_PARENT\x10\x02\"*\n\x11TraceIdRatioBased\x12\x15\n\rsamplingRatio\x18\x01 \x01(\x01\"\"\n\x13RateLimitingSampler\x12\x0b\n\x03qps\x18\x01 \x01(\x03\x42h\n\x1fio.opentelemetry.proto.trace.v1B\x10TraceConfigProtoP\x01Z1go.opentelemetry.io/proto/otlp/collector/trace/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_pb.rb b/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_pb.rb index e06a34c0bf..b1ea7c5c0e 100644 --- a/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_pb.rb +++ b/exporter/otlp-common/lib/opentelemetry/proto/trace/v1/trace_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/trace/v1/trace.proto @@ -6,76 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/trace/v1/trace.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.trace.v1.TracesData" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.trace.v1.ResourceSpans" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_spans, :message, 2, "opentelemetry.proto.trace.v1.ScopeSpans" - repeated :instrumentation_library_spans, :message, 1000, "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.ScopeSpans" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans" do - optional :instrumentation_library, :message, 1, "opentelemetry.proto.common.v1.InstrumentationLibrary" - repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.Span" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - optional :parent_span_id, :bytes, 4 - optional :name, :string, 5 - optional :kind, :enum, 6, "opentelemetry.proto.trace.v1.Span.SpanKind" - optional :start_time_unix_nano, :fixed64, 7 - optional :end_time_unix_nano, :fixed64, 8 - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 10 - repeated :events, :message, 11, "opentelemetry.proto.trace.v1.Span.Event" - optional :dropped_events_count, :uint32, 12 - repeated :links, :message, 13, "opentelemetry.proto.trace.v1.Span.Link" - optional :dropped_links_count, :uint32, 14 - optional :status, :message, 15, "opentelemetry.proto.trace.v1.Status" - end - add_message "opentelemetry.proto.trace.v1.Span.Event" do - optional :time_unix_nano, :fixed64, 1 - optional :name, :string, 2 - repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 4 - end - add_message "opentelemetry.proto.trace.v1.Span.Link" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - repeated :attributes, :message, 4, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 5 - end - add_enum "opentelemetry.proto.trace.v1.Span.SpanKind" do - value :SPAN_KIND_UNSPECIFIED, 0 - value :SPAN_KIND_INTERNAL, 1 - value :SPAN_KIND_SERVER, 2 - value :SPAN_KIND_CLIENT, 3 - value :SPAN_KIND_PRODUCER, 4 - value :SPAN_KIND_CONSUMER, 5 - end - add_message "opentelemetry.proto.trace.v1.Status" do - optional :message, :string, 2 - optional :code, :enum, 3, "opentelemetry.proto.trace.v1.Status.StatusCode" - end - add_enum "opentelemetry.proto.trace.v1.Status.StatusCode" do - value :STATUS_CODE_UNSET, 0 - value :STATUS_CODE_OK, 1 - value :STATUS_CODE_ERROR, 2 - end - end -end + +descriptor_data = "\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\"Q\n\nTracesData\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"\x86\x02\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12=\n\x0bscope_spans\x18\x02 \x03(\x0b\x32(.opentelemetry.proto.trace.v1.ScopeSpans\x12\x65\n\x1dinstrumentation_library_spans\x18\xe8\x07 \x03(\x0b\x32\x39.opentelemetry.proto.trace.v1.InstrumentationLibrarySpansB\x02\x18\x01\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\x97\x01\n\nScopeSpans\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xc0\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\x12\x12\n\nschema_url\x18\x03 \x01(\t:\x02\x18\x01\"\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\"\xae\x01\n\x06Status\x12\x0f\n\x07message\x18\x02 \x01(\t\x12=\n\x04\x63ode\x18\x03 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\"N\n\nStatusCode\x12\x15\n\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n\x11STATUS_CODE_ERROR\x10\x02J\x04\x08\x01\x10\x02\x42X\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z\'go.opentelemetry.io/proto/otlp/trace/v1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb index ceeb940e82..d243dfbc07 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/logs/v1/logs_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/logs/v1/logs_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/logs/v1/logs_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess" - end - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess" do - optional :rejected_log_records, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\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\"u\n\x19\x45xportLogsServiceResponse\x12X\n\x0fpartial_success\x18\x01 \x01(\x0b\x32?.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess\"O\n\x18\x45xportLogsPartialSuccess\x12\x1c\n\x14rejected_log_records\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\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\x98\x01\n(io.opentelemetry.proto.collector.logs.v1B\x10LogsServiceProtoP\x01Z0go.opentelemetry.io/proto/otlp/collector/logs/v1\xaa\x02%OpenTelemetry.Proto.Collector.Logs.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb index 15654a2cfd..637fce86ce 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/metrics/v1/metrics_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/metrics/v1/metrics_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess" - end - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess" do - optional :rejected_data_points, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\n>opentelemetry/proto/collector/metrics/v1/metrics_service.proto\x12(opentelemetry.proto.collector.metrics.v1\x1a,opentelemetry/proto/metrics/v1/metrics.proto\"h\n\x1b\x45xportMetricsServiceRequest\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"~\n\x1c\x45xportMetricsServiceResponse\x12^\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess\"R\n\x1b\x45xportMetricsPartialSuccess\x12\x1c\n\x14rejected_data_points\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xac\x01\n\x0eMetricsService\x12\x99\x01\n\x06\x45xport\x12\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest\x1a\x46.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse\"\x00\x42\xa4\x01\n+io.opentelemetry.proto.collector.metrics.v1B\x13MetricsServiceProtoP\x01Z3go.opentelemetry.io/proto/otlp/collector/metrics/v1\xaa\x02(OpenTelemetry.Proto.Collector.Metrics.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb index 4d0d62f22e..95f802c0f6 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/trace/v1/trace_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/trace/v1/trace_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/trace/v1/trace_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess" - end - add_message "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess" do - optional :rejected_spans, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\n:opentelemetry/proto/collector/trace/v1/trace_service.proto\x12&opentelemetry.proto.collector.trace.v1\x1a(opentelemetry/proto/trace/v1/trace.proto\"`\n\x19\x45xportTraceServiceRequest\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"x\n\x1a\x45xportTraceServiceResponse\x12Z\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x41.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess\"J\n\x19\x45xportTracePartialSuccess\x12\x16\n\x0erejected_spans\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xa2\x01\n\x0cTraceService\x12\x91\x01\n\x06\x45xport\x12\x41.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest\x1a\x42.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse\"\x00\x42\x9c\x01\n)io.opentelemetry.proto.collector.trace.v1B\x11TraceServiceProtoP\x01Z1go.opentelemetry.io/proto/otlp/collector/trace/v1\xaa\x02&OpenTelemetry.Proto.Collector.Trace.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/common/v1/common_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/common/v1/common_pb.rb index a49580ec51..a9a74ad335 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/common/v1/common_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/common/v1/common_pb.rb @@ -1,39 +1,14 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/common/v1/common.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/common/v1/common.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.common.v1.AnyValue" do - oneof :value do - optional :string_value, :string, 1 - optional :bool_value, :bool, 2 - optional :int_value, :int64, 3 - optional :double_value, :double, 4 - optional :array_value, :message, 5, "opentelemetry.proto.common.v1.ArrayValue" - optional :kvlist_value, :message, 6, "opentelemetry.proto.common.v1.KeyValueList" - optional :bytes_value, :bytes, 7 - end - end - add_message "opentelemetry.proto.common.v1.ArrayValue" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValueList" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValue" do - optional :key, :string, 1 - optional :value, :message, 2, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.InstrumentationScope" do - optional :name, :string, 1 - optional :version, :string, 2 - repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 4 - end - end -end + +descriptor_data = "\n*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x8c\x02\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12@\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32).opentelemetry.proto.common.v1.ArrayValueH\x00\x12\x43\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32+.opentelemetry.proto.common.v1.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"G\n\x0cKeyValueList\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\"O\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"\x94\x01\n\x14InstrumentationScope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\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(\rB{\n io.opentelemetry.proto.common.v1B\x0b\x43ommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1\xaa\x02\x1dOpenTelemetry.Proto.Common.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/logs/v1/logs_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/logs/v1/logs_pb.rb index 2419b86bfa..ba19937d1a 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/logs/v1/logs_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/logs/v1/logs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/logs/v1/logs.proto @@ -6,66 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/logs/v1/logs.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.logs.v1.LogsData" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.logs.v1.ResourceLogs" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_logs, :message, 2, "opentelemetry.proto.logs.v1.ScopeLogs" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.ScopeLogs" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.LogRecord" do - optional :time_unix_nano, :fixed64, 1 - optional :observed_time_unix_nano, :fixed64, 11 - optional :severity_number, :enum, 2, "opentelemetry.proto.logs.v1.SeverityNumber" - optional :severity_text, :string, 3 - optional :body, :message, 5, "opentelemetry.proto.common.v1.AnyValue" - repeated :attributes, :message, 6, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 7 - optional :flags, :fixed32, 8 - optional :trace_id, :bytes, 9 - optional :span_id, :bytes, 10 - end - add_enum "opentelemetry.proto.logs.v1.SeverityNumber" do - value :SEVERITY_NUMBER_UNSPECIFIED, 0 - value :SEVERITY_NUMBER_TRACE, 1 - value :SEVERITY_NUMBER_TRACE2, 2 - value :SEVERITY_NUMBER_TRACE3, 3 - value :SEVERITY_NUMBER_TRACE4, 4 - value :SEVERITY_NUMBER_DEBUG, 5 - value :SEVERITY_NUMBER_DEBUG2, 6 - value :SEVERITY_NUMBER_DEBUG3, 7 - value :SEVERITY_NUMBER_DEBUG4, 8 - value :SEVERITY_NUMBER_INFO, 9 - value :SEVERITY_NUMBER_INFO2, 10 - value :SEVERITY_NUMBER_INFO3, 11 - value :SEVERITY_NUMBER_INFO4, 12 - value :SEVERITY_NUMBER_WARN, 13 - value :SEVERITY_NUMBER_WARN2, 14 - value :SEVERITY_NUMBER_WARN3, 15 - value :SEVERITY_NUMBER_WARN4, 16 - value :SEVERITY_NUMBER_ERROR, 17 - value :SEVERITY_NUMBER_ERROR2, 18 - value :SEVERITY_NUMBER_ERROR3, 19 - value :SEVERITY_NUMBER_ERROR4, 20 - value :SEVERITY_NUMBER_FATAL, 21 - value :SEVERITY_NUMBER_FATAL2, 22 - value :SEVERITY_NUMBER_FATAL3, 23 - value :SEVERITY_NUMBER_FATAL4, 24 - end - add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do - value :LOG_RECORD_FLAGS_DO_NOT_USE, 0 - value :LOG_RECORD_FLAGS_TRACE_FLAGS_MASK, 255 - end - end -end + +descriptor_data = "\n&opentelemetry/proto/logs/v1/logs.proto\x12\x1bopentelemetry.proto.logs.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"L\n\x08LogsData\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"\xa3\x01\n\x0cResourceLogs\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12:\n\nscope_logs\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.ScopeLogs\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\xa0\x01\n\tScopeLogs\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12;\n\x0blog_records\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.LogRecord\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xef\x02\n\tLogRecord\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x1f\n\x17observed_time_unix_nano\x18\x0b \x01(\x06\x12\x44\n\x0fseverity_number\x18\x02 \x01(\x0e\x32+.opentelemetry.proto.logs.v1.SeverityNumber\x12\x15\n\rseverity_text\x18\x03 \x01(\t\x12\x35\n\x04\x62ody\x18\x05 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\x12;\n\nattributes\x18\x06 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x07 \x01(\r\x12\r\n\x05\x66lags\x18\x08 \x01(\x07\x12\x10\n\x08trace_id\x18\t \x01(\x0c\x12\x0f\n\x07span_id\x18\n \x01(\x0cJ\x04\x08\x04\x10\x05*\xc3\x05\n\x0eSeverityNumber\x12\x1f\n\x1bSEVERITY_NUMBER_UNSPECIFIED\x10\x00\x12\x19\n\x15SEVERITY_NUMBER_TRACE\x10\x01\x12\x1a\n\x16SEVERITY_NUMBER_TRACE2\x10\x02\x12\x1a\n\x16SEVERITY_NUMBER_TRACE3\x10\x03\x12\x1a\n\x16SEVERITY_NUMBER_TRACE4\x10\x04\x12\x19\n\x15SEVERITY_NUMBER_DEBUG\x10\x05\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG2\x10\x06\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG3\x10\x07\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG4\x10\x08\x12\x18\n\x14SEVERITY_NUMBER_INFO\x10\t\x12\x19\n\x15SEVERITY_NUMBER_INFO2\x10\n\x12\x19\n\x15SEVERITY_NUMBER_INFO3\x10\x0b\x12\x19\n\x15SEVERITY_NUMBER_INFO4\x10\x0c\x12\x18\n\x14SEVERITY_NUMBER_WARN\x10\r\x12\x19\n\x15SEVERITY_NUMBER_WARN2\x10\x0e\x12\x19\n\x15SEVERITY_NUMBER_WARN3\x10\x0f\x12\x19\n\x15SEVERITY_NUMBER_WARN4\x10\x10\x12\x19\n\x15SEVERITY_NUMBER_ERROR\x10\x11\x12\x1a\n\x16SEVERITY_NUMBER_ERROR2\x10\x12\x12\x1a\n\x16SEVERITY_NUMBER_ERROR3\x10\x13\x12\x1a\n\x16SEVERITY_NUMBER_ERROR4\x10\x14\x12\x19\n\x15SEVERITY_NUMBER_FATAL\x10\x15\x12\x1a\n\x16SEVERITY_NUMBER_FATAL2\x10\x16\x12\x1a\n\x16SEVERITY_NUMBER_FATAL3\x10\x17\x12\x1a\n\x16SEVERITY_NUMBER_FATAL4\x10\x18*Y\n\x0eLogRecordFlags\x12\x1f\n\x1bLOG_RECORD_FLAGS_DO_NOT_USE\x10\x00\x12&\n!LOG_RECORD_FLAGS_TRACE_FLAGS_MASK\x10\xff\x01\x42s\n\x1eio.opentelemetry.proto.logs.v1B\tLogsProtoP\x01Z&go.opentelemetry.io/proto/otlp/logs/v1\xaa\x02\x1bOpenTelemetry.Proto.Logs.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb index 743381736b..ada5f22e09 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/metrics/v1/metrics.proto @@ -6,130 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/metrics/v1/metrics.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.metrics.v1.MetricsData" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_metrics, :message, 2, "opentelemetry.proto.metrics.v1.ScopeMetrics" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.ScopeMetrics" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.Metric" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :unit, :string, 3 - oneof :data do - optional :gauge, :message, 5, "opentelemetry.proto.metrics.v1.Gauge" - optional :sum, :message, 7, "opentelemetry.proto.metrics.v1.Sum" - optional :histogram, :message, 9, "opentelemetry.proto.metrics.v1.Histogram" - optional :exponential_histogram, :message, 10, "opentelemetry.proto.metrics.v1.ExponentialHistogram" - optional :summary, :message, 11, "opentelemetry.proto.metrics.v1.Summary" - end - end - add_message "opentelemetry.proto.metrics.v1.Gauge" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.Sum" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - optional :is_monotonic, :bool, 3 - end - add_message "opentelemetry.proto.metrics.v1.Histogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.HistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.Summary" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.SummaryDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.NumberDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 8 - oneof :value do - optional :as_double, :double, 4 - optional :as_int, :sfixed64, 6 - end - end - add_message "opentelemetry.proto.metrics.v1.HistogramDataPoint" do - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - repeated :bucket_counts, :fixed64, 6 - repeated :explicit_bounds, :double, 7 - repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 10 - proto3_optional :min, :double, 11 - proto3_optional :max, :double, 12 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - optional :scale, :sint32, 6 - optional :zero_count, :fixed64, 7 - optional :positive, :message, 8, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :negative, :message, 9, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :flags, :uint32, 10 - repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar" - proto3_optional :min, :double, 12 - proto3_optional :max, :double, 13 - optional :zero_threshold, :double, 14 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do - optional :offset, :sint32, 1 - repeated :bucket_counts, :uint64, 2 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - optional :sum, :double, 5 - repeated :quantile_values, :message, 6, "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" - optional :flags, :uint32, 8 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" do - optional :quantile, :double, 1 - optional :value, :double, 2 - end - add_message "opentelemetry.proto.metrics.v1.Exemplar" do - repeated :filtered_attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :time_unix_nano, :fixed64, 2 - optional :span_id, :bytes, 4 - optional :trace_id, :bytes, 5 - oneof :value do - optional :as_double, :double, 3 - optional :as_int, :sfixed64, 6 - end - end - add_enum "opentelemetry.proto.metrics.v1.AggregationTemporality" do - value :AGGREGATION_TEMPORALITY_UNSPECIFIED, 0 - value :AGGREGATION_TEMPORALITY_DELTA, 1 - value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2 - end - add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do - value :DATA_POINT_FLAGS_DO_NOT_USE, 0 - value :DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK, 1 - end - end -end + +descriptor_data = "\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\"X\n\x0bMetricsData\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"\xaf\x01\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x43\n\rscope_metrics\x18\x02 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.ScopeMetrics\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x9f\x01\n\x0cScopeMetrics\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\x92\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\x36\n\x05gauge\x18\x05 \x01(\x0b\x32%.opentelemetry.proto.metrics.v1.GaugeH\x00\x12\x32\n\x03sum\x18\x07 \x01(\x0b\x32#.opentelemetry.proto.metrics.v1.SumH\x00\x12>\n\thistogram\x18\t \x01(\x0b\x32).opentelemetry.proto.metrics.v1.HistogramH\x00\x12U\n\x15\x65xponential_histogram\x18\n \x01(\x0b\x32\x34.opentelemetry.proto.metrics.v1.ExponentialHistogramH\x00\x12:\n\x07summary\x18\x0b \x01(\x0b\x32\'.opentelemetry.proto.metrics.v1.SummaryH\x00\x42\x06\n\x04\x64\x61taJ\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x08\x10\t\"M\n\x05Gauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\"\xba\x01\n\x03Sum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\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\"\xad\x01\n\tHistogram\x12G\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x32.opentelemetry.proto.metrics.v1.HistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xc3\x01\n\x14\x45xponentialHistogram\x12R\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"P\n\x07Summary\x12\x45\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x30.opentelemetry.proto.metrics.v1.SummaryDataPoint\"\x86\x02\n\x0fNumberDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\x13\n\tas_double\x18\x04 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12;\n\texemplars\x18\x05 \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\r\n\x05\x66lags\x18\x08 \x01(\rB\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xe6\x02\n\x12HistogramDataPoint\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\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.Exemplar\x12\r\n\x05\x66lags\x18\n \x01(\r\x12\x10\n\x03min\x18\x0b \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\x0c \x01(\x01H\x02\x88\x01\x01\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_maxJ\x04\x08\x01\x10\x02\"\xda\x04\n\x1d\x45xponentialHistogramDataPoint\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\r\n\x05scale\x18\x06 \x01(\x11\x12\x12\n\nzero_count\x18\x07 \x01(\x06\x12W\n\x08positive\x18\x08 \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12W\n\x08negative\x18\t \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12\r\n\x05\x66lags\x18\n \x01(\r\x12;\n\texemplars\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\x10\n\x03min\x18\x0c \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\r \x01(\x01H\x02\x88\x01\x01\x12\x16\n\x0ezero_threshold\x18\x0e \x01(\x01\x1a\x30\n\x07\x42uckets\x12\x0e\n\x06offset\x18\x01 \x01(\x11\x12\x15\n\rbucket_counts\x18\x02 \x03(\x04\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_max\"\xc5\x02\n\x10SummaryDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x12Y\n\x0fquantile_values\x18\x06 \x03(\x0b\x32@.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile\x12\r\n\x05\x66lags\x18\x08 \x01(\r\x1a\x32\n\x0fValueAtQuantile\x12\x10\n\x08quantile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01J\x04\x08\x01\x10\x02\"\xc1\x01\n\x08\x45xemplar\x12\x44\n\x13\x66iltered_attributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\x13\n\tas_double\x18\x03 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02*\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*^\n\x0e\x44\x61taPointFlags\x12\x1f\n\x1b\x44\x41TA_POINT_FLAGS_DO_NOT_USE\x10\x00\x12+\n\'DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK\x10\x01\x42\x7f\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z)go.opentelemetry.io/proto/otlp/metrics/v1\xaa\x02\x1eOpenTelemetry.Proto.Metrics.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/resource/v1/resource_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/resource/v1/resource_pb.rb index a10d5ad1f5..67abefd477 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/resource/v1/resource_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/resource/v1/resource_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/resource/v1/resource.proto @@ -5,14 +6,11 @@ require 'opentelemetry/proto/common/v1/common_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/resource/v1/resource.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.resource.v1.Resource" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 2 - end - end -end + +descriptor_data = "\n.opentelemetry/proto/resource/v1/resource.proto\x12\x1fopentelemetry.proto.resource.v1\x1a*opentelemetry/proto/common/v1/common.proto\"i\n\x08Resource\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\rB\x83\x01\n\"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1\xaa\x02\x1fOpenTelemetry.Proto.Resource.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/lib/opentelemetry/proto/trace/v1/trace_pb.rb b/exporter/otlp-metrics/lib/opentelemetry/proto/trace/v1/trace_pb.rb index 48c5737352..cb45baa18b 100644 --- a/exporter/otlp-metrics/lib/opentelemetry/proto/trace/v1/trace_pb.rb +++ b/exporter/otlp-metrics/lib/opentelemetry/proto/trace/v1/trace_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/trace/v1/trace.proto @@ -6,70 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/trace/v1/trace.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.trace.v1.TracesData" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.trace.v1.ResourceSpans" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_spans, :message, 2, "opentelemetry.proto.trace.v1.ScopeSpans" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.ScopeSpans" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.Span" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - optional :parent_span_id, :bytes, 4 - optional :name, :string, 5 - optional :kind, :enum, 6, "opentelemetry.proto.trace.v1.Span.SpanKind" - optional :start_time_unix_nano, :fixed64, 7 - optional :end_time_unix_nano, :fixed64, 8 - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 10 - repeated :events, :message, 11, "opentelemetry.proto.trace.v1.Span.Event" - optional :dropped_events_count, :uint32, 12 - repeated :links, :message, 13, "opentelemetry.proto.trace.v1.Span.Link" - optional :dropped_links_count, :uint32, 14 - optional :status, :message, 15, "opentelemetry.proto.trace.v1.Status" - end - add_message "opentelemetry.proto.trace.v1.Span.Event" do - optional :time_unix_nano, :fixed64, 1 - optional :name, :string, 2 - repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 4 - end - add_message "opentelemetry.proto.trace.v1.Span.Link" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - repeated :attributes, :message, 4, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 5 - end - add_enum "opentelemetry.proto.trace.v1.Span.SpanKind" do - value :SPAN_KIND_UNSPECIFIED, 0 - value :SPAN_KIND_INTERNAL, 1 - value :SPAN_KIND_SERVER, 2 - value :SPAN_KIND_CLIENT, 3 - value :SPAN_KIND_PRODUCER, 4 - value :SPAN_KIND_CONSUMER, 5 - end - add_message "opentelemetry.proto.trace.v1.Status" do - optional :message, :string, 2 - optional :code, :enum, 3, "opentelemetry.proto.trace.v1.Status.StatusCode" - end - add_enum "opentelemetry.proto.trace.v1.Status.StatusCode" do - value :STATUS_CODE_UNSET, 0 - value :STATUS_CODE_OK, 1 - value :STATUS_CODE_ERROR, 2 - end - end -end + +descriptor_data = "\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\"Q\n\nTracesData\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"\xa7\x01\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12=\n\x0bscope_spans\x18\x02 \x03(\x0b\x32(.opentelemetry.proto.trace.v1.ScopeSpans\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x97\x01\n\nScopeSpans\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\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\"\xae\x01\n\x06Status\x12\x0f\n\x07message\x18\x02 \x01(\t\x12=\n\x04\x63ode\x18\x03 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\"N\n\nStatusCode\x12\x15\n\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n\x11STATUS_CODE_ERROR\x10\x02J\x04\x08\x01\x10\x02\x42w\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z\'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp-metrics/opentelemetry-exporter-otlp-metrics.gemspec b/exporter/otlp-metrics/opentelemetry-exporter-otlp-metrics.gemspec index 66eb57d918..655be1d78c 100644 --- a/exporter/otlp-metrics/opentelemetry-exporter-otlp-metrics.gemspec +++ b/exporter/otlp-metrics/opentelemetry-exporter-otlp-metrics.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 3.0' spec.add_dependency 'googleapis-common-protos-types', '~> 1.3' - spec.add_dependency 'google-protobuf', '~> 3.14' + spec.add_dependency 'google-protobuf', '>= 3.18', '< 5.0' spec.add_dependency 'opentelemetry-api', '~> 1.1' spec.add_dependency 'opentelemetry-common', '~> 0.20' spec.add_dependency 'opentelemetry-sdk', '~> 1.2' diff --git a/exporter/otlp/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb b/exporter/otlp/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb index ceeb940e82..d243dfbc07 100644 --- a/exporter/otlp/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/collector/logs/v1/logs_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/logs/v1/logs_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/logs/v1/logs_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/logs/v1/logs_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess" - end - add_message "opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess" do - optional :rejected_log_records, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\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\"u\n\x19\x45xportLogsServiceResponse\x12X\n\x0fpartial_success\x18\x01 \x01(\x0b\x32?.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess\"O\n\x18\x45xportLogsPartialSuccess\x12\x1c\n\x14rejected_log_records\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\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\x98\x01\n(io.opentelemetry.proto.collector.logs.v1B\x10LogsServiceProtoP\x01Z0go.opentelemetry.io/proto/otlp/collector/logs/v1\xaa\x02%OpenTelemetry.Proto.Collector.Logs.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb b/exporter/otlp/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb index 15654a2cfd..637fce86ce 100644 --- a/exporter/otlp/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/metrics/v1/metrics_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/metrics/v1/metrics_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess" - end - add_message "opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess" do - optional :rejected_data_points, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\n>opentelemetry/proto/collector/metrics/v1/metrics_service.proto\x12(opentelemetry.proto.collector.metrics.v1\x1a,opentelemetry/proto/metrics/v1/metrics.proto\"h\n\x1b\x45xportMetricsServiceRequest\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"~\n\x1c\x45xportMetricsServiceResponse\x12^\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess\"R\n\x1b\x45xportMetricsPartialSuccess\x12\x1c\n\x14rejected_data_points\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xac\x01\n\x0eMetricsService\x12\x99\x01\n\x06\x45xport\x12\x45.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest\x1a\x46.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse\"\x00\x42\xa4\x01\n+io.opentelemetry.proto.collector.metrics.v1B\x13MetricsServiceProtoP\x01Z3go.opentelemetry.io/proto/otlp/collector/metrics/v1\xaa\x02(OpenTelemetry.Proto.Collector.Metrics.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb b/exporter/otlp/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb index 4d0d62f22e..95f802c0f6 100644 --- a/exporter/otlp/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/collector/trace/v1/trace_service_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/collector/trace/v1/trace_service.proto @@ -5,20 +6,11 @@ require 'opentelemetry/proto/trace/v1/trace_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/collector/trace/v1/trace_service.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse" do - optional :partial_success, :message, 1, "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess" - end - add_message "opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess" do - optional :rejected_spans, :int64, 1 - optional :error_message, :string, 2 - end - end -end + +descriptor_data = "\n:opentelemetry/proto/collector/trace/v1/trace_service.proto\x12&opentelemetry.proto.collector.trace.v1\x1a(opentelemetry/proto/trace/v1/trace.proto\"`\n\x19\x45xportTraceServiceRequest\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"x\n\x1a\x45xportTraceServiceResponse\x12Z\n\x0fpartial_success\x18\x01 \x01(\x0b\x32\x41.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess\"J\n\x19\x45xportTracePartialSuccess\x12\x16\n\x0erejected_spans\x18\x01 \x01(\x03\x12\x15\n\rerror_message\x18\x02 \x01(\t2\xa2\x01\n\x0cTraceService\x12\x91\x01\n\x06\x45xport\x12\x41.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest\x1a\x42.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse\"\x00\x42\x9c\x01\n)io.opentelemetry.proto.collector.trace.v1B\x11TraceServiceProtoP\x01Z1go.opentelemetry.io/proto/otlp/collector/trace/v1\xaa\x02&OpenTelemetry.Proto.Collector.Trace.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/common/v1/common_pb.rb b/exporter/otlp/lib/opentelemetry/proto/common/v1/common_pb.rb index a49580ec51..a9a74ad335 100644 --- a/exporter/otlp/lib/opentelemetry/proto/common/v1/common_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/common/v1/common_pb.rb @@ -1,39 +1,14 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/common/v1/common.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/common/v1/common.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.common.v1.AnyValue" do - oneof :value do - optional :string_value, :string, 1 - optional :bool_value, :bool, 2 - optional :int_value, :int64, 3 - optional :double_value, :double, 4 - optional :array_value, :message, 5, "opentelemetry.proto.common.v1.ArrayValue" - optional :kvlist_value, :message, 6, "opentelemetry.proto.common.v1.KeyValueList" - optional :bytes_value, :bytes, 7 - end - end - add_message "opentelemetry.proto.common.v1.ArrayValue" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValueList" do - repeated :values, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - end - add_message "opentelemetry.proto.common.v1.KeyValue" do - optional :key, :string, 1 - optional :value, :message, 2, "opentelemetry.proto.common.v1.AnyValue" - end - add_message "opentelemetry.proto.common.v1.InstrumentationScope" do - optional :name, :string, 1 - optional :version, :string, 2 - repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 4 - end - end -end + +descriptor_data = "\n*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x8c\x02\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12@\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32).opentelemetry.proto.common.v1.ArrayValueH\x00\x12\x43\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32+.opentelemetry.proto.common.v1.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"G\n\x0cKeyValueList\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\"O\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"\x94\x01\n\x14InstrumentationScope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\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(\rB{\n io.opentelemetry.proto.common.v1B\x0b\x43ommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1\xaa\x02\x1dOpenTelemetry.Proto.Common.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/logs/v1/logs_pb.rb b/exporter/otlp/lib/opentelemetry/proto/logs/v1/logs_pb.rb index 2419b86bfa..ba19937d1a 100644 --- a/exporter/otlp/lib/opentelemetry/proto/logs/v1/logs_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/logs/v1/logs_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/logs/v1/logs.proto @@ -6,66 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/logs/v1/logs.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.logs.v1.LogsData" do - repeated :resource_logs, :message, 1, "opentelemetry.proto.logs.v1.ResourceLogs" - end - add_message "opentelemetry.proto.logs.v1.ResourceLogs" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_logs, :message, 2, "opentelemetry.proto.logs.v1.ScopeLogs" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.ScopeLogs" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :log_records, :message, 2, "opentelemetry.proto.logs.v1.LogRecord" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.logs.v1.LogRecord" do - optional :time_unix_nano, :fixed64, 1 - optional :observed_time_unix_nano, :fixed64, 11 - optional :severity_number, :enum, 2, "opentelemetry.proto.logs.v1.SeverityNumber" - optional :severity_text, :string, 3 - optional :body, :message, 5, "opentelemetry.proto.common.v1.AnyValue" - repeated :attributes, :message, 6, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 7 - optional :flags, :fixed32, 8 - optional :trace_id, :bytes, 9 - optional :span_id, :bytes, 10 - end - add_enum "opentelemetry.proto.logs.v1.SeverityNumber" do - value :SEVERITY_NUMBER_UNSPECIFIED, 0 - value :SEVERITY_NUMBER_TRACE, 1 - value :SEVERITY_NUMBER_TRACE2, 2 - value :SEVERITY_NUMBER_TRACE3, 3 - value :SEVERITY_NUMBER_TRACE4, 4 - value :SEVERITY_NUMBER_DEBUG, 5 - value :SEVERITY_NUMBER_DEBUG2, 6 - value :SEVERITY_NUMBER_DEBUG3, 7 - value :SEVERITY_NUMBER_DEBUG4, 8 - value :SEVERITY_NUMBER_INFO, 9 - value :SEVERITY_NUMBER_INFO2, 10 - value :SEVERITY_NUMBER_INFO3, 11 - value :SEVERITY_NUMBER_INFO4, 12 - value :SEVERITY_NUMBER_WARN, 13 - value :SEVERITY_NUMBER_WARN2, 14 - value :SEVERITY_NUMBER_WARN3, 15 - value :SEVERITY_NUMBER_WARN4, 16 - value :SEVERITY_NUMBER_ERROR, 17 - value :SEVERITY_NUMBER_ERROR2, 18 - value :SEVERITY_NUMBER_ERROR3, 19 - value :SEVERITY_NUMBER_ERROR4, 20 - value :SEVERITY_NUMBER_FATAL, 21 - value :SEVERITY_NUMBER_FATAL2, 22 - value :SEVERITY_NUMBER_FATAL3, 23 - value :SEVERITY_NUMBER_FATAL4, 24 - end - add_enum "opentelemetry.proto.logs.v1.LogRecordFlags" do - value :LOG_RECORD_FLAGS_DO_NOT_USE, 0 - value :LOG_RECORD_FLAGS_TRACE_FLAGS_MASK, 255 - end - end -end + +descriptor_data = "\n&opentelemetry/proto/logs/v1/logs.proto\x12\x1bopentelemetry.proto.logs.v1\x1a*opentelemetry/proto/common/v1/common.proto\x1a.opentelemetry/proto/resource/v1/resource.proto\"L\n\x08LogsData\x12@\n\rresource_logs\x18\x01 \x03(\x0b\x32).opentelemetry.proto.logs.v1.ResourceLogs\"\xa3\x01\n\x0cResourceLogs\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12:\n\nscope_logs\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.ScopeLogs\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\xa0\x01\n\tScopeLogs\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12;\n\x0blog_records\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.logs.v1.LogRecord\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\xef\x02\n\tLogRecord\x12\x16\n\x0etime_unix_nano\x18\x01 \x01(\x06\x12\x1f\n\x17observed_time_unix_nano\x18\x0b \x01(\x06\x12\x44\n\x0fseverity_number\x18\x02 \x01(\x0e\x32+.opentelemetry.proto.logs.v1.SeverityNumber\x12\x15\n\rseverity_text\x18\x03 \x01(\t\x12\x35\n\x04\x62ody\x18\x05 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\x12;\n\nattributes\x18\x06 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x07 \x01(\r\x12\r\n\x05\x66lags\x18\x08 \x01(\x07\x12\x10\n\x08trace_id\x18\t \x01(\x0c\x12\x0f\n\x07span_id\x18\n \x01(\x0cJ\x04\x08\x04\x10\x05*\xc3\x05\n\x0eSeverityNumber\x12\x1f\n\x1bSEVERITY_NUMBER_UNSPECIFIED\x10\x00\x12\x19\n\x15SEVERITY_NUMBER_TRACE\x10\x01\x12\x1a\n\x16SEVERITY_NUMBER_TRACE2\x10\x02\x12\x1a\n\x16SEVERITY_NUMBER_TRACE3\x10\x03\x12\x1a\n\x16SEVERITY_NUMBER_TRACE4\x10\x04\x12\x19\n\x15SEVERITY_NUMBER_DEBUG\x10\x05\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG2\x10\x06\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG3\x10\x07\x12\x1a\n\x16SEVERITY_NUMBER_DEBUG4\x10\x08\x12\x18\n\x14SEVERITY_NUMBER_INFO\x10\t\x12\x19\n\x15SEVERITY_NUMBER_INFO2\x10\n\x12\x19\n\x15SEVERITY_NUMBER_INFO3\x10\x0b\x12\x19\n\x15SEVERITY_NUMBER_INFO4\x10\x0c\x12\x18\n\x14SEVERITY_NUMBER_WARN\x10\r\x12\x19\n\x15SEVERITY_NUMBER_WARN2\x10\x0e\x12\x19\n\x15SEVERITY_NUMBER_WARN3\x10\x0f\x12\x19\n\x15SEVERITY_NUMBER_WARN4\x10\x10\x12\x19\n\x15SEVERITY_NUMBER_ERROR\x10\x11\x12\x1a\n\x16SEVERITY_NUMBER_ERROR2\x10\x12\x12\x1a\n\x16SEVERITY_NUMBER_ERROR3\x10\x13\x12\x1a\n\x16SEVERITY_NUMBER_ERROR4\x10\x14\x12\x19\n\x15SEVERITY_NUMBER_FATAL\x10\x15\x12\x1a\n\x16SEVERITY_NUMBER_FATAL2\x10\x16\x12\x1a\n\x16SEVERITY_NUMBER_FATAL3\x10\x17\x12\x1a\n\x16SEVERITY_NUMBER_FATAL4\x10\x18*Y\n\x0eLogRecordFlags\x12\x1f\n\x1bLOG_RECORD_FLAGS_DO_NOT_USE\x10\x00\x12&\n!LOG_RECORD_FLAGS_TRACE_FLAGS_MASK\x10\xff\x01\x42s\n\x1eio.opentelemetry.proto.logs.v1B\tLogsProtoP\x01Z&go.opentelemetry.io/proto/otlp/logs/v1\xaa\x02\x1bOpenTelemetry.Proto.Logs.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb b/exporter/otlp/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb index 743381736b..ada5f22e09 100644 --- a/exporter/otlp/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/metrics/v1/metrics_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/metrics/v1/metrics.proto @@ -6,130 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/metrics/v1/metrics.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.metrics.v1.MetricsData" do - repeated :resource_metrics, :message, 1, "opentelemetry.proto.metrics.v1.ResourceMetrics" - end - add_message "opentelemetry.proto.metrics.v1.ResourceMetrics" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_metrics, :message, 2, "opentelemetry.proto.metrics.v1.ScopeMetrics" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.ScopeMetrics" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :metrics, :message, 2, "opentelemetry.proto.metrics.v1.Metric" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.metrics.v1.Metric" do - optional :name, :string, 1 - optional :description, :string, 2 - optional :unit, :string, 3 - oneof :data do - optional :gauge, :message, 5, "opentelemetry.proto.metrics.v1.Gauge" - optional :sum, :message, 7, "opentelemetry.proto.metrics.v1.Sum" - optional :histogram, :message, 9, "opentelemetry.proto.metrics.v1.Histogram" - optional :exponential_histogram, :message, 10, "opentelemetry.proto.metrics.v1.ExponentialHistogram" - optional :summary, :message, 11, "opentelemetry.proto.metrics.v1.Summary" - end - end - add_message "opentelemetry.proto.metrics.v1.Gauge" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.Sum" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.NumberDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - optional :is_monotonic, :bool, 3 - end - add_message "opentelemetry.proto.metrics.v1.Histogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.HistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogram" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" - optional :aggregation_temporality, :enum, 2, "opentelemetry.proto.metrics.v1.AggregationTemporality" - end - add_message "opentelemetry.proto.metrics.v1.Summary" do - repeated :data_points, :message, 1, "opentelemetry.proto.metrics.v1.SummaryDataPoint" - end - add_message "opentelemetry.proto.metrics.v1.NumberDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - repeated :exemplars, :message, 5, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 8 - oneof :value do - optional :as_double, :double, 4 - optional :as_int, :sfixed64, 6 - end - end - add_message "opentelemetry.proto.metrics.v1.HistogramDataPoint" do - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - repeated :bucket_counts, :fixed64, 6 - repeated :explicit_bounds, :double, 7 - repeated :exemplars, :message, 8, "opentelemetry.proto.metrics.v1.Exemplar" - optional :flags, :uint32, 10 - proto3_optional :min, :double, 11 - proto3_optional :max, :double, 12 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - proto3_optional :sum, :double, 5 - optional :scale, :sint32, 6 - optional :zero_count, :fixed64, 7 - optional :positive, :message, 8, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :negative, :message, 9, "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" - optional :flags, :uint32, 10 - repeated :exemplars, :message, 11, "opentelemetry.proto.metrics.v1.Exemplar" - proto3_optional :min, :double, 12 - proto3_optional :max, :double, 13 - optional :zero_threshold, :double, 14 - end - add_message "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets" do - optional :offset, :sint32, 1 - repeated :bucket_counts, :uint64, 2 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint" do - repeated :attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :start_time_unix_nano, :fixed64, 2 - optional :time_unix_nano, :fixed64, 3 - optional :count, :fixed64, 4 - optional :sum, :double, 5 - repeated :quantile_values, :message, 6, "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" - optional :flags, :uint32, 8 - end - add_message "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile" do - optional :quantile, :double, 1 - optional :value, :double, 2 - end - add_message "opentelemetry.proto.metrics.v1.Exemplar" do - repeated :filtered_attributes, :message, 7, "opentelemetry.proto.common.v1.KeyValue" - optional :time_unix_nano, :fixed64, 2 - optional :span_id, :bytes, 4 - optional :trace_id, :bytes, 5 - oneof :value do - optional :as_double, :double, 3 - optional :as_int, :sfixed64, 6 - end - end - add_enum "opentelemetry.proto.metrics.v1.AggregationTemporality" do - value :AGGREGATION_TEMPORALITY_UNSPECIFIED, 0 - value :AGGREGATION_TEMPORALITY_DELTA, 1 - value :AGGREGATION_TEMPORALITY_CUMULATIVE, 2 - end - add_enum "opentelemetry.proto.metrics.v1.DataPointFlags" do - value :DATA_POINT_FLAGS_DO_NOT_USE, 0 - value :DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK, 1 - end - end -end + +descriptor_data = "\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\"X\n\x0bMetricsData\x12I\n\x10resource_metrics\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.ResourceMetrics\"\xaf\x01\n\x0fResourceMetrics\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12\x43\n\rscope_metrics\x18\x02 \x03(\x0b\x32,.opentelemetry.proto.metrics.v1.ScopeMetrics\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x9f\x01\n\x0cScopeMetrics\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x37\n\x07metrics\x18\x02 \x03(\x0b\x32&.opentelemetry.proto.metrics.v1.Metric\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\x92\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\x36\n\x05gauge\x18\x05 \x01(\x0b\x32%.opentelemetry.proto.metrics.v1.GaugeH\x00\x12\x32\n\x03sum\x18\x07 \x01(\x0b\x32#.opentelemetry.proto.metrics.v1.SumH\x00\x12>\n\thistogram\x18\t \x01(\x0b\x32).opentelemetry.proto.metrics.v1.HistogramH\x00\x12U\n\x15\x65xponential_histogram\x18\n \x01(\x0b\x32\x34.opentelemetry.proto.metrics.v1.ExponentialHistogramH\x00\x12:\n\x07summary\x18\x0b \x01(\x0b\x32\'.opentelemetry.proto.metrics.v1.SummaryH\x00\x42\x06\n\x04\x64\x61taJ\x04\x08\x04\x10\x05J\x04\x08\x06\x10\x07J\x04\x08\x08\x10\t\"M\n\x05Gauge\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\"\xba\x01\n\x03Sum\x12\x44\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32/.opentelemetry.proto.metrics.v1.NumberDataPoint\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\"\xad\x01\n\tHistogram\x12G\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x32.opentelemetry.proto.metrics.v1.HistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"\xc3\x01\n\x14\x45xponentialHistogram\x12R\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32=.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint\x12W\n\x17\x61ggregation_temporality\x18\x02 \x01(\x0e\x32\x36.opentelemetry.proto.metrics.v1.AggregationTemporality\"P\n\x07Summary\x12\x45\n\x0b\x64\x61ta_points\x18\x01 \x03(\x0b\x32\x30.opentelemetry.proto.metrics.v1.SummaryDataPoint\"\x86\x02\n\x0fNumberDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x16\n\x0etime_unix_nano\x18\x03 \x01(\x06\x12\x13\n\tas_double\x18\x04 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12;\n\texemplars\x18\x05 \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\r\n\x05\x66lags\x18\x08 \x01(\rB\x07\n\x05valueJ\x04\x08\x01\x10\x02\"\xe6\x02\n\x12HistogramDataPoint\x12;\n\nattributes\x18\t \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\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.Exemplar\x12\r\n\x05\x66lags\x18\n \x01(\r\x12\x10\n\x03min\x18\x0b \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\x0c \x01(\x01H\x02\x88\x01\x01\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_maxJ\x04\x08\x01\x10\x02\"\xda\x04\n\x1d\x45xponentialHistogramDataPoint\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x10\n\x03sum\x18\x05 \x01(\x01H\x00\x88\x01\x01\x12\r\n\x05scale\x18\x06 \x01(\x11\x12\x12\n\nzero_count\x18\x07 \x01(\x06\x12W\n\x08positive\x18\x08 \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12W\n\x08negative\x18\t \x01(\x0b\x32\x45.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets\x12\r\n\x05\x66lags\x18\n \x01(\r\x12;\n\texemplars\x18\x0b \x03(\x0b\x32(.opentelemetry.proto.metrics.v1.Exemplar\x12\x10\n\x03min\x18\x0c \x01(\x01H\x01\x88\x01\x01\x12\x10\n\x03max\x18\r \x01(\x01H\x02\x88\x01\x01\x12\x16\n\x0ezero_threshold\x18\x0e \x01(\x01\x1a\x30\n\x07\x42uckets\x12\x0e\n\x06offset\x18\x01 \x01(\x11\x12\x15\n\rbucket_counts\x18\x02 \x03(\x04\x42\x06\n\x04_sumB\x06\n\x04_minB\x06\n\x04_max\"\xc5\x02\n\x10SummaryDataPoint\x12;\n\nattributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\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\x12Y\n\x0fquantile_values\x18\x06 \x03(\x0b\x32@.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile\x12\r\n\x05\x66lags\x18\x08 \x01(\r\x1a\x32\n\x0fValueAtQuantile\x12\x10\n\x08quantile\x18\x01 \x01(\x01\x12\r\n\x05value\x18\x02 \x01(\x01J\x04\x08\x01\x10\x02\"\xc1\x01\n\x08\x45xemplar\x12\x44\n\x13\x66iltered_attributes\x18\x07 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12\x16\n\x0etime_unix_nano\x18\x02 \x01(\x06\x12\x13\n\tas_double\x18\x03 \x01(\x01H\x00\x12\x10\n\x06\x61s_int\x18\x06 \x01(\x10H\x00\x12\x0f\n\x07span_id\x18\x04 \x01(\x0c\x12\x10\n\x08trace_id\x18\x05 \x01(\x0c\x42\x07\n\x05valueJ\x04\x08\x01\x10\x02*\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*^\n\x0e\x44\x61taPointFlags\x12\x1f\n\x1b\x44\x41TA_POINT_FLAGS_DO_NOT_USE\x10\x00\x12+\n\'DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK\x10\x01\x42\x7f\n!io.opentelemetry.proto.metrics.v1B\x0cMetricsProtoP\x01Z)go.opentelemetry.io/proto/otlp/metrics/v1\xaa\x02\x1eOpenTelemetry.Proto.Metrics.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/resource/v1/resource_pb.rb b/exporter/otlp/lib/opentelemetry/proto/resource/v1/resource_pb.rb index a10d5ad1f5..67abefd477 100644 --- a/exporter/otlp/lib/opentelemetry/proto/resource/v1/resource_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/resource/v1/resource_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/resource/v1/resource.proto @@ -5,14 +6,11 @@ require 'opentelemetry/proto/common/v1/common_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/resource/v1/resource.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.resource.v1.Resource" do - repeated :attributes, :message, 1, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 2 - end - end -end + +descriptor_data = "\n.opentelemetry/proto/resource/v1/resource.proto\x12\x1fopentelemetry.proto.resource.v1\x1a*opentelemetry/proto/common/v1/common.proto\"i\n\x08Resource\x12;\n\nattributes\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x02 \x01(\rB\x83\x01\n\"io.opentelemetry.proto.resource.v1B\rResourceProtoP\x01Z*go.opentelemetry.io/proto/otlp/resource/v1\xaa\x02\x1fOpenTelemetry.Proto.Resource.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/lib/opentelemetry/proto/trace/v1/trace_pb.rb b/exporter/otlp/lib/opentelemetry/proto/trace/v1/trace_pb.rb index 48c5737352..cb45baa18b 100644 --- a/exporter/otlp/lib/opentelemetry/proto/trace/v1/trace_pb.rb +++ b/exporter/otlp/lib/opentelemetry/proto/trace/v1/trace_pb.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/trace/v1/trace.proto @@ -6,70 +7,11 @@ require 'opentelemetry/proto/common/v1/common_pb' require 'opentelemetry/proto/resource/v1/resource_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("opentelemetry/proto/trace/v1/trace.proto", :syntax => :proto3) do - add_message "opentelemetry.proto.trace.v1.TracesData" do - repeated :resource_spans, :message, 1, "opentelemetry.proto.trace.v1.ResourceSpans" - end - add_message "opentelemetry.proto.trace.v1.ResourceSpans" do - optional :resource, :message, 1, "opentelemetry.proto.resource.v1.Resource" - repeated :scope_spans, :message, 2, "opentelemetry.proto.trace.v1.ScopeSpans" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.ScopeSpans" do - optional :scope, :message, 1, "opentelemetry.proto.common.v1.InstrumentationScope" - repeated :spans, :message, 2, "opentelemetry.proto.trace.v1.Span" - optional :schema_url, :string, 3 - end - add_message "opentelemetry.proto.trace.v1.Span" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - optional :parent_span_id, :bytes, 4 - optional :name, :string, 5 - optional :kind, :enum, 6, "opentelemetry.proto.trace.v1.Span.SpanKind" - optional :start_time_unix_nano, :fixed64, 7 - optional :end_time_unix_nano, :fixed64, 8 - repeated :attributes, :message, 9, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 10 - repeated :events, :message, 11, "opentelemetry.proto.trace.v1.Span.Event" - optional :dropped_events_count, :uint32, 12 - repeated :links, :message, 13, "opentelemetry.proto.trace.v1.Span.Link" - optional :dropped_links_count, :uint32, 14 - optional :status, :message, 15, "opentelemetry.proto.trace.v1.Status" - end - add_message "opentelemetry.proto.trace.v1.Span.Event" do - optional :time_unix_nano, :fixed64, 1 - optional :name, :string, 2 - repeated :attributes, :message, 3, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 4 - end - add_message "opentelemetry.proto.trace.v1.Span.Link" do - optional :trace_id, :bytes, 1 - optional :span_id, :bytes, 2 - optional :trace_state, :string, 3 - repeated :attributes, :message, 4, "opentelemetry.proto.common.v1.KeyValue" - optional :dropped_attributes_count, :uint32, 5 - end - add_enum "opentelemetry.proto.trace.v1.Span.SpanKind" do - value :SPAN_KIND_UNSPECIFIED, 0 - value :SPAN_KIND_INTERNAL, 1 - value :SPAN_KIND_SERVER, 2 - value :SPAN_KIND_CLIENT, 3 - value :SPAN_KIND_PRODUCER, 4 - value :SPAN_KIND_CONSUMER, 5 - end - add_message "opentelemetry.proto.trace.v1.Status" do - optional :message, :string, 2 - optional :code, :enum, 3, "opentelemetry.proto.trace.v1.Status.StatusCode" - end - add_enum "opentelemetry.proto.trace.v1.Status.StatusCode" do - value :STATUS_CODE_UNSET, 0 - value :STATUS_CODE_OK, 1 - value :STATUS_CODE_ERROR, 2 - end - end -end + +descriptor_data = "\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\"Q\n\nTracesData\x12\x43\n\x0eresource_spans\x18\x01 \x03(\x0b\x32+.opentelemetry.proto.trace.v1.ResourceSpans\"\xa7\x01\n\rResourceSpans\x12;\n\x08resource\x18\x01 \x01(\x0b\x32).opentelemetry.proto.resource.v1.Resource\x12=\n\x0bscope_spans\x18\x02 \x03(\x0b\x32(.opentelemetry.proto.trace.v1.ScopeSpans\x12\x12\n\nschema_url\x18\x03 \x01(\tJ\x06\x08\xe8\x07\x10\xe9\x07\"\x97\x01\n\nScopeSpans\x12\x42\n\x05scope\x18\x01 \x01(\x0b\x32\x33.opentelemetry.proto.common.v1.InstrumentationScope\x12\x31\n\x05spans\x18\x02 \x03(\x0b\x32\".opentelemetry.proto.trace.v1.Span\x12\x12\n\nschema_url\x18\x03 \x01(\t\"\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\"\xae\x01\n\x06Status\x12\x0f\n\x07message\x18\x02 \x01(\t\x12=\n\x04\x63ode\x18\x03 \x01(\x0e\x32/.opentelemetry.proto.trace.v1.Status.StatusCode\"N\n\nStatusCode\x12\x15\n\x11STATUS_CODE_UNSET\x10\x00\x12\x12\n\x0eSTATUS_CODE_OK\x10\x01\x12\x15\n\x11STATUS_CODE_ERROR\x10\x02J\x04\x08\x01\x10\x02\x42w\n\x1fio.opentelemetry.proto.trace.v1B\nTraceProtoP\x01Z\'go.opentelemetry.io/proto/otlp/trace/v1\xaa\x02\x1cOpenTelemetry.Proto.Trace.V1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) module Opentelemetry module Proto diff --git a/exporter/otlp/opentelemetry-exporter-otlp.gemspec b/exporter/otlp/opentelemetry-exporter-otlp.gemspec index 0fb029cec0..3b79b3a0bd 100644 --- a/exporter/otlp/opentelemetry-exporter-otlp.gemspec +++ b/exporter/otlp/opentelemetry-exporter-otlp.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 3.0' spec.add_dependency 'googleapis-common-protos-types', '~> 1.3' - spec.add_dependency 'google-protobuf', '~> 3.14' + spec.add_dependency 'google-protobuf', '>= 3.18' spec.add_dependency 'opentelemetry-api', '~> 1.1' spec.add_dependency 'opentelemetry-common', '~> 0.20' spec.add_dependency 'opentelemetry-sdk', '~> 1.2'