Registry /
observability / contrib-instrumentation-google-golang-org-grpc
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
otelgrpc
✓ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
Creates a gRPC client connection with OpenTelemetry interceptor.
package main
import (
"fmt"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"
)
func main() {
conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure(), grpc.WithUnaryInterceptor(otelgrpc.UnaryClientInterceptor()))
if err != nil {
panic(err)
}
defer conn.Close()
fmt.Println("gRPC client with OpenTelemetry interceptor created")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.11.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.