feat(sentry): capture AI cloud weather tool errors#2378
Conversation
…umbs - Add Sentry breadcrumbs at every tool call state transition (input-streaming → input-available → output-available/output-error) so the full flow is visible in the breadcrumb trail on any error - Capture output-available failures as captureException and output-error stream failures as captureException, both tagged ai_tool=getWeatherForLocation / ai_mode=cloud - Enrich the API WeatherService error to include HTTP status code and the OpenWeatherMap response message (e.g. "city not found") plus the queried location, replacing the generic "Weather API request failed" - Add Sentry captureException to expo weatherService for searchLocations, searchLocationsByCoordinates, and getWeatherData API failures, each with input context and a weather_operation tag
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThis PR adds Sentry instrumentation across the weather feature stack, from API error handling through to AI-driven UI components. Error reporting now captures contextual data (location, coordinates, operation types) and state transitions are tracked via breadcrumbs for debugging. ChangesSentry Instrumentation for Weather Features
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for API Unit Tests Coverage (./packages/api)
File CoverageNo changed files found. |
Coverage Report for Expo Unit Tests Coverage (./apps/expo)
File CoverageNo changed files found. |
…errors feat(sentry): capture AI cloud weather tool errors
Summary by CodeRabbit