trace_events: respect inspect() depth
This commit causes the Tracing
class to account for util.inspect()
depth.
Similar to #27983. After this commit, all of these cases in core are handled.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines