expo-observe: attributes on `reportError`, and filtering by attribute in `eas observe`
William
We're moving error reporting for a React Native app (SDK 58) from Sentry to Expo Observe. Two things would make this much easier:
- Per-error attributes:Observe.reportError(error, { attributes }), for context like the API operation, the HTTP status or our backend trace id. Today we log a separate event just before each error and match the two by session and time. Global attributes don't work for this, because they're applied asynchronously on the native side and can land on the wrong record.
- Filter by attributein theeas observe:*commands and the dashboard, for example--attribute analytics.session_id=<uuid>. That would let us jump straight from our backend logs or analytics to the matching Observe records. Today only Observe's own session id can be filtered on.