lib/opentelemetry/proto/trace/v1/trace_pb.rb in opentelemetry-exporter-otlp-0.27.0 vs lib/opentelemetry/proto/trace/v1/trace_pb.rb in opentelemetry-exporter-otlp-0.28.0

- old
+ new

@@ -1,76 +1,18 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opentelemetry/proto/trace/v1/trace.proto require 'google/protobuf' 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 module Trace module V1