In-fiber microchannel device filled with a carbon