Add type annotations to `synapse.logging.opentracing`.