You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/09/07 08:15:05 UTC
[GitHub] chetanmeh commented on a change in pull request #4006: Adjust
activation metric schema to reflect reality.
chetanmeh commented on a change in pull request #4006: Adjust activation metric schema to reflect reality.
URL: https://github.com/apache/incubator-openwhisk/pull/4006#discussion_r215880148
##########
File path: core/invoker/src/main/scala/whisk/core/invoker/InvokerReactive.scala
##########
@@ -130,30 +130,41 @@ class InvokerReactive(
s"posted ${if (recovery) "recovery" else "completion"} of activation ${activationResult.activationId}")
}
}
- // Potentially sends activation metadata to kafka if user events are enabled
- UserEvents.send(
- producer, {
+
+ if (UserEvents.enabled) {
Review comment:
Minor nit. Currently [coverage for this code path is nil][1]. May be we refactor this to a utility object and test the code here. Or enable user events for test setup
[1]: https://codecov.io/gh/apache/incubator-openwhisk/pull/4006/diff#D1-134
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services