Documentation ¶
Index ¶
- type Config
- type Distributor
- func (*Distributor) Check(_ context.Context, _ *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
- func (d *Distributor) Push(ctx context.Context, req *tempopb.PushRequest) (*tempopb.PushResponse, error)
- func (d *Distributor) PushBatches(ctx context.Context, batches []*v1.ResourceSpans) (*tempopb.PushResponse, error)
- func (d *Distributor) PushBytes(context.Context, *tempopb.PushBytesRequest) (*tempopb.PushResponse, error)
- type ReadLifecycler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Distributors ring DistributorRing cortex_distributor.RingConfig `yaml:"ring,omitempty"` // receivers map for shim. // This receivers node is equivalent in format to the receiver node in the // otel collector: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver Receivers map[string]interface{} `yaml:"receivers"` OverrideRingKey string `yaml:"override_ring_key"` LogReceivedTraces bool `yaml:"log_received_traces"` // disables write extension with inactive ingesters. Use this along with ingester.lifecycler.unregister_on_shutdown = true // note that setting these two config values reduces tolerance to failures on rollout b/c there is always one guaranteed to be failing replica ExtendWrites bool `yaml:"extend_writes"` SearchTagsDenyList []string `yaml:"search_tags_deny_list"` // contains filtered or unexported fields }
Config for a Distributor.
type Distributor ¶
type Distributor struct { services.Service DistributorRing *ring.Ring // contains filtered or unexported fields }
Distributor coordinates replicates and distribution of log streams.
func New ¶
func New(cfg Config, clientCfg ingester_client.Config, ingestersRing ring.ReadRing, o *overrides.Overrides, middleware receiver.Middleware, level logging.Level, searchEnabled bool) (*Distributor, error)
New a distributor creates.
func (*Distributor) Check ¶
func (*Distributor) Check(_ context.Context, _ *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error)
Check implements the grpc healthcheck
func (*Distributor) Push ¶
func (d *Distributor) Push(ctx context.Context, req *tempopb.PushRequest) (*tempopb.PushResponse, error)
Push pushes a trace
func (*Distributor) PushBatches ¶ added in v1.2.0
func (d *Distributor) PushBatches(ctx context.Context, batches []*v1.ResourceSpans) (*tempopb.PushResponse, error)
Push batches pushes a batch of traces
func (*Distributor) PushBytes ¶ added in v0.5.0
func (d *Distributor) PushBytes(context.Context, *tempopb.PushBytesRequest) (*tempopb.PushResponse, error)
PushBytes Not used by the distributor
type ReadLifecycler ¶
type ReadLifecycler interface {
HealthyInstancesCount() int
}
ReadLifecycler represents the read interface to the lifecycler.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.