Uploaded image for project: 'CKI Project'
  1. CKI Project
  2. CKI-6525

service_metrics/Sentry: KeyError: type

      Since Jan 26, the Sentry API has started failing from a missing key `issue["metadata"]["type"]`

      ```

      1. cki/cki_tools/service_metrics/metrics/sentry.py in update_project_issues at line 99
      1. Only get issues which have occurred in the last 24 hours.
        issues = self._apis[instance_url].get_project_issues(project['id'], stats_period='24h')
        for issue in issues:
      2. The issue['title'] is truncated; this way we get the whole thing.
        title = f' {issue["metadata"]["type"]}

        :

        {issue["metadata"]["value"]}

        '
        counter = self.metric_sentry_issue_event_count.labels(
        ```

      Jira: CKI-6525

              Unassigned Unassigned
              cki-jira-sprinter-bot CKI Jira Sprinter Bot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: