all the changes
This commit is contained in:
1 parent
94f30165f9
commit
f30adf05af
35 files changed
+2979
-1607
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user