-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[telemetry] define key telemetries and their extraction logic #1973
Conversation
morningboata
commented
Aug 17, 2023
- Telemetry definition is available in thread_telemetry.proto
- Telemetry extraction logic is provided in thread_helper.cpp
- DBus RPC service is served; thread_helper's Telemetry lib allows to support additional telemetry service integration if needed.
Is this change for Android? |
This is for Android and other devices (like router) as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
NODE_TYPE_END = 2; | ||
NODE_TYPE_SLEEPY_END = 3; | ||
NODE_TYPE_MINIMAL_END = 4; | ||
message Duration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is borrowed from google.
I wonder whether we need it to be so precise. It probably acceptable to use uint32_t
representing the duration in seconds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about to keep this Duration format currently: 1. for age / timeout use case, only the seconds field is populated, so the wired payload size is optimized without the nano field. 2. compatible with the parsing proto logic in upper layer, and extensible if we need to have finer nano granularity in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. 👍