otel: wire into live boot — load otel.sx + mount otel/routes in serve.sh

Adds lib/host/otel.sx to serve.sh MODULES and otel/routes to the host/serve
group list so GET /otel (+ /otel/stream) serve on the live host once merged.
Build-time wiring only; no container touched.
This commit is contained in:
2026-07-01 16:14:30 +00:00
parent 351131e92b
commit 0d302b8a85

View File

@@ -91,6 +91,7 @@ MODULES=(
"lib/host/htmlsx.sx"
"lib/host/blog.sx"
"lib/host/server.sx"
"lib/host/otel.sx"
)
# Admin login credentials + session signing secret. Override via the container
@@ -194,5 +195,5 @@ EPOCH=1
# middleware, so a browser logs in then publishes. The bearer resolver is a stub
# (no API tokens configured) — browser session is the live auth path for now.
# blog-routes LAST — its GET /:slug catch-all must not shadow the rest.
echo "(eval \"(host/serve $PORT (list host/static-routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes))\")"
echo "(eval \"(host/serve $PORT (list host/static-routes host/feed-routes host/relations-routes (host/blog-write-routes (fn (tok) nil)) host/blog-routes otel/routes))\")"
} | exec "$SX_SERVER"