public sealed class Link : IMessage<Span.Types.Link>, IEquatable<Span.Types.Link>, IDeepCloneable<Span.Types.Link>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.Link.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[[["The `Span.Types.Link` class in the Google Cloud Trace v2 API provides a way to link spans within the same or different traces, useful for batch operations or requests from different projects."],["The latest version of the `Span.Types.Link` is 3.6.0, with versions ranging down to 2.2.0 available for review in the documentation, with the current page referencing version 3.3.0."],["The `Span.Types.Link` class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for functionality such as message handling, equality checking, and deep cloning."],["The class includes properties to specify `Attributes`, `SpanId`, `TraceId`, and `Type`, which helps define the relationship and characteristics of linked spans."],["It also provides two constructors, `Link()` for creating a new instance, and `Link(Span.Types.Link other)` to create a new instance based on an existing `Span.Types.Link` object."]]],[]]