> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-error-tracking/event-explorer/critical-events.md).

# Critical Events

Add a condition to label an event as critical.

You can add a condition that specifies when an event should be marked as critical. When an event occurs and matches the condition that you set, it will be labeled as **CRITICAL** in the Events page.

### Add a condition <a href="#add-a-condition" id="add-a-condition"></a>

To add a condition:

1. In your Harness project, navigate to **Continuous Error Tracking**, expand **PROJECT SETUP**, and then select either **Tokens** or **Agents**.
2. In the top right corner of the Project Code Error Settings page, select **Critical Events**.
3. On the Critical Event Settings page, **+ Add Condition**.
4. Select an **event type**, **entry point**, and optional **location**.

   You can choose multiple events. If you select caught exception, uncaught exception, or swallowed exception as event type, then you must also select an **exception type**.
5. Select the check mark (✔️) to save the condition. The condition is added to the conditions list on the Critical Event Settings page.

   ![Add a condition for critical event](https://3013743899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnhHTQRxOUNkfkHZgaV62%2Fuploads%2Fgit-blob-b5138d7d24a9d2b9173aac7ab519920c84f62432%2Fcritical-event-condition.png?alt=media)

When an event occurs that meets the condition you specified, it is labeled as **CRITICAL** on the Events page.

![Critical event](https://3013743899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnhHTQRxOUNkfkHZgaV62%2Fuploads%2Fgit-blob-d88941232e1babe0e7d08c67a2052433dd29b5a0%2Fcritical-event.png?alt=media)

### Delete a condition <a href="#delete-a-condition" id="delete-a-condition"></a>

To delete a condition:

1. On the Critical Events Settings page, locate the condition that you want to delete and select the delete icon.

{% @harness-feedback/feedback %}
