Adds and ActivitySource to a TracerProviderBuilder
[String[]]
Name Name of the Activity. Mandatory[TracerProviderBuilderBase]
TracerProviderBuilder A TracerProviderBuilderBase object. Mandatory, ValueFromPipeline
[ActivitySource]
ActivitySource An ActivitySource object. Mandatory[TracerProviderBuilderBase]
TracerProviderBuilder A TracerProviderBuilderBase object. Mandatory, ValueFromPipeline
Add a source by Name.
New-TracerProviderBuilder | Add-TracerSource -Name "MyActivity"
Create an Activity Soruce object.
$source = New-ActivitySource -Name "MyActivity"
New-TracerProviderBuilder | Add-TracerSource -AcvititySource $source