--- name: ansight-logging-sentry description: Use this skill when mirroring Sentry-captured warnings and exceptions into Ansight session timelines from the app's own capture points. --- # Ansight Logging Skill For Sentry Use this skill when a user wants warnings and exceptions that are already being sent to Sentry to also appear in Ansight session data. ## Goal Mirror the app's Sentry capture points into Ansight so the Ansight session timeline reflects the same warnings and exceptions the app reports to Sentry. ## Required Constraints - integrate at the app's capture point, wrapper, or helper layer - do not try to read back from Sentry's backend - keep Sentry as the system of record for remote error reporting - mirror key warnings and exceptions into Ansight with `Runtime.Event(...)` ## Workflow 1. Find where the app currently calls `SentrySdk.CaptureMessage(...)` or `SentrySdk.CaptureException(...)`. 2. Wrap or extend those calls so the same event is also recorded in Ansight. 3. Map warning messages to `AppEventType.Warning`. 4. Map exceptions to `AppEventType.Exception`, using the exception type and message as metadata. 5. Build and verify the app. ## Implementation Pattern ```csharp SentrySdk.CaptureException(exception); Runtime.Event(exception.GetType().Name, AppEventType.Exception, exception.Message); ``` Apply the same pattern for warning or error messages captured through Sentry. ## Done Criteria - Sentry capture behavior is preserved - Ansight timelines reflect the same warnings and exceptions - the integration happens where the app already records errors, not in a disconnected background path