trace.pb.go 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136
  1. // Copyright 2019, OpenTelemetry Authors
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.26.0
  17. // protoc v3.21.6
  18. // source: opentelemetry/proto/trace/v1/trace.proto
  19. package v1
  20. import (
  21. v11 "go.opentelemetry.io/proto/otlp/common/v1"
  22. v1 "go.opentelemetry.io/proto/otlp/resource/v1"
  23. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  24. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  25. reflect "reflect"
  26. sync "sync"
  27. )
  28. const (
  29. // Verify that this generated code is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  31. // Verify that runtime/protoimpl is sufficiently up-to-date.
  32. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  33. )
  34. // SpanKind is the type of span. Can be used to specify additional relationships between spans
  35. // in addition to a parent/child relationship.
  36. type Span_SpanKind int32
  37. const (
  38. // Unspecified. Do NOT use as default.
  39. // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED.
  40. Span_SPAN_KIND_UNSPECIFIED Span_SpanKind = 0
  41. // Indicates that the span represents an internal operation within an application,
  42. // as opposed to an operation happening at the boundaries. Default value.
  43. Span_SPAN_KIND_INTERNAL Span_SpanKind = 1
  44. // Indicates that the span covers server-side handling of an RPC or other
  45. // remote network request.
  46. Span_SPAN_KIND_SERVER Span_SpanKind = 2
  47. // Indicates that the span describes a request to some remote service.
  48. Span_SPAN_KIND_CLIENT Span_SpanKind = 3
  49. // Indicates that the span describes a producer sending a message to a broker.
  50. // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship
  51. // between producer and consumer spans. A PRODUCER span ends when the message was accepted
  52. // by the broker while the logical processing of the message might span a much longer time.
  53. Span_SPAN_KIND_PRODUCER Span_SpanKind = 4
  54. // Indicates that the span describes consumer receiving a message from a broker.
  55. // Like the PRODUCER kind, there is often no direct critical path latency relationship
  56. // between producer and consumer spans.
  57. Span_SPAN_KIND_CONSUMER Span_SpanKind = 5
  58. )
  59. // Enum value maps for Span_SpanKind.
  60. var (
  61. Span_SpanKind_name = map[int32]string{
  62. 0: "SPAN_KIND_UNSPECIFIED",
  63. 1: "SPAN_KIND_INTERNAL",
  64. 2: "SPAN_KIND_SERVER",
  65. 3: "SPAN_KIND_CLIENT",
  66. 4: "SPAN_KIND_PRODUCER",
  67. 5: "SPAN_KIND_CONSUMER",
  68. }
  69. Span_SpanKind_value = map[string]int32{
  70. "SPAN_KIND_UNSPECIFIED": 0,
  71. "SPAN_KIND_INTERNAL": 1,
  72. "SPAN_KIND_SERVER": 2,
  73. "SPAN_KIND_CLIENT": 3,
  74. "SPAN_KIND_PRODUCER": 4,
  75. "SPAN_KIND_CONSUMER": 5,
  76. }
  77. )
  78. func (x Span_SpanKind) Enum() *Span_SpanKind {
  79. p := new(Span_SpanKind)
  80. *p = x
  81. return p
  82. }
  83. func (x Span_SpanKind) String() string {
  84. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  85. }
  86. func (Span_SpanKind) Descriptor() protoreflect.EnumDescriptor {
  87. return file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[0].Descriptor()
  88. }
  89. func (Span_SpanKind) Type() protoreflect.EnumType {
  90. return &file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[0]
  91. }
  92. func (x Span_SpanKind) Number() protoreflect.EnumNumber {
  93. return protoreflect.EnumNumber(x)
  94. }
  95. // Deprecated: Use Span_SpanKind.Descriptor instead.
  96. func (Span_SpanKind) EnumDescriptor() ([]byte, []int) {
  97. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 0}
  98. }
  99. // For the semantics of status codes see
  100. // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status
  101. type Status_StatusCode int32
  102. const (
  103. // The default status.
  104. Status_STATUS_CODE_UNSET Status_StatusCode = 0
  105. // The Span has been validated by an Application developer or Operator to
  106. // have completed successfully.
  107. Status_STATUS_CODE_OK Status_StatusCode = 1
  108. // The Span contains an error.
  109. Status_STATUS_CODE_ERROR Status_StatusCode = 2
  110. )
  111. // Enum value maps for Status_StatusCode.
  112. var (
  113. Status_StatusCode_name = map[int32]string{
  114. 0: "STATUS_CODE_UNSET",
  115. 1: "STATUS_CODE_OK",
  116. 2: "STATUS_CODE_ERROR",
  117. }
  118. Status_StatusCode_value = map[string]int32{
  119. "STATUS_CODE_UNSET": 0,
  120. "STATUS_CODE_OK": 1,
  121. "STATUS_CODE_ERROR": 2,
  122. }
  123. )
  124. func (x Status_StatusCode) Enum() *Status_StatusCode {
  125. p := new(Status_StatusCode)
  126. *p = x
  127. return p
  128. }
  129. func (x Status_StatusCode) String() string {
  130. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  131. }
  132. func (Status_StatusCode) Descriptor() protoreflect.EnumDescriptor {
  133. return file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[1].Descriptor()
  134. }
  135. func (Status_StatusCode) Type() protoreflect.EnumType {
  136. return &file_opentelemetry_proto_trace_v1_trace_proto_enumTypes[1]
  137. }
  138. func (x Status_StatusCode) Number() protoreflect.EnumNumber {
  139. return protoreflect.EnumNumber(x)
  140. }
  141. // Deprecated: Use Status_StatusCode.Descriptor instead.
  142. func (Status_StatusCode) EnumDescriptor() ([]byte, []int) {
  143. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{4, 0}
  144. }
  145. // TracesData represents the traces data that can be stored in a persistent storage,
  146. // OR can be embedded by other protocols that transfer OTLP traces data but do
  147. // not implement the OTLP protocol.
  148. //
  149. // The main difference between this message and collector protocol is that
  150. // in this message there will not be any "control" or "metadata" specific to
  151. // OTLP protocol.
  152. //
  153. // When new fields are added into this message, the OTLP request MUST be updated
  154. // as well.
  155. type TracesData struct {
  156. state protoimpl.MessageState
  157. sizeCache protoimpl.SizeCache
  158. unknownFields protoimpl.UnknownFields
  159. // An array of ResourceSpans.
  160. // For data coming from a single resource this array will typically contain
  161. // one element. Intermediary nodes that receive data from multiple origins
  162. // typically batch the data before forwarding further and in that case this
  163. // array will contain multiple elements.
  164. ResourceSpans []*ResourceSpans `protobuf:"bytes,1,rep,name=resource_spans,json=resourceSpans,proto3" json:"resource_spans,omitempty"`
  165. }
  166. func (x *TracesData) Reset() {
  167. *x = TracesData{}
  168. if protoimpl.UnsafeEnabled {
  169. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[0]
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. ms.StoreMessageInfo(mi)
  172. }
  173. }
  174. func (x *TracesData) String() string {
  175. return protoimpl.X.MessageStringOf(x)
  176. }
  177. func (*TracesData) ProtoMessage() {}
  178. func (x *TracesData) ProtoReflect() protoreflect.Message {
  179. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[0]
  180. if protoimpl.UnsafeEnabled && x != nil {
  181. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  182. if ms.LoadMessageInfo() == nil {
  183. ms.StoreMessageInfo(mi)
  184. }
  185. return ms
  186. }
  187. return mi.MessageOf(x)
  188. }
  189. // Deprecated: Use TracesData.ProtoReflect.Descriptor instead.
  190. func (*TracesData) Descriptor() ([]byte, []int) {
  191. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{0}
  192. }
  193. func (x *TracesData) GetResourceSpans() []*ResourceSpans {
  194. if x != nil {
  195. return x.ResourceSpans
  196. }
  197. return nil
  198. }
  199. // A collection of ScopeSpans from a Resource.
  200. type ResourceSpans struct {
  201. state protoimpl.MessageState
  202. sizeCache protoimpl.SizeCache
  203. unknownFields protoimpl.UnknownFields
  204. // The resource for the spans in this message.
  205. // If this field is not set then no resource info is known.
  206. Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
  207. // A list of ScopeSpans that originate from a resource.
  208. ScopeSpans []*ScopeSpans `protobuf:"bytes,2,rep,name=scope_spans,json=scopeSpans,proto3" json:"scope_spans,omitempty"`
  209. // This schema_url applies to the data in the "resource" field. It does not apply
  210. // to the data in the "scope_spans" field which have their own schema_url field.
  211. SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`
  212. }
  213. func (x *ResourceSpans) Reset() {
  214. *x = ResourceSpans{}
  215. if protoimpl.UnsafeEnabled {
  216. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[1]
  217. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  218. ms.StoreMessageInfo(mi)
  219. }
  220. }
  221. func (x *ResourceSpans) String() string {
  222. return protoimpl.X.MessageStringOf(x)
  223. }
  224. func (*ResourceSpans) ProtoMessage() {}
  225. func (x *ResourceSpans) ProtoReflect() protoreflect.Message {
  226. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[1]
  227. if protoimpl.UnsafeEnabled && x != nil {
  228. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  229. if ms.LoadMessageInfo() == nil {
  230. ms.StoreMessageInfo(mi)
  231. }
  232. return ms
  233. }
  234. return mi.MessageOf(x)
  235. }
  236. // Deprecated: Use ResourceSpans.ProtoReflect.Descriptor instead.
  237. func (*ResourceSpans) Descriptor() ([]byte, []int) {
  238. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{1}
  239. }
  240. func (x *ResourceSpans) GetResource() *v1.Resource {
  241. if x != nil {
  242. return x.Resource
  243. }
  244. return nil
  245. }
  246. func (x *ResourceSpans) GetScopeSpans() []*ScopeSpans {
  247. if x != nil {
  248. return x.ScopeSpans
  249. }
  250. return nil
  251. }
  252. func (x *ResourceSpans) GetSchemaUrl() string {
  253. if x != nil {
  254. return x.SchemaUrl
  255. }
  256. return ""
  257. }
  258. // A collection of Spans produced by an InstrumentationScope.
  259. type ScopeSpans struct {
  260. state protoimpl.MessageState
  261. sizeCache protoimpl.SizeCache
  262. unknownFields protoimpl.UnknownFields
  263. // The instrumentation scope information for the spans in this message.
  264. // Semantically when InstrumentationScope isn't set, it is equivalent with
  265. // an empty instrumentation scope name (unknown).
  266. Scope *v11.InstrumentationScope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
  267. // A list of Spans that originate from an instrumentation scope.
  268. Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
  269. // This schema_url applies to all spans and span events in the "spans" field.
  270. SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`
  271. }
  272. func (x *ScopeSpans) Reset() {
  273. *x = ScopeSpans{}
  274. if protoimpl.UnsafeEnabled {
  275. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[2]
  276. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  277. ms.StoreMessageInfo(mi)
  278. }
  279. }
  280. func (x *ScopeSpans) String() string {
  281. return protoimpl.X.MessageStringOf(x)
  282. }
  283. func (*ScopeSpans) ProtoMessage() {}
  284. func (x *ScopeSpans) ProtoReflect() protoreflect.Message {
  285. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[2]
  286. if protoimpl.UnsafeEnabled && x != nil {
  287. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  288. if ms.LoadMessageInfo() == nil {
  289. ms.StoreMessageInfo(mi)
  290. }
  291. return ms
  292. }
  293. return mi.MessageOf(x)
  294. }
  295. // Deprecated: Use ScopeSpans.ProtoReflect.Descriptor instead.
  296. func (*ScopeSpans) Descriptor() ([]byte, []int) {
  297. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{2}
  298. }
  299. func (x *ScopeSpans) GetScope() *v11.InstrumentationScope {
  300. if x != nil {
  301. return x.Scope
  302. }
  303. return nil
  304. }
  305. func (x *ScopeSpans) GetSpans() []*Span {
  306. if x != nil {
  307. return x.Spans
  308. }
  309. return nil
  310. }
  311. func (x *ScopeSpans) GetSchemaUrl() string {
  312. if x != nil {
  313. return x.SchemaUrl
  314. }
  315. return ""
  316. }
  317. // A Span represents a single operation performed by a single component of the system.
  318. //
  319. // The next available field id is 17.
  320. type Span struct {
  321. state protoimpl.MessageState
  322. sizeCache protoimpl.SizeCache
  323. unknownFields protoimpl.UnknownFields
  324. // A unique identifier for a trace. All spans from the same trace share
  325. // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR
  326. // of length other than 16 bytes is considered invalid (empty string in OTLP/JSON
  327. // is zero-length and thus is also invalid).
  328. //
  329. // This field is required.
  330. TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
  331. // A unique identifier for a span within a trace, assigned when the span
  332. // is created. The ID is an 8-byte array. An ID with all zeroes OR of length
  333. // other than 8 bytes is considered invalid (empty string in OTLP/JSON
  334. // is zero-length and thus is also invalid).
  335. //
  336. // This field is required.
  337. SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
  338. // trace_state conveys information about request position in multiple distributed tracing graphs.
  339. // It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
  340. // See also https://github.com/w3c/distributed-tracing for more details about this field.
  341. TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`
  342. // The `span_id` of this span's parent span. If this is a root span, then this
  343. // field must be empty. The ID is an 8-byte array.
  344. ParentSpanId []byte `protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
  345. // A description of the span's operation.
  346. //
  347. // For example, the name can be a qualified method name or a file name
  348. // and a line number where the operation is called. A best practice is to use
  349. // the same display name at the same call point in an application.
  350. // This makes it easier to correlate spans in different traces.
  351. //
  352. // This field is semantically required to be set to non-empty string.
  353. // Empty value is equivalent to an unknown span name.
  354. //
  355. // This field is required.
  356. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
  357. // Distinguishes between spans generated in a particular context. For example,
  358. // two spans with the same name may be distinguished using `CLIENT` (caller)
  359. // and `SERVER` (callee) to identify queueing latency associated with the span.
  360. Kind Span_SpanKind `protobuf:"varint,6,opt,name=kind,proto3,enum=opentelemetry.proto.trace.v1.Span_SpanKind" json:"kind,omitempty"`
  361. // start_time_unix_nano is the start time of the span. On the client side, this is the time
  362. // kept by the local machine where the span execution starts. On the server side, this
  363. // is the time when the server's application handler starts running.
  364. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
  365. //
  366. // This field is semantically required and it is expected that end_time >= start_time.
  367. StartTimeUnixNano uint64 `protobuf:"fixed64,7,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
  368. // end_time_unix_nano is the end time of the span. On the client side, this is the time
  369. // kept by the local machine where the span execution ends. On the server side, this
  370. // is the time when the server application handler stops running.
  371. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
  372. //
  373. // This field is semantically required and it is expected that end_time >= start_time.
  374. EndTimeUnixNano uint64 `protobuf:"fixed64,8,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"`
  375. // attributes is a collection of key/value pairs. Note, global attributes
  376. // like server name can be set using the resource API. Examples of attributes:
  377. //
  378. // "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
  379. // "/http/server_latency": 300
  380. // "example.com/myattribute": true
  381. // "example.com/score": 10.239
  382. //
  383. // The OpenTelemetry API specification further restricts the allowed value types:
  384. // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
  385. // Attribute keys MUST be unique (it is not allowed to have more than one
  386. // attribute with the same key).
  387. Attributes []*v11.KeyValue `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"`
  388. // dropped_attributes_count is the number of attributes that were discarded. Attributes
  389. // can be discarded because their keys are too long or because there are too many
  390. // attributes. If this value is 0, then no attributes were dropped.
  391. DroppedAttributesCount uint32 `protobuf:"varint,10,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
  392. // events is a collection of Event items.
  393. Events []*Span_Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
  394. // dropped_events_count is the number of dropped events. If the value is 0, then no
  395. // events were dropped.
  396. DroppedEventsCount uint32 `protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"`
  397. // links is a collection of Links, which are references from this span to a span
  398. // in the same or different trace.
  399. Links []*Span_Link `protobuf:"bytes,13,rep,name=links,proto3" json:"links,omitempty"`
  400. // dropped_links_count is the number of dropped links after the maximum size was
  401. // enforced. If this value is 0, then no links were dropped.
  402. DroppedLinksCount uint32 `protobuf:"varint,14,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
  403. // An optional final status for this span. Semantically when Status isn't set, it means
  404. // span's status code is unset, i.e. assume STATUS_CODE_UNSET (code = 0).
  405. Status *Status `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"`
  406. }
  407. func (x *Span) Reset() {
  408. *x = Span{}
  409. if protoimpl.UnsafeEnabled {
  410. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[3]
  411. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  412. ms.StoreMessageInfo(mi)
  413. }
  414. }
  415. func (x *Span) String() string {
  416. return protoimpl.X.MessageStringOf(x)
  417. }
  418. func (*Span) ProtoMessage() {}
  419. func (x *Span) ProtoReflect() protoreflect.Message {
  420. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[3]
  421. if protoimpl.UnsafeEnabled && x != nil {
  422. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  423. if ms.LoadMessageInfo() == nil {
  424. ms.StoreMessageInfo(mi)
  425. }
  426. return ms
  427. }
  428. return mi.MessageOf(x)
  429. }
  430. // Deprecated: Use Span.ProtoReflect.Descriptor instead.
  431. func (*Span) Descriptor() ([]byte, []int) {
  432. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3}
  433. }
  434. func (x *Span) GetTraceId() []byte {
  435. if x != nil {
  436. return x.TraceId
  437. }
  438. return nil
  439. }
  440. func (x *Span) GetSpanId() []byte {
  441. if x != nil {
  442. return x.SpanId
  443. }
  444. return nil
  445. }
  446. func (x *Span) GetTraceState() string {
  447. if x != nil {
  448. return x.TraceState
  449. }
  450. return ""
  451. }
  452. func (x *Span) GetParentSpanId() []byte {
  453. if x != nil {
  454. return x.ParentSpanId
  455. }
  456. return nil
  457. }
  458. func (x *Span) GetName() string {
  459. if x != nil {
  460. return x.Name
  461. }
  462. return ""
  463. }
  464. func (x *Span) GetKind() Span_SpanKind {
  465. if x != nil {
  466. return x.Kind
  467. }
  468. return Span_SPAN_KIND_UNSPECIFIED
  469. }
  470. func (x *Span) GetStartTimeUnixNano() uint64 {
  471. if x != nil {
  472. return x.StartTimeUnixNano
  473. }
  474. return 0
  475. }
  476. func (x *Span) GetEndTimeUnixNano() uint64 {
  477. if x != nil {
  478. return x.EndTimeUnixNano
  479. }
  480. return 0
  481. }
  482. func (x *Span) GetAttributes() []*v11.KeyValue {
  483. if x != nil {
  484. return x.Attributes
  485. }
  486. return nil
  487. }
  488. func (x *Span) GetDroppedAttributesCount() uint32 {
  489. if x != nil {
  490. return x.DroppedAttributesCount
  491. }
  492. return 0
  493. }
  494. func (x *Span) GetEvents() []*Span_Event {
  495. if x != nil {
  496. return x.Events
  497. }
  498. return nil
  499. }
  500. func (x *Span) GetDroppedEventsCount() uint32 {
  501. if x != nil {
  502. return x.DroppedEventsCount
  503. }
  504. return 0
  505. }
  506. func (x *Span) GetLinks() []*Span_Link {
  507. if x != nil {
  508. return x.Links
  509. }
  510. return nil
  511. }
  512. func (x *Span) GetDroppedLinksCount() uint32 {
  513. if x != nil {
  514. return x.DroppedLinksCount
  515. }
  516. return 0
  517. }
  518. func (x *Span) GetStatus() *Status {
  519. if x != nil {
  520. return x.Status
  521. }
  522. return nil
  523. }
  524. // The Status type defines a logical error model that is suitable for different
  525. // programming environments, including REST APIs and RPC APIs.
  526. type Status struct {
  527. state protoimpl.MessageState
  528. sizeCache protoimpl.SizeCache
  529. unknownFields protoimpl.UnknownFields
  530. // A developer-facing human readable error message.
  531. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  532. // The status code.
  533. Code Status_StatusCode `protobuf:"varint,3,opt,name=code,proto3,enum=opentelemetry.proto.trace.v1.Status_StatusCode" json:"code,omitempty"`
  534. }
  535. func (x *Status) Reset() {
  536. *x = Status{}
  537. if protoimpl.UnsafeEnabled {
  538. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[4]
  539. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  540. ms.StoreMessageInfo(mi)
  541. }
  542. }
  543. func (x *Status) String() string {
  544. return protoimpl.X.MessageStringOf(x)
  545. }
  546. func (*Status) ProtoMessage() {}
  547. func (x *Status) ProtoReflect() protoreflect.Message {
  548. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[4]
  549. if protoimpl.UnsafeEnabled && x != nil {
  550. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  551. if ms.LoadMessageInfo() == nil {
  552. ms.StoreMessageInfo(mi)
  553. }
  554. return ms
  555. }
  556. return mi.MessageOf(x)
  557. }
  558. // Deprecated: Use Status.ProtoReflect.Descriptor instead.
  559. func (*Status) Descriptor() ([]byte, []int) {
  560. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{4}
  561. }
  562. func (x *Status) GetMessage() string {
  563. if x != nil {
  564. return x.Message
  565. }
  566. return ""
  567. }
  568. func (x *Status) GetCode() Status_StatusCode {
  569. if x != nil {
  570. return x.Code
  571. }
  572. return Status_STATUS_CODE_UNSET
  573. }
  574. // Event is a time-stamped annotation of the span, consisting of user-supplied
  575. // text description and key-value pairs.
  576. type Span_Event struct {
  577. state protoimpl.MessageState
  578. sizeCache protoimpl.SizeCache
  579. unknownFields protoimpl.UnknownFields
  580. // time_unix_nano is the time the event occurred.
  581. TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
  582. // name of the event.
  583. // This field is semantically required to be set to non-empty string.
  584. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  585. // attributes is a collection of attribute key/value pairs on the event.
  586. // Attribute keys MUST be unique (it is not allowed to have more than one
  587. // attribute with the same key).
  588. Attributes []*v11.KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
  589. // dropped_attributes_count is the number of dropped attributes. If the value is 0,
  590. // then no attributes were dropped.
  591. DroppedAttributesCount uint32 `protobuf:"varint,4,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
  592. }
  593. func (x *Span_Event) Reset() {
  594. *x = Span_Event{}
  595. if protoimpl.UnsafeEnabled {
  596. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[5]
  597. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  598. ms.StoreMessageInfo(mi)
  599. }
  600. }
  601. func (x *Span_Event) String() string {
  602. return protoimpl.X.MessageStringOf(x)
  603. }
  604. func (*Span_Event) ProtoMessage() {}
  605. func (x *Span_Event) ProtoReflect() protoreflect.Message {
  606. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[5]
  607. if protoimpl.UnsafeEnabled && x != nil {
  608. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  609. if ms.LoadMessageInfo() == nil {
  610. ms.StoreMessageInfo(mi)
  611. }
  612. return ms
  613. }
  614. return mi.MessageOf(x)
  615. }
  616. // Deprecated: Use Span_Event.ProtoReflect.Descriptor instead.
  617. func (*Span_Event) Descriptor() ([]byte, []int) {
  618. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 0}
  619. }
  620. func (x *Span_Event) GetTimeUnixNano() uint64 {
  621. if x != nil {
  622. return x.TimeUnixNano
  623. }
  624. return 0
  625. }
  626. func (x *Span_Event) GetName() string {
  627. if x != nil {
  628. return x.Name
  629. }
  630. return ""
  631. }
  632. func (x *Span_Event) GetAttributes() []*v11.KeyValue {
  633. if x != nil {
  634. return x.Attributes
  635. }
  636. return nil
  637. }
  638. func (x *Span_Event) GetDroppedAttributesCount() uint32 {
  639. if x != nil {
  640. return x.DroppedAttributesCount
  641. }
  642. return 0
  643. }
  644. // A pointer from the current span to another span in the same trace or in a
  645. // different trace. For example, this can be used in batching operations,
  646. // where a single batch handler processes multiple requests from different
  647. // traces or when the handler receives a request from a different project.
  648. type Span_Link struct {
  649. state protoimpl.MessageState
  650. sizeCache protoimpl.SizeCache
  651. unknownFields protoimpl.UnknownFields
  652. // A unique identifier of a trace that this linked span is part of. The ID is a
  653. // 16-byte array.
  654. TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
  655. // A unique identifier for the linked span. The ID is an 8-byte array.
  656. SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
  657. // The trace_state associated with the link.
  658. TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"`
  659. // attributes is a collection of attribute key/value pairs on the link.
  660. // Attribute keys MUST be unique (it is not allowed to have more than one
  661. // attribute with the same key).
  662. Attributes []*v11.KeyValue `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`
  663. // dropped_attributes_count is the number of dropped attributes. If the value is 0,
  664. // then no attributes were dropped.
  665. DroppedAttributesCount uint32 `protobuf:"varint,5,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
  666. }
  667. func (x *Span_Link) Reset() {
  668. *x = Span_Link{}
  669. if protoimpl.UnsafeEnabled {
  670. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[6]
  671. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  672. ms.StoreMessageInfo(mi)
  673. }
  674. }
  675. func (x *Span_Link) String() string {
  676. return protoimpl.X.MessageStringOf(x)
  677. }
  678. func (*Span_Link) ProtoMessage() {}
  679. func (x *Span_Link) ProtoReflect() protoreflect.Message {
  680. mi := &file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[6]
  681. if protoimpl.UnsafeEnabled && x != nil {
  682. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  683. if ms.LoadMessageInfo() == nil {
  684. ms.StoreMessageInfo(mi)
  685. }
  686. return ms
  687. }
  688. return mi.MessageOf(x)
  689. }
  690. // Deprecated: Use Span_Link.ProtoReflect.Descriptor instead.
  691. func (*Span_Link) Descriptor() ([]byte, []int) {
  692. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP(), []int{3, 1}
  693. }
  694. func (x *Span_Link) GetTraceId() []byte {
  695. if x != nil {
  696. return x.TraceId
  697. }
  698. return nil
  699. }
  700. func (x *Span_Link) GetSpanId() []byte {
  701. if x != nil {
  702. return x.SpanId
  703. }
  704. return nil
  705. }
  706. func (x *Span_Link) GetTraceState() string {
  707. if x != nil {
  708. return x.TraceState
  709. }
  710. return ""
  711. }
  712. func (x *Span_Link) GetAttributes() []*v11.KeyValue {
  713. if x != nil {
  714. return x.Attributes
  715. }
  716. return nil
  717. }
  718. func (x *Span_Link) GetDroppedAttributesCount() uint32 {
  719. if x != nil {
  720. return x.DroppedAttributesCount
  721. }
  722. return 0
  723. }
  724. var File_opentelemetry_proto_trace_v1_trace_proto protoreflect.FileDescriptor
  725. var file_opentelemetry_proto_trace_v1_trace_proto_rawDesc = []byte{
  726. 0x0a, 0x28, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,
  727. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74,
  728. 0x72, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x6f, 0x70, 0x65, 0x6e,
  729. 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  730. 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
  731. 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f,
  732. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  733. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65,
  734. 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  735. 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
  736. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x73, 0x44, 0x61,
  737. 0x74, 0x61, 0x12, 0x52, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73,
  738. 0x70, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x70, 0x65,
  739. 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  740. 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  741. 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  742. 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x22, 0xc8, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75,
  743. 0x72, 0x63, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f,
  744. 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65,
  745. 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  746. 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73,
  747. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
  748. 0x49, 0x0a, 0x0b, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02,
  749. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d,
  750. 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65,
  751. 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x52, 0x0a,
  752. 0x73, 0x63, 0x6f, 0x70, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x63,
  753. 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  754. 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x6c, 0x4a, 0x06, 0x08, 0xe8, 0x07, 0x10, 0xe9,
  755. 0x07, 0x22, 0xb0, 0x01, 0x0a, 0x0a, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x53, 0x70, 0x61, 0x6e, 0x73,
  756. 0x12, 0x49, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  757. 0x33, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,
  758. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
  759. 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  760. 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x73,
  761. 0x70, 0x61, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6f, 0x70, 0x65,
  762. 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  763. 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05,
  764. 0x73, 0x70, 0x61, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f,
  765. 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d,
  766. 0x61, 0x55, 0x72, 0x6c, 0x22, 0x9c, 0x0a, 0x0a, 0x04, 0x53, 0x70, 0x61, 0x6e, 0x12, 0x19, 0x0a,
  767. 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  768. 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x61, 0x6e,
  769. 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x70, 0x61, 0x6e, 0x49,
  770. 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65,
  771. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x74, 0x61,
  772. 0x74, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x70, 0x61,
  773. 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x61, 0x72, 0x65,
  774. 0x6e, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
  775. 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x04,
  776. 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x6f, 0x70, 0x65,
  777. 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  778. 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x53,
  779. 0x70, 0x61, 0x6e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x2f, 0x0a,
  780. 0x14, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x78,
  781. 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x11, 0x73, 0x74, 0x61,
  782. 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x78, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x2b,
  783. 0x0a, 0x12, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x78, 0x5f,
  784. 0x6e, 0x61, 0x6e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x06, 0x52, 0x0f, 0x65, 0x6e, 0x64, 0x54,
  785. 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x78, 0x4e, 0x61, 0x6e, 0x6f, 0x12, 0x47, 0x0a, 0x0a, 0x61,
  786. 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32,
  787. 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,
  788. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e,
  789. 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
  790. 0x75, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f,
  791. 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  792. 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41,
  793. 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40,
  794. 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28,
  795. 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70,
  796. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70,
  797. 0x61, 0x6e, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73,
  798. 0x12, 0x30, 0x0a, 0x14, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e,
  799. 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12,
  800. 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x75,
  801. 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28,
  802. 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72,
  803. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31,
  804. 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x6b,
  805. 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x6c, 0x69, 0x6e,
  806. 0x6b, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11,
  807. 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x43, 0x6f, 0x75, 0x6e,
  808. 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28,
  809. 0x0b, 0x32, 0x24, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72,
  810. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31,
  811. 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a,
  812. 0xc4, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x69, 0x6d,
  813. 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
  814. 0x06, 0x52, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x78, 0x4e, 0x61, 0x6e, 0x6f, 0x12,
  815. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  816. 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
  817. 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
  818. 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f,
  819. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65,
  820. 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18,
  821. 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  822. 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16,
  823. 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
  824. 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0xde, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12,
  825. 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  826. 0x0c, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70,
  827. 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x70, 0x61,
  828. 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61,
  829. 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53,
  830. 0x74, 0x61, 0x74, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  831. 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74,
  832. 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63,
  833. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75,
  834. 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a,
  835. 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  836. 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52,
  837. 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  838. 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x99, 0x01, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x6e,
  839. 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e,
  840. 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
  841. 0x16, 0x0a, 0x12, 0x53, 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x49, 0x4e, 0x54,
  842. 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x50, 0x41, 0x4e, 0x5f,
  843. 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x10, 0x02, 0x12, 0x14, 0x0a,
  844. 0x10, 0x53, 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e,
  845. 0x54, 0x10, 0x03, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44,
  846. 0x5f, 0x50, 0x52, 0x4f, 0x44, 0x55, 0x43, 0x45, 0x52, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x53,
  847. 0x50, 0x41, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x55, 0x4d, 0x45,
  848. 0x52, 0x10, 0x05, 0x22, 0xbd, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18,
  849. 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  850. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x43, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  851. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c,
  852. 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61,
  853. 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61,
  854. 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x4e, 0x0a,
  855. 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53,
  856. 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x45, 0x54,
  857. 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x44,
  858. 0x45, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53,
  859. 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x4a, 0x04, 0x08,
  860. 0x01, 0x10, 0x02, 0x42, 0x77, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
  861. 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72,
  862. 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f,
  863. 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c,
  864. 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
  865. 0x6f, 0x74, 0x6c, 0x70, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x1c,
  866. 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x50, 0x72,
  867. 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
  868. 0x6f, 0x74, 0x6f, 0x33,
  869. }
  870. var (
  871. file_opentelemetry_proto_trace_v1_trace_proto_rawDescOnce sync.Once
  872. file_opentelemetry_proto_trace_v1_trace_proto_rawDescData = file_opentelemetry_proto_trace_v1_trace_proto_rawDesc
  873. )
  874. func file_opentelemetry_proto_trace_v1_trace_proto_rawDescGZIP() []byte {
  875. file_opentelemetry_proto_trace_v1_trace_proto_rawDescOnce.Do(func() {
  876. file_opentelemetry_proto_trace_v1_trace_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_trace_v1_trace_proto_rawDescData)
  877. })
  878. return file_opentelemetry_proto_trace_v1_trace_proto_rawDescData
  879. }
  880. var file_opentelemetry_proto_trace_v1_trace_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  881. var file_opentelemetry_proto_trace_v1_trace_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  882. var file_opentelemetry_proto_trace_v1_trace_proto_goTypes = []interface{}{
  883. (Span_SpanKind)(0), // 0: opentelemetry.proto.trace.v1.Span.SpanKind
  884. (Status_StatusCode)(0), // 1: opentelemetry.proto.trace.v1.Status.StatusCode
  885. (*TracesData)(nil), // 2: opentelemetry.proto.trace.v1.TracesData
  886. (*ResourceSpans)(nil), // 3: opentelemetry.proto.trace.v1.ResourceSpans
  887. (*ScopeSpans)(nil), // 4: opentelemetry.proto.trace.v1.ScopeSpans
  888. (*Span)(nil), // 5: opentelemetry.proto.trace.v1.Span
  889. (*Status)(nil), // 6: opentelemetry.proto.trace.v1.Status
  890. (*Span_Event)(nil), // 7: opentelemetry.proto.trace.v1.Span.Event
  891. (*Span_Link)(nil), // 8: opentelemetry.proto.trace.v1.Span.Link
  892. (*v1.Resource)(nil), // 9: opentelemetry.proto.resource.v1.Resource
  893. (*v11.InstrumentationScope)(nil), // 10: opentelemetry.proto.common.v1.InstrumentationScope
  894. (*v11.KeyValue)(nil), // 11: opentelemetry.proto.common.v1.KeyValue
  895. }
  896. var file_opentelemetry_proto_trace_v1_trace_proto_depIdxs = []int32{
  897. 3, // 0: opentelemetry.proto.trace.v1.TracesData.resource_spans:type_name -> opentelemetry.proto.trace.v1.ResourceSpans
  898. 9, // 1: opentelemetry.proto.trace.v1.ResourceSpans.resource:type_name -> opentelemetry.proto.resource.v1.Resource
  899. 4, // 2: opentelemetry.proto.trace.v1.ResourceSpans.scope_spans:type_name -> opentelemetry.proto.trace.v1.ScopeSpans
  900. 10, // 3: opentelemetry.proto.trace.v1.ScopeSpans.scope:type_name -> opentelemetry.proto.common.v1.InstrumentationScope
  901. 5, // 4: opentelemetry.proto.trace.v1.ScopeSpans.spans:type_name -> opentelemetry.proto.trace.v1.Span
  902. 0, // 5: opentelemetry.proto.trace.v1.Span.kind:type_name -> opentelemetry.proto.trace.v1.Span.SpanKind
  903. 11, // 6: opentelemetry.proto.trace.v1.Span.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue
  904. 7, // 7: opentelemetry.proto.trace.v1.Span.events:type_name -> opentelemetry.proto.trace.v1.Span.Event
  905. 8, // 8: opentelemetry.proto.trace.v1.Span.links:type_name -> opentelemetry.proto.trace.v1.Span.Link
  906. 6, // 9: opentelemetry.proto.trace.v1.Span.status:type_name -> opentelemetry.proto.trace.v1.Status
  907. 1, // 10: opentelemetry.proto.trace.v1.Status.code:type_name -> opentelemetry.proto.trace.v1.Status.StatusCode
  908. 11, // 11: opentelemetry.proto.trace.v1.Span.Event.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue
  909. 11, // 12: opentelemetry.proto.trace.v1.Span.Link.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue
  910. 13, // [13:13] is the sub-list for method output_type
  911. 13, // [13:13] is the sub-list for method input_type
  912. 13, // [13:13] is the sub-list for extension type_name
  913. 13, // [13:13] is the sub-list for extension extendee
  914. 0, // [0:13] is the sub-list for field type_name
  915. }
  916. func init() { file_opentelemetry_proto_trace_v1_trace_proto_init() }
  917. func file_opentelemetry_proto_trace_v1_trace_proto_init() {
  918. if File_opentelemetry_proto_trace_v1_trace_proto != nil {
  919. return
  920. }
  921. if !protoimpl.UnsafeEnabled {
  922. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  923. switch v := v.(*TracesData); i {
  924. case 0:
  925. return &v.state
  926. case 1:
  927. return &v.sizeCache
  928. case 2:
  929. return &v.unknownFields
  930. default:
  931. return nil
  932. }
  933. }
  934. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  935. switch v := v.(*ResourceSpans); i {
  936. case 0:
  937. return &v.state
  938. case 1:
  939. return &v.sizeCache
  940. case 2:
  941. return &v.unknownFields
  942. default:
  943. return nil
  944. }
  945. }
  946. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  947. switch v := v.(*ScopeSpans); i {
  948. case 0:
  949. return &v.state
  950. case 1:
  951. return &v.sizeCache
  952. case 2:
  953. return &v.unknownFields
  954. default:
  955. return nil
  956. }
  957. }
  958. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  959. switch v := v.(*Span); i {
  960. case 0:
  961. return &v.state
  962. case 1:
  963. return &v.sizeCache
  964. case 2:
  965. return &v.unknownFields
  966. default:
  967. return nil
  968. }
  969. }
  970. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  971. switch v := v.(*Status); i {
  972. case 0:
  973. return &v.state
  974. case 1:
  975. return &v.sizeCache
  976. case 2:
  977. return &v.unknownFields
  978. default:
  979. return nil
  980. }
  981. }
  982. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  983. switch v := v.(*Span_Event); i {
  984. case 0:
  985. return &v.state
  986. case 1:
  987. return &v.sizeCache
  988. case 2:
  989. return &v.unknownFields
  990. default:
  991. return nil
  992. }
  993. }
  994. file_opentelemetry_proto_trace_v1_trace_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  995. switch v := v.(*Span_Link); i {
  996. case 0:
  997. return &v.state
  998. case 1:
  999. return &v.sizeCache
  1000. case 2:
  1001. return &v.unknownFields
  1002. default:
  1003. return nil
  1004. }
  1005. }
  1006. }
  1007. type x struct{}
  1008. out := protoimpl.TypeBuilder{
  1009. File: protoimpl.DescBuilder{
  1010. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1011. RawDescriptor: file_opentelemetry_proto_trace_v1_trace_proto_rawDesc,
  1012. NumEnums: 2,
  1013. NumMessages: 7,
  1014. NumExtensions: 0,
  1015. NumServices: 0,
  1016. },
  1017. GoTypes: file_opentelemetry_proto_trace_v1_trace_proto_goTypes,
  1018. DependencyIndexes: file_opentelemetry_proto_trace_v1_trace_proto_depIdxs,
  1019. EnumInfos: file_opentelemetry_proto_trace_v1_trace_proto_enumTypes,
  1020. MessageInfos: file_opentelemetry_proto_trace_v1_trace_proto_msgTypes,
  1021. }.Build()
  1022. File_opentelemetry_proto_trace_v1_trace_proto = out.File
  1023. file_opentelemetry_proto_trace_v1_trace_proto_rawDesc = nil
  1024. file_opentelemetry_proto_trace_v1_trace_proto_goTypes = nil
  1025. file_opentelemetry_proto_trace_v1_trace_proto_depIdxs = nil
  1026. }