Skip to content

Commit

Permalink
Renamed per PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
billpieper committed Apr 1, 2022
1 parent 04a1229 commit 9fda387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HttpRequestDurationsMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public HttpRequestDurationsMiddleware(RequestDelegate next, HttpRequestDurations
labels.AddRange(_options.CustomLabels.Select(customLabel => customLabel.Key));

_metricHelpText += string.Join(", ", labels);
_histogram = metricFactory.CreateHistogram(options.MetricName, _metricHelpText, options.MetricTimestamp, options.Buckets, labels.ToArray());
_histogram = metricFactory.CreateHistogram(options.MetricName, _metricHelpText, options.IncludeTimestamp, options.Buckets, labels.ToArray());
}

public async Task Invoke(HttpContext context)
Expand Down
2 changes: 1 addition & 1 deletion src/HttpRequestDurationsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class HttpRequestDurationsOptions
/// <para>When false; the timestamp is NOT added.</para>
/// <para>Defaults to false.</para>
/// </summary>
public bool MetricTimestamp { get; set; } = false;
public bool IncludeTimestamp { get; set; } = false;

/// <summary>
/// HTTP status code (200, 400, 404 etc.)
Expand Down

0 comments on commit 9fda387

Please sign in to comment.