tracemodel

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	Key   string `json:"Key"`
	Value Value  `json:"Value"`
}

type InstrumentationLibrary

type InstrumentationLibrary struct {
	Name      string `json:"Name"`
	Version   string `json:"Version"`
	SchemaURL string `json:"SchemaURL"`
}

type Parent

type Parent struct {
	TraceID    string `json:"TraceID"`
	SpanID     string `json:"SpanID"`
	TraceFlags string `json:"TraceFlags"`
	TraceState string `json:"TraceState"`
	Remote     bool   `json:"Remote"`
}

type Resource

type Resource struct {
	Key   string `json:"Key"`
	Value Value  `json:"Value"`
}

type Span

type Span struct {
	Name                   string                 `json:"Name"`
	SpanContext            SpanContext            `json:"SpanContext"`
	Parent                 Parent                 `json:"Parent"`
	SpanKind               int                    `json:"SpanKind"`
	StartTime              time.Time              `json:"StartTime"`
	EndTime                time.Time              `json:"EndTime"`
	Attributes             []Attributes           `json:"Attributes"`
	Events                 any                    `json:"Events"`
	Links                  any                    `json:"Links"`
	Status                 Status                 `json:"Status"`
	DroppedAttributes      int                    `json:"DroppedAttributes"`
	DroppedEvents          int                    `json:"DroppedEvents"`
	DroppedLinks           int                    `json:"DroppedLinks"`
	ChildSpanCount         int                    `json:"ChildSpanCount"`
	Resource               []Resource             `json:"Resource"`
	InstrumentationLibrary InstrumentationLibrary `json:"InstrumentationLibrary"`
}

type SpanContext

type SpanContext struct {
	TraceID    string `json:"TraceID"`
	SpanID     string `json:"SpanID"`
	TraceFlags string `json:"TraceFlags"`
	TraceState string `json:"TraceState"`
	Remote     bool   `json:"Remote"`
}

type Status

type Status struct {
	Code        string `json:"Code"`
	Description string `json:"Description"`
}

type Value

type Value struct {
	Type  string `json:"Type"`
	Value string `json:"Value"`
}

type ZipkinTrace

type ZipkinTrace struct {
	TraceID     string                  `json:"traceId"`
	ParentID    string                  `json:"parentId"`
	ID          string                  `json:"id"`
	Name        string                  `json:"name"`
	Timestamp   int64                   `json:"timestamp"`
	Duration    int64                   `json:"duration"`
	Tags        map[string]string       `json:"tags"`
	Annotations []ZipkinTraceAnnotation `json:"annotations"`
}

type ZipkinTraceAnnotation

type ZipkinTraceAnnotation struct {
	Timestamp int64  `json:"timestamp"`
	Value     string `json:"value"`
}

Jump to

Keyboard shortcuts

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