model

package
v1.82.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

type Span struct {
	SpanID            string           `json:"spanID"`
	StartTimeUnixNano string           `json:"startTimeUnixNano"`
	DurationNanos     string           `json:"durationNanos"`
	Attributes        []json.Attribute `json:"attributes"`
	Status            json.Status      `json:"status"`
}

type SpanSet

type SpanSet struct {
	Spans   []Span `json:"spans"`
	Matched int    `json:"matched"` // Tempo returns the number of total spans matched in this field
}

type TagsResponse added in v1.78.0

type TagsResponse struct {
	TagNames []string `json:"tagNames"`
}

type Trace

type Trace struct {
	TraceID           string  `json:"traceID"`
	RootServiceName   string  `json:"rootServiceName"`
	RootTraceName     string  `json:"rootTraceName,omitempty"`
	StartTimeUnixNano string  `json:"startTimeUnixNano"`
	DurationMs        int     `json:"durationMs"`
	SpanSet           SpanSet `json:"spanSet"`
}

type TraceMetadata

type TraceMetadata struct {
	TraceID           string        `json:"traceID"`
	RootServiceName   string        `json:"RootServiceName"`
	StartTimeUnixNano string        `json:"startTimeUnixNano"`
	DurationMs        time.Duration `json:"durationMs"`
}

Trace is a list of spans

type Traces

type Traces struct {
	Traces  []Trace  `json:"traces"`
	Metrics struct{} `json:"metrics"`
}

type TracesError added in v1.82.0

type TracesError struct {
	Status string `json:"status"`
	Error  string `json:"error"`
}

type TracingResponse

type TracingResponse struct {
	Traces []TraceMetadata `json:"traces"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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