[ https://issues.apache.org/jira/browse/SCB-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306628#comment-16306628 ]
ASF GitHub Bot commented on SCB-126: ------------------------------------ wujimin commented on a change in pull request #468: [SCB-126] Add Consumer side event trigger for collect metrics data URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/468#discussion_r159114208 ########## File path: core/src/main/java/io/servicecomb/core/provider/consumer/InvokerUtils.java ########## @@ -72,18 +76,23 @@ public static Response innerSyncInvoke(Invocation invocation) { String.format("invoke failed, %s", invocation.getOperationMeta().getMicroserviceQualifiedName()); LOGGER.debug(msg, e); return Response.createConsumerFail(e); + } finally { + invocation.triggerFinishedEvent(); } } public static void reactiveInvoke(Invocation invocation, AsyncResponse asyncResp) { try { + triggerStartedEvent(invocation); ReactiveResponseExecutor respExecutor = new ReactiveResponseExecutor(); invocation.setResponseExecutor(respExecutor); invocation.next(asyncResp); } catch (Throwable e) { LOGGER.error("invoke failed, {}", invocation.getOperationMeta().getMicroserviceQualifiedName()); asyncResp.consumerFail(e); + } finally { + invocation.triggerFinishedEvent(); Review comment: seems we missed success /fail information ---------------------------------------------------------------- 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: us...@infra.apache.org > Add Consumer side event trigger for collect metrics data > -------------------------------------------------------- > > Key: SCB-126 > URL: https://issues.apache.org/jira/browse/SCB-126 > Project: Apache ServiceComb > Issue Type: Sub-task > Components: Java-Chassis > Reporter: yangyongzheng > Assignee: yangyongzheng > Fix For: java-chassis-1.0.0-m1 > > > Event trigger code must add in Consumer side in order to collect metrics data -- This message was sent by Atlassian JIRA (v6.4.14#64029)