1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893
|
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/tracing/trace.proto
// DO NOT EDIT!
/*
Package google_tracing_v1 is a generated protocol buffer package.
It is generated from these files:
google.golang.org/genproto/googleapis/tracing/trace.proto
It has these top-level messages:
TraceId
Module
StackTrace
LabelValue
Span
Trace
*/
package google_tracing_v1
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/serviceconfig"
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The type of the network event. SENT or RECV event.
type Span_TimeEvent_NetworkEvent_Type int32
const (
Span_TimeEvent_NetworkEvent_UNSPECIFIED Span_TimeEvent_NetworkEvent_Type = 0
Span_TimeEvent_NetworkEvent_SENT Span_TimeEvent_NetworkEvent_Type = 1
Span_TimeEvent_NetworkEvent_RECV Span_TimeEvent_NetworkEvent_Type = 2
)
var Span_TimeEvent_NetworkEvent_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "SENT",
2: "RECV",
}
var Span_TimeEvent_NetworkEvent_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"SENT": 1,
"RECV": 2,
}
func (x Span_TimeEvent_NetworkEvent_Type) String() string {
return proto.EnumName(Span_TimeEvent_NetworkEvent_Type_name, int32(x))
}
func (Span_TimeEvent_NetworkEvent_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{4, 0, 1, 0}
}
// The type of the link.
type Span_Link_Type int32
const (
Span_Link_UNSPECIFIED Span_Link_Type = 0
Span_Link_CHILD Span_Link_Type = 1
Span_Link_PARENT Span_Link_Type = 2
)
var Span_Link_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "CHILD",
2: "PARENT",
}
var Span_Link_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"CHILD": 1,
"PARENT": 2,
}
func (x Span_Link_Type) String() string {
return proto.EnumName(Span_Link_Type_name, int32(x))
}
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 1, 0} }
// A TraceId uniquely identifies a Trace. It is conceptually a 128-bit value,
// represented as a string, containing the hex-encoded value.
type TraceId struct {
// Trace ID specified as a hex-encoded string. *Must* be 32 bytes long.
HexEncoded string `protobuf:"bytes,1,opt,name=hex_encoded,json=hexEncoded" json:"hex_encoded,omitempty"`
}
func (m *TraceId) Reset() { *m = TraceId{} }
func (m *TraceId) String() string { return proto.CompactTextString(m) }
func (*TraceId) ProtoMessage() {}
func (*TraceId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *TraceId) GetHexEncoded() string {
if m != nil {
return m.HexEncoded
}
return ""
}
type Module struct {
// Binary module.
// E.g. main binary, kernel modules, and dynamic libraries
// such as libc.so, sharedlib.so
Module string `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
// Build_id is a unique identifier for the module,
// probably a hash of its contents
BuildId string `protobuf:"bytes,2,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
}
func (m *Module) Reset() { *m = Module{} }
func (m *Module) String() string { return proto.CompactTextString(m) }
func (*Module) ProtoMessage() {}
func (*Module) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Module) GetModule() string {
if m != nil {
return m.Module
}
return ""
}
func (m *Module) GetBuildId() string {
if m != nil {
return m.BuildId
}
return ""
}
type StackTrace struct {
// Stack frames of this stack trace.
StackFrame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=stack_frame,json=stackFrame" json:"stack_frame,omitempty"`
// User can choose to use his own hash function to hash large labels to save
// network bandwidth and storage.
// Typical usage is to pass both initially to inform the storage of the
// mapping. And in subsequent calls, pass in stack_trace_hash_id only.
// User shall verify the hash value is successfully stored.
StackTraceHashId uint64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId" json:"stack_trace_hash_id,omitempty"`
}
func (m *StackTrace) Reset() { *m = StackTrace{} }
func (m *StackTrace) String() string { return proto.CompactTextString(m) }
func (*StackTrace) ProtoMessage() {}
func (*StackTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *StackTrace) GetStackFrame() []*StackTrace_StackFrame {
if m != nil {
return m.StackFrame
}
return nil
}
func (m *StackTrace) GetStackTraceHashId() uint64 {
if m != nil {
return m.StackTraceHashId
}
return 0
}
// Presents a single stack frame in a stack trace.
type StackTrace_StackFrame struct {
// Fully qualified names which uniquely identify function/method/etc.
FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName" json:"function_name,omitempty"`
// Used when function name is ‘mangled’. Not guaranteed to be fully
// qualified but usually it is.
OrigFunctionName string `protobuf:"bytes,2,opt,name=orig_function_name,json=origFunctionName" json:"orig_function_name,omitempty"`
// File name of the frame.
FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
// Line number of the frame.
LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber" json:"line_number,omitempty"`
// Column number is important in JavaScript(anonymous functions),
// Might not be available in some languages.
ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber" json:"column_number,omitempty"`
// Binary module the code is loaded from.
LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule" json:"load_module,omitempty"`
// source_version is deployment specific. It might be
// better to be stored in deployment metadata.
// However, in distributed tracing, it’s hard to keep track of
// source/binary versions at one place for all spans.
SourceVersion string `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion" json:"source_version,omitempty"`
}
func (m *StackTrace_StackFrame) Reset() { *m = StackTrace_StackFrame{} }
func (m *StackTrace_StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrame) ProtoMessage() {}
func (*StackTrace_StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
func (m *StackTrace_StackFrame) GetFunctionName() string {
if m != nil {
return m.FunctionName
}
return ""
}
func (m *StackTrace_StackFrame) GetOrigFunctionName() string {
if m != nil {
return m.OrigFunctionName
}
return ""
}
func (m *StackTrace_StackFrame) GetFileName() string {
if m != nil {
return m.FileName
}
return ""
}
func (m *StackTrace_StackFrame) GetLineNumber() int64 {
if m != nil {
return m.LineNumber
}
return 0
}
func (m *StackTrace_StackFrame) GetColumnNumber() int64 {
if m != nil {
return m.ColumnNumber
}
return 0
}
func (m *StackTrace_StackFrame) GetLoadModule() *Module {
if m != nil {
return m.LoadModule
}
return nil
}
func (m *StackTrace_StackFrame) GetSourceVersion() string {
if m != nil {
return m.SourceVersion
}
return ""
}
// Allowed label values.
type LabelValue struct {
// The value of the label.
//
// Types that are valid to be assigned to Value:
// *LabelValue_StringValue
// *LabelValue_IntValue
// *LabelValue_BoolValue
Value isLabelValue_Value `protobuf_oneof:"value"`
}
func (m *LabelValue) Reset() { *m = LabelValue{} }
func (m *LabelValue) String() string { return proto.CompactTextString(m) }
func (*LabelValue) ProtoMessage() {}
func (*LabelValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
type isLabelValue_Value interface {
isLabelValue_Value()
}
type LabelValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,oneof"`
}
type LabelValue_IntValue struct {
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,oneof"`
}
type LabelValue_BoolValue struct {
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,oneof"`
}
func (*LabelValue_StringValue) isLabelValue_Value() {}
func (*LabelValue_IntValue) isLabelValue_Value() {}
func (*LabelValue_BoolValue) isLabelValue_Value() {}
func (m *LabelValue) GetValue() isLabelValue_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *LabelValue) GetStringValue() string {
if x, ok := m.GetValue().(*LabelValue_StringValue); ok {
return x.StringValue
}
return ""
}
func (m *LabelValue) GetIntValue() int64 {
if x, ok := m.GetValue().(*LabelValue_IntValue); ok {
return x.IntValue
}
return 0
}
func (m *LabelValue) GetBoolValue() bool {
if x, ok := m.GetValue().(*LabelValue_BoolValue); ok {
return x.BoolValue
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*LabelValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _LabelValue_OneofMarshaler, _LabelValue_OneofUnmarshaler, _LabelValue_OneofSizer, []interface{}{
(*LabelValue_StringValue)(nil),
(*LabelValue_IntValue)(nil),
(*LabelValue_BoolValue)(nil),
}
}
func _LabelValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*LabelValue)
// value
switch x := m.Value.(type) {
case *LabelValue_StringValue:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeStringBytes(x.StringValue)
case *LabelValue_IntValue:
b.EncodeVarint(2<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.IntValue))
case *LabelValue_BoolValue:
t := uint64(0)
if x.BoolValue {
t = 1
}
b.EncodeVarint(3<<3 | proto.WireVarint)
b.EncodeVarint(t)
case nil:
default:
return fmt.Errorf("LabelValue.Value has unexpected type %T", x)
}
return nil
}
func _LabelValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*LabelValue)
switch tag {
case 1: // value.string_value
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Value = &LabelValue_StringValue{x}
return true, err
case 2: // value.int_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &LabelValue_IntValue{int64(x)}
return true, err
case 3: // value.bool_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &LabelValue_BoolValue{x != 0}
return true, err
default:
return false, nil
}
}
func _LabelValue_OneofSizer(msg proto.Message) (n int) {
m := msg.(*LabelValue)
// value
switch x := m.Value.(type) {
case *LabelValue_StringValue:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.StringValue)))
n += len(x.StringValue)
case *LabelValue_IntValue:
n += proto.SizeVarint(2<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.IntValue))
case *LabelValue_BoolValue:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += 1
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// A span represents a single operation within a trace. Spans can be nested
// and form a trace tree. Often, a trace contains a root span that describes the
// end-to-end latency and, optionally, one or more subspans for
// its sub-operations. Spans do not need to be contiguous. There may be gaps
// between spans in a trace.
type Span struct {
// Identifier for the span. Must be a 64-bit integer other than 0 and
// unique within a trace.
Id uint64 `protobuf:"fixed64,1,opt,name=id" json:"id,omitempty"`
// Name of the span. The span name is sanitized and displayed in the
// Stackdriver Trace tool in the {% dynamic print site_values.console_name %}.
// The name may be a method name or some other per-call site name.
// For the same executable and the same call point, a best practice is
// to use a consistent name, which makes it easier to correlate
// cross-trace spans.
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
// ID of parent span. 0 or missing if this is a root span.
ParentId uint64 `protobuf:"fixed64,3,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"`
// Local machine clock in nanoseconds from the UNIX epoch,
// at which span execution started.
// On the server side these are the times when the server application
// handler starts running.
LocalStartTime *google_protobuf1.Timestamp `protobuf:"bytes,4,opt,name=local_start_time,json=localStartTime" json:"local_start_time,omitempty"`
// Local machine clock in nanoseconds from the UNIX epoch,
// at which span execution ended.
// On the server side these are the times when the server application
// handler finishes running.
LocalEndTime *google_protobuf1.Timestamp `protobuf:"bytes,5,opt,name=local_end_time,json=localEndTime" json:"local_end_time,omitempty"`
// Properties of a span. Labels at the span level.
// E.g.
// "/instance_id": "my-instance"
// "/zone": "us-central1-a"
// "/grpc/peer_address": "ip:port" (dns, etc.)
// "/grpc/deadline": "Duration"
// "/http/user_agent"
// "/http/request_bytes": 300
// "/http/response_bytes": 1200
// "/http/url": google.com/apis
// "/pid"
// "abc.com/mylabel": "my label value"
Labels map[string]*LabelValue `protobuf:"bytes,6,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Stack trace captured at the start of the span. This is optional.
StackTrace *StackTrace `protobuf:"bytes,7,opt,name=stack_trace,json=stackTrace" json:"stack_trace,omitempty"`
// A collection of time-stamped events.
TimeEvents []*Span_TimeEvent `protobuf:"bytes,8,rep,name=time_events,json=timeEvents" json:"time_events,omitempty"`
// A collection of links.
Links []*Span_Link `protobuf:"bytes,9,rep,name=links" json:"links,omitempty"`
// The final status of the Span. This is optional.
Status *google_rpc.Status `protobuf:"bytes,10,opt,name=status" json:"status,omitempty"`
// True if this Span has a remote parent (is an RPC server Span).
HasRemoteParent bool `protobuf:"varint,11,opt,name=has_remote_parent,json=hasRemoteParent" json:"has_remote_parent,omitempty"`
}
func (m *Span) Reset() { *m = Span{} }
func (m *Span) String() string { return proto.CompactTextString(m) }
func (*Span) ProtoMessage() {}
func (*Span) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *Span) GetId() uint64 {
if m != nil {
return m.Id
}
return 0
}
func (m *Span) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Span) GetParentId() uint64 {
if m != nil {
return m.ParentId
}
return 0
}
func (m *Span) GetLocalStartTime() *google_protobuf1.Timestamp {
if m != nil {
return m.LocalStartTime
}
return nil
}
func (m *Span) GetLocalEndTime() *google_protobuf1.Timestamp {
if m != nil {
return m.LocalEndTime
}
return nil
}
func (m *Span) GetLabels() map[string]*LabelValue {
if m != nil {
return m.Labels
}
return nil
}
func (m *Span) GetStackTrace() *StackTrace {
if m != nil {
return m.StackTrace
}
return nil
}
func (m *Span) GetTimeEvents() []*Span_TimeEvent {
if m != nil {
return m.TimeEvents
}
return nil
}
func (m *Span) GetLinks() []*Span_Link {
if m != nil {
return m.Links
}
return nil
}
func (m *Span) GetStatus() *google_rpc.Status {
if m != nil {
return m.Status
}
return nil
}
func (m *Span) GetHasRemoteParent() bool {
if m != nil {
return m.HasRemoteParent
}
return false
}
// A time-stamped annotation in the Span.
type Span_TimeEvent struct {
// The local machine absolute timestamp when this event happened.
LocalTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=local_time,json=localTime" json:"local_time,omitempty"`
// Types that are valid to be assigned to Value:
// *Span_TimeEvent_Annotation_
// *Span_TimeEvent_NetworkEvent_
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
}
func (m *Span_TimeEvent) Reset() { *m = Span_TimeEvent{} }
func (m *Span_TimeEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent) ProtoMessage() {}
func (*Span_TimeEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} }
type isSpan_TimeEvent_Value interface {
isSpan_TimeEvent_Value()
}
type Span_TimeEvent_Annotation_ struct {
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,oneof"`
}
type Span_TimeEvent_NetworkEvent_ struct {
NetworkEvent *Span_TimeEvent_NetworkEvent `protobuf:"bytes,3,opt,name=network_event,json=networkEvent,oneof"`
}
func (*Span_TimeEvent_Annotation_) isSpan_TimeEvent_Value() {}
func (*Span_TimeEvent_NetworkEvent_) isSpan_TimeEvent_Value() {}
func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *Span_TimeEvent) GetLocalTime() *google_protobuf1.Timestamp {
if m != nil {
return m.LocalTime
}
return nil
}
func (m *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation {
if x, ok := m.GetValue().(*Span_TimeEvent_Annotation_); ok {
return x.Annotation
}
return nil
}
func (m *Span_TimeEvent) GetNetworkEvent() *Span_TimeEvent_NetworkEvent {
if x, ok := m.GetValue().(*Span_TimeEvent_NetworkEvent_); ok {
return x.NetworkEvent
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Span_TimeEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Span_TimeEvent_OneofMarshaler, _Span_TimeEvent_OneofUnmarshaler, _Span_TimeEvent_OneofSizer, []interface{}{
(*Span_TimeEvent_Annotation_)(nil),
(*Span_TimeEvent_NetworkEvent_)(nil),
}
}
func _Span_TimeEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Span_TimeEvent)
// value
switch x := m.Value.(type) {
case *Span_TimeEvent_Annotation_:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Annotation); err != nil {
return err
}
case *Span_TimeEvent_NetworkEvent_:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NetworkEvent); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Span_TimeEvent.Value has unexpected type %T", x)
}
return nil
}
func _Span_TimeEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Span_TimeEvent)
switch tag {
case 2: // value.annotation
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Span_TimeEvent_Annotation)
err := b.DecodeMessage(msg)
m.Value = &Span_TimeEvent_Annotation_{msg}
return true, err
case 3: // value.network_event
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Span_TimeEvent_NetworkEvent)
err := b.DecodeMessage(msg)
m.Value = &Span_TimeEvent_NetworkEvent_{msg}
return true, err
default:
return false, nil
}
}
func _Span_TimeEvent_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Span_TimeEvent)
// value
switch x := m.Value.(type) {
case *Span_TimeEvent_Annotation_:
s := proto.Size(x.Annotation)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case *Span_TimeEvent_NetworkEvent_:
s := proto.Size(x.NetworkEvent)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Text annotation with a set of labels.
type Span_TimeEvent_Annotation struct {
// A user-supplied message describing the event.
Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
// A set of labels on the annotation.
Labels map[string]*LabelValue `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *Span_TimeEvent_Annotation) Reset() { *m = Span_TimeEvent_Annotation{} }
func (m *Span_TimeEvent_Annotation) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_Annotation) ProtoMessage() {}
func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0, 0} }
func (m *Span_TimeEvent_Annotation) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Span_TimeEvent_Annotation) GetLabels() map[string]*LabelValue {
if m != nil {
return m.Labels
}
return nil
}
// An event describing an RPC message sent/received on the network.
type Span_TimeEvent_NetworkEvent struct {
// If available, this is the kernel time:
// For sent messages, this is the time at which the first bit was sent.
// For received messages, this is the time at which the last bit was
// received.
KernelTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=kernel_time,json=kernelTime" json:"kernel_time,omitempty"`
Type Span_TimeEvent_NetworkEvent_Type `protobuf:"varint,2,opt,name=type,enum=google.tracing.v1.Span_TimeEvent_NetworkEvent_Type" json:"type,omitempty"`
// Every message has an identifier, that must be different from all the
// network messages in this span.
// This is very important when the request/response are streamed.
MessageId uint64 `protobuf:"varint,3,opt,name=message_id,json=messageId" json:"message_id,omitempty"`
// Number of bytes send/receive.
MessageSize uint64 `protobuf:"varint,4,opt,name=message_size,json=messageSize" json:"message_size,omitempty"`
}
func (m *Span_TimeEvent_NetworkEvent) Reset() { *m = Span_TimeEvent_NetworkEvent{} }
func (m *Span_TimeEvent_NetworkEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_NetworkEvent) ProtoMessage() {}
func (*Span_TimeEvent_NetworkEvent) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{4, 0, 1}
}
func (m *Span_TimeEvent_NetworkEvent) GetKernelTime() *google_protobuf1.Timestamp {
if m != nil {
return m.KernelTime
}
return nil
}
func (m *Span_TimeEvent_NetworkEvent) GetType() Span_TimeEvent_NetworkEvent_Type {
if m != nil {
return m.Type
}
return Span_TimeEvent_NetworkEvent_UNSPECIFIED
}
func (m *Span_TimeEvent_NetworkEvent) GetMessageId() uint64 {
if m != nil {
return m.MessageId
}
return 0
}
func (m *Span_TimeEvent_NetworkEvent) GetMessageSize() uint64 {
if m != nil {
return m.MessageSize
}
return 0
}
// Link one span with another which may be in a different Trace. Used (for
// example) in batching operations, where a single batch handler processes
// multiple requests from different traces.
type Span_Link struct {
// The trace and span identifier of the linked span.
TraceId *TraceId `protobuf:"bytes,1,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
SpanId uint64 `protobuf:"fixed64,2,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,enum=google.tracing.v1.Span_Link_Type" json:"type,omitempty"`
}
func (m *Span_Link) Reset() { *m = Span_Link{} }
func (m *Span_Link) String() string { return proto.CompactTextString(m) }
func (*Span_Link) ProtoMessage() {}
func (*Span_Link) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 1} }
func (m *Span_Link) GetTraceId() *TraceId {
if m != nil {
return m.TraceId
}
return nil
}
func (m *Span_Link) GetSpanId() uint64 {
if m != nil {
return m.SpanId
}
return 0
}
func (m *Span_Link) GetType() Span_Link_Type {
if m != nil {
return m.Type
}
return Span_Link_UNSPECIFIED
}
// A trace describes how long it takes for an application to perform some
// operations. It consists of a tree of spans, each of which contains details
// about an operation with time information and operation details.
type Trace struct {
// Globally unique identifier for the trace. Common to all the spans.
TraceId *TraceId `protobuf:"bytes,1,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
// Collection of spans in the trace. The root span has parent_id == 0.
Spans []*Span `protobuf:"bytes,2,rep,name=spans" json:"spans,omitempty"`
}
func (m *Trace) Reset() { *m = Trace{} }
func (m *Trace) String() string { return proto.CompactTextString(m) }
func (*Trace) ProtoMessage() {}
func (*Trace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *Trace) GetTraceId() *TraceId {
if m != nil {
return m.TraceId
}
return nil
}
func (m *Trace) GetSpans() []*Span {
if m != nil {
return m.Spans
}
return nil
}
func init() {
proto.RegisterType((*TraceId)(nil), "google.tracing.v1.TraceId")
proto.RegisterType((*Module)(nil), "google.tracing.v1.Module")
proto.RegisterType((*StackTrace)(nil), "google.tracing.v1.StackTrace")
proto.RegisterType((*StackTrace_StackFrame)(nil), "google.tracing.v1.StackTrace.StackFrame")
proto.RegisterType((*LabelValue)(nil), "google.tracing.v1.LabelValue")
proto.RegisterType((*Span)(nil), "google.tracing.v1.Span")
proto.RegisterType((*Span_TimeEvent)(nil), "google.tracing.v1.Span.TimeEvent")
proto.RegisterType((*Span_TimeEvent_Annotation)(nil), "google.tracing.v1.Span.TimeEvent.Annotation")
proto.RegisterType((*Span_TimeEvent_NetworkEvent)(nil), "google.tracing.v1.Span.TimeEvent.NetworkEvent")
proto.RegisterType((*Span_Link)(nil), "google.tracing.v1.Span.Link")
proto.RegisterType((*Trace)(nil), "google.tracing.v1.Trace")
proto.RegisterEnum("google.tracing.v1.Span_TimeEvent_NetworkEvent_Type", Span_TimeEvent_NetworkEvent_Type_name, Span_TimeEvent_NetworkEvent_Type_value)
proto.RegisterEnum("google.tracing.v1.Span_Link_Type", Span_Link_Type_name, Span_Link_Type_value)
}
func init() {
proto.RegisterFile("google.golang.org/genproto/googleapis/tracing/trace.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 1122 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x55, 0xdb, 0x6e, 0x1b, 0x37,
0x13, 0xd6, 0xf9, 0x30, 0xab, 0x38, 0x0a, 0x7f, 0xfc, 0x8d, 0xa2, 0xd6, 0xb0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