From 57d2e3df4c16a776ad828052c05a4cefc5559b0a Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Wed, 12 Oct 2022 09:51:12 +0200 Subject: [PATCH 1/6] Document geo location --- src/docs/sdk/event-payloads/user.mdx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/docs/sdk/event-payloads/user.mdx b/src/docs/sdk/event-payloads/user.mdx index 701ed23519..a7d47250d0 100644 --- a/src/docs/sdk/event-payloads/user.mdx +++ b/src/docs/sdk/event-payloads/user.mdx @@ -35,6 +35,28 @@ of these attributes and only custom attributes is valid, but not as useful. All other keys are stored as extra information but not specifically processed by Sentry. +`geo` + +: An optional object describing the [geographical-location](#geo) of the end user or device. + +## Geographical location + +Approximate geographical location of the end user or device. + +### Attributes + +`city` + +: Human readable city name. + +`country_code` + +: Two-letter country code (ISO 3166-1 alpha-2). + +`region` + +: Human readable region name or code. + ## Automatic IP addresses SDKs running on client platforms, such as browsers and mobile applications, From 210591bab59e473e36d1f761b733946f9ea2e5df Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Wed, 12 Oct 2022 09:51:58 +0200 Subject: [PATCH 2/6] fix --- src/docs/sdk/event-payloads/user.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/sdk/event-payloads/user.mdx b/src/docs/sdk/event-payloads/user.mdx index a7d47250d0..4d0f3eadf6 100644 --- a/src/docs/sdk/event-payloads/user.mdx +++ b/src/docs/sdk/event-payloads/user.mdx @@ -37,7 +37,7 @@ Sentry. `geo` -: An optional object describing the [geographical-location](#geo) of the end user or device. +: An optional object describing the [geographical location](#geographical-location) of the end user or device. ## Geographical location From 30c839d83ca84c0a7d29db5f680280475ace967e Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Wed, 12 Oct 2022 09:53:52 +0200 Subject: [PATCH 3/6] fix wording --- src/docs/sdk/event-payloads/user.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/sdk/event-payloads/user.mdx b/src/docs/sdk/event-payloads/user.mdx index 4d0f3eadf6..d42178f938 100644 --- a/src/docs/sdk/event-payloads/user.mdx +++ b/src/docs/sdk/event-payloads/user.mdx @@ -37,7 +37,7 @@ Sentry. `geo` -: An optional object describing the [geographical location](#geographical-location) of the end user or device. +: An optional object describing the [geographical location](#geographical-location) of the end user or device, this object is automatically inferred if `ip_address` is provided. ## Geographical location From 03abd1ba01e30e9c7760e18587222c635c90ad31 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Wed, 12 Oct 2022 09:58:42 +0200 Subject: [PATCH 4/6] fix node --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index cab2c6b040..680f8e331a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@sentry/tracing": "^7.0.0", "@sentry/webpack-plugin": "^1.18.3", "@types/dompurify": "^2.0.3", - "@types/node": "^12", + "@types/node": "^16", "@types/react": "^16.9.46", "@types/react-dom": "^16.9.8", "@types/react-helmet": "^6.1.0", diff --git a/yarn.lock b/yarn.lock index eada7fc9b1..052064f85b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2781,16 +2781,16 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708" integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g== -"@types/node@^12": - version "12.20.52" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.52.tgz#2fd2dc6bfa185601b15457398d4ba1ef27f81251" - integrity sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw== - "@types/node@^14.14.10": version "14.18.18" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.18.tgz#5c9503030df484ccffcbb935ea9a9e1d6fad1a20" integrity sha512-B9EoJFjhqcQ9OmQrNorItO+OwEOORNn3S31WuiHvZY/dm9ajkB7AKD/8toessEtHHNL+58jofbq7hMMY9v4yig== +"@types/node@^16": + version "16.11.65" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.65.tgz#59500b86af757d6fcabd3dec32fecb6e357d7a45" + integrity sha512-Vfz7wGMOr4jbQGiQHVJm8VjeQwM9Ya7mHe9LtQ264/Epf5n1KiZShOFqk++nBzw6a/ubgYdB9Od7P+MH/LjoWw== + "@types/node@^8.5.7": version "8.10.66" resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.66.tgz#dd035d409df322acc83dff62a602f12a5783bbb3" From 3be3cb082c6442a809e8735e4421deb68a752557 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Wed, 12 Oct 2022 13:58:06 +0200 Subject: [PATCH 5/6] node 14 --- package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 680f8e331a..e16c2a632e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@sentry/tracing": "^7.0.0", "@sentry/webpack-plugin": "^1.18.3", "@types/dompurify": "^2.0.3", - "@types/node": "^16", + "@types/node": "^14", "@types/react": "^16.9.46", "@types/react-dom": "^16.9.8", "@types/react-helmet": "^6.1.0", diff --git a/yarn.lock b/yarn.lock index 052064f85b..e7ed5ccc56 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2781,16 +2781,16 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708" integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g== +"@types/node@^14": + version "14.18.32" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.32.tgz#8074f7106731f1a12ba993fe8bad86ee73905014" + integrity sha512-Y6S38pFr04yb13qqHf8uk1nHE3lXgQ30WZbv1mLliV9pt0NjvqdWttLcrOYLnXbOafknVYRHZGoMSpR9UwfYow== + "@types/node@^14.14.10": version "14.18.18" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.18.tgz#5c9503030df484ccffcbb935ea9a9e1d6fad1a20" integrity sha512-B9EoJFjhqcQ9OmQrNorItO+OwEOORNn3S31WuiHvZY/dm9ajkB7AKD/8toessEtHHNL+58jofbq7hMMY9v4yig== -"@types/node@^16": - version "16.11.65" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.65.tgz#59500b86af757d6fcabd3dec32fecb6e357d7a45" - integrity sha512-Vfz7wGMOr4jbQGiQHVJm8VjeQwM9Ya7mHe9LtQ264/Epf5n1KiZShOFqk++nBzw6a/ubgYdB9Od7P+MH/LjoWw== - "@types/node@^8.5.7": version "8.10.66" resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.66.tgz#dd035d409df322acc83dff62a602f12a5783bbb3" From b80cf195766ac86ffe3226d4f7237c63fe2cfbc6 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Wed, 12 Oct 2022 15:02:41 +0200 Subject: [PATCH 6/6] Update src/docs/sdk/event-payloads/user.mdx Co-authored-by: Abhijeet Prasad --- src/docs/sdk/event-payloads/user.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/sdk/event-payloads/user.mdx b/src/docs/sdk/event-payloads/user.mdx index d42178f938..b6f6c1585c 100644 --- a/src/docs/sdk/event-payloads/user.mdx +++ b/src/docs/sdk/event-payloads/user.mdx @@ -37,7 +37,7 @@ Sentry. `geo` -: An optional object describing the [geographical location](#geographical-location) of the end user or device, this object is automatically inferred if `ip_address` is provided. +: 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. ## Geographical location