kratos: github.com/bilibili/kratos/pkg/net/trace/proto Index | Files

package protogen

import "github.com/bilibili/kratos/pkg/net/trace/proto"

Index

Package Files

span.pb.go

Variables

var Log_Kind_name = map[int32]string{
    0:  "STRING",
    1:  "INT",
    2:  "BOOL",
    3:  "FLOAT",
}
var Log_Kind_value = map[string]int32{
    "STRING": 0,
    "INT":    1,
    "BOOL":   2,
    "FLOAT":  3,
}
var SpanRef_RefType_name = map[int32]string{
    0:  "CHILD_OF",
    1:  "FOLLOWS_FROM",
}
var SpanRef_RefType_value = map[string]int32{
    "CHILD_OF":     0,
    "FOLLOWS_FROM": 1,
}
var Tag_Kind_name = map[int32]string{
    0:  "STRING",
    1:  "INT",
    2:  "BOOL",
    3:  "FLOAT",
}
var Tag_Kind_value = map[string]int32{
    "STRING": 0,
    "INT":    1,
    "BOOL":   2,
    "FLOAT":  3,
}

type Field Uses

type Field struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
    Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Field) Descriptor Uses

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

func (*Field) GetKey Uses

func (m *Field) GetKey() string

func (*Field) GetValue Uses

func (m *Field) GetValue() []byte

func (*Field) ProtoMessage Uses

func (*Field) ProtoMessage()

func (*Field) Reset Uses

func (m *Field) Reset()

func (*Field) String Uses

func (m *Field) String() string

func (*Field) XXX_DiscardUnknown Uses

func (m *Field) XXX_DiscardUnknown()

func (*Field) XXX_Marshal Uses

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

func (*Field) XXX_Merge Uses

func (dst *Field) XXX_Merge(src proto.Message)

func (*Field) XXX_Size Uses

func (m *Field) XXX_Size() int

func (*Field) XXX_Unmarshal Uses

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

type Log Uses

type Log struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
    Kind                 Log_Kind `protobuf:"varint,2,opt,name=kind,enum=dapper.trace.Log_Kind" json:"kind,omitempty"`
    Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    Timestamp            int64    `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
    Fields               []*Field `protobuf:"bytes,5,rep,name=fields" json:"fields,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Log) Descriptor Uses

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

func (*Log) GetFields Uses

func (m *Log) GetFields() []*Field

func (*Log) GetKey Uses

func (m *Log) GetKey() string

func (*Log) GetKind Uses

func (m *Log) GetKind() Log_Kind

func (*Log) GetTimestamp Uses

func (m *Log) GetTimestamp() int64

func (*Log) GetValue Uses

func (m *Log) GetValue() []byte

func (*Log) ProtoMessage Uses

func (*Log) ProtoMessage()

func (*Log) Reset Uses

func (m *Log) Reset()

func (*Log) String Uses

func (m *Log) String() string

func (*Log) XXX_DiscardUnknown Uses

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal Uses

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

func (*Log) XXX_Merge Uses

