---
title: "Issue Types"
url: https://develop.sentry.dev/backend/issue-platform/issue-types/
---

# Issue Types | Sentry Docs

An issue type is a way to group related issues together. Examples include `metric_issue`, `performance_n_plus_one_api_calls`, etc.

## [Register an Issue Type](https://develop.sentry.dev/backend/issue-platform/issue-types.md#register-an-issue-type)

To register a new issue type you need to subclass [`GroupType`](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L227-L264)

When registering the class, set the following required attributes on the class:

* `type_id`: int
  * A unique integer to identify your issue type.
* `slug`: str
  * A unique slug to identify your issue type. Used to search by issue type in the issue stream.
* `description`: str
  * A human-readable description of your issue type.
* `category`: int
  * Categories are used to group related issue types together. Use one of the existing categories defined in [this enum](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L35-L87) or add a new one. Don't use the categories marked as deprecated (`PERFORMANCE`, `PROFILE`, `CRON`, `REPLAY`, `UPTIME`, `METRIC_ALERT`).

You may also set these optional attributes:

* `released`: bool
  * Whether this issue type has been released to all customers. See [Releasing your issue type](https://develop.sentry.dev/backend/issue-platform/issue-types.md#releasing-your-issue-type).

* `noise_config`: [NoiseConfig](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L192-L199) | None

  * A `NoiseConfig` that allows you to set policy on how many times a fingerprint must occur in a period of time before an issue is created. NoiseConfig has two attributes:

    * `ignore_limit`: int
      * How many occurrences need to occur before we create a new issue.
    * `expiry_time`: timedelta
      * The period of time the occurrences must occur in before we reset the count.

* `enable_auto_resolve`: bool
  * Whether this issue type can be resolved automatically after a number of days with no events. The auto\_resolve window is configurable in each project's settings. By default this attribute is set to true.

* `enable_escalation_detection`: bool
  * Whether this issue type can escalate using the [Escalating Issues Algorithm](https://docs.sentry.io/product/issues/states-triage/escalating-issues/). By default this attribute is set to true.

Here's an example issue type:

```python
@dataclass(frozen=True)
class ProfileFileIOGroupType(GroupType):
    type_id = 2001
    slug = "profile_file_io_main_thread"
    description = "File I/O on Main Thread"
    category = GroupCategory.MOBILE.value
```

and here's one with `noise_config` configured

```python
@dataclass(frozen=True)
class ProfileFileIOGroupType(GroupType):
    type_id = 2001
    slug = "profile_file_io_main_thread"
    description = "File I/O on Main Thread"
    category = GroupCategory.MOBILE.value
    noise_config = NoiseConfig(5, timedelta(days=2))
```

## [Releasing your issue type](https://develop.sentry.dev/backend/issue-platform/issue-types.md#releasing-your-issue-type)

The issue platform provides functionality to help release your new issue type in a controlled way. There are 3 feature flags that are used to release an issue type:

* Ingest - This controls whether we'll accept or drop issues of this type in our consumer
* Post processing - This controls whether we'll pass the issue along to post processing. If disabled, then issues will be created but no notifications will be sent. This can be helpful for testing out what issues look like before release. *Note:* Any issues created this way will not send new issue notifications after the flag is enabled, since they already exist. In the future, if there is demand we might provide a way to remove all test versions of a new issue type.
* UI - This controls whether the issue type will appear in the issue list and elsewhere in the ui.

These flags are all controlled via flagpole and set via options automator. To get the base values for all of these for easy pasting into flagpole, run `sentry createissueflag --slug=<your_group_slug> --owner=<your_team_name>`. The results of this can be directly pasted into flagpole.yml.

Once your issue type is fully released, and you want it to go out to self-hosted and single tenant you can set `released = True` on your GroupType. This allows it to be released everywhere, and removes the feature flags and options. Generally we recommend doing this after your issue type has been in GA for long enough to verify that it's working as intended.

---

Find other pages: [Sitemap](https://develop.sentry.dev/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://develop.sentry.dev/llms.txt) gives an overview with guidance for agents.
