otelgrpc

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnaryServerInterceptor

func UnaryServerInterceptor(meterProvider metric.MeterProvider) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptor that records OpenTelemetry metrics for gRPC. It follows [OTel 1.22.0](https://opentelemetry.io/docs/specs/otel/metrics/semantic_conventions/rpc-metrics/) specification except for the unit of rpc.server.duration, which converts from milliseconds to microseconds for high resolution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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