Closed helio-frota closed 3 months ago
Before:
2024-05-16T12:25:13.169524Z INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime
2024-05-16T12:25:28.634354Z INFO actix_web::middleware::logger: ::1 "GET /metrics HTTP/1.1" 200 0 "-" "curl/8.2.1" 0.000378
2024-05-16T12:25:33.007948Z INFO actix_web::middleware::logger: ::1 "GET /metrics HTTP/1.1" 200 1683 "-" "curl/8.2.1" 0.000498
2024-05-16T12:25:35.199525Z INFO actix_web::middleware::logger: ::1 "GET /metrics HTTP/1.1" 200 1683 "-" "curl/8.2.1" 0.000337
2024-05-16T12:27:31.243538Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.244018Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/ HTTP/1.1" 200 319 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.001298
2024-05-16T12:27:31.264350Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.264350Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.264837Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/index.css HTTP/1.1" 200 139 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.000969
2024-05-16T12:27:31.264896Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-initializer.js HTTP/1.1" 200 313 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.000958
2024-05-16T12:27:31.273542Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.279255Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.290695Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui.css HTTP/1.1" 200 23564 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.027628
2024-05-16T12:27:31.317061Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui-standalone-preset.js HTTP/1.1" 200 84081 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.053140
2024-05-16T12:27:31.339082Z WARN actix_web_prom: Cannot build mixed cardinality pattern "/swagger-ui/{_:.*}"
2024-05-16T12:27:31.531194Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui-bundle.js HTTP/1.1" 200 419805 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.267327
2024-05-16T12:27:31.799718Z INFO actix_web::middleware::logger: ::1 "GET /openapi.json HTTP/1.1" 200 3042 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.007301
After:
2024-05-16T12:28:10.717984Z INFO actix_server::server: Tokio runtime found; starting in existing Tokio runtime
2024-05-16T12:28:14.623434Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/ HTTP/1.1" 200 319 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.002084
2024-05-16T12:28:14.645072Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/index.css HTTP/1.1" 200 139 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.001065
2024-05-16T12:28:14.645128Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-initializer.js HTTP/1.1" 200 313 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.001013
2024-05-16T12:28:14.669089Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui.css HTTP/1.1" 200 23564 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.025862
2024-05-16T12:28:14.691281Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui-standalone-preset.js HTTP/1.1" 200 84081 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.047225
2024-05-16T12:28:14.897206Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/swagger-ui-bundle.js HTTP/1.1" 200 419805 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.253196
2024-05-16T12:28:15.003841Z INFO actix_web::middleware::logger: ::1 "GET /swagger-ui/favicon-32x32.png HTTP/1.1" 200 628 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.000561
2024-05-16T12:28:15.008270Z INFO actix_web::middleware::logger: ::1 "GET /openapi.json HTTP/1.1" 200 3042 "http://localhost:8080/swagger-ui/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" 0.008015
I got a review and advice and this approach will not solve the problem
Related to #82