Documentation ¶
Index ¶
- type Option
- func BasicAuth(username string, password string) Option
- func Default() Option
- func ForwardCookies(cookies ...string) Option
- func ForwardOauthIdentity() Option
- func SkipTLSVerify() Option
- func Timeout(timeout time.Duration) Option
- func TraceToLogs(logsDatasourceUID string, options ...TraceToLogsOption) Option
- func WithCertificate(certificate string) Option
- func WithCredentials() Option
- func WithNodeGraph() Option
- type Tempo
- type TraceToLogsOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(datasource *Tempo)
func ForwardCookies ¶
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 TraceToLogs ¶
func TraceToLogs(logsDatasourceUID string, options ...TraceToLogsOption) Option
TraceToLogs defines how to navigate from a trace span to the selected datasource logs.
func WithCertificate ¶
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 Tempo ¶
type Tempo struct {
// contains filtered or unexported fields
}
func (Tempo) MarshalJSON ¶
type TraceToLogsOption ¶
type TraceToLogsOption func(settings map[string]interface{})
func FilterBySpan ¶
func FilterBySpan() TraceToLogsOption
FilterBySpan filters logs by Trace ID. Appends '|=<trace id>' to the query.
func FilterByTrace ¶
func FilterByTrace() TraceToLogsOption
FilterByTrace filters logs by Trace ID. Appends '|=<trace id>' to the query.
func SpanEndShift ¶
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 ¶
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 ¶
func Tags(tags ...string) TraceToLogsOption
Tags defines tags that will be used in the Loki query. Default tags: 'cluster', 'hostname', 'namespace', 'pod'.