<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.0-preview.3.24172.9" />

ActivityKind

public enum ActivityKind
Describes the relationship between the activity, its parents and its children in a trace.
Client = 2

Outgoing request to the external component.

Output received from an external component.

Internal operation within an application, as opposed to operations with remote parents or children. This is the default value.

Output provided to external components.

Server = 1

Requests incoming from external component.