Reference documentation and code samples for the Stackdriver Trace V2 Client class TimeEvents.
A collection ofTimeEvents. ATimeEventis a time-stamped annotation
on the span, consisting of either user-supplied key:value pairs, or
details of a message sent/received between Spans.
Generated from protobuf messagegoogle.devtools.cloudtrace.v2.Span.TimeEvents
[[["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-09-04 UTC."],[],[],null,["# Stackdriver Trace V2 Client - Class TimeEvents (1.8.10)\n\nVersion latestkeyboard_arrow_down\n\n- [1.8.10 (latest)](/php/docs/reference/cloud-trace/latest/V2.Span.TimeEvents)\n- [1.8.9](/php/docs/reference/cloud-trace/1.8.9/V2.Span.TimeEvents)\n- [1.7.0](/php/docs/reference/cloud-trace/1.7.0/V2.Span.TimeEvents)\n- [1.6.5](/php/docs/reference/cloud-trace/1.6.5/V2.Span.TimeEvents)\n- [1.5.3](/php/docs/reference/cloud-trace/1.5.3/V2.Span.TimeEvents)\n- [1.4.11](/php/docs/reference/cloud-trace/1.4.11/V2.Span.TimeEvents) \nReference documentation and code samples for the Stackdriver Trace V2 Client class 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\nGenerated from protobuf message `google.devtools.cloudtrace.v2.Span.TimeEvents`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Trace \\\\ V2 \\\\ Span\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTimeEvent\n\nA collection of `TimeEvent`s.\n\n### setTimeEvent\n\nA collection of `TimeEvent`s.\n\n### getDroppedAnnotationsCount\n\nThe number of dropped annotations in all the included time events.\n\nIf the value is 0, then no annotations were dropped.\n\n### setDroppedAnnotationsCount\n\nThe number of dropped annotations in all the included time events.\n\nIf the value is 0, then no annotations were dropped.\n\n### getDroppedMessageEventsCount\n\nThe number of dropped message events in all the included time events.\n\nIf the value is 0, then no message events were dropped.\n\n### setDroppedMessageEventsCount\n\nThe number of dropped message events in all the included time events.\n\nIf the value is 0, then no message events were dropped."]]