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

ActivitySourceOptions

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