Compare commits

..

1 Commits

Author SHA1 Message Date
dd052341b7 feature branch: gate test
All checks were successful
Tests / Test passed: 3
demo-app-mb/pipeline/head This commit looks good
2026-09-16 16:39:19 +00:00
3 changed files with 5 additions and 14 deletions

View File

@ -22,12 +22,4 @@ USER appuser
EXPOSE 8000 EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=3s CMD python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8000/health')" HEALTHCHECK --interval=30s --timeout=3s CMD python -c "import urllib.request;urllib.request.urlopen('http://127.0.0.1:8000/health')"
# Tracing default OFF. k8s manifest me OTEL_SDK_DISABLED=false karke on hota hai, CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app.main:app"]
# taaki build/smoke test ke waqt export ki koshish na ho.
ENV OTEL_SDK_DISABLED=true \
OTEL_TRACES_EXPORTER=otlp \
OTEL_METRICS_EXPORTER=none \
OTEL_LOGS_EXPORTER=none \
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
CMD ["opentelemetry-instrument", "gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app.main:app"]

View File

@ -18,3 +18,5 @@ def index():
if __name__ == "__main__": if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000) app.run(host="0.0.0.0", port=8000)
# feature branch - sirf CI gates chalne chahiye, deploy NAHI

View File

@ -1,5 +1,2 @@
flask flask==3.0.3
gunicorn gunicorn==22.0.0
opentelemetry-distro
opentelemetry-exporter-otlp-proto-http
opentelemetry-instrumentation-flask