fix
This commit is contained in:
+3
-2
@@ -1,3 +1,4 @@
|
||||
// Package main implements the Go OTel Debugger server.
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -46,8 +47,7 @@ func (h *connStatsHandler) TagConn(ctx context.Context, info *stats.ConnTagInfo)
|
||||
}
|
||||
|
||||
func (h *connStatsHandler) HandleConn(ctx context.Context, s stats.ConnStats) {
|
||||
switch s.(type) {
|
||||
case *stats.ConnEnd:
|
||||
if _, ok := s.(*stats.ConnEnd); ok {
|
||||
log.Printf("gRPC CONN [CLOSED]")
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,7 @@ func (h *connStatsHandler) HandleConn(ctx context.Context, s stats.ConnStats) {
|
||||
func (h *connStatsHandler) TagRPC(ctx context.Context, info *stats.RPCTagInfo) context.Context {
|
||||
return ctx
|
||||
}
|
||||
|
||||
func (h *connStatsHandler) HandleRPC(ctx context.Context, s stats.RPCStats) {}
|
||||
|
||||
type traceService struct {
|
||||
|
||||
Reference in New Issue
Block a user