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, q ProfileQuery) (*model.FlameGraphNode, error)
- func (c *Client) GetProfileTypes(ctx context.Context, from timeseries.Time) (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, from timeseries.Time) (map[string][]string, error)
- func (c *Client) GetServicesFromTraces(ctx context.Context, from timeseries.Time) ([]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
- func (c *Client) Query(ctx context.Context, query string, args ...interface{}) (driver.Rows, error)
- type ClientConfig
- type ProfileQuery
- type SpanFilter
- type SpanQuery
- func (q *SpanQuery) AddFilter(field, op, value string)
- func (q *SpanQuery) DurationFilter() (string, []any)
- func (q *SpanQuery) Filter() ([]string, []any)
- func (q *SpanQuery) IsSelectionDefined() bool
- func (q *SpanQuery) RootSpansFilter() ([]string, []any)
- func (q *SpanQuery) SpansByServiceNameFilter() ([]string, []any)
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 (*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, q ProfileQuery) (*model.FlameGraphNode, error)
func (*Client) GetProfileTypes ¶
func (c *Client) GetProfileTypes(ctx context.Context, from timeseries.Time) (map[string][]model.ProfileType, error)
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 ProfileQuery ¶ added in v1.6.6
type ProfileQuery struct {
Type model.ProfileType
From timeseries.Time
To timeseries.Time
Diff bool
Services []string
Containers []string
Namespace string
Pod string
}
type SpanFilter ¶ added in v1.0.6
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.