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 latest version of the Google Cloud Trace v2 API class \u003ccode\u003eSpan.Types.Link\u003c/code\u003e is version 3.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpan.Types.Link\u003c/code\u003e represents a pointer from one span to another, either within the same trace or a different trace, facilitating tracking batch operations or requests across different projects.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpan.Types.Link\u003c/code\u003e class includes properties for \u003ccode\u003eAttributes\u003c/code\u003e, \u003ccode\u003eSpanId\u003c/code\u003e, \u003ccode\u003eTraceId\u003c/code\u003e, and \u003ccode\u003eType\u003c/code\u003e, allowing for the specification of link details and relationships between spans.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors available: one for a standard Link object, and another to copy another \u003ccode\u003eSpan.Types.Link\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Class Span.Types.Link (3.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.Span.Types.Link)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.Span.Types.Link) \n\n public sealed class Span.Types.Link : IMessage\u003cSpan.Types.Link\u003e, IEquatable\u003cSpan.Types.Link\u003e, IDeepCloneable\u003cSpan.Types.Link\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.Link.\n\nA pointer from the current span to another span in the same trace or in a\ndifferent trace. For example, this can be used in batching operations,\nwhere a single batch handler processes multiple requests from different\ntraces or when the handler receives a request from a different project. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Span.Types.Link \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[Link](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Link), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[Link](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Link), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Span](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types)[Link](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.Link), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Trace.V2](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Trace.V2.dll\n\nConstructors\n------------\n\n### Link()\n\n public Link()\n\n### Link(Link)\n\n public Link(Span.Types.Link other)\n\nProperties\n----------\n\n### Attributes\n\n public Span.Types.Attributes Attributes { get; set; }\n\nA set of attributes on the link. Up to 32 attributes can be\nspecified per link.\n\n### SpanId\n\n public string SpanId { get; set; }\n\nThe `[SPAN_ID]` for a span within a trace.\n\n### TraceId\n\n public string TraceId { get; set; }\n\nThe `[TRACE_ID]` for a trace within a project.\n\n### Type\n\n public Span.Types.Link.Types.Type Type { get; set; }\n\nThe relationship of the current span relative to the linked span."]]