Documentation
¶
Index ¶
- func AddFlags(flagSet *flag.FlagSet)
- type Configuration
- type Factory
- func (*Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
- func (*Factory) CreateLock() (distributedlock.Lock, error)
- func (*Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
- func (f *Factory) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- func (f *Factory) InitFromViper(v *viper.Viper, _ *zap.Logger)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error
- func (f *Factory) Purge(ctx context.Context) error
- type Options
- type SamplingStore
- func (ss *SamplingStore) GetLatestProbabilities() (model.ServiceOperationProbabilities, error)
- func (ss *SamplingStore) GetThroughput(start, end time.Time) ([]*model.Throughput, error)
- func (ss *SamplingStore) InsertProbabilitiesAndQPS(hostname string, probabilities model.ServiceOperationProbabilities, ...) error
- func (ss *SamplingStore) InsertThroughput(throughput []*model.Throughput) error
- type Store
- func (*Store) FindTraceIDs(context.Context, *spanstore.TraceQueryParameters) ([]model.TraceID, error)
- func (st *Store) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
- func (st *Store) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
- func (st *Store) GetOperations(ctx context.Context, query spanstore.OperationQueryParameters) ([]spanstore.Operation, error)
- func (st *Store) GetServices(ctx context.Context) ([]string, error)
- func (st *Store) GetTrace(ctx context.Context, query spanstore.GetTraceParameters) (*model.Trace, error)
- func (st *Store) WriteSpan(ctx context.Context, span *model.Span) error
- type Tenant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { // MaxTraces is the maximum amount of traces to store in memory. // If multi-tenancy is enabled, this limit applies per tenant. // Zero value (default) means no limit (Warning: memory usage will be unbounded). MaxTraces int `mapstructure:"max_traces"` }
Configuration describes the options to customize the storage behavior.
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory implements storage.Factory and creates storage components backed by memory store.
func NewFactoryWithConfig ¶
func NewFactoryWithConfig( cfg Configuration, metricsFactory metrics.Factory, logger *zap.Logger, ) *Factory
NewFactoryWithConfig is used from jaeger(v2).
func (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateLock ¶
func (*Factory) CreateLock() (distributedlock.Lock, error)
CreateLock implements storage.SamplingStoreFactory
func (*Factory) CreateSamplingStore ¶
func (*Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
CreateSamplingStore implements storage.SamplingStoreFactory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
func (*Factory) Initialize ¶
Initialize implements storage.Factory
type Options ¶
type Options struct {
Configuration Configuration `mapstructure:",squash"`
}
Options stores the configuration entries for this storage
func (*Options) InitFromViper ¶
InitFromViper initializes the options struct with values from Viper
type SamplingStore ¶
SamplingStore is an in-memory store for sampling data
func NewSamplingStore ¶
func NewSamplingStore(maxBuckets int) *SamplingStore
NewSamplingStore creates an in-memory sampling store.
func (*SamplingStore) GetLatestProbabilities ¶
func (ss *SamplingStore) GetLatestProbabilities() (model.ServiceOperationProbabilities, error)
GetLatestProbabilities implements samplingstore.Store#GetLatestProbabilities.
func (*SamplingStore) GetThroughput ¶
func (ss *SamplingStore) GetThroughput(start, end time.Time) ([]*model.Throughput, error)
GetThroughput implements samplingstore.Store#GetThroughput.
func (*SamplingStore) InsertProbabilitiesAndQPS ¶
func (ss *SamplingStore) InsertProbabilitiesAndQPS( hostname string, probabilities model.ServiceOperationProbabilities, qps model.ServiceOperationQPS, ) error
InsertProbabilitiesAndQPS implements samplingstore.Store#InsertProbabilitiesAndQPS.
func (*SamplingStore) InsertThroughput ¶
func (ss *SamplingStore) InsertThroughput(throughput []*model.Throughput) error
InsertThroughput implements samplingstore.Store#InsertThroughput.
type Store ¶
Store is an in-memory store of traces
func WithConfiguration ¶
func WithConfiguration(cfg Configuration) *Store
WithConfiguration creates a new in memory storage based on the given configuration
func (*Store) FindTraceIDs ¶
func (*Store) FindTraceIDs(context.Context, *spanstore.TraceQueryParameters) ([]model.TraceID, error)
FindTraceIDs is not implemented.
func (*Store) FindTraces ¶
func (st *Store) FindTraces(ctx context.Context, query *spanstore.TraceQueryParameters) ([]*model.Trace, error)
FindTraces returns all traces in the query parameters are satisfied by a trace's span
func (*Store) GetDependencies ¶
func (st *Store) GetDependencies(ctx context.Context, endTs time.Time, lookback time.Duration) ([]model.DependencyLink, error)
GetDependencies returns dependencies between services
func (*Store) GetOperations ¶
func (st *Store) GetOperations( ctx context.Context, query spanstore.OperationQueryParameters, ) ([]spanstore.Operation, error)
GetOperations returns the operations of a given service
func (*Store) GetServices ¶
GetServices returns a list of all known services