Skip to content

[Backend] 9.6 Add Business Metrics Tracking #254

@ACodehunter

Description

@ACodehunter

ETA

2 days

Description

This is a complex backend task that requires deep understanding of Rust, Axum, PostgreSQL, and Redis. The implementation should follow best practices for async Rust and be production-ready.

Requirements

  • Implement the feature according to the title and description
  • Work only in the specified files within the backend/ folder
  • Add comprehensive unit and integration tests
  • Update documentation in backend/README.md
  • Ensure all code follows Rust best practices and project conventions

Technical Specifications

  • Files to work in: backend/src/services/business_metrics.rs
  • All code must be within the backend/ folder
  • Use Axum for HTTP handling
  • Use SQLx for database operations
  • Use Redis for caching and job queues
  • Implement proper error handling with custom error types
  • Add tracing for observability

Acceptance Criteria

  • Feature is fully implemented and tested
  • Code compiles without warnings
  • All tests pass (cargo test)
  • Code is documented with Rustdoc comments
  • Performance benchmarks meet targets
  • No breaking changes to existing APIs (unless specified)

Resources

Notes for Contributors

  • IMPORTANT: All work must be done within the backend/ folder
  • Follow the existing project structure and code style
  • Add comprehensive error handling
  • Consider backward compatibility
  • Test thoroughly before submitting PR
  • Update backend/Cargo.toml if adding new dependencies

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions