<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0-preview.2.23128.3" />

ActivityLink

Activity may be linked to zero or more other ActivityContext that are causally related. Links can point to ActivityContexts inside a single Trace or across different Traces. Links can be used to represent batched operations where a Activity was initiated by multiple initiating Activities, each representing a single incoming item being processed in the batch.
public ActivityContext Context { get; }

Retrieve the ActivityContext object inside this ActivityLink object.

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

Retrieve the key-value pair list of tags attached with the ActivityContext.

Construct a new ActivityLink object which can be linked to an Activity object.

public static bool op_Equality(ActivityLink left, ActivityLink right)

public static bool op_Inequality(ActivityLink left, ActivityLink right)

public Enumerator<KeyValuePair<string, object>> EnumerateTagObjects()

Enumerate the tags attached to this ActivityLink object.

public bool Equals(ActivityLink value)