public sealed class Link : IMessage<Span.Types.Link>, IEquatable<Span.Types.Link>, IDeepCloneable<Span.Types.Link>, IBufferMessage, IMessage
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
Implements
IMessage<Span.Types.Link>, IEquatable<Span.Types.Link>, IDeepCloneable<Span.Types.Link>, IBufferMessage, IMessageNamespace
Google.Cloud.Trace.V2Assembly
Google.Cloud.Trace.V2.dll
Constructors
Link()
public Link()
Link(Span.Types.Link)
public Link(Span.Types.Link other)
Parameter | |
---|---|
Name | Description |
other | Span.Types.Link |
Properties
Attributes
public Span.Types.Attributes Attributes { get; set; }
A set of attributes on the link. You have have up to 32 attributes per link.
Property Value | |
---|---|
Type | Description |
Span.Types.Attributes |
SpanId
public string SpanId { get; set; }
The [SPAN_ID] for a span within a trace.
Property Value | |
---|---|
Type | Description |
String |
TraceId
public string TraceId { get; set; }
The [TRACE_ID] for a trace within a project.
Property Value | |
---|---|
Type | Description |
String |
Type
public Span.Types.Link.Types.Type Type { get; set; }
The relationship of the current span relative to the linked span.
Property Value | |
---|---|
Type | Description |
Span.Types.Link.Types.Type |