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 ¶ added in v1.3.0
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 ¶ added in v1.3.0
func NewCompositeWriter(spanWriters ...Writer) *CompositeWriter
NewCompositeWriter creates a CompositeWriter
type DownsamplingOptions ¶ added in v1.12.0
DownsamplingOptions contains the options for constructing a DownsamplingWriter.
type DownsamplingWriter ¶ added in v1.12.0
type DownsamplingWriter struct {
// contains filtered or unexported fields
}
DownsamplingWriter is a span Writer that drops spans with a predefined downsamplingRatio.
func NewDownsamplingWriter ¶ added in v1.12.0
func NewDownsamplingWriter(spanWriter Writer, downsamplingOptions DownsamplingOptions) *DownsamplingWriter
NewDownsamplingWriter creates a DownsamplingWriter.
type OperationQueryParameters ¶ added in v1.16.0
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 ¶ added in v1.14.0
type Sampler struct {
// contains filtered or unexported fields
}
Sampler decides if we should sample a span
func NewSampler ¶ added in v1.14.0
NewSampler creates SamplingExecutor