Documentation ¶
Overview ¶
Package tempoproxy provides Tempo proxy for observability and research.
Index ¶
- type Server
- func (s *Server) Echo(ctx context.Context) (tempoapi.EchoOK, error)
- func (s *Server) NewError(ctx context.Context, err error) *tempoapi.ErrorStatusCode
- func (s *Server) Search(ctx context.Context, params tempoapi.SearchParams) (*tempoapi.Traces, error)
- func (s *Server) SearchTagValues(ctx context.Context, params tempoapi.SearchTagValuesParams) (*tempoapi.TagValues, error)
- func (s *Server) SearchTagValuesV2(ctx context.Context, params tempoapi.SearchTagValuesV2Params) (*tempoapi.TagValuesV2, error)
- func (s *Server) SearchTags(ctx context.Context) (*tempoapi.TagNames, error)
- func (s *Server) TraceByID(ctx context.Context, params tempoapi.TraceByIDParams) (tempoapi.TraceByIDRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implement proxy server.
func (*Server) Echo ¶
Echo implements echo operation. Echo request for testing, issued by Grafana.
GET /api/echo
func (*Server) NewError ¶
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (*Server) Search ¶
func (s *Server) Search(ctx context.Context, params tempoapi.SearchParams) (*tempoapi.Traces, error)
Search implements search operation.
Execute TraceQL query.
GET /api/search
func (*Server) SearchTagValues ¶
func (s *Server) SearchTagValues(ctx context.Context, params tempoapi.SearchTagValuesParams) (*tempoapi.TagValues, error)
SearchTagValues implements search_tag_values operation.
This endpoint retrieves all discovered values for the given tag, which can be used in search.
GET /api/search/tag/{tag_name}/values
func (*Server) SearchTagValuesV2 ¶
func (s *Server) SearchTagValuesV2(ctx context.Context, params tempoapi.SearchTagValuesV2Params) (*tempoapi.TagValuesV2, error)
SearchTagValuesV2 implements search_tag_values_v2 operation.
This endpoint retrieves all discovered values and their data types for the given TraceQL identifier.
GET /api/v2/search/tag/{tag_name}/values
func (*Server) SearchTags ¶
SearchTags implements search_tags operation.
This endpoint retrieves all discovered tag names that can be used in search.
GET /api/search/tags
func (*Server) TraceByID ¶
func (s *Server) TraceByID(ctx context.Context, params tempoapi.TraceByIDParams) (tempoapi.TraceByIDRes, error)
TraceByID implements traceByID operation.
Querying traces by id.
GET /api/traces/{traceID}