Documentation ¶
Index ¶
- type Client
- func (in *Client) GetAppTraces(namespace, app string, q models.TracingQuery) (*JaegerResponse, error)
- func (in *Client) GetErrorTraces(ns, app string, duration time.Duration) (int, error)
- func (in *Client) GetServiceStatus() (bool, error)
- func (in *Client) GetTraceDetail(strTraceID string) (*JaegerSingleTrace, error)
- type ClientInterface
- type JaegerResponse
- type JaegerServices
- type JaegerSingleTrace
- type JaegerSpan
- type SpansStreamer
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.
func (*Client) GetAppTraces ¶ added in v1.24.0
func (in *Client) GetAppTraces(namespace, app string, q models.TracingQuery) (*JaegerResponse, error)
GetAppTraces fetches traces of an app
func (*Client) GetErrorTraces ¶
GetErrorTraces fetches number of traces in error for the given app
func (*Client) GetServiceStatus ¶ added in v1.38.1
func (*Client) GetTraceDetail ¶
func (in *Client) GetTraceDetail(strTraceID string) (*JaegerSingleTrace, error)
GetTraceDetail fetches a specific trace from its ID
type ClientInterface ¶
type ClientInterface interface { GetAppTraces(ns, app string, query models.TracingQuery) (traces *JaegerResponse, err error) GetTraceDetail(traceId string) (*JaegerSingleTrace, error) GetErrorTraces(ns, app string, duration time.Duration) (errorTraces int, err error) GetServiceStatus() (available bool, 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"` JaegerServiceName string `json:"jaegerServiceName"` }
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 JaegerSpan ¶ added in v1.24.0
type JaegerSpan struct { jaegerModels.Span TraceSize int `json:"traceSize"` }
type SpansStreamer ¶ added in v1.31.0
type SpansStreamer interface { Recv() (*jaegerModel.SpansResponseChunk, error) grpc.ClientStream }
Click to show internal directories.
Click to hide internal directories.