Documentation ¶
Index ¶
- type Client
- func (in *Client) GetErrorTraces(ns string, srv string) (errorTraces int, err error)
- func (in *Client) GetJaegerServices() (services []string, code int, err error)
- func (in *Client) GetTraceDetail(traceId string) (trace []*jaegerModels.Trace, code int, err error)
- func (in *Client) GetTraces(namespace string, service string, rawQuery string) (traces []*jaegerModels.Trace, code int, err error)
- type ClientInterface
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 ¶
GetErrorTraces jaeger to fetch a traces of a specific service requests for errors traces
Returns (errorTraces, error)
func (*Client) GetJaegerServices ¶
GetNamespaceServicesRequestRates queries Prometheus to fetch request counter rates, over a time interval, limited to requests for services in the namespace. Returns (rates, error)
func (*Client) GetTraceDetail ¶
GetTraceDetail jaeger to fetch a specific trace requests for a specific trace detail
Returns (traces, code, error)
type ClientInterface ¶
type ClientInterface interface { GetJaegerServices() (services []string, code int, err error) GetTraces(namespace string, service string, rawQuery string) (traces []*jaegerModels.Trace, code int, err error) GetTraceDetail(traceId string) (trace []*jaegerModels.Trace, code int, err error) GetErrorTraces(ns string, srv string) (errorTraces int, err error) }
ClientInterface for mocks (only mocked function are necessary here)
Click to show internal directories.
Click to hide internal directories.