add missing inline in metrics.h