public TraceDecisionPredicate TraceFallbackPredicate { get; set; }
A function to trace requests. If the trace header is not set then this function
will be called to determine if a given request should be traced. This will
not override trace headers. Can be null.
[[["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 is used for configuring tracing within the Google Cloud Diagnostics for ASP.NET Core.\u003c/p\u003e\n"],["\u003cp\u003eThis class is now obsolete and users should instead utilize \u003ccode\u003eAspNetCoreTraceOptions\u003c/code\u003e for new configurations.\u003c/p\u003e\n"],["\u003cp\u003eKey properties include \u003ccode\u003eClient\u003c/code\u003e for sending traces, \u003ccode\u003eOptions\u003c/code\u003e for trace settings, \u003ccode\u003eProjectId\u003c/code\u003e to specify the Google Cloud project, and \u003ccode\u003eTraceFallbackPredicate\u003c/code\u003e for tracing requests without a trace header.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceServiceOptions\u003c/code\u003e class inherits several members from the base \u003ccode\u003eObject\u003c/code\u003e class, including \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"]]],[],null,["# Class TraceServiceOptions (4.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore.TraceServiceOptions)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/4.3.1/Google.Cloud.Diagnostics.AspNetCore.TraceServiceOptions) \n\n [Obsolete(\"Use Google.Cloud.Diagnostics.AspNetCore.AspNetCoreTraceOptions instead.\")]\n public sealed class TraceServiceOptions\n\nConfiguration 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#system-object-gethashcode) \n[Object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype#system-object-gettype) \n[Object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone#system-object-memberwiseclone) \n[Object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring#system-object-tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Diagnostics.AspNetCore](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/latest/Google.Cloud.Diagnostics.AspNetCore)\n\nAssembly\n--------\n\nGoogle.Cloud.Diagnostics.AspNetCore.dll\n\nProperties\n----------\n\n### Client\n\n public TraceServiceClient Client { get; set; }\n\nA client to send traces with. Can be null.\n\n### Options\n\n public TraceOptions Options { get; set; }\n\nTrace options. Can 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.\n\n### TraceFallbackPredicate\n\n public TraceDecisionPredicate TraceFallbackPredicate { get; set; }\n\nA function to trace requests. If the trace header is not set then this function\nwill be called to determine if a given request should be traced. This will\nnot override trace headers. Can be null."]]