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 page provides documentation for the `AspNetCoreTraceExtensions` class, which offers extensions for integrating Google Cloud Trace with ASP.NET Core applications."],["The `AddGoogleTraceForAspNetCore` method configures Google Cloud Tracing for ASP.NET Core applications, accepting `IServiceCollection` and `AspNetCoreTraceOptions` as parameters."],["The `TryAddGoogleTraceContextProvider` method registers services to obtain trace context from Google's trace header, but only if another trace context provider isn't already registered."],["The documentation lists version information for `Google.Cloud.Diagnostics.AspNetCore3`, ranging from version 4.3.1 to the latest version, 5.2.0."]]],[]]