Skip to content

Conversation

denrase
Copy link
Collaborator

@denrase denrase commented Jul 15, 2025

#skip-changelog

📜 Description

Structured Logs: Add user attributes

💡 Motivation and Context

Closes #5583

💚 How did you test it?

📝 Checklist

You have to check all boxes before merging:

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

@denrase denrase requested a review from itaybre July 16, 2025 13:30
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, when addressing this one comment.

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from feat/structured-logs-default-attributes to main July 21, 2025 08:02
# Conflicts:
#	Sources/Sentry/include/SentryScope+PrivateSwift.h
#	Sources/Swift/Tools/SentryLogger.swift
#	Tests/SentryTests/SentryLoggerTests.swift
Copy link
Contributor

github-actions bot commented Jul 21, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1242.31 ms 1267.33 ms 25.02 ms
Size 23.75 KiB 902.40 KiB 878.65 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5ec90e0 1235.57 ms 1258.45 ms 22.88 ms
f92cfa9 1228.45 ms 1251.33 ms 22.88 ms
5196f0d 1213.35 ms 1231.37 ms 18.02 ms
4e3915a 1230.02 ms 1258.90 ms 28.88 ms
7d23639 1237.93 ms 1243.04 ms 5.11 ms
d637379 1226.43 ms 1250.77 ms 24.34 ms
63ac649 1192.10 ms 1216.78 ms 24.68 ms
884b224 1233.41 ms 1259.50 ms 26.09 ms
c63e0fe 1230.58 ms 1253.94 ms 23.35 ms
a2a3bfb 1227.94 ms 1261.26 ms 33.32 ms

App size

Revision Plain With Sentry Diff
5ec90e0 23.74 KiB 872.67 KiB 848.92 KiB
f92cfa9 23.75 KiB 855.38 KiB 831.62 KiB
5196f0d 23.75 KiB 876.93 KiB 853.19 KiB
4e3915a 23.75 KiB 858.69 KiB 834.94 KiB
7d23639 23.75 KiB 891.01 KiB 867.26 KiB
d637379 23.75 KiB 855.38 KiB 831.63 KiB
63ac649 23.75 KiB 855.38 KiB 831.63 KiB
884b224 23.75 KiB 879.60 KiB 855.86 KiB
c63e0fe 23.74 KiB 874.08 KiB 850.33 KiB
a2a3bfb 23.75 KiB 872.67 KiB 848.92 KiB

Previous results on branch: feat/structured-logs-user-attributes

Startup times

Revision Plain With Sentry Diff
3d34753 1226.52 ms 1259.86 ms 33.34 ms

App size

Revision Plain With Sentry Diff
3d34753 23.75 KiB 895.27 KiB 871.52 KiB

denrase added 3 commits July 21, 2025 15:18
# Conflicts:
#	Sources/Sentry/include/SentryScope+PrivateSwift.h
#	Sources/Swift/Tools/SentryLogger.swift
#	Tests/SentryTests/SentryLoggerTests.swift
Copy link
Contributor

🚨 Detected changes in high risk code 🚨

High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:

  • Sources/Sentry/SentryNetworkTracker.m

@denrase denrase merged commit 0e45d25 into main Jul 21, 2025
144 of 145 checks passed
@denrase denrase deleted the feat/structured-logs-user-attributes branch July 21, 2025 16:25
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.

Structured Logs: Add user attributes to logs
3 participants