Skip to content

Commit

Permalink
clickhouse logger: set correct event timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Feb 28, 2024
1 parent 7862db2 commit 4288efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bulkerapp/app/stream_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,5 @@ func (sc *StreamConsumerImpl) postEventsLog(message []byte, representation any,
object["status"] = "FAILED"
level = eventslog.LevelError
}
sc.eventsLogService.PostAsync(&eventslog.ActorEvent{eventslog.EventTypeProcessed, level, sc.destination.Id(), object})
sc.eventsLogService.PostAsync(&eventslog.ActorEvent{EventType: eventslog.EventTypeProcessed, Level: level, ActorId: sc.destination.Id(), Event: object})
}
2 changes: 1 addition & 1 deletion ingest/router_ingest_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (r *Router) IngestHandler(c *gin.Context) {
obj["status"] = "SKIPPED"
obj["error"] = "no destinations found for stream"
}
r.eventsLogService.PostAsync(&eventslog.ActorEvent{eventslog.EventTypeIncoming, eventslog.LevelInfo, eventsLogId, obj})
r.eventsLogService.PostAsync(&eventslog.ActorEvent{EventType: eventslog.EventTypeIncoming, Level: eventslog.LevelInfo, ActorId: eventsLogId, Event: obj})
IngestHandlerRequests(domain, "success", "").Inc()
}
}()
Expand Down

0 comments on commit 4288efb

Please sign in to comment.