Help us shape the future of Go! Take the 2026 Go Developer Survey

jaeger

package
v1.12.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(token string) (*Client, error)

func (*Client) GetErrorTraces

func (in *Client) GetErrorTraces(ns string, srv string, interval string) (errorTraces int, err error)

GetErrorTraces jaeger to fetch a traces of a specific service requests for errors traces

Returns (errorTraces, error)

func (*Client) GetJaegerInfo added in v1.12.1

func (in *Client) GetJaegerInfo() (*JaegerInfo, int, error)

GetJaegerInfo return the information about Jaeger info for Jaeger Service. Returns (*JaegerInfo, int, error)

func (*Client) GetJaegerServices

func (in *Client) GetJaegerServices() (services []string, code int, err error)

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) GetSpans added in v1.12.0

func (in *Client) GetSpans(namespace, service, startMicros, endMicros string) ([]Span, error)

GetSpans fetches Jaeger traces of a service and extract related spans Returns (spans, error)

func (*Client) GetTraceDetail

func (in *Client) GetTraceDetail(traceId string) (trace *JaegerResponse, code int, err 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(namespace string, service string, rawQuery string) (traces *JaegerResponse, code int, 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 {
	GetJaegerServices() (services []string, code int, err error)
	GetSpans(namespace, service, startMicros, endMicros string) ([]Span, error)
	GetJaegerInfo() (*JaegerInfo, int, error)
	GetTraces(namespace string, service string, rawQuery string) (traces *JaegerResponse, code int, err error)
	GetTraceDetail(traceId string) (trace *JaegerResponse, code int, err error)
	GetErrorTraces(ns string, srv string, interval string) (errorTraces int, err error)
}

ClientInterface for mocks (only mocked function are necessary here)

type JaegerInfo added in v1.12.1

type JaegerInfo struct {
	URL                  string   `json:"url"`
	NamespaceSelector    bool     `json:"namespaceSelector"`
	Integration          bool     `json:"integration"`
	IntegrationMessage   string   `json:"integrationMessage"`
	WhiteListIstioSystem []string `json:"whiteListIstioSystem"`
}

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 Span added in v1.12.0

type Span struct {
	jaegerModels.Span
	TraceSize int `json:"traceSize"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL