tempoproxy

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tempoproxy provides Tempo proxy for observability and research.

Index

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 NewServer

func NewServer(api *tempoapi.Client) *Server

NewServer initializes new proxy Server from openapi client.

func (*Server) Echo

func (s *Server) Echo(ctx context.Context) (tempoapi.EchoOK, error)

Echo implements echo operation. Echo request for testing, issued by Grafana.

GET /api/echo

func (*Server) NewError

func (s *Server) NewError(ctx context.Context, err error) *tempoapi.ErrorStatusCode

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

func (s *Server) SearchTags(ctx context.Context) (*tempoapi.TagNames, error)

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

TraceByID implements traceByID operation.

Querying traces by id.

GET /api/traces/{traceID}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL