The Free Software Media System - Server Backend & API
move metrics to end of pipeline
crobiberoca6dfd7c45a8
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.csindex ee84e8201e..d17152982f 100644--- a/Jellyfin.Server/Startup.cs+++ b/Jellyfin.Server/Startup.cs@@ -139,17 +139,18 @@ namespace Jellyfin.ServermainApp.UseJellyfinApiSwagger(_serverConfigurationManager);mainApp.UseRouting();mainApp.UseAuthorization();- if (_serverConfigurationManager.Configuration.EnableMetrics)- {- // Must be registered after any middleware that could change HTTP response codes or the data will be bad- mainApp.UseHttpMetrics();- }mainApp.UseLanFiltering();mainApp.UseIpBasedAccessValidation();mainApp.UseWebSocketHandler();mainApp.UseServerStartupMessage();+ if (_serverConfigurationManager.Configuration.EnableMetrics)+ {+ // Must be registered after any middleware that could change HTTP response codes or the data will be bad+ mainApp.UseHttpMetrics();+ }+mainApp.UseEndpoints(endpoints =>{endpoints.MapControllers();