trace

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Text string `json:"text"`
	Lang string `json:"lang"`
}

type Event

type Event struct {
	Name       string            `json:"name"`
	Timestamp  int64             `json:"timestamp"`
	Attributes map[string]string `json:"attributes"`
}

type Service

type Service struct {
	Name   string `json:"name"`
	Linked bool   `json:"linked"`
}

type Source

type Source struct {
	Type     tracing.Source `json:"type"`
	Name     string         `json:"name"`
	Selected bool           `json:"selected"`
}

type Span

type Span struct {
	Service    string            `json:"service"`
	TraceId    string            `json:"trace_id"`
	Id         string            `json:"id"`
	ParentId   string            `json:"parent_id"`
	Name       string            `json:"name"`
	Timestamp  int64             `json:"timestamp"`
	Duration   float64           `json:"duration"`
	Client     string            `json:"client"`
	Status     Status            `json:"status"`
	Details    Details           `json:"details"`
	Attributes map[string]string `json:"attributes"`
	Events     []Event           `json:"events"`
}

type Status

type Status struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
}

type View

type View struct {
	Status   model.Status   `json:"status"`
	Message  string         `json:"message"`
	Sources  []Source       `json:"sources"`
	Services []Service      `json:"services"`
	Heatmap  *model.Heatmap `json:"heatmap"`
	Spans    []Span         `json:"spans"`
	Limit    int            `json:"limit"`
}

func Render

func Render(ctx context.Context, clickhouse *tracing.ClickhouseClient, app *model.Application, appSettings *db.ApplicationSettings, q url.Values, w *model.World) *View

Jump to

Keyboard shortcuts

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