Description
We have been unconditionally serializing spans to JSON, but only logging them when TRACE logging is enabled. Profiling has revealed that this is a CPU bottleneck. Let's put "if" statement guards around the log messages to avoid doing this serialization unless it is really useful.