METHOD

Meter.CreateCounter<T>()

Creates a counter instrument for incremental measurements.

Formal Syntax & Structure

csharp syntaxcsharp
meter.CreateCounter<int>("inventory.requests")

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.meter.CreateCounter<int>("inventory.requests")
C# & .NET Reference