model

package
v0.0.0-...-3736fb9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValueType_name = map[int32]string{
		0: "STRING",
		1: "BOOL",
		2: "INT64",
		3: "FLOAT64",
		4: "BINARY",
	}
	ValueType_value = map[string]int32{
		"STRING":  0,
		"BOOL":    1,
		"INT64":   2,
		"FLOAT64": 3,
		"BINARY":  4,
	}
)

Enum value maps for ValueType.

View Source
var (
	SpanRefType_name = map[int32]string{
		0: "CHILD_OF",
		1: "FOLLOWS_FROM",
	}
	SpanRefType_value = map[string]int32{
		"CHILD_OF":     0,
		"FOLLOWS_FROM": 1,
	}
)

Enum value maps for SpanRefType.

View Source
var File_jaeger_model_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Spans   []*Span  `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"`
	Process *Process `protobuf:"bytes,2,opt,name=process,proto3" json:"process,omitempty"`
	// contains filtered or unexported fields
}

Note that both Span and Batch may contain a Process. This is different from the Thrift model which was only used for transport, because Proto model is also used by the backend as the domain model, where once a batch is received it is split into individual spans which are all processed independently, and therefore they all need a Process. As far as on-the-wire semantics, both Batch and Spans in the same message may contain their own instances of Process, with span.Process taking priority over batch.Process.

func (*Batch) Descriptor deprecated

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

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetProcess

func (x *Batch) GetProcess() *Process

func (*Batch) GetSpans

func (x *Batch) GetSpans() []*Span

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

func (x *Batch) ProtoReflect() protoreflect.Message

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string
type DependencyLink struct {
	Parent    string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Child     string `protobuf:"bytes,2,opt,name=child,proto3" json:"child,omitempty"`
	CallCount uint64 `protobuf:"varint,3,opt,name=call_count,json=callCount,proto3" json:"call_count,omitempty"`
	Source    string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*DependencyLink) Descriptor deprecated

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

Deprecated: Use DependencyLink.ProtoReflect.Descriptor instead.

func (*DependencyLink) GetCallCount

func (x *DependencyLink) GetCallCount() uint64

func (*DependencyLink) GetChild

func (x *DependencyLink) GetChild() string

func (*DependencyLink) GetParent

func (x *DependencyLink) GetParent() string

func (*DependencyLink) GetSource

func (x *DependencyLink) GetSource() string

func (*DependencyLink) ProtoMessage

func (*DependencyLink) ProtoMessage()

func (*DependencyLink) ProtoReflect

func (x *DependencyLink) ProtoReflect() protoreflect.Message

func (*DependencyLink) Reset

func (x *DependencyLink) Reset()

func (*DependencyLink) String

func (x *DependencyLink) String() string

type KeyValue

type KeyValue struct {
	Key      string    `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	VType    ValueType `protobuf:"varint,2,opt,name=v_type,json=vType,proto3,enum=jaeger.api_v2.ValueType" json:"v_type,omitempty"`
	VStr     string    `protobuf:"bytes,3,opt,name=v_str,json=vStr,proto3" json:"v_str,omitempty"`
	VBool    bool      `protobuf:"varint,4,opt,name=v_bool,json=vBool,proto3" json:"v_bool,omitempty"`
	VInt64   int64     `protobuf:"varint,5,opt,name=v_int64,json=vInt64,proto3" json:"v_int64,omitempty"`
	VFloat64 float64   `protobuf:"fixed64,6,opt,name=v_float64,json=vFloat64,proto3" json:"v_float64,omitempty"`
	VBinary  []byte    `protobuf:"bytes,7,opt,name=v_binary,json=vBinary,proto3" json:"v_binary,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyValue) Descriptor deprecated

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

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey

func (x *KeyValue) GetKey() string

func (*KeyValue) GetVBinary

func (x *KeyValue) GetVBinary() []byte

func (*KeyValue) GetVBool

func (x *KeyValue) GetVBool() bool

func (*KeyValue) GetVFloat64

func (x *KeyValue) GetVFloat64() float64

func (*KeyValue) GetVInt64

func (x *KeyValue) GetVInt64() int64

func (*KeyValue) GetVStr

func (x *KeyValue) GetVStr() string

func (*KeyValue) GetVType

func (x *KeyValue) GetVType() ValueType

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) ProtoReflect

func (x *KeyValue) ProtoReflect() protoreflect.Message

func (*KeyValue) Reset

func (x *KeyValue) Reset()

func (*KeyValue) String

func (x *KeyValue) String() string

type Log

