Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit ac0f165

Browse files
Document geo location (#705)
Co-authored-by: Abhijeet Prasad <[email protected]>
1 parent f8c2f3e commit ac0f165

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@sentry/tracing": "^7.15.0",
1212
"@sentry/webpack-plugin": "^1.18.3",
1313
"@types/dompurify": "^2.0.3",
14-
"@types/node": "^12",
14+
"@types/node": "^14",
1515
"@types/react": "^16.9.46",
1616
"@types/react-dom": "^16.9.8",
1717
"@types/react-helmet": "^6.1.0",

src/docs/sdk/event-payloads/user.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,28 @@ of these attributes and only custom attributes is valid, but not as useful.
3535
All other keys are stored as extra information but not specifically processed by
3636
Sentry.
3737

38+
`geo`
39+
40+
: An optional object describing the [geographical location](#geographical-location) of the end user or device, this object is automatically inferred by Relay if `ip_address` is provided.
41+
42+
## Geographical location
43+
44+
Approximate geographical location of the end user or device.
45+
46+
### Attributes
47+
48+
`city`
49+
50+
: Human readable city name.
51+
52+
`country_code`
53+
54+
: Two-letter country code (ISO 3166-1 alpha-2).
55+
56+
`region`
57+
58+
: Human readable region name or code.
59+
3860
## Automatic IP addresses
3961

4062
SDKs running on client platforms, such as browsers and mobile applications,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,10 +2778,10 @@
27782778
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708"
27792779
integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==
27802780

2781-
"@types/node@^12":
2782-
version "12.20.52"
2783-
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.52.tgz#2fd2dc6bfa185601b15457398d4ba1ef27f81251"
2784-
integrity sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw==
2781+
"@types/node@^14":
2782+
version "14.18.32"
2783+
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.32.tgz#8074f7106731f1a12ba993fe8bad86ee73905014"
2784+
integrity sha512-Y6S38pFr04yb13qqHf8uk1nHE3lXgQ30WZbv1mLliV9pt0NjvqdWttLcrOYLnXbOafknVYRHZGoMSpR9UwfYow==
27852785

27862786
"@types/node@^14.14.10":
27872787
version "14.18.18"

0 commit comments

Comments
 (0)