Documentation ¶
Overview ¶
Package jaeger provides some convenience data structures for integration testing. Disable some linting, as this is just a test class where readability is preferred to performance nolint:gocritic
Index ¶
Constants ¶
View Source
const ( ErrTypeMissing = ErrType(iota) ErrTypeNotEqual ErrTypeNotMatching )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffResult ¶ added in v0.3.0
type DiffResult []TagDiff
func Diff ¶ added in v0.3.0
func Diff(expected, actual []Tag) DiffResult
func DiffAsRegexp ¶ added in v1.1.0
func DiffAsRegexp(expected, actual []Tag) DiffResult
DiffAsRegexp works like Diff but it matches the expected tags values as regular expressions when type is "String"
func (DiffResult) String ¶ added in v0.3.0
func (mr DiffResult) String() string
type Span ¶
type Span struct { TraceID string `json:"traceID"` SpanID string `json:"spanID"` OperationName string `json:"operationName"` References []Reference `json:"references"` StartTime int64 `json:"startTime"` Duration int64 `json:"duration"` Tags []Tag `json:"tags"` ProcessID string `json:"processID"` }
func (*Span) Diff ¶ added in v0.3.0
func (s *Span) Diff(expected ...Tag) DiffResult
func (*Span) DiffAsRegexp ¶ added in v1.1.0
func (s *Span) DiffAsRegexp(expected ...Tag) DiffResult
DiffAsRegexp works like Diff but it matches the expected tags values as regular expressions
type Tag ¶
type Trace ¶
type Trace struct { TraceID string `json:"traceID"` Spans []Span `json:"spans"` Processes map[string]Process `json:"processes"` }
func (*Trace) ChildrenOf ¶
func (*Trace) FindByOperationName ¶
type TracesQuery ¶
type TracesQuery struct {
Data []Trace `json:"data"`
}
func (*TracesQuery) FindBySpan ¶
func (tq *TracesQuery) FindBySpan(tags ...Tag) []Trace
Click to show internal directories.
Click to hide internal directories.