Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/389#discussion_r61669190
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
---
@@ -169,6 +174,7 @@ public void onTrigger(final ProcessContext context,
final ProcessSession session
return;
}
+ session.getProvenanceReporter().send(flowFile,
flowFile.getAttribute(HTTP_REQUEST_URI),
stopWatch.getElapsed(TimeUnit.MILLISECONDS));
--- End diff --
@markap14 I just updated the PR with the proposed approach (in my previous
comment), let me know if it is something more accurate.
Note: I changed URI for both Request and Response since I added a common
method usable from both processors. If it sounds OK to you, I'll update the
JIRA to reflect the change.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---