jaeger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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

This section is empty.

Variables

This section is empty.

Functions

func AllMatches

func AllMatches(dst, src []Tag) bool

Types

type Process

type Process struct {
	ServiceName string `json:"serviceName"`
	Tags        []Tag  `json:"tags"`
}

type Reference

type Reference struct {
	RefType string `json:"refType"`
	TraceID string `json:"traceID"`
	SpanID  string `json:"spanID"`
}

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) AllMatches

func (s *Span) AllMatches(tags ...Tag) bool

type Tag

type Tag struct {
	Key   string      `json:"key"`
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type Trace

type Trace struct {
	TraceID   string             `json:"traceID"`
	Spans     []Span             `json:"spans"`
	Processes map[string]Process `json:"processes"`
}

func (*Trace) ChildrenOf

func (t *Trace) ChildrenOf(parentID string) []Span

func (*Trace) FindByOperationName

func (t *Trace) FindByOperationName(operationName string) []Span

func (*Trace) ParentOf

func (t *Trace) ParentOf(s *Span) (Span, bool)

type TracesQuery

type TracesQuery struct {
	Data []Trace `json:"data"`
}

func (*TracesQuery) FindBySpan

func (tq *TracesQuery) FindBySpan(tags ...Tag) []Trace

Jump to

Keyboard shortcuts

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