Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make geolocation tags searchable in Replays #50639

Closed
Fwang36 opened this issue Jun 9, 2023 · 10 comments · Fixed by getsentry/relay#4088
Closed

Make geolocation tags searchable in Replays #50639

Fwang36 opened this issue Jun 9, 2023 · 10 comments · Fixed by getsentry/relay#4088
Assignees

Comments

@Fwang36
Copy link
Member

Fwang36 commented Jun 9, 2023

Problem Statement

The browser sdks populate the geolocation data for user and for node you can use setUser({}) to set user geolocation data like this -

Sentry.setUser({
            id: "123455",
            ip_address: "33.12.2.4",
            email: "[email protected]",
            geo: {
                country_code: "usa",
                city: "baltimore"
            }
})

When set, you can search for the properties in Discover. Since replays use setUser({}) as well, we should make these properties also searchable for Replay.

Solution Brainstorm

Attach the geolocation data to replay events, or at least allow the geo.* tags to be searchable in the Replay search bar.

Product Area

Replays

@getsantry
Copy link
Contributor

getsantry bot commented Jun 9, 2023

Assigning to @getsentry/support for routing, due by Friday, June 9th at 5:00 pm (sfo). ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented Jun 9, 2023

Routing to @getsentry/product-owners-replays for triage, due by Tuesday, June 13th at 11:51 (yyz). ⏲️

@getsantry getsantry bot moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 Jun 9, 2023
@bruno-garcia
Copy link
Member

Thanks for raising this. We'll add this to our backlog and discuss it during backlog refinement.
To help us understand the use case, could you share a bit how this can help you find relevant replays?

@nikhaxuall
Copy link

I'm not the original requester, but I'll share our use case. We have a low volume, high touch application. We occasionally have users reach out to our support team before they can be identified/tagged by our application. In those instances the replays only have the users IP address. Geo-location data can help our support team narrow down which replay is pertinent to the user. If there are currently 50 users going through our signup flow and only one of those is from Minneapolis, it's easy to match up the replay to the correct user. Currently they have to either guess, or get lucky finding something in Discover they can use to back into a replay.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Sep 4, 2024
@bruno-garcia
Copy link
Member

bruno-garcia commented Sep 5, 2024

In those instances the replays only have the users IP address.

Could you search by user.ip: xxx.xxx.xxx.xxx in that case? That should be already available

@nikhaxuall
Copy link

In those instances the replays only have the users IP address.

Could you search by user.ip: xxx.xxx.xxx.xxx in that case? That should be already available

Potentially, but our user-base is largely non-technical (and it's not uncommon for them to be tech-hostile). Walking them through getting their IP address would be a trial. Especially because they may be interfacing with our support team via phone or on a different device/location than where they initially encountered the error.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Sep 5, 2024
@bruno-garcia
Copy link
Member

Oh I misunderstood this:

In those instances the replays only have the users IP address.

As you having the IP to search on.

Could you set the users email to the scope? and search by email?

@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Sep 5, 2024
@nikhaxuall
Copy link

We're tagging things as soon as we have the data. Unfortunately, some users are having issues before we're able to tag them. The geolocation info would just be another angle that could potentially help our support team narrow down which replay went with which user.

@bruno-garcia
Copy link
Member

Thanks for sharing your use case. I'll tag @jas-kas for help prioritizing

@bruno-garcia
Copy link
Member

This happens on Relay:

https://github.com/getsentry/relay/blob/b82aa67e8be9277ae826ee17a6ded22d133cdb9b/relay-event-normalization/src/event.rs#L512

@JoshFerge said:

just have to use the ip and get the lookup in relay and add it to the replay segment json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants