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

ActivitySourceOptions

public class ActivitySourceOptions
Options for creating an ActivitySource.
public string Name { get; set; }

Gets or sets the ActivitySourceOptions object name. Cannot be null.

public IEnumerable<KeyValuePair<string, object>> Tags { get; set; }

Gets or sets the optional list of key-value pair tags associated with the ActivitySourceOptions.

public string TelemetrySchemaUrl { get; set; }

Gets or sets the location of a Schema file that can be retrieved using HTTP or HTTPS protocol.

public string Version { get; set; }

Gets or sets the ActivitySourceOptions version.

public ActivitySourceOptions(string name)

Constructs a new instance of ActivitySourceOptions.