Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTraceNotFound = errors.New("trace not found")
ErrTraceNotFound is returned by GetTrace when Jaeger returns an empty data array for the given trace ID. Callers can check via errors.Is.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a lightweight HTTP client for the Jaeger query API.
func NewClient ¶
NewClient creates a new Client targeting baseURL. If timeout is zero or negative the default of 30 s is used. Trailing slashes are stripped from baseURL so callers need not worry about double-slash paths.
func (*Client) FindTraces ¶
FindTraces queries the Jaeger /api/traces endpoint and returns matching traces.
type FindTracesParams ¶
type FindTracesParams struct {
// Service is required — the Jaeger service name to search.
Service string
// Operation filters to a specific RPC/endpoint name (optional).
Operation string
// Tags is an optional key→value map for span tag filtering.
Tags map[string]string
// StartTime and EndTime define the time window (zero = omit).
StartTime time.Time
EndTime time.Time
// Limit caps the number of traces returned (0 = server default applies).
Limit int
}
FindTracesParams holds query parameters for FindTraces.
type Process ¶
type Process struct {
ServiceName string `json:"serviceName"`
Tags []SpanTag `json:"tags,omitempty"`
}
Process is one Jaeger process metadata (per-trace).
type Span ¶
type Span struct {
SpanID string `json:"spanID"`
OperationName string `json:"operationName"`
Duration int64 `json:"duration"`
Tags []SpanTag `json:"tags"`
}
Span represents a single Jaeger span within a trace.
Click to show internal directories.
Click to hide internal directories.