public sealed class Span.Types.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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe document provides reference documentation for the \u003ccode\u003eSpan.Types.Link\u003c/code\u003e class within the Google Cloud Trace v2 API, specifically for version 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpan.Types.Link\u003c/code\u003e acts as a pointer connecting a span to another span, whether in the same or a different trace, and it's used in scenarios like batch processing or handling requests from various projects.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, extending its capabilities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eSpan.Types.Link\u003c/code\u003e include \u003ccode\u003eAttributes\u003c/code\u003e (a set of attributes), \u003ccode\u003eSpanId\u003c/code\u003e (ID of a span), \u003ccode\u003eTraceId\u003c/code\u003e (ID of a trace), and \u003ccode\u003eType\u003c/code\u003e (the relationship between spans), all of which are detailed in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor (\u003ccode\u003eLink()\u003c/code\u003e) and a constructor that takes another \u003ccode\u003eSpan.Types.Link\u003c/code\u003e object as a parameter (\u003ccode\u003eLink(Span.Types.Link other)\u003c/code\u003e), allowing for creating new links from existing ones.\u003c/p\u003e\n"]]],[],null,[]]