|
1 | | -import type { TypedAttributeValue } from '../attributes'; |
2 | 1 | import { attributeValueToTypedAttributeValue } from '../attributes'; |
3 | 2 | import { getGlobalSingleton } from '../carrier'; |
4 | 3 | import type { Client } from '../client'; |
@@ -100,6 +99,7 @@ export function _INTERNAL_captureLog( |
100 | 99 | user: { id, email, username }, |
101 | 100 | attributes: scopeAttributes = {}, |
102 | 101 | } = getMergedScopeData(currentScope); |
| 102 | + |
103 | 103 | setLogAttribute(processedLogAttributes, 'user.id', id, false); |
104 | 104 | setLogAttribute(processedLogAttributes, 'user.email', email, false); |
105 | 105 | setLogAttribute(processedLogAttributes, 'user.name', username, false); |
@@ -158,7 +158,7 @@ export function _INTERNAL_captureLog( |
158 | 158 | const serializedScopeAttributes = Object.fromEntries( |
159 | 159 | Object.entries(scopeAttributes) |
160 | 160 | .map(([key, value]) => [key, attributeValueToTypedAttributeValue(value)]) |
161 | | - .filter(([_, value]) => value != null), |
| 161 | + .filter(([, value]) => value != null), |
162 | 162 | ); |
163 | 163 |
|
164 | 164 | const serializedLogAttributes = Object.fromEntries( |
|
0 commit comments