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

@param {TrackedItem} trackedItem The item to update.