Skip to content

Fix feature flag model keys#2943

Merged
denrase merged 2 commits into
mainfrom
fix/use-correct-feature-flag-keys
May 14, 2025
Merged

Fix feature flag model keys#2943
denrase merged 2 commits into
mainfrom
fix/use-correct-feature-flag-keys

Conversation

@denrase

@denrase denrase commented May 14, 2025

Copy link
Copy Markdown
Collaborator

📜 Description

Uses the correct keys as described in: https://develop.sentry.dev/sdk/data-model/event-payloads/contexts/#feature-flag-context

💡 Motivation and Context

Feature flags were not visible on sentry.io

💚 How did you test it?

Unit tests. Tested with sample app.

https://sentry-sdks.sentry.io/issues/4349777516/events/latest/?project=5428562&query=is%3Aunresolved%20issue.category%3A%5Berror%2Coutage%5D&referrer=latest-event&stream_index=0

Bildschirmfoto 2025-05-14 um 14 54 57

📝 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

🔮 Next steps

@denrase denrase changed the title Fix feate flag model keys Fix feature flag model keys May 14, 2025
@denrase denrase added the Bug label May 14, 2025
@denrase

denrase commented May 14, 2025

Copy link
Copy Markdown
Collaborator Author

@buenaflor I somehow mixed up the JSON keys. I remember seeing them in the event contexts in the old sentry.io UI, thinking that was enough/correct. Sorry about that.

@denrase
denrase marked this pull request as ready for review May 14, 2025 12:57
@github-actions

Copy link
Copy Markdown
Contributor

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1265.19 ms 1277.70 ms 12.51 ms
Size 8.43 MiB 10.01 MiB 1.58 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5e8d2b3 1255.71 ms 1267.98 ms 12.27 ms
051e97a 1245.94 ms 1249.51 ms 3.57 ms
07cd9e8 1237.04 ms 1257.50 ms 20.46 ms
7fd33d3 1241.92 ms 1265.47 ms 23.55 ms
a24a1db 1257.71 ms 1271.57 ms 13.87 ms
5aa047a 1236.57 ms 1241.02 ms 4.45 ms
abfcdb5 1230.87 ms 1244.94 ms 14.06 ms
7659cbe 1246.70 ms 1265.88 ms 19.17 ms
4d046e0 1243.08 ms 1255.98 ms 12.90 ms
bd1b990 1209.43 ms 1226.96 ms 17.53 ms

App size

Revision Plain With Sentry Diff
5e8d2b3 8.29 MiB 9.36 MiB 1.07 MiB
051e97a 8.28 MiB 9.34 MiB 1.06 MiB
07cd9e8 8.38 MiB 9.77 MiB 1.40 MiB
7fd33d3 8.38 MiB 9.78 MiB 1.40 MiB
a24a1db 8.42 MiB 9.91 MiB 1.49 MiB
5aa047a 8.29 MiB 9.39 MiB 1.10 MiB
abfcdb5 8.33 MiB 9.64 MiB 1.31 MiB
7659cbe 8.42 MiB 9.89 MiB 1.47 MiB
4d046e0 8.42 MiB 9.83 MiB 1.40 MiB
bd1b990 8.32 MiB 9.38 MiB 1.06 MiB

@buenaflor buenaflor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, good thing we caught this

@denrase
denrase merged commit 0069909 into main May 14, 2025
@denrase
denrase deleted the fix/use-correct-feature-flag-keys branch May 14, 2025 13:45
@codecov

codecov Bot commented May 14, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.66%. Comparing base (bc3ad3c) to head (9e8c532).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2943      +/-   ##
==========================================
+ Coverage   87.63%   88.66%   +1.03%     
==========================================
  Files         272      100     -172     
  Lines        9047     3669    -5378     
==========================================
- Hits         7928     3253    -4675     
+ Misses       1119      416     -703     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants