File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/browser/src/utils Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { Session , SessionAggregates , User } from '@sentry/core' ;
2
2
3
+ // By default, we want to infer the IP address, unless this is explicitly set to `null`
4
+ // We do this after all other processing is done
5
+ // If `ip_address` is explicitly set to `null` or a value, we leave it as is
6
+
3
7
/**
4
8
* @internal
5
- * By default, we want to infer the IP address, unless this is explicitly set to `null`
6
- * We do this after all other processing is done
7
- * If `ip_address` is explicitly set to `null` or a value, we leave it as is
8
9
*/
9
10
export function addAutoIpAddressToUser ( objWithMaybeUser : { user ?: User | null } ) : void {
10
11
if ( objWithMaybeUser . user ?. ip_address === undefined ) {
@@ -17,8 +18,6 @@ export function addAutoIpAddressToUser(objWithMaybeUser: { user?: User | null })
17
18
18
19
/**
19
20
* @internal
20
- * Adds the `ip_address` attribute to the session if it is not explicitly set to `null` or a value.
21
- * @param session The session to add the `ip_address` attribute to.
22
21
*/
23
22
export function addAutoIpAddressToSession ( session : Session | SessionAggregates ) : void {
24
23
if ( 'aggregates' in session ) {
You can’t perform that action at this time.
0 commit comments