mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
move metrics to end of pipeline
This commit is contained in:
parent
4e52fe1060
commit
ca6dfd7c45
|
@ -139,17 +139,18 @@ namespace Jellyfin.Server
|
||||||
mainApp.UseJellyfinApiSwagger(_serverConfigurationManager);
|
mainApp.UseJellyfinApiSwagger(_serverConfigurationManager);
|
||||||
mainApp.UseRouting();
|
mainApp.UseRouting();
|
||||||
mainApp.UseAuthorization();
|
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.UseLanFiltering();
|
||||||
mainApp.UseIpBasedAccessValidation();
|
mainApp.UseIpBasedAccessValidation();
|
||||||
mainApp.UseWebSocketHandler();
|
mainApp.UseWebSocketHandler();
|
||||||
mainApp.UseServerStartupMessage();
|
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 =>
|
mainApp.UseEndpoints(endpoints =>
|
||||||
{
|
{
|
||||||
endpoints.MapControllers();
|
endpoints.MapControllers();
|
||||||
|
|
Loading…
Reference in a new issue