Skip to content

Commit

Permalink
Fix incorrect cref's in MetricsBuilderExtensions (dotnet#98670)
Browse files Browse the repository at this point in the history
  • Loading branch information
xakep139 committed Feb 20, 2024
1 parent 5c84b9e commit 5c57621
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ public static MetricsOptions EnableMetrics(this MetricsOptions options, string?
/// <summary>
/// Enables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="IMetricsListener"/>.
/// </summary>
/// <param name="options">The <see cref="MeterOptions"/>.</param>
/// <param name="options">The <see cref="MetricsOptions"/>.</param>
/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param>
/// <param name="instrumentName">The <see cref="Instrument.Name"/>. A null value matches all instruments.</param>
/// <param name="listenerName">The <see cref="IMetricsListener"/>.Name. A null value matches all listeners.</param>
/// <param name="scopes">Indicates which <see cref="MeterScope"/>'s to consider. Default to all scopes.</param>
/// <returns>The original <see cref="MeterOptions"/> for chaining.</returns>
/// <returns>The original <see cref="MetricsOptions"/> for chaining.</returns>
public static MetricsOptions EnableMetrics(this MetricsOptions options, string? meterName, string? instrumentName = null, string? listenerName = null,
MeterScope scopes = MeterScope.Global | MeterScope.Local)
=> options.AddRule(meterName, instrumentName, listenerName, scopes, enable: true);
Expand Down Expand Up @@ -90,12 +90,12 @@ public static MetricsOptions DisableMetrics(this MetricsOptions options, string?
/// <summary>
/// Disables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="IMetricsListener"/>.
/// </summary>
/// <param name="options">The <see cref="MeterOptions"/>.</param>
/// <param name="options">The <see cref="MetricsOptions"/>.</param>
/// <param name="meterName">The <see cref="Meter.Name"/> or prefix. A null value matches all meters.</param>
/// <param name="instrumentName">The <see cref="Instrument.Name"/>. A null value matches all instruments.</param>
/// <param name="listenerName">The <see cref="IMetricsListener"/>.Name. A null value matches all listeners.</param>
/// <param name="scopes">Indicates which <see cref="MeterScope"/>'s to consider. Default to all scopes.</param>
/// <returns>The original <see cref="MeterOptions"/> for chaining.</returns>
/// <returns>The original <see cref="MetricsOptions"/> for chaining.</returns>
public static MetricsOptions DisableMetrics(this MetricsOptions options, string? meterName, string? instrumentName = null, string? listenerName = null,
MeterScope scopes = MeterScope.Global | MeterScope.Local)
=> options.AddRule(meterName, instrumentName, listenerName, scopes, enable: false);
Expand Down

0 comments on commit 5c57621

Please sign in to comment.