Skip to content

Commit

Permalink
Add fields to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
adhityamamallan committed Aug 19, 2024
1 parent 98a16b8 commit 6e00ca3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/logger/pino/helpers/get-log-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default function getLogBody(
'Log from browser',
payload: {
browserTimestamp: event.ts,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
userAgent: navigator.userAgent,
// TODO @adhitya.mamallan: add a field for "userUuid" once we start sending it for auth
url: window.location.href,
messages: event.messages,
bindings: event.bindings,
source: 'browser',
Expand Down

0 comments on commit 6e00ca3

Please sign in to comment.