Documentation ¶
Index ¶
- type Client
- func (in *Client) GetErrorTraces(ns, srv string, duration time.Duration) (errorTraces int, err error)
- func (in *Client) GetSpans(ns, srv string, query models.TracingQuery) ([]Span, error)
- func (in *Client) GetTraceDetail(traceId string) (*JaegerSingleTrace, error)
- func (in *Client) GetTraces(ns, srv string, query models.TracingQuery) (traces *JaegerResponse, err error)
- type ClientInterface
- type JaegerResponse
- type JaegerServices
- type JaegerSingleTrace
- type Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ClientInterface // contains filtered or unexported fields }
Client for Jaeger API. It hides the way we query Prometheus offering a layer with a high level defined API.
func (*Client) GetErrorTraces ¶
func (in *Client) GetErrorTraces(ns, srv string, duration time.Duration) (errorTraces int, err error)
GetErrorTraces jaeger to fetch a traces of a specific service requests for errors traces
Returns (errorTraces, error)
func (*Client) GetSpans ¶ added in v1.12.0
GetSpans fetches Jaeger traces of a service and extract related spans Returns (spans, error)
func (*Client) GetTraceDetail ¶
func (in *Client) GetTraceDetail(traceId string) (*JaegerSingleTrace, error)
GetTraceDetail jaeger to fetch a specific trace requests for a specific trace detail
Returns (traces, code, error)
func (*Client) GetTraces ¶
func (in *Client) GetTraces(ns, srv string, query models.TracingQuery) (traces *JaegerResponse, err error)
GetTraces Jaeger to fetch traces of a service requests for traces of a service Returns (traces, code, error)
type ClientInterface ¶
type ClientInterface interface { GetSpans(ns, srv string, query models.TracingQuery) ([]Span, error) GetTraces(ns, srv string, query models.TracingQuery) (traces *JaegerResponse, err error) GetTraceDetail(traceId string) (*JaegerSingleTrace, error) GetErrorTraces(ns, srv string, duration time.Duration) (errorTraces int, err error) }
ClientInterface for mocks (only mocked function are necessary here)
type JaegerResponse ¶ added in v1.12.1
type JaegerResponse struct { Data []jaegerModels.Trace `json:"data"` Errors []structuredError `json:"errors"` }
type JaegerServices ¶ added in v1.12.1
type JaegerServices struct {
Data []string `json:"data"`
}
type JaegerSingleTrace ¶ added in v1.19.0
type JaegerSingleTrace struct { Data jaegerModels.Trace `json:"data"` Errors []structuredError `json:"errors"` }
type Span ¶ added in v1.12.0
type Span struct { jaegerModels.Span TraceSize int `json:"traceSize"` }
Click to show internal directories.
Click to hide internal directories.