[[["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 \u003ccode\u003eTraceExtensions\u003c/code\u003e is 5.2.0, and the documentation provides information for versions ranging from 4.3.1 to 5.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTraceExtensions\u003c/code\u003e is a class within the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common\u003c/code\u003e namespace, offering extension methods for dependency injection with Google Cloud Trace.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes inherited members such as \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\u003eAddGoogleTrace\u003c/code\u003e method configures Google Cloud Trace for dependency injection, taking an \u003ccode\u003eIServiceCollection\u003c/code\u003e and optional \u003ccode\u003eTraceServiceOptions\u003c/code\u003e as parameters.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTraceExtensions\u003c/code\u003e is located in the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.dll\u003c/code\u003e assembly, within the larger Google Cloud project.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Diagnostics.Common - Class TraceExtensions (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.TraceExtensions)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.2.0/Google.Cloud.Diagnostics.Common.TraceExtensions)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.1.0/Google.Cloud.Diagnostics.Common.TraceExtensions)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/5.0.0/Google.Cloud.Diagnostics.Common.TraceExtensions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.4.0/Google.Cloud.Diagnostics.Common.TraceExtensions)\n- [4.3.1](/dotnet/docs/reference/Google.Cloud.Diagnostics.Common/4.3.1/Google.Cloud.Diagnostics.Common.TraceExtensions) \n\n public static class TraceExtensions\n\nReference documentation and code samples for the Google.Cloud.Diagnostics.Common class TraceExtensions.\n\nExtension methods for registering Google Cloud Trace for\ndependency injection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TraceExtensions \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \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\nMethods\n-------\n\n### AddGoogleTrace(IServiceCollection, TraceServiceOptions)\n\n public static IServiceCollection AddGoogleTrace(this IServiceCollection services, TraceServiceOptions options = null)\n\nConfigures Google Cloud Trace for dependency injection."]]