slo

package
v0.234.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceSLOMiddlewareName = "slo"

Variables

Functions

func Middleware

func Middleware() httpclient.Middleware

Middleware captures duration of requests to external services and the source of errors

func RoundTripper

func RoundTripper(opts httpclient.Options, next http.RoundTripper) http.RoundTripper

RoundTripper captures duration of requests to external services and the source of errors

func SanitizeLabelName

func SanitizeLabelName(name string) (string, error)

SanitizeLabelName removes all invalid chars from the label name. If the label name is empty or contains only invalid chars, it will return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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