Commit 882d364
authored
ref(wsgi): Remove unused segment name setting (#6305)
### Description
In span first, there is logic in the WSGI integration that sets the
segment name and the source attribute to a generic default at the end of
a segment span's lifecycle, unless the name/source have been set
explicitly.
This logic is unnecessary. We create the segment with the default name
and source, so there's no reason to rename again at the end. If the
segment was renamed during its lifetime, that's the name we want to
keep; the default is just a fallback.
#### Issues
<!--
* resolves: #1234
* resolves: LIN-1234
-->
#### Reminders
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)1 parent 4f3b56a commit 882d364
1 file changed
Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 177 | | |
196 | 178 | | |
197 | 179 | | |
| |||
0 commit comments