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\u003eThis page provides documentation for the \u003ccode\u003eAspNetCoreTraceOptions\u003c/code\u003e class, which is used for configuring tracing in ASP.NET Core applications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAspNetCoreTraceOptions\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 \u003ccode\u003eServiceOptions\u003c/code\u003e property, of type \u003ccode\u003eTraceServiceOptions\u003c/code\u003e, allows for configuration of the tracing service itself.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceFallbackPredicate\u003c/code\u003e property, of type \u003ccode\u003eTraceDecisionPredicate\u003c/code\u003e, provides a way to determine whether a request should be traced if the trace header is not present.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the package is 4.4.0.\u003c/p\u003e\n"]]],[],null,["# Class AspNetCoreTraceOptions (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.AspNetCoreTraceOptions)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore/4.3.1/Google.Cloud.Diagnostics.AspNetCore.AspNetCoreTraceOptions) \n\n public sealed class AspNetCoreTraceOptions\n\nConfiguration for initializing tracing for ASP.NET Core applications. \n\nInheritance\n-----------\n\n[Object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AspNetCoreTraceOptions \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### ServiceOptions\n\n public TraceServiceOptions ServiceOptions { get; set; }\n\nOptions for configuring the tracing service.\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."]]