Skip to content

Commit

Permalink
+ DiagnosticMetricsEnabled for multi host
Browse files Browse the repository at this point in the history
  • Loading branch information
kunga committed Oct 1, 2021
1 parent a84ec21 commit aa168bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vostok.Hosting/MultiHost/VostokMultiHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ private VostokHostingEnvironment SetupEnvironment()
{
var environmentFactorySettings = new VostokHostingEnvironmentFactorySettings
{
ConfigureStaticProviders = settings.ConfigureStaticProviders
ConfigureStaticProviders = settings.ConfigureStaticProviders,
DiagnosticMetricsEnabled = settings.DiagnosticMetricsEnabled
};

return EnvironmentBuilder.Build(
Expand Down
3 changes: 3 additions & 0 deletions Vostok.Hosting/MultiHost/VostokMultiHostSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ public VostokMultiHostSettings(VostokHostingEnvironmentSetup builder)

/// <inheritdoc cref="VostokHostSettings.ThreadPoolTuningMultiplier"/>
public int ThreadPoolTuningMultiplier { get; set; } = ThreadPoolConstants.DefaultThreadPoolMultiplier;

/// <inheritdoc cref="VostokHostSettings.DiagnosticMetricsEnabled"/>
public bool DiagnosticMetricsEnabled { get; set; }
}
}

0 comments on commit aa168bb

Please sign in to comment.