ms-iot / azure-client-tools

Azure Client Tools
Other
43 stars 37 forks source link

Diagnostics Log handler reports all system collectors. #26

Closed gmileka closed 5 years ago

gmileka commented 5 years ago

Bug description

The twin has a storage limit of 8k - so, handlers need to be conservative in what they report to the twin. The Diagnostics Log handler reports all defined collectors - which is excessive because when debugging an issue, developers are not interested in all collectors.

Steps to reproduce

  1. Run the agent.
  2. Configure a collector.
  3. Inspect the reported properties.

Observed behavior

All collectors on the system are reported even thought that are not configured through the twin.

Expected behavior

Only the collectors configured through the twin should be reported.

Version (please provide the following information):