<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="10.0.0-preview.1.25080.5" />

MeterOptions

public class MeterOptions
The options for creating a Meter.
using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Diagnostics.Metrics { [NullableContext(2)] [Nullable(0)] public class MeterOptions { private string _name; [Nullable(1)] public string Name { [NullableContext(1)] get { return _name; } [NullableContext(1)] set { if (value == null) throw new ArgumentNullException("value"); _name = value; } } public string Version { get; set; } [Nullable(new byte[] { 2, 0, 1, 2 })] public IEnumerable<KeyValuePair<string, object>> Tags { [return: Nullable(new byte[] { 2, 0, 1, 2 })] get; [param: Nullable(new byte[] { 2, 0, 1, 2 })] set; } public object Scope { get; set; } [NullableContext(1)] public MeterOptions(string name) { Name = name; } } }