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