Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging, Monitoring, Analytics and Reporting to sunder gutka #218

Open
indersinghkhalis opened this issue Feb 12, 2025 · 1 comment
Open

Comments

@indersinghkhalis
Copy link

For a robust React Native project, it's best to combine several tools and practices for logging, error monitoring, and performance tracking. Here’s a breakdown of what you might consider:

  1. Error & Crash Reporting:

    • Sentry or Bugsnag: These services capture unhandled exceptions, provide detailed stack traces, and let you attach contextual data. They’re well-integrated with React Native and can also track performance issues.
    • Firebase Crashlytics: Another popular option that offers real-time crash reporting along with insights into crash trends.
  2. Performance Monitoring:

    • Firebase Performance Monitoring: Helps you understand app performance issues, such as slow network requests or rendering problems.
    • New Relic Mobile: Offers in-depth performance metrics if you need more advanced monitoring.
  3. Debugging & Logging:

    • Flipper & Reactotron: Flipper (now the default debugging tool for React Native) and Reactotron are excellent for in-app debugging, logging, network inspection, and state management debugging.
    • Structured Logging: Use logging libraries (e.g., [react-native-logs](https://github.com/onubo/react-native-logs)) that support log levels (debug, info, warn, error) to keep logs organized. Ensure that verbose logging is disabled in production to prevent performance hits and leaking sensitive information.
    • Redux Middleware: If you’re using Redux, consider middleware like redux-logger during development (make sure to disable it in production) to track state changes and actions.
  4. User Analytics:

    • Mixpanel, Amplitude, or Segment: These tools help you track user behavior and engagement. They complement error and performance monitoring by showing you the context in which issues occur.

Best Practices:

  • Contextual Data: Attach relevant context (like user identifiers or session info) to your logs and error reports, but avoid logging sensitive data.
  • Environment Separation: Differentiate between development, staging, and production logging configurations.
  • Performance Impact: Ensure that your logging and monitoring solutions don’t adversely affect app performance—use conditional logging and disable non-essential logs in production.
  • Regular Review: Periodically analyze your logs and monitoring dashboards to proactively address issues and optimize performance.

Using this layered approach ensures you have comprehensive visibility into your app’s behavior and performance, making it easier to diagnose and fix issues quickly.

@indersinghkhalis indersinghkhalis changed the title Add logging to sunder gutka Add logging, Monitoring, Analytics and Reporting to sunder gutka Feb 12, 2025
@amitojsingh
Copy link
Collaborator

@indersinghkhalis Veer ji We are using Firebase Crash analytics and analytics for logging and monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants