feat: propagate alert forwarding trace ids
This commit is contained in:
@@ -53,9 +53,10 @@ func BuildReplayRawEventPayload(ev models.LogEvent) (RawEventIngestBody, error)
|
||||
labels["resource_uid"] = resourceUID
|
||||
labels["resource_category"] = category
|
||||
labels["service_identity"] = identity
|
||||
sourceEventKey := fmt.Sprintf("logs:replay:%d:%d", ev.ID, now.UnixNano())
|
||||
return RawEventIngestBody{
|
||||
SourceType: sourceType,
|
||||
SourceEventKey: fmt.Sprintf("logs:replay:%d:%d", ev.ID, now.UnixNano()),
|
||||
SourceEventKey: sourceEventKey,
|
||||
State: "firing",
|
||||
ResourceUID: resourceUID,
|
||||
EventTime: now,
|
||||
@@ -69,6 +70,7 @@ func BuildReplayRawEventPayload(ev models.LogEvent) (RawEventIngestBody, error)
|
||||
},
|
||||
ParseStatus: "parsed",
|
||||
RawPayload: rawBytes,
|
||||
TraceID: ensureAlertTraceID("", sourceEventKey),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user