public sealed class Trace : IMessage<Trace>, IEquatable<Trace>, IDeepCloneable<Trace>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v1 API class Trace.
A trace describes how long it takes for an application to perform an
operation. It consists of a set of spans, each of which represent a single
timed event within the operation.
Globally unique identifier for the trace. This identifier is a 128-bit
numeric value formatted as a 32-byte hex string. For example,
382d4f4c6b7bb2f4a972559d9085001d.
[[["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 v1 API class Trace is 3.4.0, and there are several previous versions available, including 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe Trace class is a part of the Google.Cloud.Trace.V1 namespace and describes the time it takes for an application to perform an operation through a set of spans.\u003c/p\u003e\n"],["\u003cp\u003eThe Trace class has properties for \u003ccode\u003eProjectId\u003c/code\u003e, which is the ID where the data is stored, \u003ccode\u003eSpans\u003c/code\u003e, which represents the collection of spans, and \u003ccode\u003eTraceId\u003c/code\u003e, a unique 128-bit identifier.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, providing a number of methods such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v1 API - Class Trace (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.Trace)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.3.0/Google.Cloud.Trace.V1.Trace)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.2.0/Google.Cloud.Trace.V1.Trace)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.1.0/Google.Cloud.Trace.V1.Trace)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.0.0/Google.Cloud.Trace.V1.Trace)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/2.3.0/Google.Cloud.Trace.V1.Trace)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/2.2.0/Google.Cloud.Trace.V1.Trace) \n\n public sealed class Trace : IMessage\u003cTrace\u003e, IEquatable\u003cTrace\u003e, IDeepCloneable\u003cTrace\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Trace v1 API class Trace.\n\nA trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Trace \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Trace](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.Trace), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Trace](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.Trace), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Trace](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.Trace), [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.V1](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Trace.V1.dll\n\nConstructors\n------------\n\n### Trace()\n\n public Trace()\n\n### Trace(Trace)\n\n public Trace(Trace other)\n\nProperties\n----------\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nProject ID of the Cloud project where the trace data is stored.\n\n### Spans\n\n public RepeatedField\u003cTraceSpan\u003e Spans { get; }\n\nCollection of spans in the trace.\n\n### TraceId\n\n public string TraceId { get; set; }\n\nGlobally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string. For example,\n`382d4f4c6b7bb2f4a972559d9085001d`."]]