Only add profiling info if the root node matches sample rate
Make sample rate configurable
Fixed logger bug in tests
Only add profiling info if the root node matches sample rate
Make sample rate configurable
Fixed logger bug in tests