ankitshokeen opened a new pull request, #15590:
URL: https://github.com/apache/dubbo/pull/15590

   **Issue** 
   https://github.com/apache/dubbo/issues/15212
   
   ### Description
   
   introduces a new command to the Dubbo QoS module: discovery-timeline. This 
command improves transparency into the service discovery process by listing 
active provider services along with their last known metadata update times and 
registry sources. It is designed to help developers and operators quickly 
inspect the current discovery state without diving deep into logs or complex 
diagnostics.
   
   ### Benefits
   
   1. Providing a clear overview of all discovered services
   2. Displaying when each service was last reported via metadata
   3. Showing which registries are active and when they last refreshed
   4. Diagnosing service visibility or registration issues
   5. Monitoring refresh delays from registry sources
   6. Validating service registration during application startup or scaling 
events
   
   ### Command Overview
   
   Command: `discovery-timeline`
   
   Used Examples: ```
   discovery-timeline
   discovery-timeline service=DemoService
   discovery-timeline registry=zookeeper://localhost:2181
   discovery-timeline page=2 limit=5
   ```
   **Output Example**
   
   ```
   Discovery Timeline
   ------------------------------------------------------------
   Registry                      |Last Refresh
   ------------------------------------------------------------
   127.0.0.1:2181                |Mon Jul 28 01:15:12 IST 2025
   ------------------------------------------------------------
   Provider Services
   Discovered: org.apache.dubbo.DemoService        |Mon Jul 28 01:15:12 IST 2025
   Discovered: org.apache.dubbo.MetadataService    |Mon Jul 28 01:15:12 IST 2025
   ------------------------------------------------------------
   
   ```
   **Tests Included**
   
   **Verified On**
   
   ```
   $ telnet 127.0.0.1 22222
   dubbo> discovery-timeline
   
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to