#685·viztracer

When stack_depth=0, log_sparse does not respond to the tracer's log_func_args and log_func_retval parameters

Author: GuationCreated Jul 23, 2026Updated Sep 17, 2026

I noticed that when stack_depth=0, log_sparse constructs an event on its own without checking whether log_func_args and log_func_retval are enabled.

https://github.com/gaogaotiantian/viztracer/blob/a16673e27d432444aa26efd868c78c9eeec9734c/src/viztracer/decorator.py#L112-L133

Source: gaogaotiantian/viztracer