Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTraceNotFound = errors.New("trace not found")
ErrTraceNotFound is returned by Reader's GetTrace if no data is found for given trace ID.
Functions ¶
This section is empty.
Types ¶
type CompositeWriter ¶
type CompositeWriter struct {
// contains filtered or unexported fields
}
CompositeWriter is a span Writer that tries to save spans into several underlying span Writers
func NewCompositeWriter ¶
func NewCompositeWriter(spanWriters ...Writer) *CompositeWriter
NewCompositeWriter creates a CompositeWriter
type DownsamplingOptions ¶
DownsamplingOptions contains the options for constructing a DownsamplingWriter.
type DownsamplingWriter ¶
type DownsamplingWriter struct {
// contains filtered or unexported fields
}
DownsamplingWriter is a span Writer that drops spans with a predefined downsamplingRatio.
func NewDownsamplingWriter ¶
func NewDownsamplingWriter(spanWriter Writer, downsamplingOptions DownsamplingOptions) *DownsamplingWriter
NewDownsamplingWriter creates a DownsamplingWriter.
type OperationQueryParameters ¶
OperationQueryParameters contains parameters of query operations, empty spanKind means get operations for all kinds of span.
type Reader ¶
type Reader interface { // GetTrace retrieves the trace with a given id. // // If no spans are stored for this trace, it returns ErrTraceNotFound. GetTrace(ctx context.Context, traceID model.TraceID) (*model.Trace, error) // GetServices returns all service names known to the backend from spans // within its retention period. GetServices(ctx context.Context) ([]string, error) // GetOperations returns all operation names for a given service // known to the backend from spans within its retention period. GetOperations(ctx context.Context, query OperationQueryParameters) ([]Operation, error) // FindTraces returns all traces matching query parameters. There's currently // an implementation-dependent abiguity whether all query filters (such as // multiple tags) must apply to the same span within a trace, or can be satisfied // by different spans. // // If no matching traces are found, the function returns (nil, nil). FindTraces(ctx context.Context, query *TraceQueryParameters) ([]*model.Trace, error) // FindTraceIDs does the same search as FindTraces, but returns only the list // of matching trace IDs. // // If no matching traces are found, the function returns (nil, nil). FindTraceIDs(ctx context.Context, query *TraceQueryParameters) ([]model.TraceID, error) }
Reader finds and loads traces and other data from storage.
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler decides if we should sample a span
func NewSampler ¶
NewSampler creates SamplingExecutor