From 655b560ef8b6eebcbe65f6b279f88b12d6264260 Mon Sep 17 00:00:00 2001 From: Prashant Vasudevan <71649489+vprashrex@users.noreply.github.com> Date: Thu, 29 Oct 2026 11:10:50 +0530 Subject: [PATCH] fix(docker): disable guardrails-ai hub telemetry guardrails-ai defaults enable_metrics=True when ~/.guardrailsrc is absent and exports spans to a vendor collector that no longer resolves, flooding Sentry with 'Failed to export span batch' errors on /api/v1/guardrails/. Write enable_metrics=false into the image. --- backend/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 82f7668..fadda22 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -67,6 +67,8 @@ RUN --mount=type=secret,id=HF_TOKEN \ AutoTokenizer.from_pretrained('neuronsbyisshu/indicbert-hi-ner-naamapadam', cache_dir='/app/hf_cache'); \ AutoModelForTokenClassification.from_pretrained('neuronsbyisshu/indicbert-hi-ner-naamapadam', cache_dir='/app/hf_cache')" +RUN printf 'enable_metrics=false\n' > /root/.guardrailsrc + # ------------------------------- # Entrypoint (runtime setup) # -------------------------------