diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-05-10 14:43:57 -0400 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-05-10 14:43:57 -0400 |
| commit | dc5165b97fdd1342d4673ba1a30d44198327c314 (patch) | |
| tree | ccbd3a3adc28f53275bc084a93640e3f56aa46bf /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 43c22a58229892836df645031fb570f37994e19e (diff) | |
| parent | f33876e7e351129ea2296b537b38f9c87fd67b70 (diff) | |
Merge branch 'master' into simplify-https-config
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 2201c3cfc..10a7e879e 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -105,6 +105,7 @@ using Microsoft.AspNetCore.Http.Extensions; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using OperatingSystem = MediaBrowser.Common.System.OperatingSystem; +using Prometheus.DotNetRuntime; namespace Emby.Server.Implementations { @@ -258,6 +259,12 @@ namespace Emby.Server.Implementations _startupOptions = options; + // Initialize runtime stat collection + if (ServerConfigurationManager.Configuration.EnableMetrics) + { + DotNetRuntimeStatsBuilder.Default().StartCollecting(); + } + fileSystem.AddShortcutHandler(new MbLinkShortcutHandler(fileSystem)); _networkManager.NetworkChanged += OnNetworkChanged; |
