Documentation ¶
Index ¶
- Constants
- func GuessService(services []string, appId model.ApplicationId) string
- type ClickhouseClient
- func (c *ClickhouseClient) GetContainerLogs(ctx context.Context, from, to timeseries.Time, containers map[string][]string, ...) ([]*LogEntry, error)
- func (c *ClickhouseClient) GetContainerLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, ...) (map[string]*timeseries.TimeSeries, error)
- func (c *ClickhouseClient) GetInboundSpans(ctx context.Context, listens []model.Listen, ignoredContainerIds []string, ...) ([]*Span, error)
- func (c *ClickhouseClient) GetParentSpans(ctx context.Context, spans []*Span) ([]*Span, error)
- func (c *ClickhouseClient) GetServiceLogs(ctx context.Context, from, to timeseries.Time, service string, ...) ([]*LogEntry, error)
- func (c *ClickhouseClient) GetServiceLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, ...) (map[string]*timeseries.TimeSeries, error)
- func (c *ClickhouseClient) GetServicesFromLogs(ctx context.Context) (map[string][]string, error)
- func (c *ClickhouseClient) GetServicesFromTraces(ctx context.Context) ([]string, error)
- func (c *ClickhouseClient) GetSpansByServiceName(ctx context.Context, name string, ignoredPeerAddrs []string, ...) ([]*Span, error)
- func (c *ClickhouseClient) GetSpansByTraceId(ctx context.Context, traceId string) ([]*Span, error)
- func (c *ClickhouseClient) Ping(ctx context.Context) error
- type ClickhouseClientConfig
- type LogEntry
- type Source
- type Span
- type SpanEvent
Constants ¶
View Source
const ( SourceOtel = "otel" SourceAgent = "agent" )
Variables ¶
This section is empty.
Functions ¶
func GuessService ¶ added in v0.20.0
func GuessService(services []string, appId model.ApplicationId) string
Types ¶
type ClickhouseClient ¶
type ClickhouseClient struct {
// contains filtered or unexported fields
}
func NewClickhouseClient ¶
func NewClickhouseClient(config ClickhouseClientConfig) (*ClickhouseClient, error)
func (*ClickhouseClient) GetContainerLogs ¶ added in v0.20.0
func (*ClickhouseClient) GetContainerLogsHistogram ¶ added in v0.20.0
func (c *ClickhouseClient) 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 (*ClickhouseClient) GetInboundSpans ¶
func (*ClickhouseClient) GetParentSpans ¶
func (*ClickhouseClient) GetServiceLogs ¶ added in v0.20.0
func (*ClickhouseClient) GetServiceLogsHistogram ¶ added in v0.20.0
func (c *ClickhouseClient) GetServiceLogsHistogram(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, service string, severities []string, search string) (map[string]*timeseries.TimeSeries, error)
func (*ClickhouseClient) GetServicesFromLogs ¶ added in v0.20.0
func (*ClickhouseClient) GetServicesFromTraces ¶ added in v0.20.0
func (c *ClickhouseClient) GetServicesFromTraces(ctx context.Context) ([]string, error)
func (*ClickhouseClient) GetSpansByServiceName ¶
func (*ClickhouseClient) GetSpansByTraceId ¶
type ClickhouseClientConfig ¶
type ClickhouseClientConfig struct { Protocol string Address string TlsEnable bool TlsSkipVerify bool User string Password string Database string TracesTable string LogsTable string DialContext func(ctx context.Context, addr string) (net.Conn, error) }
func NewClickhouseClientConfig ¶
func NewClickhouseClientConfig(address, user, password string) ClickhouseClientConfig
Click to show internal directories.
Click to hide internal directories.