MCPcopy Index your code
hub / github.com/simstudioai/sim / buildMetadata

Function buildMetadata

apps/sim/connectors/sentry/sentry.ts:246–254  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

244 * getDocument so tag values stay consistent regardless of which path produced the doc.
245 */
246function 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

Callers 2

issueToStubFunction · 0.70
sentry.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected