<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0-preview.6.22324.4" />

ActivityLink

Activities may be linked to zero or more activity context instances that are causally related. Activity links can point to activity contexts inside a single trace or across different traces. Activity links can be used to represent batched operations where an activity was initiated by multiple initiating activities, each representing a single incoming item being processed in the batch.
public ActivityContext Context { get; }

Retrieves the activity context inside this activity link.

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

Retrieves the key-value pair enumeration of tags attached to the activity context.

Constructs a new activity link, which can be linked to an activity.

public static bool op_Equality(ActivityLink left, ActivityLink right)

Determines whether two specified ActivityLink values are equal.

public static bool op_Inequality(ActivityLink left, ActivityLink right)

Determines whether two specified ActivityLink values are not equal.

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

public bool Equals(ActivityLink value)

Indicates whether the current activity link is equal to another activity link.