type Log struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Fields    []*KeyValue            `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetFields

func (x *Log) GetFields() []*KeyValue

func (*Log) GetTimestamp

func (x *Log) GetTimestamp() *timestamppb.Timestamp

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type Process

type Process struct {
	ServiceName string      `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Tags        []*KeyValue `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Process) Descriptor deprecated

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

Deprecated: Use Process.ProtoReflect.Descriptor instead.

func (*Process) GetServiceName

func (x *Process) GetServiceName() string

func (*Process) GetTags

func (x *Process) GetTags() []*KeyValue

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) ProtoReflect

func (x *Process) ProtoReflect() protoreflect.Message

func (*Process) Reset

func (x *Process) Reset()

func (*Process) String

func (x *Process) String() string

type Span

type Span struct {
	TraceId       []byte                 `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	SpanId        []byte                 `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	OperationName string                 `protobuf:"bytes,3,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
	References    []*SpanRef             `protobuf:"bytes,4,rep,name=references,proto3" json:"references,omitempty"`
	Flags         uint32                 `protobuf:"varint,5,opt,name=flags,proto3" json:"flags,omitempty"`
	StartTime     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	Duration      *durationpb.Duration   `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"`
	Tags          []*KeyValue            `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
	Logs          []*Log                 `protobuf:"bytes,9,rep,name=logs,proto3" json:"logs,omitempty"`
	Process       *Process               `protobuf:"bytes,10,opt,name=process,proto3" json:"process,omitempty"`
	ProcessId     string                 `protobuf:"bytes,11,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
	Warnings      []string               `protobuf:"bytes,12,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*Span) Descriptor deprecated

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

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetDuration

func (x *Span) GetDuration() *durationpb.Duration

func (*Span) GetFlags

func (x *Span) GetFlags() uint32

func (*Span) GetLogs

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

func (*Span) GetOperationName

func (x *Span) GetOperationName() string

func (*Span) GetProcess

func (x *Span) GetProcess() *Process

func (*Span) GetProcessId

func (x *Span) GetProcessId() string

func (*Span) GetReferences

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

func (*Span) GetSpanId

func (x *Span) GetSpanId() []byte

func (*Span) GetStartTime

func (x *Span) GetStartTime() *timestamppb.Timestamp

func (*Span) GetTags

func (x *Span) GetTags() []*KeyValue

func (*Span) GetTraceId

func (x *Span) GetTraceId() []byte

func (*Span) GetWarnings

func (x *Span) GetWarnings() []string

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

func (x *Span) ProtoReflect() protoreflect.Message

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type SpanRef

type SpanRef struct {
	TraceId []byte      `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	SpanId  []byte      `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	RefType SpanRefType `protobuf:"varint,3,opt,name=ref_type,json=refType,proto3,enum=jaeger.api_v2.SpanRefType" json:"ref_type,omitempty"`
	// contains filtered or unexported fields
}

func (*SpanRef) Descriptor deprecated

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

Deprecated: Use SpanRef.ProtoReflect.Descriptor instead.

func (*SpanRef) GetRefType

func (x *SpanRef) GetRefType() SpanRefType

func (*SpanRef) GetSpanId

func (x *SpanRef) GetSpanId() []byte

func (*SpanRef) GetTraceId

func (x *SpanRef) GetTraceId() []byte

func (*SpanRef) ProtoMessage

func (*SpanRef) ProtoMessage()

func (*SpanRef) ProtoReflect

func (x *SpanRef) ProtoReflect() protoreflect.Message

func (*SpanRef) Reset

func (x *SpanRef) Reset()

func (*SpanRef) String

func (x *SpanRef) String() string

type SpanRefType

type SpanRefType int32
const (
	SpanRefType_CHILD_OF     SpanRefType = 0
	SpanRefType_FOLLOWS_FROM SpanRefType = 1
)

func (SpanRefType) Descriptor

func (SpanRefType) Enum

func (x SpanRefType) Enum() *SpanRefType

func (SpanRefType) EnumDescriptor deprecated

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

Deprecated: Use SpanRefType.Descriptor instead.

func (SpanRefType) Number

func (x SpanRefType) Number() protoreflect.EnumNumber

func (SpanRefType) String

func (x SpanRefType) String() string

func (SpanRefType) Type

type Trace

type Trace struct {
	Spans      []*Span                 `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"`
	ProcessMap []*Trace_ProcessMapping `protobuf:"bytes,2,rep,name=process_map,json=processMap,proto3" json:"process_map,omitempty"`
	Warnings   []string                `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace) Descriptor deprecated

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

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetProcessMap

func (x *Trace) GetProcessMap() []*Trace_ProcessMapping

func (*Trace) GetSpans

func (x *Trace) GetSpans() []*Span

func (*Trace) GetWarnings

func (x *Trace) GetWarnings() []string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

func (x *Trace) ProtoReflect() protoreflect.Message

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

type Trace_ProcessMapping

type Trace_ProcessMapping struct {
	ProcessId string   `protobuf:"bytes,1,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
	Process   *Process `protobuf:"bytes,2,opt,name=process,proto3" json:"process,omitempty"`
	// contains filtered or unexported fields
}

func (*Trace_ProcessMapping) Descriptor deprecated

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

Deprecated: Use Trace_ProcessMapping.ProtoReflect.Descriptor instead.

func (*Trace_ProcessMapping) GetProcess

func (x *Trace_ProcessMapping) GetProcess() *Process

func (*Trace_ProcessMapping) GetProcessId

func (x *Trace_ProcessMapping) GetProcessId() string

func (*Trace_ProcessMapping) ProtoMessage

func (*Trace_ProcessMapping) ProtoMessage()

func (*Trace_ProcessMapping) ProtoReflect

func (x *Trace_ProcessMapping) ProtoReflect() protoreflect.Message

func (*Trace_ProcessMapping) Reset

func (x *Trace_ProcessMapping) Reset()

func (*Trace_ProcessMapping) String

func (x *Trace_ProcessMapping) String() string

type ValueType

type ValueType int32
const (
	ValueType_STRING  ValueType = 0
	ValueType_BOOL    ValueType = 1
	ValueType_INT64   ValueType = 2
	ValueType_FLOAT64 ValueType = 3
	ValueType_BINARY  ValueType = 4
)

func (ValueType) Descriptor

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated

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

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String

func (x ValueType) String() string

func (ValueType) Type

Jump to

Keyboard shortcuts

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