integrate trace and metrics into the base project