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,
})
}
}
+3
View File
@@ -23,6 +23,9 @@ type Sample struct {
TraceID string `json:"traceId,omitempty"`
SpanID string `json:"spanId,omitempty"`
Message string `json:"message"`
// URL is the page URL an occurrence happened on, populated only for
// browser-originated (otel-rum) errors.
URL string `json:"url,omitempty"`
}
// Issue is a deduplicated group of related errors, fingerprinted by kind,