func (dst *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size Uses

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal Uses

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

type Log_Kind Uses

type Log_Kind int32
const (
    Log_STRING Log_Kind = 0
    Log_INT    Log_Kind = 1
    Log_BOOL   Log_Kind = 2
    Log_FLOAT  Log_Kind = 3
)

func (Log_Kind) EnumDescriptor Uses

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

func (Log_Kind) String Uses

func (x Log_Kind) String() string

type Span Uses

type Span struct {
    Version       int32  `protobuf:"varint,99,opt,name=version" json:"version,omitempty"`
    ServiceName   string `protobuf:"bytes,1,opt,name=service_name,json=serviceName" json:"service_name,omitempty"`
    OperationName string `protobuf:"bytes,2,opt,name=operation_name,json=operationName" json:"operation_name,omitempty"`
    // Deprecated: caller no long required
    Caller   string `protobuf:"bytes,3,opt,name=caller" json:"caller,omitempty"`
    TraceId  uint64 `protobuf:"varint,4,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
    SpanId   uint64 `protobuf:"varint,5,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
    ParentId uint64 `protobuf:"varint,6,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"`
    // Deprecated: level no long required
    Level int32 `protobuf:"varint,7,opt,name=level" json:"level,omitempty"`
    // Deprecated: use start_time instead instead of start_at
    StartAt int64 `protobuf:"varint,8,opt,name=start_at,json=startAt" json:"start_at,omitempty"`
    // Deprecated: use duration instead instead of finish_at
    FinishAt             int64                `protobuf:"varint,9,opt,name=finish_at,json=finishAt" json:"finish_at,omitempty"`
    SamplingProbability  float32              `protobuf:"fixed32,10,opt,name=sampling_probability,json=samplingProbability" json:"sampling_probability,omitempty"`
    Env                  string               `protobuf:"bytes,19,opt,name=env" json:"env,omitempty"`
    StartTime            *timestamp.Timestamp `protobuf:"bytes,20,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
    Duration             *duration.Duration   `protobuf:"bytes,21,opt,name=duration" json:"duration,omitempty"`
    References           []*SpanRef           `protobuf:"bytes,22,rep,name=references" json:"references,omitempty"`
    Tags                 []*Tag               `protobuf:"bytes,11,rep,name=tags" json:"tags,omitempty"`
    Logs                 []*Log               `protobuf:"bytes,12,rep,name=logs" json:"logs,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Span represents a named unit of work performed by a service.

func (*Span) Descriptor Uses

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

func (*Span) GetCaller Uses

func (m *Span) GetCaller() string

func (*Span) GetDuration Uses

func (m *Span) GetDuration() *duration.Duration

func (*Span) GetEnv Uses

func (m *Span) GetEnv() string

func (*Span) GetFinishAt Uses

func (m *Span) GetFinishAt() int64

func (*Span) GetLevel Uses

func (m *Span) GetLevel() int32

func (*Span) GetLogs Uses

func (m *Span) GetLogs() []*Log

func (*Span) GetOperationName Uses

func (m *Span) GetOperationName() string

func (*Span) GetParentId Uses

func (m *Span) GetParentId() uint64

func (*Span) GetReferences Uses

func (m *Span) GetReferences() []*SpanRef

func (*Span) GetSamplingProbability Uses

func (m *Span) GetSamplingProbability() float32

func (*Span) GetServiceName Uses

func (m *Span) GetServiceName() string

func (*Span) GetSpanId Uses

func (m *Span) GetSpanId() uint64

func (*Span) GetStartAt Uses

func (m *Span) GetStartAt() int64

func (*Span) GetStartTime Uses

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

func (*Span) GetTags Uses

func (m *Span) GetTags() []*Tag

func (*Span) GetTraceId Uses

func (m *Span) GetTraceId() uint64

func (*Span) GetVersion Uses

func (m *Span) GetVersion() int32

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 (dst *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 SpanRef Uses

type SpanRef struct {
    RefType              SpanRef_RefType `protobuf:"varint,1,opt,name=ref_type,json=refType,enum=dapper.trace.SpanRef_RefType" json:"ref_type,omitempty"`
    TraceId              uint64          `protobuf:"varint,2,opt,name=trace_id,json=traceId" json:"trace_id,omitempty"`
    SpanId               uint64          `protobuf:"varint,3,opt,name=span_id,json=spanId" json:"span_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

SpanRef describes causal relationship of the current span to another span (e.g. 'child-of')

func (*SpanRef) Descriptor Uses

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

func (*SpanRef) GetRefType Uses

func (m *SpanRef) GetRefType() SpanRef_RefType

func (*SpanRef) GetSpanId Uses

func (m *SpanRef) GetSpanId() uint64

func (*SpanRef) GetTraceId Uses

func (m *SpanRef) GetTraceId() uint64

func (*SpanRef) ProtoMessage Uses

func (*SpanRef) ProtoMessage()

func (*SpanRef) Reset Uses

func (m *SpanRef) Reset()

func (*SpanRef) String Uses

func (m *SpanRef) String() string

func (*SpanRef) XXX_DiscardUnknown Uses

func (m *SpanRef) XXX_DiscardUnknown()

func (*SpanRef) XXX_Marshal Uses

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

func (*SpanRef) XXX_Merge Uses

func (dst *SpanRef) XXX_Merge(src proto.Message)

func (*SpanRef) XXX_Size Uses

func (m *SpanRef) XXX_Size() int

func (*SpanRef) XXX_Unmarshal Uses

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

type SpanRef_RefType Uses

type SpanRef_RefType int32
const (
    SpanRef_CHILD_OF     SpanRef_RefType = 0
    SpanRef_FOLLOWS_FROM SpanRef_RefType = 1
)

func (SpanRef_RefType) EnumDescriptor Uses

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

func (SpanRef_RefType) String Uses

func (x SpanRef_RefType) String() string

type Tag Uses

type Tag struct {
    Key                  string   `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
    Kind                 Tag_Kind `protobuf:"varint,2,opt,name=kind,enum=dapper.trace.Tag_Kind" json:"kind,omitempty"`
    Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Tag) Descriptor Uses

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

func (*Tag) GetKey Uses

func (m *Tag) GetKey() string

func (*Tag) GetKind Uses

func (m *Tag) GetKind() Tag_Kind

func (*Tag) GetValue Uses

func (m *Tag) GetValue() []byte

func (*Tag) ProtoMessage Uses

func (*Tag) ProtoMessage()

func (*Tag) Reset Uses

func (m *Tag) Reset()

func (*Tag) String Uses

func (m *Tag) String() string

func (*Tag) XXX_DiscardUnknown Uses

func (m *Tag) XXX_DiscardUnknown()

func (*Tag) XXX_Marshal Uses

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

func (*Tag) XXX_Merge Uses

func (dst *Tag) XXX_Merge(src proto.Message)

func (*Tag) XXX_Size Uses

func (m *Tag) XXX_Size() int

func (*Tag) XXX_Unmarshal Uses

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

type Tag_Kind Uses

type Tag_Kind int32
const (
    Tag_STRING Tag_Kind = 0
    Tag_INT    Tag_Kind = 1
    Tag_BOOL   Tag_Kind = 2
    Tag_FLOAT  Tag_Kind = 3
)

func (Tag_Kind) EnumDescriptor Uses

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

func (Tag_Kind) String Uses

func (x Tag_Kind) String() string

Package protogen imports 5 packages (graph) and is imported by 2 packages. Updated 2019-05-04. Refresh now. Tools for package owners.