Start an Activity.
[String]
Name The name of the activity. Mandatory[Switch]
Kind _An Activity.Kind for this Activity.- Internal: Internal operation within an application, as opposed to operations with remote parents or children. This is the default value.
- Server: Requests incoming from external component
- Client: Outgoing request to the external component
- Producer: Output provided to external components
- Consumer: Output received from an external component_
[ActivitySource]
ActivitySource An ActivitySource. Mandatory, ValueFromPipeline
- New-ActivitySource
- https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs
Activity is the .Net implementation of an OpenTelemetry "Span". If there are no registered listeners or there are listeners that are not interested, Start-Activity will return null and avoid creating the Activity object. This is a performance optimization so that the code pattern can still be used in functions that are called frequently.
System.Diagnostics.Activity