Skip to content

spesnova/datadog-grpc-trace-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

2017-09-11 17 33 35 2017-09-11 17 33 52 2017-09-11 17 33 56 2017-09-11 17 34 01 2017-09-11 17 34 10

Resources

About

gRPC Tracing example with datadog go tracer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published