zhengyangyong commented on a change in pull request #555: [SCB-327] Update
metrics publish data module (Re-organized)
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/555#discussion_r170415468
##########
File path: core/src/main/java/org/apache/servicecomb/core/Invocation.java
##########
@@ -185,18 +185,18 @@ public String getMicroserviceQualifiedName() {
return operationMeta.getMicroserviceQualifiedName();
}
- public void triggerStartProcessingEvent() {
- this.startProcessingTime = System.nanoTime();
- EventUtils.triggerEvent(new InvocationStartProcessingEvent(
- operationMeta.getMicroserviceQualifiedName(), this.invocationType));
+ public void triggerStartExecutionEvent() {
+ if (InvocationType.PRODUCER.equals(invocationType)) {
+ this.startExecutionTime = System.nanoTime();
+ EventUtils.triggerEvent(new
InvocationStartExecutionEvent(operationMeta.getMicroserviceQualifiedName()));
Review comment:
OK , delete EventUtils and make EventBus as a singleton
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services