datadog-grpc-trace-example
datadog-grpc-trace-example copied to clipboard
gRPC Tracing example with datadog go tracer
Datadog gRCP Tracing Example
This repo shows you how to trace gRPC with Datadog APM (go tracer).
Instrumentation
Client Side
conn, err := grpc.Dial(
address,
grpc.WithInsecure(),
grpc.WithUnaryInterceptor(
grpctrace.UnaryClientInterceptor(datadogAPMServiceName, tracer.DefaultTracer),
),
)
You can see the details here: greeter_client/main.go
Server Side
s := grpc.NewServer(
grpc.UnaryInterceptor(
grpctrace.UnaryServerInterceptor(datadogAPMServiceName, tracer.DefaultTracer),
),
)
You can see the details here: greeter_server/main.go
Screenshots
