<PackageReference Include="OpenTelemetry.Api" Version="1.12.0" />

OpenTelemetry.Trace.Link

public struct Link : IEquatable<Link>
Link associated with the span.
public IEnumerable<KeyValuePair<string, object>> Attributes { get; }

Gets the collection of attributes associated with the link.

public SpanContext Context { get; }

Gets the span context of a linked span.

public Link(ref SpanContext spanContext)

Initializes a new instance of the Link struct.

public Link(ref SpanContext spanContext, SpanAttributes attributes)

Initializes a new instance of the Link struct.

public static bool op_Equality(Link link1, Link link2)

Compare two Link for equality.

public static bool op_Inequality(Link link1, Link link2)

Compare two Link for not equality.

public bool Equals(Link other)