public sealed class Span.Types.TimeEvent.Types.Annotation : IMessage<Span.Types.TimeEvent.Types.Annotation>, IEquatable<Span.Types.TimeEvent.Types.Annotation>, IDeepCloneable<Span.Types.TimeEvent.Types.Annotation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvent.Types.Annotation.
[[["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\u003eThis documentation covers the \u003ccode\u003eSpan.Types.TimeEvent.Types.Annotation\u003c/code\u003e class within the Google Cloud Trace v2 API, which represents a text annotation with attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotation\u003c/code\u003e class implements multiple interfaces, including \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 latest version of the documentation for this class is version 3.6.0, with previous versions back to 2.2.0 also being available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnnotation\u003c/code\u003e objects can contain \u003ccode\u003eAttributes\u003c/code\u003e (up to four) and a \u003ccode\u003eDescription\u003c/code\u003e (up to 256 bytes) to provide context to the annotation.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructor methods, \u003ccode\u003eAnnotation()\u003c/code\u003e and \u003ccode\u003eAnnotation(Span.Types.TimeEvent.Types.Annotation other)\u003c/code\u003e, to create new instances of the class, or from another pre-existing object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Class Span.Types.TimeEvent.Types.Annotation (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.TimeEvent.Types.Annotation)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation) \n\n public sealed class Span.Types.TimeEvent.Types.Annotation : IMessage\u003cSpan.Types.TimeEvent.Types.Annotation\u003e, IEquatable\u003cSpan.Types.TimeEvent.Types.Annotation\u003e, IDeepCloneable\u003cSpan.Types.TimeEvent.Types.Annotation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvent.Types.Annotation.\n\nText annotation with a set of attributes. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Span.Types.TimeEvent.Types.Annotation \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)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types)[Annotation](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation), [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)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types)[Annotation](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation), [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)[TimeEvent](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent)[Types](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types)[Annotation](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvent.Types.Annotation), [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### Annotation()\n\n public Annotation()\n\n### Annotation(Annotation)\n\n public Annotation(Span.Types.TimeEvent.Types.Annotation other)\n\nProperties\n----------\n\n### Attributes\n\n public Span.Types.Attributes Attributes { get; set; }\n\nA set of attributes on the annotation. You can have up to 4 attributes\nper Annotation.\n\n### Description\n\n public TruncatableString Description { get; set; }\n\nA user-supplied message describing the event. The maximum length for\nthe description is 256 bytes."]]