Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MeterFactoryExtensions.Create Method

Definition

Namespace:
System.Diagnostics.Metrics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115
Source:
MeterFactoryExtensions.cs
Source:
MeterFactoryExtensions.cs
Source:
MeterFactoryExtensions.cs
Source:
MeterFactoryExtensions.cs
Source:
MeterFactoryExtensions.cs
Source:
MeterFactoryExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates a Meter with the specified name, version, and tags.

public static System.Diagnostics.Metrics.Meter Create(this System.Diagnostics.Metrics.IMeterFactory meterFactory, string name, string? version = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
static member Create : System.Diagnostics.Metrics.IMeterFactory * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.Metrics.Meter
<Extension()>
Public Function Create (meterFactory As IMeterFactory, name As String, Optional version As String = Nothing, Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As Meter

Parameters

meterFactory
IMeterFactory

The IMeterFactory to use to create the Meter.

name
String

The name of the Meter.

version
String

The version of the Meter.

tags
IEnumerable<KeyValuePair<String,Object>>

The tags to associate with the Meter.

Returns

A Meter with the specified name, version, and tags.

Applies to


Feedback

Was this page helpful?