mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-05 13:45:53 +00:00
move metrics to end of pipeline
This commit is contained in:
1 parent
4e52fe1060
commit
ca6dfd7c45
1 file changed
+6
-5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user