RM

Monitoring & Logs

Set up monitoring, error tracking, and logging for ReturnMate operations.

4 min read
Last updated 31 December 2024

Proper monitoring helps you catch issues early and maintain reliable operations. This guide covers monitoring options and recommendations for ReturnMate.

Built-In Monitoring

System Status

ReturnMate provides built-in status monitoring:

  1. Go to Settings → System → Status
  2. View current system health
  3. Check integration connections
  4. See recent errors

Health Indicators

IndicatorMeaning
GreenAll systems operational
YellowDegraded performance
RedService disruption

Error Logging

Viewing Errors

Access error logs:

  1. Go to Settings → System → Error Log
  2. Filter by date, type, or severity
  3. Click entries for details

Error Information

Each error log includes:

  • Timestamp
  • Error type and message
  • Affected operation
  • Stack trace (technical)
  • Resolution status

Sentry (Error Tracking)

We recommend Sentry for error tracking:

  • Real-time error alerts
  • Stack traces and context
  • Issue grouping and trends
  • Integration with development tools

Note: ReturnMate uses Sentry internally for error tracking to ensure platform reliability.

Uptime Monitoring

Monitor your return portal availability:

  • UptimeRobot (free tier available)
  • Pingdom
  • StatusCake

Configure checks for:

  • Return portal URL
  • API endpoints
  • Webhook endpoints

Setting Up Alerts

Alert Types

Configure alerts for:

AlertTriggerPriority
Portal DownReturn portal unreachableHigh
Label FailuresMultiple label generation failsHigh
Webhook ErrorsWebhook delivery failuresMedium
Sync IssuesIntegration sync problemsMedium
Capacity WarningsApproaching limitsLow

Notification Channels

Receive alerts via:

  • Email
  • Slack
  • SMS (for critical issues)
  • PagerDuty

Performance Monitoring

Key Metrics

Monitor these performance indicators:

MetricTargetAlert Threshold
Page Load Time< 3s> 5s
API Response< 500ms> 2s
Label Generation< 10s> 30s
Database Queries< 100ms> 500ms

Tools

Performance monitoring tools:

  • Google Analytics (for portal)
  • New Relic APM
  • Datadog

Webhook Monitoring

Delivery Monitoring

Track webhook reliability:

  • Success rate
  • Average response time
  • Failure patterns

Setting Up Monitoring

  1. Log all webhook deliveries
  2. Track success/failure rates
  3. Alert on high failure rates
  4. Review patterns weekly
Webhook Reliability

Aim for 99% webhook delivery success. Investigate if you drop below 95%.

Integration Health

Checking Integration Status

  1. Go to Settings → Integrations
  2. View status for each integration
  3. Green = healthy, Red = issue

Common Integration Issues

IntegrationCommon Issues
ShopifyAPI rate limits, auth expiry
GorgiasSync delays, permission changes
CarriersCredential expiry, service issues

Log Retention

How Long Logs Are Kept

Log TypeRetention
Error Logs90 days
Access Logs30 days
Webhook Logs30 days
Audit Logs2 years

Exporting Logs

For longer retention:

  1. Set up scheduled exports
  2. Export to your logging system
  3. Archive for compliance

Best Practices

  • Set up uptime monitoring for return portal
  • Configure alerts for critical issues
  • Review error logs weekly
  • Monitor webhook delivery rates
  • Track integration health daily
  • Maintain log exports for compliance
Was this helpful?
Contact Support