Remove MLflow tracing from production deployment #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MLflow tracing was added to
ml/serving/main.pyfor observability during M2/M3 development. It logs one run per/recommendcall plus per-agentcomputeandinferruns.Problem: In production this adds latency (synchronous REST calls to MLflow after each tip) and creates a hard dependency on the MLflow container being reachable. The current implementation is fire-and-forget (errors are swallowed), but the HTTP calls still add wall-clock time.
Action items:
MLFLOW_TRACING=true) rather than presence ofMLFLOW_TRACKING_URIml-servingentirelyMLFLOW_TRACKING_URIfrom thefullcompose profile; only include it in themlopsprofileml-servingstarts and serves tips correctly with no MLflow configured (already the case — verify in CI)Acceptance criteria:
/recommendin productionfullcompose profile