ghostwriter icon indicating copy to clipboard operation
ghostwriter copied to clipboard

Suppress tracing while tracing

Open kuzuk opened this issue 7 years ago • 1 comments

Feature request: in the code handling tracers, suppress 'tracing while tracing'. That is: tracing instrumentation triggered while already tracing should not be followed on.

E.g. when entering a method, toString or other methods can often be called to serialize the parameter list for logging. This toString() call and methods it calls should not in turn cause tracing.

I propose setting this suppression on always, without option to disable it because I see no use-case where 'tracing while tracing' makes sense.

kuzuk avatar Sep 27 '17 06:09 kuzuk

Hi @kuzuk, This is definitely a bug, so I agree that it needs to be the "default" behavior. The issue #44 will improve the situation of this as well. This might be more of an issue with the tracer runtime (https://github.com/GoodGrind/ghostwriter-tracer) though. Anyways, I have to analyze how to tackle this the best way. Currently, at compile time we don't know whether a method call leads to already "traced" code or not.

snorbi07 avatar Oct 02 '17 07:10 snorbi07