jon-wei commented on code in PR #13548:
URL: https://github.com/apache/druid/pull/13548#discussion_r1053757239
##########
processing/src/main/java/org/apache/druid/segment/incremental/ParseExceptionHandler.java:
##########
@@ -76,27 +86,51 @@ public void handle(@Nullable ParseException e)
rowIngestionMeters.incrementProcessedWithError();
} else {
rowIngestionMeters.incrementUnparseable();
- }
+ if (emitter != null) {
+ DateTime timeOfException = new DateTime(e.getTimeOfExceptionMillis());
- logParseExceptionHelper(e);
-
- if (savedParseExceptionReports != null) {
- ParseExceptionReport parseExceptionReport = new ParseExceptionReport(
- e.getInput(),
- e.isFromPartiallyValidRow() ? "processedWithError" : "unparseable",
- e.isFromPartiallyValidRow()
- ? ((UnparseableColumnsParseException) e).getColumnExceptionMessages()
- : ImmutableList.of(e.getMessage()),
- e.getTimeOfExceptionMillis()
- );
- savedParseExceptionReports.add(parseExceptionReport);
- }
+ ImmutableMap<String, Object> extraData = new
ImmutableMap.Builder().putAll(taskMetadata)
+
.put("input", e.getInput())
+
.put("detailMessage", e.getMessage())
+
.build();
+ Event event = new AlertEvent(
+ timeOfException,
+ "peon",
Review Comment:
In elsewhere in the code, it seems like `ServiceEmitter` would get
constructed with the service/host in `EmitterModule`, and:
```
public void emit(ServiceEventBuilder builder)
{
emit(builder.build(serviceDimensions));
}
```
would be called to attach those dimensions to the event
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]