Add logging metadata in a way that is lager-compatible.