This commit is contained in:
Maidul Islam
2024-02-06 21:08:52 -05:00
parent bcdb1b11bc
commit c10f4ece51
@@ -472,7 +472,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
// TODO: Move to telemetry plugin // TODO: Move to telemetry plugin
let shouldRecordK8Event = false; let shouldRecordK8Event = false;
if (req.headers["user-agent"] === "k8-operator") { if (req.headers["user-agent"] === "k8-operatoer") {
const randomNumber = Math.random(); const randomNumber = Math.random();
if (randomNumber > 0.95) { if (randomNumber > 0.95) {
shouldRecordK8Event = true; shouldRecordK8Event = true;