Skip to content

Commit

Permalink
NIFI-13790: Report SEND provenance event in PublishKafka
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyb149 committed Oct 4, 2024
1 parent af31d98 commit 6a4af82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ private void routeResults(final ProcessSession session, final List<FlowFileResul

final Relationship relationship = flowFileResult.getExceptions().isEmpty() ? REL_SUCCESS : REL_FAILURE;
session.transfer(flowFile, relationship);
final int numTopics = flowFileResult.getSentPerTopic().keySet().size();
final String topicList = String.join(",", flowFileResult.getSentPerTopic().keySet().toArray(new String[numTopics]));
session.getProvenanceReporter().send(flowFile, "kafka://" + topicList);
}
}

Expand Down

0 comments on commit 6a4af82

Please sign in to comment.