- Introduced uvicorn and logging imports to support FastAPI's ASGI nature and standardized logging mechanism.
- Initialized a standard Python logger to replace FastAPI's logger for error handling in ecs_metrics_exporter.py.
- Adjusted the order of operations in the collect_ecs_task_metadata function for better readability and maintainability.
- Replaced Flask's app.run with uvicorn.run and explicitly cast LISTEN_PORT to an integer to prevent TypeError upon application launch.
This update enhances the ECS Metrics Exporter by fully adopting FastAPI and improving the logging system, paving the way for more robust and maintainable code.