Custom attributes turn Firebase Performance Monitoring from “the app is slow” into “the app is slow for premium users on Wi-Fi after the checkout redesign”. They only help if the values are reliable, and setting them from several threads at once is an easy way to lose or corrupt them.
The Firebase Apple SDK 13.2.0 release notes (16 November 2026) list a fix to prevent races when accessing global, trace and HTTP metric custom attributes concurrently. If you set attributes from background queues or async code, this is worth knowing about.
What Goes Wrong Without Reliable Attributes
Attributes missing from some traces make segments look smaller than they are. Crashes or odd values from concurrent access are hard to reproduce, so teams blame the network or devices. Dashboards then show slow screens with no clear cause, and fixes are aimed at the wrong place.
Data Points to Track
Use a short, stable set of attributes, remembering Firebase limits how many you can attach and how long names and values can be (check the current limits in the docs):
plan_type: free, trial or paidnetwork_type: Wi-Fi, cellular or offlineapp_versionandbuild_numberfeature_flag_state: the active variant for the screenscreen_name: the traced screendata_size_bucket: small, medium or large payloadcache_state: hit, miss or staleos_versionanddevice_tier
Setup Steps
- Upgrade the Firebase Apple SDK to 13.2.0 or later and read the release notes for anything affecting your build.
- List every place you set custom attributes on global, trace or HTTP metric objects.
- Mark which of those run on background queues, in async tasks or in callbacks.
- Set attributes as early as possible, before the work you are timing finishes, and avoid changing the same attribute repeatedly.
- Keep values low in variety. Use buckets rather than raw IDs.
- Run a debug build with the Firebase debug logging on, trigger the trace and confirm attributes appear in the console.
- Add a unit or UI test that starts a trace, sets attributes from two queues and checks the app does not crash.
Actionable Insights
Segment slow traces by network_type first. If slowness disappears on Wi-Fi, the fix is payload size or retries, not rendering.
Compare traces by cache_state. A large gap between hit and miss shows how much a caching change could save.
Check the share of traces with each attribute set. A drop after an app release suggests an attribute is no longer set on some code path.
Review attribute cardinality monthly. Too many unique values make segments unusable.
Finally, record the attribute set alongside each release in your tracking plan. When a new version changes which attributes exist, note it, so a sudden change in a trace chart is read as a measurement change and not mistaken for a real performance regression. Pair traces with crash and ANR data for the same app version to see whether slow screens also fail more often.