Skip to content

Commit 1d59eca

Browse files
authored
fix(analytics): use getBaseDomain for Profound host field (#3848)
request.url resolves to internal ALB hostname on ECS, not the public domain
1 parent e1359b0 commit 1d59eca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/sim/lib/analytics/profound.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { createLogger } from '@sim/logger'
99
import { env } from '@/lib/core/config/env'
1010
import { isHosted } from '@/lib/core/config/feature-flags'
11+
import { getBaseDomain } from '@/lib/core/utils/urls'
1112

1213
const logger = createLogger('ProfoundAnalytics')
1314

@@ -97,7 +98,7 @@ export function sendToProfound(request: Request, statusCode: number): void {
9798
buffer.push({
9899
timestamp: new Date().toISOString(),
99100
method: request.method,
100-
host: url.hostname,
101+
host: getBaseDomain(),
101102
path: url.pathname,
102103
status_code: statusCode,
103104
ip:

0 commit comments

Comments
 (0)