Skip to content

chore: Drop tags auto-set by the SDK - #7261

Merged
sentrivana merged 5 commits into
major/3.0from
ivana/major/remove-tags
Aug 27, 2026
Merged

sentrivana merged 5 commits into
major/3.0from
ivana/major/remove-tags

Conversation

@sentrivana

@sentrivana sentrivana commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Many of the set_tag calls were only present in non-span-streaming branches, which will be completely removed anyway, and we've already migrated those tags, if applicable, to span attributes in the scope of span first.

Issues

Closes https://linear.app/getsentry/issue/PY-1940/remove-tags-auto-set-by-the-sdk

@linear-code

linear-code Bot commented Aug 26, 2026

Copy link
Copy Markdown

PY-1940

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 110526 passed | ❌ 1 failed | ⏭️ 5428 skipped | Total: 115955 | Pass Rate: 95.32% | Execution Time: 376m 6s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -9072
Passed Tests 📉 -7768
Failed Tests —
Skipped Tests 📉 -1304

➕ New Tests (1)

View new tests
  • test_cache_spans_item_size[True]
    • File: tests.integrations.django.test_cache_module
    • Status: ❌ Failing

➖ Removed Tests (1)

View removed tests
  • test_continuous_profiler_auto_start_and_stop_sampled[non-experiment-gevent]
    • File: tests.profiler.test_continuous_profiler

❌ Failed Tests

test_cache_spans_item_size[True]

File: tests.integrations.django.test_cache_module
Suite: py3.11-django-v4.2.30
Error: tests/integrations/django/test_cache_module.py:758: in test_cache_spans_item_size assert not spans[0]["attributes"]["cache.hit"] E assert not True

Stack Trace
tests/integrations/django/test_cache_module.py:758: in test_cache_spans_item_size
    assert not spans[0]["attributes"]["cache.hit"]
E   assert not True

✅ Patch coverage is 100.00%. Project has 2251 uncovered lines.
✅ Project coverage is 90.56%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.24%    90.56%    +0.32%
==========================================
  Files          193       185        -8
  Lines        25474     23857     -1617
  Branches      9378      8780      -598
==========================================
+ Hits         22988     21606     -1382
- Misses        2486      2251      -235
- Partials      1431      1373       -58

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review August 26, 2026 14:19
@sentrivana
sentrivana requested a review from a team as a code owner August 26, 2026 14:19
@sentrivana
sentrivana merged commit d2b4b1d into major/3.0 Aug 27, 2026
124 of 126 checks passed
@sentrivana
sentrivana deleted the ivana/major/remove-tags branch August 27, 2026 07:29
sentrivana added a commit that referenced this pull request Oct 29, 2026
### Description

Removes `AwsCallContext.service_id_hyphenized` from
`sentry_sdk/integrations/boto3/_context.py`. It's still computed on
every call (`service_id.hyphenize()`), but on `major/3.0` nothing reads
it.

It had two readers. One was the `aws.service_id` span tag, which #7261
("Drop tags auto-set by the SDK") removed. The other was the span name:
#7800 ("align span names with OTel conventions") switched that to
`ctx.service_id`, so the hyphenized value lost its last reader. This
removes the slot, the attribute and the `hyphenize()` call.

**Evidence**
- On `major/3.0`, `git grep -w service_id_hyphenized` matches only the
three lines in `_context.py` that set it up.
- The open boto3 extension PRs against `major/3.0` (#8117 SQS, #8137
Lambda) don't reference it.

On `master`, `service_id_hyphenized` is still used for the span name and
the tag, so this only applies to `major/3.0`.

#### Issues
n/a

<!-- junior-request-attribution:start -->
via **Ivana Kellyer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0BTREZTS2Z%3A1793270559.842119 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants