add Preallocate callback

add the Preallocate callback to the Tracer service