jaeger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JAEGER_SEARCH_ENDPOINT = "%s/api/traces/%s"
	JAEGER_DEFAULT_TIMEOUT = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IJaegerTraceRepository

type IJaegerTraceRepository interface {
	Get(traceId trigger.TraceId) (*JaegerTraceDTO, error)
}

type JaegerConfig

type JaegerConfig struct {
	BaseURL string `mapstructure:"base_url"` // "http://localhost:16686"
}

func NewJaegerConfig

func NewJaegerConfig(v *viper.Viper) *JaegerConfig

type JaegerProcess

type JaegerProcess struct {
	ServiceName string      `json:"serviceName"`
	Tags        []JaegerTag `json:"tags"`
}

type JaegerReference

type JaegerReference struct {
	RefType string `json:"refType"`
	TraceId string `json:"traceID"`
	SpanId  string `json:"spanID"`
}

type JaegerSpanDTO

type JaegerSpanDTO struct {
	TraceId       string            `json:"traceID"`
	SpanId        string            `json:"spanID"`
	OperationName string            `json:"operationName"`
	References    []JaegerReference `json:"references"`
	StartTimeUs   int64             `json:"startTime"`
	DurationUs    int64             `json:"duration"`
	Tags          []JaegerTag       `json:"tags"`
	Logs          []any             `json:"logs"`
	ProcessID     string            `json:"processID"`
	Warnings      []string          `json:"warnings"`
}

type JaegerTag

type JaegerTag struct {
	Key   string `json:"key"`
	Type  string `json:"type"`
	Value any    `json:"value"`
}

type JaegerTraceAdapter

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

func NewJaegerTraceAdapter

func NewJaegerTraceAdapter(repository IJaegerTraceRepository) (*JaegerTraceAdapter, error)

func (*JaegerTraceAdapter) Fetch

func (j *JaegerTraceAdapter) Fetch(traceId trigger.TraceId, timeout time.Duration, retryDelay time.Duration, lastSpan *span.ExpectedSpan) (*trace.Trace, error)

type JaegerTraceDTO

type JaegerTraceDTO struct {
	TraceId   string                   `json:"traceID"`
	Spans     []JaegerSpanDTO          `json:"spans"`
	Processes map[string]JaegerProcess `json:"processes"`
	Warnings  []string                 `json:"warnings"`
}

type JaegerTraceRepository

type JaegerTraceRepository struct {
	BaseURL string
	Client  *http.Client
	// contains filtered or unexported fields
}

func NewJaegerTraceRepository

func NewJaegerTraceRepository(config *JaegerConfig, ctx context.Context) *JaegerTraceRepository

func (*JaegerTraceRepository) Get

type JaegerTraceResponse

type JaegerTraceResponse struct {
	Data   []JaegerTraceDTO `json:"data"`
	Total  int              `json:"total"`
	Limit  int              `json:"limit"`
	Offset int              `json:"offset"`
	Errors any              `json:"errors"`
}

Jump to

Keyboard shortcuts

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