jaeger

package
v1.0.11584-02b1501 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertTag

func AssertTag(t *testing.T, tags []Tag, k, v string)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(base, service string) Client

func (*Client) Traces

func (j *Client) Traces(ctx context.Context, since time.Time) ([]Trace, error)

type Process

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

type Span

type Span struct {
	TraceID       string `json:"traceID"`
	SpanID        string `json:"spanID"`
	OperationName string `json:"operationName"`
	References    []struct {
		RefType string `json:"refType"`
		TraceID string `json:"traceID"`
		SpanID  string `json:"spanID"`
	} `json:"references"`
	StartTime int64  `json:"startTime"`
	Duration  int    `json:"duration"`
	Tags      []Tag  `json:"tags"`
	Logs      []any  `json:"logs"`
	ProcessID string `json:"processID"`
	Warnings  any    `json:"warnings"`
}

type Tag

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

type Trace

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

Jump to

Keyboard shortcuts

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