You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[xcvrd] add support for logging mux_metrics events into state DB (sonic-net#185)
* [xcvrd] add support for logging mux_metrics events into state DB
Description
This PR adds support for logging events for change requests received by xcvrd from swss into state DB.
a typical log would look like this:
1) "xcvrd_switch_standby_start"
2) "2021-05-13 10:01:15.690835"
3) "xcvrd_switch_standby_end"
4) "2021-05-13 10:01:15.696051"
where the key-value pairs signify the type of event requested out of
active/standby/unknown and the timestamp associated with the event.
Motivation and Context
This is required for xcvrd to log the events which it receives in form of requests from swss or any other module into the DB. The timestamp will be useful for debugging the timeline of an event processing from a perspective of other modules as well as xcvrd itself.
How Has This Been Tested?
ran the changes on starlab testbed, by changing the file in the container.
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
0 commit comments