all the changes
Build and Publish / Metadata (push) Successful in 2s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m23s

This commit is contained in:
mats committed 2026-09-19 23:25:59 +02:00
1 parent 94f30165f9
commit f30adf05af
35 files changed
+2979 -1607

No files matched your search

+16 -2
View File
@@ -37,7 +37,14 @@ func extractSpanErrors(tracker *issues.Tracker, td ptrace.Traces, timestamp int6
service := spanServiceName(rs.Resource(), span)
title := spanErrorTitle(span)
found = true
tracker.Record("span_error", service, title, spanSample(span, rs.Resource(), timestamp, title))
occurrenceTimestamp := span.StartTimestamp()
if occurrenceTimestamp == 0 {
occurrenceTimestamp = span.EndTimestamp()
}
if occurrenceTimestamp == 0 {
occurrenceTimestamp = pcommon.Timestamp(timestamp)
}
tracker.Record("span_error", service, title, spanSample(span, rs.Resource(), int64(occurrenceTimestamp), title))
}
}
}
@@ -102,7 +109,14 @@ func extractLogErrors(tracker *issues.Tracker, ld plog.Logs, timestamp int64) bo
title := logErrorTitle(record)
found = true
kind := "log_error"
sample := logSample(record, rl.Resource(), timestamp, title)
occurrenceTimestamp := record.Timestamp()
if occurrenceTimestamp == 0 {
occurrenceTimestamp = record.ObservedTimestamp()
}
if occurrenceTimestamp == 0 {
occurrenceTimestamp = pcommon.Timestamp(timestamp)
}
sample := logSample(record, rl.Resource(), int64(occurrenceTimestamp), title)
if attrString(record.Attributes(), "source") == "frontend" {
kind = "frontend_error"
sample.URL = attrString(record.Attributes(), "browser.url")