-
Type: Task
-
Status: Resolved (View Workflow)
-
Priority: Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: VOLTHA v2.5
-
Component/s: voltctl, voltha-lib-go
-
Labels:
-
Story Points:3
-
Epic Link:
With the introduction of log correlation feature, each log statement emitted by code carrying a valid span will usually have 4-5 additional fields facilitating the correlation of logs generated by same execution flow. This data may be annoying for someone not looking for any log correlation.
Hence, introduce following voltctl log sub-commands to support dynamically changing the log-correlation feature for voltha components. Component should reflect the changes instantly and stop outputting the additional fields in log statements if log correlation has been disabled for that component.
Enable log-correlation for a specific component
voltctl log correlation enable <component-name>
Enable log-correlation for all components
voltctl log correlation enable
Disable log-correlation for a specific component
voltctl log correlation disable <component-name>
List log-correlation status all components (can also use show sub-command)
voltctl log correlation list
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
20048,2 | [VOL-3379] WIP | master | voltctl | Status: ABANDONED | 0 | -1 |
20049,6 | [VOL-3379] WIP | master | voltha-lib-go | Status: ABANDONED | 0 | -1 |
20215,3 | [VOL-3379] Support dynamic enable/disable of Log Correlation Feature | master | voltha-lib-go | Status: MERGED | +2 | +1 |
20216,4 | [VOL-3379] Support dynamic enable/disable of Log Correlation Feature | master | voltctl | Status: MERGED | +2 | +1 |