buggregator / server

Buggregator is a lightweight, standalone server that offers a range of debugging features for PHP applications.
https://buggregator.dev/
Other
657 stars 24 forks source link

There is only 1 call in an event, and both Call graph and Flamechart are empty. (lumen + swoole) #249

Closed serqol closed 2 days ago

serqol commented 2 weeks ago

image

Here is sample of data that is being sent to server

,"ReflectionMethod::invoke==>Laravel\\Lumen\\Application::callTerminableMiddleware":{"ct":1,"wt":303,"cpu":303,"mu":25304,"pmu":0},"SwooleTW\\Http\\Server\\Sandbox::terminate==>ReflectionMethod::invoke":{"ct":1,"wt":303,"cpu":304,"mu":25936,"pmu":0},"main()==>SwooleTW\\Http\\Server\\Sandbox::terminate":{"ct":1,"wt":334,"cpu":334,"mu":32592,"pmu":0},"main()":{"ct":1,"wt":78886,"cpu":23451,"mu":3295368,"pmu":3121736},"Itb\\ServiceLocator\\Facade::get":{"ct":2,"wt":3,"cpu":4,"mu":528,"pmu":0},"Itb\\HttpClient\\Request::_instance":{"ct":1,"wt":5,"cpu":5,"mu":896,"pmu":0},"Itb\\HttpClient\\Request::withMethod":{"ct":1,"wt":0,"cpu":1,"mu":536,"pmu":0},"Itb\\HttpClient\\Request::withHeaders":{"ct":1,"wt":1,"cpu":2,"mu":536,"pmu":0},"Itb\\HttpClient\\Request::exec":{"ct":1,"wt":65547,"cpu":576,"mu":688,"pmu":1712},"Illuminate\\Http\\Request::session":{"ct":1,"wt":5,"cpu":5,"mu":536,"pmu":0}},"tags":[],"app_name":"Groups","hostname":"cb33cb57932c","date":1724751923}

So it appears to be all there, but all i see is overall event data:

http://localhost:8000/api/event/01919331-4d59-70c9-be7f-dac4d2061d70

{
    "uuid": "01919331-4d59-70c9-be7f-dac4d2061d70",
    "project": "default",
    "type": "profiler",
    "payload": {
        "app_name": "Groups",
        "date": 1724751366,
        "hostname": "cb33cb57932c",
        "peaks": {
            "cpu": 8114,
            "ct": 1,
            "mu": 554376,
            "pmu": 0,
            "wt": 56775
        },
        "profile_uuid": "01919331-4d59-70c9-be7f-dac4d2061d70",
        "tags": [],
        "total_edges": 799
    },
    "timestamp": 1724751367.5336
}

So it appears that buggerator server is ignoring all this data, only showing overall call stat. Server response is empty and 200 code.

Thanks for all the effort.

serqol commented 2 weeks ago

it appears that the problem was with base image. using

 image: ghcr.io/buggregator/server:latest

solved the problem. I suggest that default image should be latest, or it might confuse some people, like me. Thanks a lot for your software, товарищ