Documentation
¶
Index ¶
- Constants
- type ClickhouseClient
- 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) GetServiceNames(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 Event
- type Span
- type Type
Constants ¶
View Source
const ( TypeOtel = "otel" TypeOtelEbpf = "otel_ebpf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickhouseClient ¶
type ClickhouseClient struct {
// contains filtered or unexported fields
}
func NewClickhouseClient ¶
func NewClickhouseClient(config ClickhouseClientConfig) (*ClickhouseClient, error)
func (*ClickhouseClient) GetInboundSpans ¶
func (*ClickhouseClient) GetParentSpans ¶
func (*ClickhouseClient) GetServiceNames ¶
func (c *ClickhouseClient) GetServiceNames(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
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.