metrics

package
v0.17.15 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAndServe added in v0.17.13

func RegisterAndServe(server *grpc.Server, listener net.Listener, enablePprof bool)

Used ONLY for testing

func RegisterListenAndServe

func RegisterListenAndServe(server *grpc.Server, listenAddr string, enablePprof bool)

func SetupTracer

func SetupTracer(ctx context.Context) func()

Fractions >= 1 will always sample. Fractions < 0 are treated as zero. To respect the parent trace's `SampledFlag`, the `TraceIDRatioBased` sampler should be used as a delegate of a `Parent` sampler.

Expected usage:

defer metrics.SetupTracer(ctx)()

func StreamServerInterceptor added in v0.17.13

func StreamServerInterceptor() grpc.StreamServerInterceptor

func UnaryServerInterceptor added in v0.17.13

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

Types

This section is empty.

Jump to

Keyboard shortcuts

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