This commit is contained in:
mats committed 2026-09-20 10:07:25 +02:00
1 parent 8824af8699
commit 8de4a2e010
3 files changed
+22 -3

No files matched your search

+10
View File
@@ -31,6 +31,10 @@ type event struct {
ExceptionType string `json:"exceptionType,omitempty"`
Message string `json:"messageNormalized,omitempty"`
StackSignature string `json:"stackSignature,omitempty"`
SpanKind uint8 `json:"spanKind,omitempty"`
PeerIPSource string `json:"peerIpSource,omitempty"`
EdgePeerSource string `json:"edgePeerSource,omitempty"`
EdgeService string `json:"edgeService,omitempty"`
PatternSignature string `json:"patternSignature"`
}
@@ -167,6 +171,12 @@ func features(item event) map[string]struct{} {
add("exception", item.ExceptionType)
add("message", item.Message)
add("stack", item.StackSignature)
if item.SpanKind > 0 {
add("spanKind", strconv.Itoa(int(item.SpanKind)))
}
add("peerSource", item.PeerIPSource)
add("edgePeerSource", item.EdgePeerSource)
add("edgeService", item.EdgeService)
return result
}