setHookSuccess(trackedItem) {
    trackedItem.meta.instrumented = true
    trackedItem.meta.didError = false
  }
Update the metadata for a tracked item to indicate that the hook succeeded.

@param {TrackedItem} trackedItem The item to update.