playground

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTraceHandler

type GetTraceHandler struct {
	// contains filtered or unexported fields
}

func NewGetTraceHandler

func NewGetTraceHandler(finder TraceFinder) *GetTraceHandler

func (*GetTraceHandler) Handle

func (h *GetTraceHandler) Handle(c *fiber.Ctx) error

Handle godoc @Summary Get a playground trace @Description Returns the metrics Event captured for a playground request, keyed by the X-AG-Trace-Id returned in the proxy response. Traces expire after a short TTL. @Tags playground @Produce json @Security BearerAuth @Param trace_id path string true "Trace id (X-AG-Trace-Id from the proxy response)" @Success 200 {object} events.Event @Failure 401 {object} helpers.ErrorBody @Failure 404 {object} helpers.ErrorBody @Failure 500 {object} helpers.ErrorBody @Router /v1/playground/traces/{trace_id} [get]

type TraceFinder

type TraceFinder interface {
	Find(ctx context.Context, traceID string) (*events.Event, error)
}

TraceFinder retrieves a stored playground trace by its TraceID (the X-AG-Trace-Id the proxy echoed to the client).

Jump to

Keyboard shortcuts

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