genproto: google.golang.org/genproto/googleapis/devtools/cloudtrace/v2 Index | Files

package cloudtrace

import "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2"

Index

Package Files

trace.pb.go tracing.pb.go

Variables

var Span_Link_Type_name = map[int32]string{
    0:  "TYPE_UNSPECIFIED",
    1:  "CHILD_LINKED_SPAN",
    2:  "PARENT_LINKED_SPAN",
}
var Span_Link_Type_value = map[string]int32{
    "TYPE_UNSPECIFIED":   0,
    "CHILD_LINKED_SPAN":  1,
    "PARENT_LINKED_SPAN": 2,
}
var Span_TimeEvent_MessageEvent_Type_name = map[int32]string{
    0:  "TYPE_UNSPECIFIED",
    1:  "SENT",
    2:  "RECEIVED",
}
var Span_TimeEvent_MessageEvent_Type_value = map[string]int32{
    "TYPE_UNSPECIFIED": 0,
    "SENT":             1,
    "RECEIVED":         2,
}

func RegisterTraceServiceServer Uses

func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer)

type AttributeValue Uses

type AttributeValue struct {
    // The type of the value.
    //
    // Types that are valid to be assigned to Value:
    //	*AttributeValue_StringValue
    //	*AttributeValue_IntValue
    //	*AttributeValue_BoolValue
    Value                isAttributeValue_Value `protobuf_oneof:"value"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.

func (*AttributeValue) Descriptor Uses

func (*AttributeValue) Descriptor() ([]byte, []int)

func (*AttributeValue) GetBoolValue Uses

func (m *AttributeValue) GetBoolValue() bool

func (*AttributeValue) GetIntValue Uses

func (m *AttributeValue) GetIntValue() int64

func (*AttributeValue) GetStringValue Uses

func (m *AttributeValue) GetStringValue() *TruncatableString

func (*AttributeValue) GetValue Uses

func (m *AttributeValue) GetValue() isAttributeValue_Value

func (*AttributeValue) ProtoMessage Uses

func (*AttributeValue) ProtoMessage()

func (*AttributeValue) Reset Uses

func (m *AttributeValue) Reset()

func (*AttributeValue) String Uses

func (m *AttributeValue) String() string

func (*AttributeValue) XXX_DiscardUnknown Uses

func (m *AttributeValue) XXX_DiscardUnknown()

func (*AttributeValue) XXX_Marshal Uses

func (m *AttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AttributeValue) XXX_Merge Uses

func (m *AttributeValue) XXX_Merge(src proto.Message)

func (*AttributeValue) XXX_OneofWrappers Uses

func (*AttributeValue) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AttributeValue) XXX_Size Uses

func (m *AttributeValue) XXX_Size() int

func (*AttributeValue) XXX_Unmarshal Uses

func (m *AttributeValue) XXX_Unmarshal(b []byte) error

type AttributeValue_BoolValue Uses

type AttributeValue_BoolValue struct {
    BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type AttributeValue_IntValue Uses

type AttributeValue_IntValue struct {
    IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type AttributeValue_StringValue Uses

type AttributeValue_StringValue struct {
    StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type BatchWriteSpansRequest Uses

type BatchWriteSpansRequest struct {
    // Required. The name of the project where the spans belong. The format is
    // `projects/[PROJECT_ID]`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // A list of new spans. The span names must not match existing
    // spans, or the results are undefined.
    Spans                []*Span  `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The request message for the `BatchWriteSpans` method.

func (*BatchWriteSpansRequest) Descriptor Uses

func (*BatchWriteSpansRequest) Descriptor() ([]byte, []int)

func (*BatchWriteSpansRequest) GetName Uses

func (m *BatchWriteSpansRequest) GetName() string

func (*BatchWriteSpansRequest) GetSpans Uses

func (m *BatchWriteSpansRequest) GetSpans() []*Span

func (*BatchWriteSpansRequest) ProtoMessage Uses

func (*BatchWriteSpansRequest) ProtoMessage()

func (*BatchWriteSpansRequest) Reset Uses

func (m *BatchWriteSpansRequest) Reset()

func (*BatchWriteSpansRequest) String Uses

func (m *BatchWriteSpansRequest) String() string

func (*BatchWriteSpansRequest) XXX_DiscardUnknown Uses

func (m *BatchWriteSpansRequest) XXX_DiscardUnknown()

func (*BatchWriteSpansRequest) XXX_Marshal Uses

func (m *BatchWriteSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchWriteSpansRequest) XXX_Merge Uses

func (m *BatchWriteSpansRequest) XXX_Merge(src proto.Message)

func (*BatchWriteSpansRequest) XXX_Size Uses

func (m *BatchWriteSpansRequest) XXX_Size() int

func (*BatchWriteSpansRequest) XXX_Unmarshal Uses

func (m *BatchWriteSpansRequest) XXX_Unmarshal(b []byte) error

type Module Uses

type Module struct {
    // For example: main binary, kernel modules, and dynamic libraries
    // such as libc.so, sharedlib.so (up to 256 bytes).
    Module *TruncatableString `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
    // A unique identifier for the module, usually a hash of its
    // contents (up to 128 bytes).
    BuildId              *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Binary module.

func (*Module) Descriptor Uses

func (*Module) Descriptor() ([]byte, []int)

func (*Module) GetBuildId Uses

func (m *Module) GetBuildId() *TruncatableString

func (*Module) GetModule Uses

func (m *Module) GetModule() *TruncatableString

func (*Module) ProtoMessage Uses

func (*Module) ProtoMessage()

func (*Module) Reset Uses

func (m *Module) Reset()

func (*Module) String Uses

func (m *Module) String() string

func (*Module) XXX_DiscardUnknown Uses

func (m *Module) XXX_DiscardUnknown()

func (*Module) XXX_Marshal Uses

func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Module) XXX_Merge Uses

func (m *Module) XXX_Merge(src proto.Message)

func (*Module) XXX_Size Uses

func (m *Module) XXX_Size() int

func (*Module) XXX_Unmarshal Uses

func (m *Module) XXX_Unmarshal(b []byte) error

type Span Uses

type Span struct {
    // The resource name of the span in the following format:
    //
    //     projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
    //
    // [TRACE_ID] is a unique identifier for a trace within a project;
    // it is a 32-character hexadecimal encoding of a 16-byte array.
    //
    // [SPAN_ID] is a unique identifier for a span within a trace; it
    // is a 16-character hexadecimal encoding of an 8-byte array.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The [SPAN_ID] portion of the span's resource name.
    SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
    // The [SPAN_ID] of this span's parent span. If this is a root span,
    // then this field must be empty.
    ParentSpanId string `protobuf:"bytes,3,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"`
    // A description of the span's operation (up to 128 bytes).
    // Stackdriver Trace displays the description in the
    // {% dynamic print site_values.console_name %}.
    // For example, the display name can be a qualified method name or a file name
    // and a line number where the operation is called. A best practice is to use
    // the same display name within an application and at the same call point.
    // This makes it easier to correlate spans in different traces.
    DisplayName *TruncatableString `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // The start time of the span. On the client side, this is the time kept by
    // the local machine where the span execution starts. On the server side, this
    // is the time when the server's application handler starts running.
    StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // The end time of the span. On the client side, this is the time kept by
    // the local machine where the span execution ends. On the server side, this
    // is the time when the server application handler stops running.
    EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // A set of attributes on the span. You can have up to 32 attributes per
    // span.
    Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
    // Stack trace captured at the start of the span.
    StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
    // A set of time events. You can have up to 32 annotations and 128 message
    // events per span.
    TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`
    // Links associated with the span. You can have up to 128 links per Span.
    Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,omitempty"`
    // An optional final status for this span.
    Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
    // (Optional) Set this parameter to indicate whether this span is in
    // the same process as its parent. If you do not set this parameter,
    // Stackdriver Trace is unable to take advantage of this helpful
    // information.
    SameProcessAsParentSpan *wrappers.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,omitempty"`
    // An optional number of child spans that were generated while this span
    // was active. If set, allows implementation to detect missing child spans.
    ChildSpanCount       *wrappers.Int32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous—there may be gaps or overlaps between spans in a trace.

func (*Span) Descriptor Uses

func (*Span) Descriptor() ([]byte, []int)

func (*Span) GetAttributes Uses

func (m *Span) GetAttributes() *Span_Attributes

func (*Span) GetChildSpanCount Uses

func (m *Span) GetChildSpanCount() *wrappers.Int32Value

func (*Span) GetDisplayName Uses

func (m *Span) GetDisplayName() *TruncatableString

func (*Span) GetEndTime Uses

func (m *Span) GetEndTime() *timestamp.Timestamp
func (m *Span) GetLinks() *Span_Links

func (*Span) GetName Uses

func (m *Span) GetName() string

func (*Span) GetParentSpanId Uses

func (m *Span) GetParentSpanId() string

func (*Span) GetSameProcessAsParentSpan Uses

func (m *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue

func (*Span) GetSpanId Uses

func (m *Span) GetSpanId() string

func (*Span) GetStackTrace Uses

func (m *Span) GetStackTrace() *StackTrace

func (*Span) GetStartTime Uses

func (m *Span) GetStartTime() *timestamp.Timestamp

func (*Span) GetStatus Uses

func (m *Span) GetStatus() *status.Status

func (*Span) GetTimeEvents Uses

func (m *Span) GetTimeEvents() *Span_TimeEvents

func (*Span) ProtoMessage Uses

func (*Span) ProtoMessage()

func (*Span) Reset Uses

func (m *Span) Reset()

func (*Span) String Uses

func (m *Span) String() string

func (*Span) XXX_DiscardUnknown Uses

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal Uses

func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span) XXX_Merge Uses

func (m *Span) XXX_Merge(src proto.Message)

func (*Span) XXX_Size Uses

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal Uses

func (m *Span) XXX_Unmarshal(b []byte) error

type Span_Attributes Uses

type Span_Attributes struct {
    // The set of attributes. Each attribute's key can be up to 128 bytes
    // long. The value can be a string up to 256 bytes, an integer, or the
    // Boolean values `true` and `false`. For example:
    //
    //     "/instance_id": "my-instance"
    //     "/http/user_agent": ""
    //     "/http/request_bytes": 300
    //     "abc.com/myattribute": true
    AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap,proto3" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // The number of attributes that were discarded. Attributes can be discarded
    // because their keys are too long or because there are too many attributes.
    // If this value is 0 then all attributes are valid.
    DroppedAttributesCount int32    `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
    XXX_NoUnkeyedLiteral   struct{} `json:"-"`
    XXX_unrecognized       []byte   `json:"-"`
    XXX_sizecache          int32    `json:"-"`
}

A set of attributes, each in the format `[KEY]:[VALUE]`.

func (*Span_Attributes) Descriptor Uses

func (*Span_Attributes) Descriptor() ([]byte, []int)

func (*Span_Attributes) GetAttributeMap Uses

func (m *Span_Attributes) GetAttributeMap() map[string]*AttributeValue

func (*Span_Attributes) GetDroppedAttributesCount Uses

func (m *Span_Attributes) GetDroppedAttributesCount() int32

func (*Span_Attributes) ProtoMessage Uses

func (*Span_Attributes) ProtoMessage()

func (*Span_Attributes) Reset Uses

func (m *Span_Attributes) Reset()

func (*Span_Attributes) String Uses

func (m *Span_Attributes) String() string

func (*Span_Attributes) XXX_DiscardUnknown Uses

func (m *Span_Attributes) XXX_DiscardUnknown()

func (*Span_Attributes) XXX_Marshal Uses

func (m *Span_Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_Attributes) XXX_Merge Uses

func (m *Span_Attributes) XXX_Merge(src proto.Message)

func (*Span_Attributes) XXX_Size Uses

func (m *Span_Attributes) XXX_Size() int

func (*Span_Attributes) XXX_Unmarshal Uses

func (m *Span_Attributes) XXX_Unmarshal(b []byte) error
type Span_Link struct {
    // The [TRACE_ID] for a trace within a project.
    TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
    // The [SPAN_ID] for a span within a trace.
    SpanId string `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
    // The relationship of the current span relative to the linked span.
    Type Span_Link_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.devtools.cloudtrace.v2.Span_Link_Type" json:"type,omitempty"`
    // A set of attributes on the link. You have have up to  32 attributes per
    // link.
    Attributes           *Span_Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.

func (*Span_Link) Descriptor Uses

func (*Span_Link) Descriptor() ([]byte, []int)

func (*Span_Link) GetAttributes Uses

func (m *Span_Link) GetAttributes() *Span_Attributes

func (*Span_Link) GetSpanId Uses

func (m *Span_Link) GetSpanId() string

func (*Span_Link) GetTraceId Uses

func (m *Span_Link) GetTraceId() string

func (*Span_Link) GetType Uses

func (m *Span_Link) GetType() Span_Link_Type

func (*Span_Link) ProtoMessage Uses

func (*Span_Link) ProtoMessage()

func (*Span_Link) Reset Uses

func (m *Span_Link) Reset()

func (*Span_Link) String Uses

func (m *Span_Link) String() string

func (*Span_Link) XXX_DiscardUnknown Uses

func (m *Span_Link) XXX_DiscardUnknown()

func (*Span_Link) XXX_Marshal Uses

func (m *Span_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_Link) XXX_Merge Uses

func (m *Span_Link) XXX_Merge(src proto.Message)

func (*Span_Link) XXX_Size Uses

func (m *Span_Link) XXX_Size() int

func (*Span_Link) XXX_Unmarshal Uses

func (m *Span_Link) XXX_Unmarshal(b []byte) error
type Span_Link_Type int32

The relationship of the current span relative to the linked span: child, parent, or unspecified.

const (
    // The relationship of the two spans is unknown.
    Span_Link_TYPE_UNSPECIFIED Span_Link_Type = 0
    // The linked span is a child of the current span.
    Span_Link_CHILD_LINKED_SPAN Span_Link_Type = 1
    // The linked span is a parent of the current span.
    Span_Link_PARENT_LINKED_SPAN Span_Link_Type = 2
)
func (Span_Link_Type) EnumDescriptor() ([]byte, []int)
func (x Span_Link_Type) String() string
type Span_Links struct {
    // A collection of links.
    Link []*Span_Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
    // The number of dropped links after the maximum size was enforced. If
    // this value is 0, then no links were dropped.
    DroppedLinksCount    int32    `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A collection of links, which are references from this span to a span in the same or different trace.

func (*Span_Links) Descriptor Uses

func (*Span_Links) Descriptor() ([]byte, []int)

func (*Span_Links) GetDroppedLinksCount Uses

func (m *Span_Links) GetDroppedLinksCount() int32
func (m *Span_Links) GetLink() []*Span_Link

func (*Span_Links) ProtoMessage Uses

func (*Span_Links) ProtoMessage()

func (*Span_Links) Reset Uses

func (m *Span_Links) Reset()

func (*Span_Links) String Uses

func (m *Span_Links) String() string

func (*Span_Links) XXX_DiscardUnknown Uses

func (m *Span_Links) XXX_DiscardUnknown()

func (*Span_Links) XXX_Marshal Uses

func (m *Span_Links) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_Links) XXX_Merge Uses

func (m *Span_Links) XXX_Merge(src proto.Message)

func (*Span_Links) XXX_Size Uses

func (m *Span_Links) XXX_Size() int

func (*Span_Links) XXX_Unmarshal Uses

func (m *Span_Links) XXX_Unmarshal(b []byte) error

type Span_TimeEvent Uses

type Span_TimeEvent struct {
    // The timestamp indicating the time the event occurred.
    Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
    // A `TimeEvent` can contain either an `Annotation` object or a
    // `MessageEvent` object, but not both.
    //
    // Types that are valid to be assigned to Value:
    //	*Span_TimeEvent_Annotation_
    //	*Span_TimeEvent_MessageEvent_
    Value                isSpan_TimeEvent_Value `protobuf_oneof:"value"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

A time-stamped annotation or message event in the Span.

func (*Span_TimeEvent) Descriptor Uses

func (*Span_TimeEvent) Descriptor() ([]byte, []int)

func (*Span_TimeEvent) GetAnnotation Uses

func (m *Span_TimeEvent) GetAnnotation() *Span_TimeEvent_Annotation

func (*Span_TimeEvent) GetMessageEvent Uses

func (m *Span_TimeEvent) GetMessageEvent() *Span_TimeEvent_MessageEvent

func (*Span_TimeEvent) GetTime Uses

func (m *Span_TimeEvent) GetTime() *timestamp.Timestamp

func (*Span_TimeEvent) GetValue Uses

func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value

func (*Span_TimeEvent) ProtoMessage Uses

func (*Span_TimeEvent) ProtoMessage()

func (*Span_TimeEvent) Reset Uses

func (m *Span_TimeEvent) Reset()

func (*Span_TimeEvent) String Uses

func (m *Span_TimeEvent) String() string

func (*Span_TimeEvent) XXX_DiscardUnknown Uses

func (m *Span_TimeEvent) XXX_DiscardUnknown()

func (*Span_TimeEvent) XXX_Marshal Uses

func (m *Span_TimeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_TimeEvent) XXX_Merge Uses

func (m *Span_TimeEvent) XXX_Merge(src proto.Message)

func (*Span_TimeEvent) XXX_OneofWrappers Uses

func (*Span_TimeEvent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Span_TimeEvent) XXX_Size Uses

func (m *Span_TimeEvent) XXX_Size() int

func (*Span_TimeEvent) XXX_Unmarshal Uses

func (m *Span_TimeEvent) XXX_Unmarshal(b []byte) error

type Span_TimeEvent_Annotation Uses

type Span_TimeEvent_Annotation struct {
    // A user-supplied message describing the event. The maximum length for
    // the description is 256 bytes.
    Description *TruncatableString `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
    // A set of attributes on the annotation. You can have up to 4 attributes
    // per Annotation.
    Attributes           *Span_Attributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

Text annotation with a set of attributes.

func (*Span_TimeEvent_Annotation) Descriptor Uses

func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int)

func (*Span_TimeEvent_Annotation) GetAttributes Uses

func (m *Span_TimeEvent_Annotation) GetAttributes() *Span_Attributes

func (*Span_TimeEvent_Annotation) GetDescription Uses

func (m *Span_TimeEvent_Annotation) GetDescription() *TruncatableString

func (*Span_TimeEvent_Annotation) ProtoMessage Uses

func (*Span_TimeEvent_Annotation) ProtoMessage()

func (*Span_TimeEvent_Annotation) Reset Uses

func (m *Span_TimeEvent_Annotation) Reset()

func (*Span_TimeEvent_Annotation) String Uses

func (m *Span_TimeEvent_Annotation) String() string

func (*Span_TimeEvent_Annotation) XXX_DiscardUnknown Uses

func (m *Span_TimeEvent_Annotation) XXX_DiscardUnknown()

func (*Span_TimeEvent_Annotation) XXX_Marshal Uses

func (m *Span_TimeEvent_Annotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_TimeEvent_Annotation) XXX_Merge Uses

func (m *Span_TimeEvent_Annotation) XXX_Merge(src proto.Message)

func (*Span_TimeEvent_Annotation) XXX_Size Uses

func (m *Span_TimeEvent_Annotation) XXX_Size() int

func (*Span_TimeEvent_Annotation) XXX_Unmarshal Uses

func (m *Span_TimeEvent_Annotation) XXX_Unmarshal(b []byte) error

type Span_TimeEvent_Annotation_ Uses

type Span_TimeEvent_Annotation_ struct {
    Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,proto3,oneof"`
}

type Span_TimeEvent_MessageEvent Uses

type Span_TimeEvent_MessageEvent struct {
    // Type of MessageEvent. Indicates whether the message was sent or
    // received.
    Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.devtools.cloudtrace.v2.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
    // An identifier for the MessageEvent's message that can be used to match
    // SENT and RECEIVED MessageEvents. It is recommended to be unique within
    // a Span.
    Id  int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
    // The number of uncompressed bytes sent or received.
    UncompressedSizeBytes int64 `protobuf:"varint,3,opt,name=uncompressed_size_bytes,json=uncompressedSizeBytes,proto3" json:"uncompressed_size_bytes,omitempty"`
    // The number of compressed bytes sent or received. If missing assumed to
    // be the same size as uncompressed.
    CompressedSizeBytes  int64    `protobuf:"varint,4,opt,name=compressed_size_bytes,json=compressedSizeBytes,proto3" json:"compressed_size_bytes,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

An event describing a message sent/received between Spans.

func (*Span_TimeEvent_MessageEvent) Descriptor Uses

func (*Span_TimeEvent_MessageEvent) Descriptor() ([]byte, []int)

func (*Span_TimeEvent_MessageEvent) GetCompressedSizeBytes Uses

func (m *Span_TimeEvent_MessageEvent) GetCompressedSizeBytes() int64

func (*Span_TimeEvent_MessageEvent) GetId Uses

func (m *Span_TimeEvent_MessageEvent) GetId() int64

func (*Span_TimeEvent_MessageEvent) GetType Uses

func (m *Span_TimeEvent_MessageEvent) GetType() Span_TimeEvent_MessageEvent_Type

func (*Span_TimeEvent_MessageEvent) GetUncompressedSizeBytes Uses

func (m *Span_TimeEvent_MessageEvent) GetUncompressedSizeBytes() int64

func (*Span_TimeEvent_MessageEvent) ProtoMessage Uses

func (*Span_TimeEvent_MessageEvent) ProtoMessage()

func (*Span_TimeEvent_MessageEvent) Reset Uses

func (m *Span_TimeEvent_MessageEvent) Reset()

func (*Span_TimeEvent_MessageEvent) String Uses

func (m *Span_TimeEvent_MessageEvent) String() string

func (*Span_TimeEvent_MessageEvent) XXX_DiscardUnknown Uses

func (m *Span_TimeEvent_MessageEvent) XXX_DiscardUnknown()

func (*Span_TimeEvent_MessageEvent) XXX_Marshal Uses

func (m *Span_TimeEvent_MessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_TimeEvent_MessageEvent) XXX_Merge Uses

func (m *Span_TimeEvent_MessageEvent) XXX_Merge(src proto.Message)

func (*Span_TimeEvent_MessageEvent) XXX_Size Uses

func (m *Span_TimeEvent_MessageEvent) XXX_Size() int

func (*Span_TimeEvent_MessageEvent) XXX_Unmarshal Uses

func (m *Span_TimeEvent_MessageEvent) XXX_Unmarshal(b []byte) error

type Span_TimeEvent_MessageEvent_ Uses

type Span_TimeEvent_MessageEvent_ struct {
    MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,proto3,oneof"`
}

type Span_TimeEvent_MessageEvent_Type Uses

type Span_TimeEvent_MessageEvent_Type int32

Indicates whether the message was sent or received.

const (
    // Unknown event type.
    Span_TimeEvent_MessageEvent_TYPE_UNSPECIFIED Span_TimeEvent_MessageEvent_Type = 0
    // Indicates a sent message.
    Span_TimeEvent_MessageEvent_SENT Span_TimeEvent_MessageEvent_Type = 1
    // Indicates a received message.
    Span_TimeEvent_MessageEvent_RECEIVED Span_TimeEvent_MessageEvent_Type = 2
)

func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor Uses

func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor() ([]byte, []int)

func (Span_TimeEvent_MessageEvent_Type) String Uses

func (x Span_TimeEvent_MessageEvent_Type) String() string

type Span_TimeEvents Uses

type Span_TimeEvents struct {
    // A collection of `TimeEvent`s.
    TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`
    // The number of dropped annotations in all the included time events.
    // If the value is 0, then no annotations were dropped.
    DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount,proto3" json:"dropped_annotations_count,omitempty"`
    // The number of dropped message events in all the included time events.
    // If the value is 0, then no message events were dropped.
    DroppedMessageEventsCount int32    `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount,proto3" json:"dropped_message_events_count,omitempty"`
    XXX_NoUnkeyedLiteral      struct{} `json:"-"`
    XXX_unrecognized          []byte   `json:"-"`
    XXX_sizecache             int32    `json:"-"`
}

A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans.

func (*Span_TimeEvents) Descriptor Uses

func (*Span_TimeEvents) Descriptor() ([]byte, []int)

func (*Span_TimeEvents) GetDroppedAnnotationsCount Uses

func (m *Span_TimeEvents) GetDroppedAnnotationsCount() int32

func (*Span_TimeEvents) GetDroppedMessageEventsCount Uses

func (m *Span_TimeEvents) GetDroppedMessageEventsCount() int32

func (*Span_TimeEvents) GetTimeEvent Uses

func (m *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent

func (*Span_TimeEvents) ProtoMessage Uses

func (*Span_TimeEvents) ProtoMessage()

func (*Span_TimeEvents) Reset Uses

func (m *Span_TimeEvents) Reset()

func (*Span_TimeEvents) String Uses

func (m *Span_TimeEvents) String() string

func (*Span_TimeEvents) XXX_DiscardUnknown Uses

func (m *Span_TimeEvents) XXX_DiscardUnknown()

func (*Span_TimeEvents) XXX_Marshal Uses

func (m *Span_TimeEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span_TimeEvents) XXX_Merge Uses

func (m *Span_TimeEvents) XXX_Merge(src proto.Message)

func (*Span_TimeEvents) XXX_Size Uses

func (m *Span_TimeEvents) XXX_Size() int

func (*Span_TimeEvents) XXX_Unmarshal Uses

func (m *Span_TimeEvents) XXX_Unmarshal(b []byte) error

type StackTrace Uses

type StackTrace struct {
    // Stack frames in this stack trace. A maximum of 128 frames are allowed.
    StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
    // The hash ID is used to conserve network bandwidth for duplicate
    // stack traces within a single trace.
    //
    // Often multiple spans will have identical stack traces.
    // The first occurrence of a stack trace should contain both the
    // `stackFrame` content and a value in `stackTraceHashId`.
    //
    // Subsequent spans within the same request can refer
    // to that stack trace by only setting `stackTraceHashId`.
    StackTraceHashId     int64    `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId,proto3" json:"stack_trace_hash_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A call stack appearing in a trace.

func (*StackTrace) Descriptor Uses

func (*StackTrace) Descriptor() ([]byte, []int)

func (*StackTrace) GetStackFrames Uses

func (m *StackTrace) GetStackFrames() *StackTrace_StackFrames

func (*StackTrace) GetStackTraceHashId Uses

func (m *StackTrace) GetStackTraceHashId() int64

func (*StackTrace) ProtoMessage Uses

func (*StackTrace) ProtoMessage()

func (*StackTrace) Reset Uses

func (m *StackTrace) Reset()

func (*StackTrace) String Uses

func (m *StackTrace) String() string

func (*StackTrace) XXX_DiscardUnknown Uses

func (m *StackTrace) XXX_DiscardUnknown()

func (*StackTrace) XXX_Marshal Uses

func (m *StackTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StackTrace) XXX_Merge Uses

func (m *StackTrace) XXX_Merge(src proto.Message)

func (*StackTrace) XXX_Size Uses

func (m *StackTrace) XXX_Size() int

func (*StackTrace) XXX_Unmarshal Uses

func (m *StackTrace) XXX_Unmarshal(b []byte) error

type StackTrace_StackFrame Uses

type StackTrace_StackFrame struct {
    // The fully-qualified name that uniquely identifies the function or
    // method that is active in this frame (up to 1024 bytes).
    FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
    // An un-mangled function name, if `function_name` is
    // [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
    // be fully-qualified (up to 1024 bytes).
    OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName,proto3" json:"original_function_name,omitempty"`
    // The name of the source file where the function call appears (up to 256
    // bytes).
    FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
    // The line number in `file_name` where the function call appears.
    LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
    // The column number where the function call appears, if available.
    // This is important in JavaScript because of its anonymous functions.
    ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
    // The binary module from where the code was loaded.
    LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule,proto3" json:"load_module,omitempty"`
    // The version of the deployed source code (up to 128 bytes).
    SourceVersion        *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion,proto3" json:"source_version,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Represents a single stack frame in a stack trace.

func (*StackTrace_StackFrame) Descriptor Uses

func (*StackTrace_StackFrame) Descriptor() ([]byte, []int)

func (*StackTrace_StackFrame) GetColumnNumber Uses

func (m *StackTrace_StackFrame) GetColumnNumber() int64

func (*StackTrace_StackFrame) GetFileName Uses

func (m *StackTrace_StackFrame) GetFileName() *TruncatableString

func (*StackTrace_StackFrame) GetFunctionName Uses

func (m *StackTrace_StackFrame) GetFunctionName() *TruncatableString

func (*StackTrace_StackFrame) GetLineNumber Uses

func (m *StackTrace_StackFrame) GetLineNumber() int64

func (*StackTrace_StackFrame) GetLoadModule Uses

func (m *StackTrace_StackFrame) GetLoadModule() *Module

func (*StackTrace_StackFrame) GetOriginalFunctionName Uses

func (m *StackTrace_StackFrame) GetOriginalFunctionName() *TruncatableString

func (*StackTrace_StackFrame) GetSourceVersion Uses

func (m *StackTrace_StackFrame) GetSourceVersion() *TruncatableString

func (*StackTrace_StackFrame) ProtoMessage Uses

func (*StackTrace_StackFrame) ProtoMessage()

func (*StackTrace_StackFrame) Reset Uses

func (m *StackTrace_StackFrame) Reset()

func (*StackTrace_StackFrame) String Uses

func (m *StackTrace_StackFrame) String() string

func (*StackTrace_StackFrame) XXX_DiscardUnknown Uses

func (m *StackTrace_StackFrame) XXX_DiscardUnknown()

func (*StackTrace_StackFrame) XXX_Marshal Uses

func (m *StackTrace_StackFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StackTrace_StackFrame) XXX_Merge Uses

func (m *StackTrace_StackFrame) XXX_Merge(src proto.Message)

func (*StackTrace_StackFrame) XXX_Size Uses

func (m *StackTrace_StackFrame) XXX_Size() int

func (*StackTrace_StackFrame) XXX_Unmarshal Uses

func (m *StackTrace_StackFrame) XXX_Unmarshal(b []byte) error

type StackTrace_StackFrames Uses

type StackTrace_StackFrames struct {
    // Stack frames in this call stack.
    Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame,proto3" json:"frame,omitempty"`
    // The number of stack frames that were dropped because there
    // were too many stack frames.
    // If this value is 0, then no stack frames were dropped.
    DroppedFramesCount   int32    `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount,proto3" json:"dropped_frames_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A collection of stack frames, which can be truncated.

func (*StackTrace_StackFrames) Descriptor Uses

func (*StackTrace_StackFrames) Descriptor() ([]byte, []int)

func (*StackTrace_StackFrames) GetDroppedFramesCount Uses

func (m *StackTrace_StackFrames) GetDroppedFramesCount() int32

func (*StackTrace_StackFrames) GetFrame Uses

func (m *StackTrace_StackFrames) GetFrame() []*StackTrace_StackFrame

func (*StackTrace_StackFrames) ProtoMessage Uses

func (*StackTrace_StackFrames) ProtoMessage()

func (*StackTrace_StackFrames) Reset Uses

func (m *StackTrace_StackFrames) Reset()

func (*StackTrace_StackFrames) String Uses

func (m *StackTrace_StackFrames) String() string

func (*StackTrace_StackFrames) XXX_DiscardUnknown Uses

func (m *StackTrace_StackFrames) XXX_DiscardUnknown()

func (*StackTrace_StackFrames) XXX_Marshal Uses

func (m *StackTrace_StackFrames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StackTrace_StackFrames) XXX_Merge Uses

func (m *StackTrace_StackFrames) XXX_Merge(src proto.Message)

func (*StackTrace_StackFrames) XXX_Size Uses

func (m *StackTrace_StackFrames) XXX_Size() int

func (*StackTrace_StackFrames) XXX_Unmarshal Uses

func (m *StackTrace_StackFrames) XXX_Unmarshal(b []byte) error

type TraceServiceClient Uses

type TraceServiceClient interface {
    // Sends new spans to new or existing traces. You cannot update
    // existing spans.
    BatchWriteSpans(ctx context.Context, in *BatchWriteSpansRequest, opts ...grpc.CallOption) (*empty.Empty, error)
    // Creates a new span.
    CreateSpan(ctx context.Context, in *Span, opts ...grpc.CallOption) (*Span, error)
}

TraceServiceClient is the client API for TraceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTraceServiceClient Uses

func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient

type TraceServiceServer Uses

type TraceServiceServer interface {
    // Sends new spans to new or existing traces. You cannot update
    // existing spans.
    BatchWriteSpans(context.Context, *BatchWriteSpansRequest) (*empty.Empty, error)
    // Creates a new span.
    CreateSpan(context.Context, *Span) (*Span, error)
}

TraceServiceServer is the server API for TraceService service.

type TruncatableString Uses

type TruncatableString struct {
    // The shortened string. For example, if the original string is 500
    // bytes long and the limit of the string is 128 bytes, then
    // `value` contains the first 128 bytes of the 500-byte string.
    //
    // Truncation always happens on a UTF8 character boundary. If there
    // are multi-byte characters in the string, then the length of the
    // shortened string might be less than the size limit.
    Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    // The number of bytes removed from the original string. If this
    // value is 0, then the string was not shortened.
    TruncatedByteCount   int32    `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount,proto3" json:"truncated_byte_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Represents a string that might be shortened to a specified length.

func (*TruncatableString) Descriptor Uses

func (*TruncatableString) Descriptor() ([]byte, []int)

func (*TruncatableString) GetTruncatedByteCount Uses

func (m *TruncatableString) GetTruncatedByteCount() int32

func (*TruncatableString) GetValue Uses

func (m *TruncatableString) GetValue() string

func (*TruncatableString) ProtoMessage Uses

func (*TruncatableString) ProtoMessage()

func (*TruncatableString) Reset Uses

func (m *TruncatableString) Reset()

func (*TruncatableString) String Uses

func (m *TruncatableString) String() string

func (*TruncatableString) XXX_DiscardUnknown Uses

func (m *TruncatableString) XXX_DiscardUnknown()

func (*TruncatableString) XXX_Marshal Uses

func (m *TruncatableString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TruncatableString) XXX_Merge Uses

func (m *TruncatableString) XXX_Merge(src proto.Message)

func (*TruncatableString) XXX_Size Uses

func (m *TruncatableString) XXX_Size() int

func (*TruncatableString) XXX_Unmarshal Uses

func (m *TruncatableString) XXX_Unmarshal(b []byte) error

type UnimplementedTraceServiceServer Uses

type UnimplementedTraceServiceServer struct {
}

UnimplementedTraceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTraceServiceServer) BatchWriteSpans Uses

func (*UnimplementedTraceServiceServer) BatchWriteSpans(ctx context.Context, req *BatchWriteSpansRequest) (*empty.Empty, error)

func (*UnimplementedTraceServiceServer) CreateSpan Uses

func (*UnimplementedTraceServiceServer) CreateSpan(ctx context.Context, req *Span) (*Span, error)

Package cloudtrace imports 12 packages (graph) and is imported by 2 packages. Updated 2019-09-17. Refresh now. Tools for package owners.