Commit 836fc34a authored by Keven Hughes's avatar Keven Hughes Committed by John Lyttle
Browse files

Merge support sentry workflow docs

parent 9ce00fd4
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -49,17 +49,19 @@ Please direct the customer to [the troubleshooting page](https://docs.gitlab.com

To find the error specifically related to a customer on sentry, try the following:

1. Get customer ID from [CustomersDot](https://customers.gitlab.com/customers/sign_in):
1. Get customer ID from CustomersDot:
   - Log into <https://customers.gitlab.com/admin>
   - Go to `Customers` search page by clicking on `Customers` on the left panel
   - Search for customer using one of the following: email, domain, or First/Last name (in case customer registered with a different email)
   - Click on one of the info, pencil, or person icon in the result
   - Take the customer ID from the URL <https://customers.gitlab.com/admin/customer/customerID/pagepath>
1. Finding the error message for the customer in Sentry:
   - Go to <https://sentry.gitlab.net/gitlab/customersgitlabcom/issues/>
   - Use `user:customerID` (replace `customerID` with the actual customerID from CustomersDot)
   - Open sentry issue → Click on `EVENTS`
   - Use customer email to search for the relevant event
   - Go to <https://new-sentry.gitlab.net/organizations/gitlab/issues/?project=8>
   - Use `user.id:customerID` (replace `customerID` with the actual customerID from CustomersDot)
   - Open sentry issue → Click on `All Events`
   - Filter for the specific user again using `user.id:customerID`
   - Click on any event to see details of the error message
   - You can also repeat this search using the customer's email with `user.email:customerFullEmail`

### Getting error messages from CustomersDot Kibana logs

+41 −2
Original line number Diff line number Diff line
---
title: Sentry
category: Infrastructure for troubleshooting
description: How to use Sentry to investigate GitLab.com errors
description: How to use Sentry to investigate GitLab.com or CustomersDot errors
---

## Sentry
## Overview

*Note*: Sentry organizes applications into "Sentry Teams". To investigate errors across different applications or environments, our primary teams used are `#gitlab` (for the production rails application) and `#gitlab-internal` (for non-production environments). By joining said Sentry Team, the application errors should be viewable.

To find the error specifically related to a user on Sentry, try to check for a logged error in at least one of these Sentry projects:

1. [`gitlabcom`](https://new-sentry.gitlab.net/organizations/gitlab/projects/gitlabcom/)
1. [`gitlabcom-clientside`](https://new-sentry.gitlab.net/organizations/gitlab/projects/gitlabcom-clientside/?)
1. [`customersgitlabcom`](https://new-sentry.gitlab.net/organizations/gitlab/projects/customersdot/)

From the main project landing page, you'll see an overview of the application and its performance.  On the bottom half of the page you'll see recent issues; click on `Open in issues` on the right hand side to be taken to all issues on the project.

1. Obtain the full URL the user was visiting when the error occurred along with their user ID, if needed for searching.
1. [Log in to Sentry](https://new-sentry.gitlab.net/organizations/gitlab/issues/?project=3).
1. Enter a query into the search field. For example, after reproducing an error with your admin user. Be aware that usernames are case-sensitive in Sentry.
@@ -18,6 +26,12 @@ is:unresolved user.username:your-admin

You can also use `user.id:` or `url:` for a specific page on GitLab.com.

Use one of the following methods to get a `user.id`:

- Chatops: Run `/chatops run user find <username or email>`
- Admin account: Navigate to the admin link in the [GitLab User Lookup](/handbook/security/customer-support-operations/docs/zendesk/apps/#gitlab-super-app) Zendesk app
- [Users API](https://docs.gitlab.com/api/users/#for-normal-users): Search for user using their email or username

At times a search will turn up a Sentry issue that appears to reference the information (user ID, URL, etc...) of another user and not the one that reported the issue. If this happens and you need to create an issue for that specific reporter, simply click the `Events` tab as seen below to view a list of all users affected by that issue.

![Sentry events tab](/images/support/sentry-events-tab.png)
@@ -26,6 +40,31 @@ You can then click a specific event to view the Sentry issue for that user.

See the [Sentry guide](https://docs.sentry.io/concepts/search/) and [this presentation](https://drive.google.com/drive/u/0/search?q=Sentry%20parent:1UT1VKASEzvCzWVX9fDLkYhDju35NxiLT) (GitLab internal only) for more information.

### Searching with the username in `gitlabcom` Sentry project

If you have the `username` of the user, find the error message for the user in Sentry's `gitlabcom` project:

- Go to [gitlabcom Sentry project](https://new-sentry.gitlab.net/organizations/gitlab/issues/?project=3)
- Use `user.username:example` (replace `example` with the actual username from GitLab)
- Open sentry issue → Click on `All Events`.
- Filter for the specific user again using `user.username:example`
- Click on any event to see details of the error message

### Searching with the user's ID in `gitlabcom-clientside` Sentry project

If you have the `ID` of the user, find the error message for the user in Sentry's `gitlabcom-clientside` project:

- Go to [gitlabcom-clientside Sentry project](https://new-sentry.gitlab.net/organizations/gitlab/issues/?project=4)
- Use `user.id:userID` (replace `userID` with the actual ID from GitLab)
- Open sentry issue → Click on `All Events`.
- Filter for the specific user again using `user.id:userID`
- Click on any event to see details of the error message

### Searching `customersgitlabcom` Sentry project

Use the [workflow](/handbook/support/license-and-renewals/workflows/customersdot/troubleshoot_errors_while_making_purchases#getting-error-message-from-sentry)
to find the error message in [Customers Portal Sentry project](https://new-sentry.gitlab.net/organizations/gitlab/issues/?project=8).

### Searching by Correlation ID

In most cases errors in Sentry can be found by searching using `user.id:`, but this won't always be the case. Sometimes, you may need to search Kibana first to locate the correlation ID that can then be searched for in Sentry.