public sealed class Span.Types.TimeEvents : IMessage<Span.Types.TimeEvents>, IEquatable<Span.Types.TimeEvents>, IDeepCloneable<Span.Types.TimeEvents>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvents.
A collection of TimeEvents. A TimeEvent is a time-stamped annotation
on the span, consisting of either user-supplied key:value pairs, or
details of a message sent/received between Spans.
[[["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 page provides reference documentation for the \u003ccode\u003eSpan.Types.TimeEvents\u003c/code\u003e class in the Google Cloud Trace v2 API, which is used to represent a collection of time-stamped annotations on a span.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpan.Types.TimeEvents\u003c/code\u003e 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, indicating its role in message handling and data management within the API.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eSpan.Types.TimeEvents\u003c/code\u003e include \u003ccode\u003eDroppedAnnotationsCount\u003c/code\u003e, \u003ccode\u003eDroppedMessageEventsCount\u003c/code\u003e, and \u003ccode\u003eTimeEvent\u003c/code\u003e, which store information about the number of dropped annotations/message events and the collection of \u003ccode\u003eTimeEvent\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions for this class range from 2.2.0 to 3.6.0, with 3.6.0 being the latest release, indicating ongoing development and updates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpan.Types.TimeEvents\u003c/code\u003e objects can be created using a default constructor or by copying an existing \u003ccode\u003eSpan.Types.TimeEvents\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v2 API - Class Span.Types.TimeEvents (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.TimeEvents)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.5.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.4.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.1.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/3.0.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.3.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V2/2.2.0/Google.Cloud.Trace.V2.Span.Types.TimeEvents) \n\n public sealed class Span.Types.TimeEvents : IMessage\u003cSpan.Types.TimeEvents\u003e, IEquatable\u003cSpan.Types.TimeEvents\u003e, IDeepCloneable\u003cSpan.Types.TimeEvents\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v2 API class Span.Types.TimeEvents.\n\nA collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation\non the span, consisting of either user-supplied key:value pairs, or\ndetails of a message sent/received between Spans. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Span.Types.TimeEvents \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)[TimeEvents](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvents), [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)[TimeEvents](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvents), [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)[TimeEvents](/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.Span.Types.TimeEvents), [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### TimeEvents()\n\n public TimeEvents()\n\n### TimeEvents(TimeEvents)\n\n public TimeEvents(Span.Types.TimeEvents other)\n\nProperties\n----------\n\n### DroppedAnnotationsCount\n\n public int DroppedAnnotationsCount { get; set; }\n\nThe number of dropped annotations in all the included time events.\nIf the value is 0, then no annotations were dropped.\n\n### DroppedMessageEventsCount\n\n public int DroppedMessageEventsCount { get; set; }\n\nThe number of dropped message events in all the included time events.\nIf the value is 0, then no message events were dropped.\n\n### TimeEvent\n\n public RepeatedField\u003cSpan.Types.TimeEvent\u003e TimeEvent { get; }\n\nA collection of `TimeEvent`s."]]