jaeger

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jaeger

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

func New

func New(name string, url string, options ...Option) Jaeger

func (Jaeger) MarshalJSON

func (datasource Jaeger) MarshalJSON() ([]byte, error)

func (Jaeger) Name

func (datasource Jaeger) Name() string

type Option

type Option func(datasource *Jaeger)

func BasicAuth

func BasicAuth(username string, password string) Option

BasicAuth configures basic authentication for this datasource.

func Default

func Default() Option

Default configures this datasource to be the default one.

func ForwardCookies

func ForwardCookies(cookies ...string) Option

ForwardCookies configures a list of cookies that should be forwarded to the datasource.

func ForwardOauthIdentity

func ForwardOauthIdentity() Option

ForwardOauthIdentity forward the user's upstream OAuth identity to the data source (Their access token gets passed along).

func SkipTLSVerify

func SkipTLSVerify() Option

SkipTLSVerify disables verification of SSL certificates.

func Timeout

func Timeout(timeout time.Duration) Option

Timeout sets the timeout for HTTP requests.

func TraceToLogs added in v0.20.6

func TraceToLogs(logsDatasourceUID string, options ...TraceToLogsOption) Option

TraceToLogs defines how to navigate from a trace span to the selected datasource logs.

func WithCertificate

func WithCertificate(certificate string) Option

WithCertificate sets a self-signed certificate that can be verified against.

func WithCredentials

func WithCredentials() Option

WithCredentials joins credentials such as cookies or auth headers to cross-site requests.

func WithNodeGraph

func WithNodeGraph() Option

WithNodeGraph enables the Node Graph visualization in the trace viewer.

type TraceToLogsOption added in v0.20.6

type TraceToLogsOption func(settings map[string]interface{})

func FilterBySpan added in v0.20.6

func FilterBySpan() TraceToLogsOption

FilterBySpan filters logs by Trace ID. Appends '|=<trace id>' to the query.

func FilterByTrace added in v0.20.6

func FilterByTrace() TraceToLogsOption

FilterByTrace filters logs by Trace ID. Appends '|=<trace id>' to the query.

func SpanEndShift added in v0.20.6

func SpanEndShift(shift time.Duration) TraceToLogsOption

SpanEndShift shifts the start time of the span. Default 0 (Time units can be used here, for example: 5s, 1m, 3h)

func SpanStartShift added in v0.20.6

func SpanStartShift(shift time.Duration) TraceToLogsOption

SpanStartShift shifts the start time of the span. Default 0 (Time units can be used here, for example: 5s, 1m, 3h)

func Tags added in v0.20.6

func Tags(tags ...string) TraceToLogsOption

Tags defines tags that will be used in the Loki query. Default tags: 'cluster', 'hostname', 'namespace', 'pod'.

Jump to

Keyboard shortcuts

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