DiagnosticCounter.DisplayName Property

Definition

Gets or sets the display name of the counter.

C#
public string DisplayName { get; set; }

Property Value

The display name of the counter.

Remarks

The DisplayName provides a more display friendly name for the consumer side of the metrics. For example, a counter named "gen-0-gc-count" is better displayed as "Gen 0 GC Count". To do so, DisplayName can be used to be reported as part of the payload.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1