mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
White-listing of telemetry params (#7262)
* Drop support for adding telemetry by tagging This was not used, and would make development of future feature more difficult. Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> * Introduce white-listing for params of telemetry Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> * Fix linting Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> * Make misconfigured telemetry for function parameters log the error, and not blow up fatally Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> --------- Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
1 parent
129565f08a
commit
c6799e1478
9 files changed
+189
-73
No files matched your search
@@ -8,6 +8,7 @@ import loggerInjectable from "./logger.injectable";
|
||||
const logErrorInjectable = getInjectable({
|
||||
id: "log-error",
|
||||
instantiate: (di) => di.inject(loggerInjectable).error,
|
||||
decorable: false,
|
||||
});
|
||||
|
||||
export default logErrorInjectable;
|
||||
@@ -26,6 +26,8 @@ const loggerInjectable = getInjectable({
|
||||
silly: (message, ...data) => baseLogger.silly(message, ...data),
|
||||
};
|
||||
},
|
||||
|
||||
decorable: false,
|
||||
});
|
||||
|
||||
export default loggerInjectable;
|
||||
Reference in new issue
Block a user