public static IServiceCollection TryAddGoogleTraceContextProvider(this IServiceCollection services)
Adds the services needed for obtaining the trace context from Google's own trace header,
but only if no other trace context provider is registered.
If you are using AddGoogleTraceForAspNetCore(IServiceCollection, AspNetCoreTraceOptions)
you don't need to call this method. Only use this method if you want to extract the trace context
information from Google's own header for your own code to use, or if you are not using the tracing
component of this library but are using the logging component and want the trace context information
to be associated with the log entries.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document provides reference documentation for the `AspNetCoreTraceExtensions` class within the `Google.Cloud.Diagnostics.AspNetCore3` namespace, detailing its role in Google Cloud Trace configuration for ASP.NET Core applications."],["The `AddGoogleTraceForAspNetCore` method configures Google Cloud Tracing for ASP.NET Core applications, allowing customization through `AspNetCoreTraceOptions`."],["The `TryAddGoogleTraceContextProvider` method adds services to extract trace context from Google's trace header, primarily for logging or custom trace handling when not using `AddGoogleTraceForAspNetCore`."],["The `AspNetCoreTraceExtensions` class inherits from the `object` class and includes inherited members such as `GetHashCode`, `GetType`, `MemberwiseClone`, and `ToString`."],["The latest version for this class is 5.2.0, with previous versions including 5.1.0, 5.0.0, 4.4.0, and 4.3.1 also documented in this reference."]]],[]]