Commit Graph

5 Commits

Author SHA1 Message Date
BXY0414
1c89c4a11f feat(product): switch product IDs to application snowflake generation 2026-07-10 16:31:07 +08:00
robinj0726
517f629d76 feat: integrate Snowflake ID generation for product and SKU creation
- Added a new ID generator using the Snowflake algorithm to create unique identifiers for products and SKUs.
- Updated the product server to utilize the ID generator for assigning IDs during product and SKU creation.
- Refactored the product repository to accommodate the new ID handling logic.
- Introduced unit tests for the ID generator to ensure correct functionality and error handling.
2026-07-10 15:56:42 +08:00
robinj0726
2e5cf31b67 feat: add observability and metrics support
- Introduced Prometheus metrics for gRPC requests and product creation.
- Integrated OpenTelemetry for distributed tracing.
- Updated Docker Compose configuration to expose metrics endpoint.
- Enhanced architecture and development documentation with new environment variables.
- Refactored configuration loading to include metrics and tracing settings.
- Implemented observability package to handle tracing and metrics.
- Updated product server to utilize observability features for logging and tracing.
2026-07-07 17:29:54 +08:00
robinj0726
8595f4f9c8 Refactor logging to use zap logger in main and product server, enhancing error handling and consistency. 2026-07-01 18:15:16 +08:00
robinj0726
6a4c4fcb2f Initialize ids-svc-product microservice with core structure, including environment configuration, PostgreSQL setup, and gRPC server implementation. Added .env.example for environment variables, .gitignore to exclude sensitive files, and foundational documents for architecture and development guidelines. Implemented product repository and server logic for handling product and SKU data. 2026-06-26 22:10:15 +08:00