addDetailedMetricsInner function

Add detailed metrics