Documentation ¶
Index ¶
- Constants
- type Config
- type Querier
- func (q *Querier) CreateAndRegisterWorker(handler http.Handler) error
- func (q *Querier) FindTraceByID(ctx context.Context, req *tempopb.TraceByIDRequest) (*tempopb.TraceByIDResponse, error)
- func (q *Querier) RegisterSubservices(s ...services.Service) error
- func (q *Querier) SearchBlock(ctx context.Context, req *tempopb.SearchBlockRequest) (*tempopb.SearchResponse, error)
- func (q *Querier) SearchHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SearchRecent(ctx context.Context, req *tempopb.SearchRequest) (*tempopb.SearchResponse, error)
- func (q *Querier) SearchTagValues(ctx context.Context, req *tempopb.SearchTagValuesRequest) (*tempopb.SearchTagValuesResponse, error)
- func (q *Querier) SearchTagValuesHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) SearchTags(ctx context.Context, req *tempopb.SearchTagsRequest) (*tempopb.SearchTagsResponse, error)
- func (q *Querier) SearchTagsHandler(w http.ResponseWriter, r *http.Request)
- func (q *Querier) TraceByIDHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ( BlockStartKey = "blockStart" BlockEndKey = "blockEnd" QueryModeKey = "mode" QueryModeIngesters = "ingesters" QueryModeBlocks = "blocks" QueryModeAll = "all" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TraceLookupQueryTimeout time.Duration `yaml:"query_timeout"` SearchQueryTimeout time.Duration `yaml:"search_query_timeout"` SearchExternalEndpoints []string `yaml:"search_external_endpoints"` ExtraQueryDelay time.Duration `yaml:"extra_query_delay,omitempty"` MaxConcurrentQueries int `yaml:"max_concurrent_queries"` Worker cortex_worker.Config `yaml:"frontend_worker"` }
Config for a querier.
type Querier ¶
Querier handlers queries.
func New ¶
func New(cfg Config, clientCfg ingester_client.Config, ring ring.ReadRing, store storage.Store, limits *overrides.Overrides) (*Querier, error)
New makes a new Querier.
func (*Querier) CreateAndRegisterWorker ¶ added in v0.5.0
func (*Querier) FindTraceByID ¶
func (q *Querier) FindTraceByID(ctx context.Context, req *tempopb.TraceByIDRequest) (*tempopb.TraceByIDResponse, error)
FindTraceByID implements tempopb.Querier.
func (*Querier) RegisterSubservices ¶ added in v0.5.0
func (*Querier) SearchBlock ¶ added in v1.3.0
func (q *Querier) SearchBlock(ctx context.Context, req *tempopb.SearchBlockRequest) (*tempopb.SearchResponse, error)
SearchBlock searches the specified subset of the block for the passed tags.
func (*Querier) SearchHandler ¶ added in v1.2.0
func (q *Querier) SearchHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) SearchRecent ¶ added in v1.3.0
func (q *Querier) SearchRecent(ctx context.Context, req *tempopb.SearchRequest) (*tempopb.SearchResponse, error)
func (*Querier) SearchTagValues ¶ added in v1.2.0
func (q *Querier) SearchTagValues(ctx context.Context, req *tempopb.SearchTagValuesRequest) (*tempopb.SearchTagValuesResponse, error)
func (*Querier) SearchTagValuesHandler ¶ added in v1.2.0
func (q *Querier) SearchTagValuesHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) SearchTags ¶ added in v1.2.0
func (q *Querier) SearchTags(ctx context.Context, req *tempopb.SearchTagsRequest) (*tempopb.SearchTagsResponse, error)
func (*Querier) SearchTagsHandler ¶ added in v1.2.0
func (q *Querier) SearchTagsHandler(w http.ResponseWriter, r *http.Request)
func (*Querier) TraceByIDHandler ¶
func (q *Querier) TraceByIDHandler(w http.ResponseWriter, r *http.Request)
TraceByIDHandler is a http.HandlerFunc to retrieve traces
Click to show internal directories.
Click to hide internal directories.