jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.42k stars 333 forks source link

Silk not showing overall and 0 for queries #675

Open nofalx opened 1 year ago

nofalx commented 1 year ago

I tried to use silk in one of my projects and could not make it work. I am using 2 databases with this project one of them is a timescale db.

I tried moving the middleware on all location before/after other middlewares but it didnt change. I also have django debug toolbar but I removed completely with no effect

All silk db tables are empty except for silk_request

I also tried to play with SILKY_PYTHON_PROFILER_RESULT_PATH however im not enabling the profiler and it made no difference if I changed it

Here are some logs:

[09/13/23 07:05:25] DEBUG    [DEBUG] - 2023-09-13 07:05:25,325 : process_request                                                                                                          middleware.py:107
                    DEBUG    [DEBUG] - 2023-09-13 07:05:25,328 : No maximum request body size is set, continuing.                                                                      model_factory.py:215
                    DEBUG    [DEBUG] - 2023-09-13 07:05:25,341 : Created new request model with pk 7517b193-5063-46f7-891f-82104ae4d85c                                                model_factory.py:256
                    INFO     [INFO] - 2023-09-13 07:05:25,503 : {"remote_address": "127.0.0.1", "x_forwarded_for": null, "cf_connecting_ip": null, "real_ip": "127.0.0.1", "user_agent":       logger.py:87
                             "PostmanRuntime/7.32.3", "request_method": "POST", "request_path": "/api/survey/token/manage/", "request_date": "2023-09-13T07:05:25.345408", "execution_time":               
                             158.32, "response_code": 201}    

and here is the screenshot

image

svb0866 commented 5 months ago

I am facing the same issue, I also use 2 databases. Can someone look at this issue?

Atlasfreak commented 4 months ago

I just faced the same issue when switching the whole website from sqlite to mariadb. Even reinstalling silk didn't fix it. Siwtching back to sqlite worked.