liubing 5 months ago
parent
commit
92abfe2429
3 changed files with 372 additions and 12 deletions
  1. 20 11
      cmd/tracecreator/trace_loader.go
  2. 1 1
      opentelemetry-proto
  3. 351 0
      pkg/otlp/trace/v1/cecf.pb.go

+ 20 - 11
cmd/tracecreator/trace_loader.go

@@ -1,7 +1,9 @@
 package main
 
 import (
-	collector "git.cestong.com.cn/cecf/trace-stream-creator/pkg/otlp/collector/trace/v1"
+	"encoding/hex"
+	pcommon "git.cestong.com.cn/cecf/trace-stream-creator/pkg/otlp/common/v1"
+	presource "git.cestong.com.cn/cecf/trace-stream-creator/pkg/otlp/resource/v1"
 	trace "git.cestong.com.cn/cecf/trace-stream-creator/pkg/otlp/trace/v1"
 	"github.com/gogo/protobuf/proto"
 )
@@ -38,18 +40,25 @@ func (tl *TraceLoader) startHandleTraceID() {
 		DroppedLinksCount:      0,
 		Status:                 nil,
 	}
-	scopeSpan := trace.ScopeSpans{
-		Scope:     nil,
-		Spans:     []*trace.Span{&span},
-		SchemaUrl: "",
+	scope := pcommon.InstrumentationScope{
+		Name:                   "scopeName",
+		Version:                "scopeVersion",
+		DroppedAttributesCount: 0,
+		Attributes:             make([]*pcommon.KeyValue, 0,
+	}
+	resource := presource.Resource{Attributes: make([]*pcommon.KeyValue, 0)}
+	flatSpan := trace.FlatSpan{
+		Span:     &span,
+		Scope:    &scope,
+		Resource: &resource,
 	}
-	resourceSpan := trace.ResourceSpans{
-		Resource:   nil,
-		ScopeSpans: []*trace.ScopeSpans{&scopeSpan},
-		SchemaUrl:  "",
+	traceID := "traceID"
+	traceIDBytes, _ := hex.DecodeString(traceID)
+	tr := trace.FlatTrace{
+		TraceId:   traceIDBytes,
+		FlatSpans: []*trace.FlatSpan{&flatSpan},
 	}
-	exportTraceServiceRequest := collector.ExportTraceServiceRequest{ResourceSpans: []*trace.ResourceSpans{&resourceSpan}}
-	proto.Marshal(&exportTraceServiceRequest)
+	proto.Marshal(&tr)
 	for {
 		select {
 		case traceId := <-tl.traceIdChan:

+ 1 - 1
opentelemetry-proto

@@ -1 +1 @@
-Subproject commit 40b3c1b746767cbc13c2e39da3eaf1a23e54ffdd
+Subproject commit d6ee80cadc8fbe1c3e711120d21899c15c78f2c1

+ 351 - 0
pkg/otlp/trace/v1/cecf.pb.go

@@ -0,0 +1,351 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// versions:
+// 	protoc-gen-go v1.26.0
+// 	protoc        v3.17.3
+// source: opentelemetry/proto/trace/v1/cecf.proto
+
+package v1
+
+import (
+	v1 "go.opentelemetry.io/proto/otlp/common/v1"
+	v11 "go.opentelemetry.io/proto/otlp/resource/v1"
+	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
+	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
+	reflect "reflect"
+	sync "sync"
+)
+
+const (
+	// Verify that this generated code is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
+	// Verify that runtime/protoimpl is sufficiently up-to-date.
+	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
+)
+
+type FlatSpan struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Span     *Span                    `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
+	Scope    *v1.InstrumentationScope `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
+	Resource *v11.Resource            `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
+}
+
+func (x *FlatSpan) Reset() {
+	*x = FlatSpan{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *FlatSpan) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FlatSpan) ProtoMessage() {}
+
+func (x *FlatSpan) ProtoReflect() protoreflect.Message {
+	mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[0]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use FlatSpan.ProtoReflect.Descriptor instead.
+func (*FlatSpan) Descriptor() ([]byte, []int) {
+	return file_opentelemetry_proto_trace_v1_cecf_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *FlatSpan) GetSpan() *Span {
+	if x != nil {
+		return x.Span
+	}
+	return nil
+}
+
+func (x *FlatSpan) GetScope() *v1.InstrumentationScope {
+	if x != nil {
+		return x.Scope
+	}
+	return nil
+}
+
+func (x *FlatSpan) GetResource() *v11.Resource {
+	if x != nil {
+		return x.Resource
+	}
+	return nil
+}
+
+type FlatSpanNode struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	FlatSpan *FlatSpan   `protobuf:"bytes,1,opt,name=flat_span,json=flatSpan,proto3" json:"flat_span,omitempty"`
+	Children []*FlatSpan `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
+}
+
+func (x *FlatSpanNode) Reset() {
+	*x = FlatSpanNode{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *FlatSpanNode) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FlatSpanNode) ProtoMessage() {}
+
+func (x *FlatSpanNode) ProtoReflect() protoreflect.Message {
+	mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[1]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use FlatSpanNode.ProtoReflect.Descriptor instead.
+func (*FlatSpanNode) Descriptor() ([]byte, []int) {
+	return file_opentelemetry_proto_trace_v1_cecf_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *FlatSpanNode) GetFlatSpan() *FlatSpan {
+	if x != nil {
+		return x.FlatSpan
+	}
+	return nil
+}
+
+func (x *FlatSpanNode) GetChildren() []*FlatSpan {
+	if x != nil {
+		return x.Children
+	}
+	return nil
+}
+
+type FlatTrace struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	TraceId   []byte      `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
+	FlatSpans []*FlatSpan `protobuf:"bytes,2,rep,name=flat_spans,json=flatSpans,proto3" json:"flat_spans,omitempty"`
+}
+
+func (x *FlatTrace) Reset() {
+	*x = FlatTrace{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[2]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *FlatTrace) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FlatTrace) ProtoMessage() {}
+
+func (x *FlatTrace) ProtoReflect() protoreflect.Message {
+	mi := &file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[2]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use FlatTrace.ProtoReflect.Descriptor instead.
+func (*FlatTrace) Descriptor() ([]byte, []int) {
+	return file_opentelemetry_proto_trace_v1_cecf_proto_rawDescGZIP(), []int{2}
+}
+
+func (x *FlatTrace) GetTraceId() []byte {
+	if x != nil {
+		return x.TraceId
+	}
+	return nil
+}
+
+func (x *FlatTrace) GetFlatSpans() []*FlatSpan {
+	if x != nil {
+		return x.FlatSpans
+	}
+	return nil
+}
+
+var File_opentelemetry_proto_trace_v1_cecf_proto protoreflect.FileDescriptor
+
+var file_opentelemetry_proto_trace_v1_cecf_proto_rawDesc = []byte{
+	0x0a, 0x27, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63,
+	0x65, 0x63, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x6f, 0x70, 0x65, 0x6e, 0x74,
+	0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c,
+	0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
+	0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
+	0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72,
+	0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
+	0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76,
+	0x31, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x01,
+	0x0a, 0x08, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x70,
+	0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74,
+	0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x04, 0x73, 0x70,
+	0x61, 0x6e, 0x12, 0x49, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+	0x0b, 0x32, 0x33, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72,
+	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76,
+	0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f,
+	0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x45, 0x0a,
+	0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+	0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76,
+	0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f,
+	0x75, 0x72, 0x63, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x0c, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61,
+	0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x73, 0x70,
+	0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74,
+	0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e,
+	0x52, 0x08, 0x66, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x42, 0x0a, 0x08, 0x63, 0x68,
+	0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f,
+	0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x74,
+	0x53, 0x70, 0x61, 0x6e, 0x52, 0x08, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x22, 0x6d,
+	0x0a, 0x09, 0x46, 0x6c, 0x61, 0x74, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x45, 0x0a, 0x0a, 0x66, 0x6c, 0x61, 0x74, 0x5f, 0x73,
+	0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x70, 0x65,
+	0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+	0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x61, 0x74, 0x53, 0x70,
+	0x61, 0x6e, 0x52, 0x09, 0x66, 0x6c, 0x61, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x42, 0x77, 0x0a,
+	0x1f, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72,
+	0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31,
+	0x42, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27,
+	0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
+	0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x74, 0x6c, 0x70, 0x2f, 0x74,
+	0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65,
+	0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72,
+	0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+}
+
+var (
+	file_opentelemetry_proto_trace_v1_cecf_proto_rawDescOnce sync.Once
+	file_opentelemetry_proto_trace_v1_cecf_proto_rawDescData = file_opentelemetry_proto_trace_v1_cecf_proto_rawDesc
+)
+
+func file_opentelemetry_proto_trace_v1_cecf_proto_rawDescGZIP() []byte {
+	file_opentelemetry_proto_trace_v1_cecf_proto_rawDescOnce.Do(func() {
+		file_opentelemetry_proto_trace_v1_cecf_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_trace_v1_cecf_proto_rawDescData)
+	})
+	return file_opentelemetry_proto_trace_v1_cecf_proto_rawDescData
+}
+
+var file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_opentelemetry_proto_trace_v1_cecf_proto_goTypes = []interface{}{
+	(*FlatSpan)(nil),                // 0: opentelemetry.proto.trace.v1.FlatSpan
+	(*FlatSpanNode)(nil),            // 1: opentelemetry.proto.trace.v1.FlatSpanNode
+	(*FlatTrace)(nil),               // 2: opentelemetry.proto.trace.v1.FlatTrace
+	(*Span)(nil),                    // 3: opentelemetry.proto.trace.v1.Span
+	(*v1.InstrumentationScope)(nil), // 4: opentelemetry.proto.common.v1.InstrumentationScope
+	(*v11.Resource)(nil),            // 5: opentelemetry.proto.resource.v1.Resource
+}
+var file_opentelemetry_proto_trace_v1_cecf_proto_depIdxs = []int32{
+	3, // 0: opentelemetry.proto.trace.v1.FlatSpan.span:type_name -> opentelemetry.proto.trace.v1.Span
+	4, // 1: opentelemetry.proto.trace.v1.FlatSpan.scope:type_name -> opentelemetry.proto.common.v1.InstrumentationScope
+	5, // 2: opentelemetry.proto.trace.v1.FlatSpan.resource:type_name -> opentelemetry.proto.resource.v1.Resource
+	0, // 3: opentelemetry.proto.trace.v1.FlatSpanNode.flat_span:type_name -> opentelemetry.proto.trace.v1.FlatSpan
+	0, // 4: opentelemetry.proto.trace.v1.FlatSpanNode.children:type_name -> opentelemetry.proto.trace.v1.FlatSpan
+	0, // 5: opentelemetry.proto.trace.v1.FlatTrace.flat_spans:type_name -> opentelemetry.proto.trace.v1.FlatSpan
+	6, // [6:6] is the sub-list for method output_type
+	6, // [6:6] is the sub-list for method input_type
+	6, // [6:6] is the sub-list for extension type_name
+	6, // [6:6] is the sub-list for extension extendee
+	0, // [0:6] is the sub-list for field type_name
+}
+
+func init() { file_opentelemetry_proto_trace_v1_cecf_proto_init() }
+func file_opentelemetry_proto_trace_v1_cecf_proto_init() {
+	if File_opentelemetry_proto_trace_v1_cecf_proto != nil {
+		return
+	}
+	file_opentelemetry_proto_trace_v1_trace_proto_init()
+	if !protoimpl.UnsafeEnabled {
+		file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*FlatSpan); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*FlatSpanNode); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*FlatTrace); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+	}
+	type x struct{}
+	out := protoimpl.TypeBuilder{
+		File: protoimpl.DescBuilder{
+			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
+			RawDescriptor: file_opentelemetry_proto_trace_v1_cecf_proto_rawDesc,
+			NumEnums:      0,
+			NumMessages:   3,
+			NumExtensions: 0,
+			NumServices:   0,
+		},
+		GoTypes:           file_opentelemetry_proto_trace_v1_cecf_proto_goTypes,
+		DependencyIndexes: file_opentelemetry_proto_trace_v1_cecf_proto_depIdxs,
+		MessageInfos:      file_opentelemetry_proto_trace_v1_cecf_proto_msgTypes,
+	}.Build()
+	File_opentelemetry_proto_trace_v1_cecf_proto = out.File
+	file_opentelemetry_proto_trace_v1_cecf_proto_rawDesc = nil
+	file_opentelemetry_proto_trace_v1_cecf_proto_goTypes = nil
+	file_opentelemetry_proto_trace_v1_cecf_proto_depIdxs = nil
+}