This repo contains every ML/NLU related code written by Botpress in the NodeJS environment. This includes the Botpress Standalone NLU Server.
22
stars
21
forks
source link
fix(telemetry): fix path normalization in metics module #148
Closed
michaelmass closed 2 years ago
Fixes the prometheus path normalization and optimize the efficiency of normalizing the path by creating a precompiled
routes
object.The path normalization transforms a route from the inbound request for example
/predict/435298754893275.en
to it's normalized form/predict/:modelId
.The
routes
object is only generated once if it is empty to optimized the computation on every request.