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

ActivityKind

public enum ActivityKind
Kind describes the relationship between the Activity, its parents, and its children in a Trace. -------------------------------------------------------------------------------- ActivityKind Synchronous Asynchronous Remote Incoming Remote Outgoing -------------------------------------------------------------------------------- Internal Client yes yes Server yes yes Producer yes maybe Consumer yes maybe --------------------------------------------------------------------------------
Client = 2

Client activity represents outgoing request to the external component.

Consumer activity represents output received from an external component.

Default value. Indicates that the Activity represents an internal operation within an application, as opposed to an operations with remote parents or children.

Producer activity represents output provided to external components.

Server = 1

Server activity represents request incoming from external component.