Add trace when sending requests to the core.

in addition to this pull request, should I also make the core allow to get no trace or no measure?