[[["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 \u003ccode\u003eTraceServiceOptions\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace provides options for initializing tracing within Google Cloud.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows you to set properties such as \u003ccode\u003eClient\u003c/code\u003e to manage sending traces, \u003ccode\u003eOptions\u003c/code\u003e to configure trace behavior, and \u003ccode\u003eProjectId\u003c/code\u003e to specify the Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eTraceServiceOptions\u003c/code\u003e documentation is 5.2.0, with prior versions dating back to 4.3.1 also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceServiceOptions\u003c/code\u003e class inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class, including methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe project ID for tracing can be automatically detected when running on Google App Engine (GAE) or Google Compute Engine (GCE) if it is not explicitly provided.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class TraceServiceOptions (5.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common.TraceServiceOptions)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.TraceServiceOptions)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.TraceServiceOptions)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.TraceServiceOptions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.TraceServiceOptions)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.TraceServiceOptions) \n\n public sealed class TraceServiceOptions\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class TraceServiceOptions.\n\nOptions for initializing tracing. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TraceServiceOptions \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.Diagnostics.Common](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/latest/Google.Cloud.Diagnostics.Common)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.Common.dll\n\nProperties\n----------\n\n### Client\n\n public TraceServiceClient Client { get; set; }\n\nA client to send traces with. May be null.\n\n### Options\n\n public TraceOptions Options { get; set; }\n\nTrace options. May be null.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nThe Google Cloud Platform project ID. If unspecified and running on GAE or GCE the project\nID will be detected from the platform."]]