lib/opentelemetry/proto/trace/v1/trace_pb.rb in opentelemetry-exporter-otlp-0.23.0 vs lib/opentelemetry/proto/trace/v1/trace_pb.rb in opentelemetry-exporter-otlp-0.24.0
- old
+ new
@@ -3,20 +3,27 @@
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 :instrumentation_library_spans, :message, 2, "opentelemetry.proto.trace.v1.InstrumentationLibrarySpans"
+ 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
@@ -57,33 +64,13 @@
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 :deprecated_code, :enum, 1, "opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode"
optional :message, :string, 2
optional :code, :enum, 3, "opentelemetry.proto.trace.v1.Status.StatusCode"
end
- add_enum "opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode" do
- value :DEPRECATED_STATUS_CODE_OK, 0
- value :DEPRECATED_STATUS_CODE_CANCELLED, 1
- value :DEPRECATED_STATUS_CODE_UNKNOWN_ERROR, 2
- value :DEPRECATED_STATUS_CODE_INVALID_ARGUMENT, 3
- value :DEPRECATED_STATUS_CODE_DEADLINE_EXCEEDED, 4
- value :DEPRECATED_STATUS_CODE_NOT_FOUND, 5
- value :DEPRECATED_STATUS_CODE_ALREADY_EXISTS, 6
- value :DEPRECATED_STATUS_CODE_PERMISSION_DENIED, 7
- value :DEPRECATED_STATUS_CODE_RESOURCE_EXHAUSTED, 8
- value :DEPRECATED_STATUS_CODE_FAILED_PRECONDITION, 9
- value :DEPRECATED_STATUS_CODE_ABORTED, 10
- value :DEPRECATED_STATUS_CODE_OUT_OF_RANGE, 11
- value :DEPRECATED_STATUS_CODE_UNIMPLEMENTED, 12
- value :DEPRECATED_STATUS_CODE_INTERNAL_ERROR, 13
- value :DEPRECATED_STATUS_CODE_UNAVAILABLE, 14
- value :DEPRECATED_STATUS_CODE_DATA_LOSS, 15
- value :DEPRECATED_STATUS_CODE_UNAUTHENTICATED, 16
- 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
@@ -94,16 +81,16 @@
module Proto
module Trace
module V1
TracesData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.TracesData").msgclass
ResourceSpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ResourceSpans").msgclass
+ ScopeSpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.ScopeSpans").msgclass
InstrumentationLibrarySpans = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.InstrumentationLibrarySpans").msgclass
Span = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span").msgclass
Span::Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.Event").msgclass
Span::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.Link").msgclass
Span::SpanKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Span.SpanKind").enummodule
Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status").msgclass
- Status::DeprecatedStatusCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode").enummodule
Status::StatusCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("opentelemetry.proto.trace.v1.Status.StatusCode").enummodule
end
end
end
end