feat kafka

This commit is contained in:
2026-01-23 21:22:58 +08:00
parent 1edebb439c
commit 4d661d0813
9 changed files with 296 additions and 7 deletions

View File

@@ -34,8 +34,7 @@ func (s *Base) LoggingInterceptor(ctx context.Context, req interface{}, info *gr
}
}
tracer := otel.Tracer(s.ServiceName)
_, span := tracer.Start(ctx, info.FullMethod)
_, span := otel.Tracer(s.ServiceName).Start(ctx, info.FullMethod)
defer span.End()
reqString := fmt.Sprintf("[usn:%v] method: %s, Request: %v", usn, info.FullMethod, req)