Documentation ¶
Index ¶
- Constants
- func GetHTTPMux() *http.ServeMux
- func InjectGrpcClientTrace(opts ...grpc.DialOption) []grpc.DialOption
- func InjectGrpcServerTrace(opts ...grpc.ServerOption) []grpc.ServerOption
- func RegisterGatherer(g pclient.Gatherer)
- func Restart() error
- func Start() error
- func Stop()
- func TracingEnabled() bool
- type Sampling
Constants ¶
View Source
const (
// PrometheusMetricsPath is the URL path for exposing metrics to Prometheus.
PrometheusMetricsPath = "/metrics"
)
View Source
const (
// ServiceName is our service name in external tracing and metrics services.
ServiceName = "CRI-RM"
)
Variables ¶
This section is empty.
Functions ¶
func GetHTTPMux ¶
GetHTTPMux returns our HTTP request mux for external services.
func InjectGrpcClientTrace ¶
func InjectGrpcClientTrace(opts ...grpc.DialOption) []grpc.DialOption
InjectGrpcClientTrace injects gRPC dial options for instrumentation if necessary.
func InjectGrpcServerTrace ¶
func InjectGrpcServerTrace(opts ...grpc.ServerOption) []grpc.ServerOption
InjectGrpcServerTrace injects gRPC server options for instrumentation if necessary.
func RegisterGatherer ¶
RegisterGatherer registers a new prometheus Gatherer.
func TracingEnabled ¶
func TracingEnabled() bool
TracingEnabled returns true if the Jaeger tracing sampler is not disabled.
Types ¶
type Sampling ¶
type Sampling float64
Sampling defines how often trace samples are taken.
func (Sampling) MarshalJSON ¶
MarshalJSON is the JSON marshaller for Sampling values.
func (*Sampling) UnmarshalJSON ¶
UnmarshalJSON is the JSON unmarshaller for Sampling values.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.