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 JaegerReference ¶
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 JaegerTraceAdapter ¶
type JaegerTraceAdapter struct {
// contains filtered or unexported fields
}
func NewJaegerTraceAdapter ¶
func NewJaegerTraceAdapter(repository IJaegerTraceRepository) (*JaegerTraceAdapter, 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 ¶
func (r *JaegerTraceRepository) Get(traceId trigger.TraceId) (*JaegerTraceDTO, error)
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"`
}
Click to show internal directories.
Click to hide internal directories.