Skip to content

fix(user): Set user.ip_address on telemetry if present - #6555

Merged
sentrivana merged 1 commit into
masterfrom
ivana/add-missing-user-attr
Jun 11, 2026
Merged

fix(user): Set user.ip_address on telemetry if present#6555
sentrivana merged 1 commit into
masterfrom
ivana/add-missing-user-attr

Conversation

@sentrivana

Copy link
Copy Markdown
Contributor

Description

If user data is set on scope, we should materialize it onto attributes-based telemetry (metrics, logs, spans v2) at the end. The code for that was there and working, but we were omitting ip_address.

Issues

Reminders

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

89401 passed | ⏭️ 6013 skipped | Total: 95414 | Pass Rate: 93.7% | Execution Time: 298m 12s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1797
Passed Tests 📈 +1797
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2398 uncovered lines.
❌ Project coverage is 89.78%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.81%    89.78%    -0.03%
==========================================
  Files          192       192         —
  Lines        23457     23457         —
  Branches      8060      8060         —
==========================================
+ Hits         21066     21059        -7
- Misses        2391      2398        +7
- Partials      1329      1328        -1

Generated by Codecov Action

@sentrivana
sentrivana merged commit dccae69 into master Jun 11, 2026
268 of 272 checks passed
@sentrivana
sentrivana deleted the ivana/add-missing-user-attr branch June 11, 2026 08:48
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
)

### Description
If user data is set on scope, we should materialize it onto
attributes-based telemetry (metrics, logs, spans v2) at the end. The
code for that was there and working, but we were omitting `ip_address`.

#### Issues
<!--
* resolves: getsentry#1234
* resolves: LIN-1234
-->

#### Reminders
- Please add tests to validate your changes, and lint your code using
`uv run ruff`.
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants