Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveCapable ¶
type ArchiveCapable interface {
IsArchiveCapable() bool
}
ArchiveCapable is an interface that can be implemented by some storage implementations to indicate that they are capable of archiving data.
type BaseFactory ¶
type BaseFactory interface { // CreateSpanReader creates a spanstore.Reader. CreateSpanReader() (spanstore.Reader, error) // CreateSpanWriter creates a spanstore.Writer. CreateSpanWriter() (spanstore.Writer, error) // CreateDependencyReader creates a dependencystore.Reader. CreateDependencyReader() (dependencystore.Reader, error) }
BaseFactory is the same as Factory, but without the Initialize method. It was a design mistake originally to add Initialize to the Factory interface.
type Factory ¶
type Factory interface { BaseFactory // Initialize performs internal initialization of the factory, such as opening connections to the backend store. // It is called after all configuration of the factory itself has been done. Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error }
Factory defines an interface for a factory that can create implementations of different storage components. Implementations are also encouraged to implement plugin.Configurable interface.
See also ¶
plugin.Configurable
type Inheritable ¶
type Inheritable interface {
InheritSettingsFrom(other Factory)
}
Inheritable is an interface that can be implement by some storage implementations to provide a way to inherit configuration settings from another factory.
type MetricStoreFactory ¶
type MetricStoreFactory interface { // Initialize performs internal initialization of the factory, such as opening connections to the backend store. // It is called after all configuration of the factory itself has been done. Initialize(telset telemetry.Settings) error // CreateMetricsReader creates a metricstore.Reader. CreateMetricsReader() (metricstore.Reader, error) }
MetricStoreFactory defines an interface for a factory that can create implementations of different metrics storage components. Implementations are also encouraged to implement plugin.Configurable interface.
See also ¶
plugin.Configurable
type Purger ¶
Purger defines an interface that is capable of purging the storage. Only meant to be used from integration tests.
type SamplingStoreFactory ¶
type SamplingStoreFactory interface { // CreateLock creates a distributed lock. CreateLock() (distributedlock.Lock, error) // CreateSamplingStore creates a sampling store. CreateSamplingStore(maxBuckets int) (samplingstore.Store, error) }
SamplingStoreFactory defines an interface that is capable of returning the necessary backends for adaptive sampling.
Directories
¶
Path | Synopsis |
---|---|
Package storage is the collection of different storage interfaces that are shared by two or more components.
|
Package storage is the collection of different storage interfaces that are shared by two or more components. |