Documentation
¶
Index ¶
- func RegisterAndServe(server *grpc.Server, listener net.Listener, enablePprof bool)
- func RegisterListenAndServe(server *grpc.Server, listenAddr string, enablePprof bool)
- func SetupTracer(ctx context.Context) func()
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAndServe ¶ added in v0.17.13
Used ONLY for testing
func RegisterListenAndServe ¶
func SetupTracer ¶
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.
Click to show internal directories.
Click to hide internal directories.