Skip to content

Commit 2b37e39

Browse files
Fix misplaced content in GitLab docs (#6654)
* Fix misplaced content in GitLab docs Part of the bullet list that should go under the "Stack Trace Linking" heading is instead under the "Code owners" heading (showing up as a txt code block), and this last heading is also repeating twice. In this changeset I fixed the aforementioned problems, and made some minor changes to the text to avoid repetition. Cheers! * Update src/docs/product/integrations/source-code-mgmt/gitlab/index.mdx --------- Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
1 parent a26d3c3 commit 2b37e39

File tree

1 file changed

+4
-9
lines changed
  • src/docs/product/integrations/source-code-mgmt/gitlab

1 file changed

+4
-9
lines changed

src/docs/product/integrations/source-code-mgmt/gitlab/index.mdx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ Stack trace linking takes you from a file in your Sentry stack trace to that sam
136136
- **repo** (required): This is the GitLab project associated with the Sentry project above. If you have more than one GitLab project being used per Sentry project, you'll need multiple code mappings.
137137
- **branch** (required): This is the default branch of your code we fall back to if you do not have commit tracking set up.
138138
- **stack trace root** and **source code root** (optional):
139-
140-
1. If the file path in your Sentry stack trace frame matches the path to your source code, you do not need to set these values.
139+
- If the file path in your Sentry stack trace frame matches the path to your source code, you don't need to set these values.
140+
- For example, if everything after the branch (`main`) matches the file path of `code.py` using a source code path of `https://gitlab.com/murdith-group/issa-project/-/blob/main/code.py`, you don't need to set either `stack trace root` or `source code root`
141+
- If the file path in your Sentry stack trace frame doesn't match the path to your source code, you will need to replace the `stack_root` part of the file path with your `source_root` to make the file path match the source code path.
142+
- For example, to get `src/code.py` to match `code.py` when the source code path is `https://gitlab.com/murdith-group/issa-project/-/blob/main/code.py`, change the `stack trace root` to be set as `src/`, and leave `source code root` empty.
141143

142144
### Suspect Commits
143145

@@ -147,13 +149,6 @@ Once you've set up stack trace linking, Sentry can use information from your sou
147149

148150
Learn about setting up this functionality in [Suspect Commits](/product/issues/suspect-commits/).
149151

150-
### Code Owners
151-
152-
- ex. For example, everything after the branch (`main`) matches the file path of `code.py` using a source code path of `https://gitlab.com/murdith-group/issa-project/-/blob/main/code.py` so you don't need to set a **stack trace root** and **source code root**.
153-
154-
1. If the file path in your Sentry stack trace frame doesn't match the path to your source code, you will need to replace the **stack_root** part of the file path with your **source_root** to make the file path match the source code path.
155-
- ex. For example, to get `src/code.py` to match `code.py` when the source code path is `https://gitlab.com/murdith-group/issa-project/-/blob/main/code.py`, change the **stack trace root** to be set as `src/`, and leave **source code root** empty.
156-
157152
### Code Owners
158153

159154
<Note>

0 commit comments

Comments
 (0)