Add support for opentracing.