Add support for trace context, and print the PID on stderr messages