Struct Link
- Namespace
- OpenTelemetry.Trace
- Assembly
- OpenTelemetry.Api.dll
Link associated with the span.
public readonly struct Link : IEquatable<Link>
- Implements
- Inherited Members
Constructors
Link(in SpanContext)
Initializes a new instance of the Link struct.
public Link(in SpanContext spanContext)
Parameters
spanContext
SpanContextSpan context of a linked span.
Link(in SpanContext, SpanAttributes)
Initializes a new instance of the Link struct.
public Link(in SpanContext spanContext, SpanAttributes attributes)
Parameters
spanContext
SpanContextSpan context of a linked span.
attributes
SpanAttributesLink attributes.
Properties
Attributes
Gets the collection of attributes associated with the link.
public IEnumerable<KeyValuePair<string, object>> Attributes { get; }
Property Value
Context
Gets the span context of a linked span.
public SpanContext Context { get; }
Property Value
Methods
Equals(Link)
public bool Equals(Link other)
Parameters
other
Link
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator ==(Link, Link)
Compare two Link for equality.
public static bool operator ==(Link link1, Link link2)
Parameters
Returns
operator !=(Link, Link)
Compare two Link for not equality.
public static bool operator !=(Link link1, Link link2)