Skip to content

Commit

Permalink
Merge pull request #1367 from Infisical/fix-ph-events
Browse files Browse the repository at this point in the history
remove certain python sdk events
  • Loading branch information
maidul98 authored Feb 4, 2024
2 parents 0d6ea0d + 11399d7 commit 5b9c043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/server/routes/v3/secret-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
}
}

const shouldCapture = req.headers["user-agent"] !== "k8-operator" || shouldRecordK8Event;
const shouldCapture =
req.query.workspaceId !== "650e71fbae3e6c8572f436d4" &&
(req.headers["user-agent"] !== "k8-operator" || shouldRecordK8Event);
const approximateNumberTotalSecrets = secrets.length * 20;
if (shouldCapture) {
server.services.telemetry.sendPostHogEvents({
Expand Down

0 comments on commit 5b9c043

Please sign in to comment.