Documentation ¶
Index ¶
- type Client
- func (c *Client) GetContainerLogs(ctx context.Context, from, to timeseries.Time, containers map[string][]string, ...) ([]*model.LogEntry, error)
- func (c *Client) GetContainerLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, ...) (map[string]*timeseries.TimeSeries, error)
- func (c *Client) GetInboundSpans(ctx context.Context, q SpanQuery, clients []string, listens []model.Listen) ([]*model.TraceSpan, error)
- func (c *Client) GetInboundSpansHistogram(ctx context.Context, q SpanQuery, clients []string, listens []model.Listen) ([]model.HistogramBucket, error)
- func (c *Client) GetParentSpans(ctx context.Context, spans []*model.TraceSpan) ([]*model.TraceSpan, error)
- func (c *Client) GetProfile(ctx context.Context, from, to timeseries.Time, services []string, ...) (*model.FlameGraphNode, error)
- func (c *Client) GetProfileTypes(ctx context.Context) (map[string][]model.ProfileType, error)
- func (c *Client) GetRootSpans(ctx context.Context, q SpanQuery) ([]*model.TraceSpan, error)
- func (c *Client) GetRootSpansHistogram(ctx context.Context, q SpanQuery) ([]model.HistogramBucket, error)
- func (c *Client) GetRootSpansSummary(ctx context.Context, q SpanQuery) (*model.TraceSpanSummary, error)
- func (c *Client) GetServiceLogs(ctx context.Context, from, to timeseries.Time, service string, ...) ([]*model.LogEntry, error)
- func (c *Client) GetServiceLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, ...) (map[string]*timeseries.TimeSeries, error)
- func (c *Client) GetServicesFromLogs(ctx context.Context) (map[string][]string, error)
- func (c *Client) GetServicesFromTraces(ctx context.Context) ([]string, error)
- func (c *Client) GetSpanAttrStats(ctx context.Context, q SpanQuery) ([]model.TraceSpanAttrStats, error)
- func (c *Client) GetSpansByServiceName(ctx context.Context, q SpanQuery) ([]*model.TraceSpan, error)
- func (c *Client) GetSpansByServiceNameHistogram(ctx context.Context, q SpanQuery) ([]model.HistogramBucket, error)
- func (c *Client) GetSpansByTraceId(ctx context.Context, traceId string) ([]*model.TraceSpan, error)
- func (c *Client) GetTraceErrors(ctx context.Context, q SpanQuery) ([]model.TraceErrorsStat, error)
- func (c *Client) GetTraceLatencyProfile(ctx context.Context, q SpanQuery) (*model.Profile, error)
- func (c *Client) Ping(ctx context.Context) error
- type ClientConfig
- type SpanFilter
- type SpanQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config ClientConfig) (*Client, error)
func (*Client) GetContainerLogs ¶
func (*Client) GetContainerLogsHistogram ¶
func (c *Client) GetContainerLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, containers map[string][]string, severities []string, hashes []string, search string) (map[string]*timeseries.TimeSeries, error)
func (*Client) GetInboundSpans ¶
func (*Client) GetInboundSpansHistogram ¶ added in v0.29.4
func (*Client) GetParentSpans ¶
func (*Client) GetProfile ¶
func (c *Client) GetProfile(ctx context.Context, from, to timeseries.Time, services []string, typ model.ProfileType, diff bool) (*model.FlameGraphNode, error)
func (*Client) GetProfileTypes ¶
func (*Client) GetRootSpans ¶ added in v1.0.0
func (*Client) GetRootSpansHistogram ¶ added in v1.0.0
func (*Client) GetRootSpansSummary ¶ added in v1.0.0
func (*Client) GetServiceLogs ¶
func (*Client) GetServiceLogsHistogram ¶
func (c *Client) GetServiceLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, service string, severities []string, search string) (map[string]*timeseries.TimeSeries, error)
func (*Client) GetServicesFromLogs ¶
func (*Client) GetServicesFromTraces ¶
func (*Client) GetSpanAttrStats ¶ added in v1.0.0
func (*Client) GetSpansByServiceName ¶
func (*Client) GetSpansByServiceNameHistogram ¶ added in v0.29.4
func (*Client) GetSpansByTraceId ¶
func (*Client) GetTraceErrors ¶ added in v1.0.0
func (*Client) GetTraceLatencyProfile ¶ added in v1.0.0
type ClientConfig ¶
type ClientConfig struct { Protocol string Address string TlsEnable bool TlsSkipVerify bool User string Password string Database string DialContext func(ctx context.Context, addr string) (net.Conn, error) }
func NewClientConfig ¶
func NewClientConfig(address, user, password string) ClientConfig
type SpanFilter ¶ added in v1.0.6
func NewSpanFilter ¶ added in v1.0.6
func NewSpanFilter(field, op, value string) SpanFilter
func (SpanFilter) String ¶ added in v1.0.6
func (f SpanFilter) String() string
type SpanQuery ¶ added in v1.0.0
type SpanQuery struct { Ctx timeseries.Context TsFrom timeseries.Time TsTo timeseries.Time DurFrom time.Duration DurTo time.Duration Errors bool Limit int Filters []SpanFilter ExcludePeerAddrs []string Diff bool }
func (SpanQuery) DurationFilter ¶ added in v1.0.0
func (SpanQuery) IsSelectionDefined ¶ added in v1.0.0
func (SpanQuery) RootSpansFilter ¶ added in v1.0.0
func (SpanQuery) SpansByServiceNameFilter ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.