go_micro_os_trace

package
v0.0.0-...-2efaa0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package go_micro_os_trace is a generated protocol buffer package.

It is generated from these files:

github.com/micro/go-os/trace/proto/trace.proto

It has these top-level messages:

Annotation
Span
Service
Node

Index

Constants

This section is empty.

Variables

View Source
var Annotation_Type_name = map[int32]string{
	0: "UNKNOWN",
	1: "START",
	2: "END",
	3: "TIMEOUT",
	4: "CLIENT_REQUEST",
	5: "CLIENT_RESPONSE",
	6: "CLIENT_PUBLICATION",
	7: "SERVER_REQUEST",
	8: "SERVER_RESPONSE",
	9: "SERVER_SUBSCRIPTION",
}
View Source
var Annotation_Type_value = map[string]int32{
	"UNKNOWN":             0,
	"START":               1,
	"END":                 2,
	"TIMEOUT":             3,
	"CLIENT_REQUEST":      4,
	"CLIENT_RESPONSE":     5,
	"CLIENT_PUBLICATION":  6,
	"SERVER_REQUEST":      7,
	"SERVER_RESPONSE":     8,
	"SERVER_SUBSCRIPTION": 9,
}

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Timestamp int64             `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Type      Annotation_Type   `protobuf:"varint,2,opt,name=type,enum=go.micro.os.trace.Annotation_Type" json:"type,omitempty"`
	Key       string            `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
	Value     []byte            `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	Debug     map[string]string `` /* 130-byte string literal not displayed */
	Service   *Service          `protobuf:"bytes,6,opt,name=service" json:"service,omitempty"`
}

func (*Annotation) Descriptor

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

func (*Annotation) GetDebug

func (m *Annotation) GetDebug() map[string]string

func (*Annotation) GetService

func (m *Annotation) GetService() *Service

func (*Annotation) ProtoMessage

func (*Annotation) ProtoMessage()

func (*Annotation) Reset

func (m *Annotation) Reset()

func (*Annotation) String

func (m *Annotation) String() string

type Annotation_Type

type Annotation_Type int32
const (
	Annotation_UNKNOWN             Annotation_Type = 0
	Annotation_START               Annotation_Type = 1
	Annotation_END                 Annotation_Type = 2
	Annotation_TIMEOUT             Annotation_Type = 3
	Annotation_CLIENT_REQUEST      Annotation_Type = 4
	Annotation_CLIENT_RESPONSE     Annotation_Type = 5
	Annotation_CLIENT_PUBLICATION  Annotation_Type = 6
	Annotation_SERVER_REQUEST      Annotation_Type = 7
	Annotation_SERVER_RESPONSE     Annotation_Type = 8
	Annotation_SERVER_SUBSCRIPTION Annotation_Type = 9
)

func (Annotation_Type) EnumDescriptor

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

func (Annotation_Type) String

func (x Annotation_Type) String() string

type Node

type Node struct {
	Id       string            `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Address  string            `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	Port     int64             `protobuf:"varint,3,opt,name=port" json:"port,omitempty"`
	Metadata map[string]string `` /* 136-byte string literal not displayed */
}

func (*Node) Descriptor

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

func (*Node) GetMetadata

func (m *Node) GetMetadata() map[string]string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type Service

type Service struct {
	Name     string            `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Version  string            `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	Metadata map[string]string `` /* 136-byte string literal not displayed */
	Nodes    []*Node           `protobuf:"bytes,4,rep,name=nodes" json:"nodes,omitempty"`
}

func (*Service) Descriptor

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

func (*Service) GetMetadata

func (m *Service) GetMetadata() map[string]string

func (*Service) GetNodes

func (m *Service) GetNodes() []*Node

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) Reset

func (m *Service) Reset()

func (*Service) String

func (m *Service) String() string

type Span

type Span struct {
	// name; topic, service method, etc
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// id of the span
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
	// trace root id
	TraceId string `protobuf:"bytes,3,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
	// parent span id
	ParentId string `protobuf:"bytes,4,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"`
	// microseconds from epoch. start of span
	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"`
	// microseconds. duration of span
	Duration int64 `protobuf:"varint,6,opt,name=duration" json:"duration,omitempty"`
	// should persist?
	Debug bool `protobuf:"varint,7,opt,name=debug" json:"debug,omitempty"`
	// source origin of the request
	Source *Service `protobuf:"bytes,8,opt,name=source" json:"source,omitempty"`
	// destination of the request
	Destination *Service `protobuf:"bytes,9,opt,name=destination" json:"destination,omitempty"`
	// annotations
	Annotations []*Annotation `protobuf:"bytes,10,rep,name=annotations" json:"annotations,omitempty"`
}

func (*Span) Descriptor

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

func (*Span) GetAnnotations

func (m *Span) GetAnnotations() []*Annotation

func (*Span) GetDestination

func (m *Span) GetDestination() *Service

func (*Span) GetSource

func (m *Span) GetSource() *Service

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) String

func (m *Span) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL