mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 21:26:17 +00:00
add filter for secret pull events
This commit is contained in:
@@ -574,18 +574,20 @@ export const getSecretsHelper = async ({
|
|||||||
const approximateForNoneCapturedEvents = secrets.length * 10;
|
const approximateForNoneCapturedEvents = secrets.length * 10;
|
||||||
|
|
||||||
if (shouldCapture) {
|
if (shouldCapture) {
|
||||||
postHogClient.capture({
|
if (workspaceId.toString() != "650e71fbae3e6c8572f436d4") {
|
||||||
event: "secrets pulled",
|
postHogClient.capture({
|
||||||
distinctId: await TelemetryService.getDistinctId({ authData }),
|
event: "secrets pulled",
|
||||||
properties: {
|
distinctId: await TelemetryService.getDistinctId({ authData }),
|
||||||
numberOfSecrets: shouldRecordK8Event ? approximateForNoneCapturedEvents : secrets.length,
|
properties: {
|
||||||
environment,
|
numberOfSecrets: shouldRecordK8Event ? approximateForNoneCapturedEvents : secrets.length,
|
||||||
workspaceId,
|
environment,
|
||||||
folderId,
|
workspaceId,
|
||||||
channel: authData.userAgentType,
|
folderId,
|
||||||
userAgent: authData.userAgent
|
channel: authData.userAgentType,
|
||||||
}
|
userAgent: authData.userAgent
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user