tracing

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (c *ClickhouseClient) GetInboundSpans(ctx context.Context, listens []model.Listen, ignoredContainerIds []string, tsFrom, tsTo timeseries.Time, durFrom, durTo time.Duration, errors bool, limit int) ([]*Span, error)

func (*ClickhouseClient) GetParentSpans

func (c *ClickhouseClient) GetParentSpans(ctx context.Context, spans []*Span) ([]*Span, error)

func (*ClickhouseClient) GetServiceNames

func (c *ClickhouseClient) GetServiceNames(ctx context.Context) ([]string, error)

func (*ClickhouseClient) GetSpansByServiceName

func (c *ClickhouseClient) GetSpansByServiceName(ctx context.Context, name string, ignoredPeerAddrs []string, tsFrom, tsTo timeseries.Time, durFrom, durTo time.Duration, errors bool, limit int) ([]*Span, error)

func (*ClickhouseClient) GetSpansByTraceId

func (c *ClickhouseClient) GetSpansByTraceId(ctx context.Context, traceId string) ([]*Span, error)

func (*ClickhouseClient) Ping

func (c *ClickhouseClient) Ping(ctx context.Context) error

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

type Event

type Event struct {
	Timestamp  time.Time
	Name       string
	Attributes map[string]string
}

type Span

type Span struct {
	Timestamp     time.Time
	Name          string
	TraceId       string
	SpanId        string
	ParentSpanId  string
	ServiceName   string
	Duration      time.Duration
	StatusCode    string
	StatusMessage string
	Attributes    map[string]string
	Events        []Event
}

type Type

type Type string

Jump to

Keyboard shortcuts

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