mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
Merge pull request #15990 from overleaf/tm-analytics-debug-log-consistency
Add message with analytics event debug log (and log for all events) GitOrigin-RevId: 7ece70cc8ddafd806885d5012b1fdf7fdf6a003b
This commit is contained in:
@@ -66,14 +66,6 @@ function recordEventForSession(session, event, segmentation) {
|
||||
if (_isAnalyticsDisabled() || _isSmokeTestUser(userId)) {
|
||||
return
|
||||
}
|
||||
logger.debug({
|
||||
analyticsId,
|
||||
userId,
|
||||
event,
|
||||
segmentation,
|
||||
isLoggedIn: !!userId,
|
||||
createdAt: new Date(),
|
||||
})
|
||||
_recordEvent({
|
||||
analyticsId,
|
||||
userId,
|
||||
@@ -182,6 +174,17 @@ function _recordEvent(
|
||||
)
|
||||
return
|
||||
}
|
||||
logger.debug(
|
||||
{
|
||||
analyticsId,
|
||||
userId,
|
||||
event,
|
||||
segmentation,
|
||||
isLoggedIn: !!userId,
|
||||
createdAt: new Date(),
|
||||
},
|
||||
'queueing analytics event'
|
||||
)
|
||||
Metrics.analyticsQueue.inc({ status: 'adding', event_type: 'event' })
|
||||
analyticsEventsQueue
|
||||
.add(
|
||||
|
||||
Reference in New Issue
Block a user