Documentation ¶
Index ¶
- Constants
- func ConvertKeyValuesToJaeger(tags []KeyValue) ([]jModel.KeyValue, error)
- func ConvertLogToJaeger(logs []Log) []jModel.Log
- func ConvertReferencesToJaeger(refs []Reference) ([]jModel.SpanRef, error)
- type Configuration
- type KeyValue
- type Log
- type Operation
- type Process
- type Reference
- type ReferenceType
- type Span
- type SpanID
- type Trace
- type TraceID
- type TraceQueryParameters
- type ValueType
Constants ¶
View Source
const ( // ChildOf means a span is the child of another span ChildOf ReferenceType = "CHILD_OF" // FollowsFrom means a span follows from another span FollowsFrom ReferenceType = "FOLLOWS_FROM" // StringType indicates a string value stored in KeyValue StringType ValueType = "string" // BoolType indicates a Boolean value stored in KeyValue BoolType ValueType = "bool" // Int64Type indicates a 64bit signed integer value stored in KeyValue Int64Type ValueType = "int64" // Float64Type indicates a 64bit float value stored in KeyValue Float64Type ValueType = "float64" // BinaryType indicates a binary value stored in KeyValue BinaryType ValueType = "binary" )
Variables ¶
This section is empty.
Functions ¶
func ConvertLogToJaeger ¶
Types ¶
type Configuration ¶
type Configuration struct { MaxNumSpans int64 `yaml:"max_num_spans"` HttpPort string `yaml:"http_port"` RedisAddresses []string `yaml:"redis_addresses"` RedisWriteTimeout time.Duration `yaml:"redis_write_timeout"` RedisTTL time.Duration `yaml:"redis_ttl"` RedisPassword string `yaml:"redis_password"` RedisUsername string `yaml:"redis_username"` }
func InitFromViper ¶
func InitFromViper(v *viper.Viper) Configuration
type KeyValue ¶
type KeyValue struct { Key string `json:"key"` Type ValueType `json:"type,omitempty"` Value interface{} `json:"value"` }
type Log ¶
func ConvertLogFromJaeger ¶
type Operation ¶
type Operation struct { Key string `json:"key" redis:",key"` // the redis:",key" is required to indicate which field is the ULID key Ver int64 `json:"ver" redis:",ver"` // the redis:",ver" is required to do optimistic locking to prevent lost update ServiceName string `json:"service"` OperationName string `json:"operation"` SpanKind string `json:"span_kind"` Hash string `json:"hash"` }
type Process ¶
func ConvertProcessFromJager ¶
type Reference ¶
type Reference struct { RefType ReferenceType `json:"refType"` TraceID TraceID `json:"traceID"` SpanID SpanID `json:"spanID"` }
type ReferenceType ¶
type ReferenceType string
ReferenceType is the reference type of one span to another
func ConvertRefTypeFromJaeger ¶
func ConvertRefTypeFromJaeger(refType jModel.SpanRefType) ReferenceType
type Span ¶
type Span struct { Key string `json:"key" redis:",key"` // the redis:",key" is required to indicate which field is the ULID key Ver int64 `json:"ver" redis:",ver"` // the redis:",ver" is required to do optimistic locking to prevent lost update TraceID string `json:"traceID"` SpanID string `json:"spanID"` OperationName string `json:"operationName"` StartTime uint64 `json:"startTime"` // microseconds since Unix epoch Duration uint64 `json:"duration"` // microseconds References []Reference `json:"references"` ProcessID string `json:"processID"` Process Process `json:"process,omitempty"` Tags []KeyValue `json:"tags"` MultipleTags []KeyValue `json:"mTags"` Logs []Log `json:"logs"` Warnings []string `json:"warnings"` }
Span is MongoDB representation of the domain span.
type TraceQueryParameters ¶
Click to show internal directories.
Click to hide internal directories.