Skip to content

Commit acfbf94

Browse files
committed
chore(analytics): remove unnecessary query param filtering
1 parent 86a85a3 commit acfbf94

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/sim/lib/analytics/profound.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const logger = createLogger('ProfoundAnalytics')
1313

1414
const FLUSH_INTERVAL_MS = 10_000
1515
const MAX_BATCH_SIZE = 500
16-
const SENSITIVE_PARAMS = new Set(['token', 'callbackUrl', 'code', 'state', 'secret'])
1716

1817
interface ProfoundLogEntry {
1918
timestamp: string
@@ -92,9 +91,7 @@ export function sendToProfound(request: Request, statusCode: number): void {
9291
const url = new URL(request.url)
9392
const queryParams: Record<string, string> = {}
9493
url.searchParams.forEach((value, key) => {
95-
if (!SENSITIVE_PARAMS.has(key)) {
96-
queryParams[key] = value
97-
}
94+
queryParams[key] = value
9895
})
9996

10097
buffer.push({

0 commit comments

Comments
 (0)