Improve opentracing and logging for to-device message handling.