Skip to content

Conversation

denrase
Copy link
Collaborator

@denrase denrase commented Aug 29, 2025

📜 Description

Structured Logs: Don’t add template when there are no 'sentry.message.parameter.x’ attributes

💡 Motivation and Context

Relates to getsentry/sentry-docs#14759

Fixes #3217

💚 How did you test it?

Unit tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

@denrase denrase marked this pull request as ready for review August 29, 2025 09:16
Copy link

codecov bot commented Aug 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.86%. Comparing base (7169a96) to head (038b370).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3219   +/-   ##
=======================================
  Coverage   87.86%   87.86%           
=======================================
  Files         289      289           
  Lines        9899     9901    +2     
=======================================
+ Hits         8698     8700    +2     
  Misses       1201     1201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1264.51 ms 1260.67 ms -3.84 ms
Size 5.53 MiB 5.97 MiB 453.76 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
81f83eb 1259.53 ms 1273.39 ms 13.86 ms
93b7728 1247.23 ms 1264.87 ms 17.64 ms
827bf09 1261.86 ms 1276.41 ms 14.55 ms
eca355d 1238.39 ms 1266.98 ms 28.59 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
dbd526b 1244.78 ms 1259.02 ms 14.24 ms
73dca78 1246.65 ms 1265.42 ms 18.76 ms
c26ed0a 1244.11 ms 1263.85 ms 19.75 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms

App size

Revision Plain With Sentry Diff
81f83eb 7.86 MiB 9.44 MiB 1.58 MiB
93b7728 7.86 MiB 9.44 MiB 1.58 MiB
827bf09 7.86 MiB 9.44 MiB 1.58 MiB
eca355d 7.86 MiB 9.44 MiB 1.58 MiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
dbd526b 7.86 MiB 9.44 MiB 1.58 MiB
73dca78 7.86 MiB 9.44 MiB 1.58 MiB
c26ed0a 5.53 MiB 5.97 MiB 453.76 KiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB

@denrase denrase merged commit 5273e77 into main Aug 29, 2025
135 of 137 checks passed
@denrase denrase deleted the fix/dont-add-template-atttribute-on-empty-arguments branch August 29, 2025 11:42
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.

Make sure the Dart SDKs only set sentry.message.template on logs if sentry.message.parameter values are also defined
2 participants