Best Practices
8. Monitoring and Maintenance
Device Observability and Ditto Logs
once the ditto sdk has been embedded into an application on a device it is essential to be able to gather and store peer to peer sync and network details as well as the ditto logs from that device these insights from the device are stored in a ditto system collection called smallpeerinfo and can be viewed from the portal device dashboard ( see https //docs ditto live/cloud/portal/capturing small peer info ) enabling small peer info in ditto 4 8 0 and onwards, small peer info is enabled by default in earlier versions of the ditto sdk, the smallpeerinfo feature needs to be manually enabled to collect data, see https //docs ditto live/cloud/portal/capturing small peer info device dashboard the device dashboard will automatically gather and store peer to peer sync and network details, including mesh network connection status timestamp when last seen by the big peer cloud deployment names and unique identifiers operating system (os) address peer key latest device logs custom user metadata in addition to automatically gathering these details you can also perform a remote request to send the ditto logs from a device to the device dashboard if granted access, the ditto support team can also use the device dashboard to request these logs in order to support and diagnose any issues a device may be experiencing custom user metadata common details to add to the metadata property are location of the device app version device role or any other relevant information pertaining to the device setting the device name within ditto, you can set the device name for each device using the devicename property on the ditto namespace using a unique identifier for the device name that is know to the user of the device can help both your internal team and the ditto support team to search the device on the device dashboard customize the device dashboard the device dashboard provides a quick overview of device specific metadata you can tailor your display to feature various data columns and utilize the search bar to filter the information use the + button at the top right to be able to add new data columns each new data column must correlate with a value in the small peer info metadata one you have added a new column that data will appear for everyone in your organization with access to the device dashboard these columns can be toggled on/off