diff options
| author | crobibero <cody@robibe.ro> | 2020-09-03 17:14:50 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-03 17:14:50 -0600 |
| commit | ca6dfd7c45a8a95cf66b8965053cf91a25f40673 (patch) | |
| tree | c3d36fca988c2fa1d595db5f97f06736599e609a | |
| parent | 4e52fe106088a4e425652831cbba0c373ddbc14a (diff) | |
move metrics to end of pipeline
| -rw-r--r-- | Jellyfin.Server/Startup.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs index ee84e8201..d17152982 100644 --- a/Jellyfin.Server/Startup.cs +++ b/Jellyfin.Server/Startup.cs @@ -139,17 +139,18 @@ namespace Jellyfin.Server mainApp.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(); |
