function addHandler(type, handler) {
  handlers[type] = handlers[type] || [];
  (handlers[type] ).push(handler);
}
Reset all instrumentation handlers.
This can be used by tests to ensure we have a clean slate of instrumentation handlers.