* Collects the source-specific metadata fed to mapTags. Shared between the list stub and * getDocument so tag values stay consistent regardless of which path produced the doc.
(issue: SentryIssue)
| 244 | * getDocument so tag values stay consistent regardless of which path produced the doc. |
| 245 | */ |
| 246 | function buildMetadata(issue: SentryIssue): Record<string, unknown> { |
| 247 | return { |
| 248 | level: issue.level, |
| 249 | status: issue.status, |
| 250 | firstSeen: issue.firstSeen, |
| 251 | lastSeen: issue.lastSeen, |
| 252 | count: issue.count != null ? Number(issue.count) : undefined, |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Creates a lightweight document stub from a list entry. No per-issue API calls — the |
no outgoing calls
no test coverage detected