diff options
author | John Cai <jcai@gitlab.com> | 2020-02-10 21:23:48 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2020-02-10 21:23:48 +0300 |
commit | 71f8d0e90009bff93f9ad804bd5e77abcaf3c927 (patch) | |
tree | f78a600abedde83db7a1259eefeedd5bdbaa3474 | |
parent | 4c854bf270703de52af43c551d85bc30afeb869e (diff) |
Add tracing to praefectjc-add-praefect-tracing
-rw-r--r-- | internal/praefect/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/praefect/server.go b/internal/praefect/server.go index ceb1b8a76..3702ebf75 100644 --- a/internal/praefect/server.go +++ b/internal/praefect/server.go @@ -77,6 +77,7 @@ func NewServer(c *Coordinator, repl ReplMgr, grpcOpts []grpc.ServerOption, l *lo cancelhandler.Stream, // Should be below LogHandler grpctracing.StreamServerTracingInterceptor(), auth.StreamServerInterceptor(conf.Auth), + grpctracing.StreamServerTracingInterceptor(), // Panic handler should remain last so that application panics will be // converted to errors and logged panichandler.StreamPanicHandler, @@ -91,6 +92,7 @@ func NewServer(c *Coordinator, repl ReplMgr, grpcOpts []grpc.ServerOption, l *lo cancelhandler.Unary, // Should be below LogHandler grpctracing.UnaryServerTracingInterceptor(), auth.UnaryServerInterceptor(conf.Auth), + grpctracing.UnaryServerTracingInterceptor(), // Panic handler should remain last so that application panics will be // converted to errors and logged panichandler.UnaryPanicHandler, |