megaease / easemesh

A service mesh implementation for connecting, control, and observe services in spring-cloud.
https://megaease.com/easemesh
Apache License 2.0
505 stars 61 forks source link

ShadowService Topology graph #105

Open zouyingjie opened 2 years ago

zouyingjie commented 2 years ago

The service name of the application created by shadow service controller is the same as the source service, so it cannot be clearly identified on the topology graph. In the topology diagram, we can only distinguish whether the shadow service is running normally through the different middleware used by the service.

image

The expected result is that when the new ShadowService is created and traffic is generated, the corresponding nodes can also be seen on the topology graph like this. image

For this purpose, I think we need:

  1. The shadow service controller injects the serviceName environment variable when generating the service deployment.
  2. JavaAgent modifies the tracing log based on the env value of the serviceName.