Documentation
¶
Overview ¶
Package traces reads the spans of a trace from a tracing backend, so that osapi can show a trace without the caller reaching the backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("trace not found")
ErrNotFound is returned when the backend has no trace with the ID. The backend gets the spans a few seconds after the request, so a trace of a request that just ran can be not found yet.
Functions ¶
This section is empty.
Types ¶
type Jaeger ¶
type Jaeger struct {
// contains filtered or unexported fields
}
Jaeger reads traces from the query API of Jaeger, /api/v3/traces/{id}, which answers OTLP JSON.
func NewJaeger ¶
NewJaeger returns a reader for the Jaeger at base, such as http://jaeger:16686, the address of its UI and its query API.