Documentation
¶
Index ¶
- Constants
- func FetchSpanFromES(ctx context.Context, storage storage.Storage, sel storage.Selector, ...) (list []*trace.Span, err error)
- func GetInterval(duration int64) (int64, string, int64)
- type CassandraSource
- func (cs *CassandraSource) GetSpanCount(ctx context.Context, traceID string) int64
- func (cs *CassandraSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
- func (cs *CassandraSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
- func (cs *CassandraSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
- type ClickhouseSource
- func (chs *ClickhouseSource) GetSpanCount(ctx context.Context, traceID string) int64
- func (chs *ClickhouseSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
- func (chs *ClickhouseSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
- func (chs *ClickhouseSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
- type ElasticsearchSource
- func (esc *ElasticsearchSource) GetSpanCount(ctx context.Context, traceID string) int64
- func (esc ElasticsearchSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
- func (esc ElasticsearchSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
- func (esc ElasticsearchSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
- func (esc ElasticsearchSource) GetTracesCount(ctx context.Context, startTime, endTime int64, ...) (int64, error)
- type TraceDistributionItem
- type TraceSource
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func FetchSpanFromES ¶
Types ¶
type CassandraSource ¶
type CassandraSource struct {
CassandraSession *cassandra.Session
Log logs.Logger
CompatibleSource TraceSource
}
func (*CassandraSource) GetSpanCount ¶
func (cs *CassandraSource) GetSpanCount(ctx context.Context, traceID string) int64
func (*CassandraSource) GetSpans ¶
func (cs *CassandraSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
func (*CassandraSource) GetTraceReqDistribution ¶
func (cs *CassandraSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
func (*CassandraSource) GetTraces ¶
func (cs *CassandraSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
type ClickhouseSource ¶
type ClickhouseSource struct {
Clickhouse clickhouse.Interface
Log logs.Logger
DebugSQL bool
Loader loader.Interface
CompatibleSource TraceSource
}
func (*ClickhouseSource) GetSpanCount ¶
func (chs *ClickhouseSource) GetSpanCount(ctx context.Context, traceID string) int64
func (*ClickhouseSource) GetSpans ¶
func (chs *ClickhouseSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
func (*ClickhouseSource) GetTraceReqDistribution ¶
func (chs *ClickhouseSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
func (*ClickhouseSource) GetTraces ¶
func (chs *ClickhouseSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
type ElasticsearchSource ¶
type ElasticsearchSource struct {
StorageReader storage.Storage
Metric metricpb.MetricServiceServer
Log logs.Logger
CompatibleSource TraceSource
}
func (*ElasticsearchSource) GetSpanCount ¶
func (esc *ElasticsearchSource) GetSpanCount(ctx context.Context, traceID string) int64
func (ElasticsearchSource) GetSpans ¶
func (esc ElasticsearchSource) GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
func (ElasticsearchSource) GetTraceReqDistribution ¶
func (esc ElasticsearchSource) GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
func (ElasticsearchSource) GetTraces ¶
func (esc ElasticsearchSource) GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
type TraceDistributionItem ¶
type TraceSource ¶
type TraceSource interface {
GetSpans(ctx context.Context, req *pb.GetSpansRequest) []*pb.Span
GetSpanCount(ctx context.Context, traceID string) int64
GetTraceReqDistribution(ctx context.Context, model custom.Model) ([]*TraceDistributionItem, error)
GetTraces(ctx context.Context, req *pb.GetTracesRequest) (*pb.GetTracesResponse, error)
}
Click to show internal directories.
Click to hide internal directories.