diff --git a/build/docker/Dockerfile.monolith b/build/docker/Dockerfile.monolith index 2d75c8ac1..b3415171f 100644 --- a/build/docker/Dockerfile.monolith +++ b/build/docker/Dockerfile.monolith @@ -9,7 +9,7 @@ WORKDIR /build COPY . /build RUN mkdir -p bin -RUN go build -trimpath -o bin/ -ldflags="-X routing.ReleaseVersion=$RELEASE_VERSION" ./cmd/dendrite-monolith-server +RUN go build -trimpath -o bin/ -ldflags="-X 'github.com/matrix-org/dendrite/clientapi/routing.ReleaseVersion=$RELEASE_VERSION'" ./cmd/dendrite-monolith-server RUN go build -trimpath -o bin/ ./cmd/create-account RUN go build -trimpath -o bin/ ./cmd/generate-keys diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index de441b7d8..a06ef3c12 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -64,6 +64,11 @@ func Setup( extRoomsProvider api.ExtraPublicRoomsProvider, mscCfg *config.MSCs, natsClient *nats.Conn, ) { + + logrus.WithFields(logrus.Fields{ + "ReleaseVersion": ReleaseVersion, + }).Info("Started clientAPI router with ReleaseVersion") + prometheus.MustRegister(amtRegUsers, sendEventDuration) rateLimits := httputil.NewRateLimits(&cfg.RateLimiting)