shell-operator icon indicating copy to clipboard operation
shell-operator copied to clipboard

Refactor handling labels for logging, metrics and debug commands

Open diafour opened this issue 5 years ago • 0 comments

There is a myriad of map[string]string initialized and passed between layers. The upper-level code should know which labels to pass to the lower-level methods and lower-level has no access to additional information. It seems that Context can help: labels can be stored as context values. Upper-level code just pass a context and lower-level code retrieve everything from this context.

https://github.com/flant/addon-operator/issues/138

diafour avatar Jul 06 '20 15:07 diafour