Add metrics to trace when limits exceeded