issue tracker

This commit is contained in:
mats committed 2026-09-17 20:42:19 +00:00
1 parent c20a0b77f3
commit 9620e3bfa6
4 files changed
+14 -4

No files matched your search

+8 -1
View File
@@ -60,11 +60,18 @@ func extractLogErrors(tracker *issues.Tracker, ld plog.Logs, timestamp int64) {
}
title := logErrorTitle(record)
tracker.Record("log_error", service, title, issues.Sample{
kind := "log_error"
var url string
if attrString(record.Attributes(), "source") == "frontend" {
kind = "frontend_error"
url = attrString(record.Attributes(), "browser.url")
}
tracker.Record(kind, service, title, issues.Sample{
Timestamp: timestamp,
TraceID: idString(record.TraceID()),
SpanID: idString(record.SpanID()),
Message: title,
URL: url,
})
}
}