[Obsolete("Inject a Google.Cloud.Diagnostics.Common.ITraceContext instead.")]public interface IExternalTraceProvider
Provides external trace information to include in a log entry
if there's no Google Trace available.
Implement this interface when traces are being generated by your environment
and sent to Google Cloud Tracing not via the Google.Cloud.Diagnostics library.
[[["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."],[[["Version 5.2.0 is the latest release of the Google.Cloud.Diagnostics.AspNetCore3 package, with prior versions including 5.1.0, 5.0.0, 4.4.0, and 4.3.1."],["The `IExternalTraceProvider` interface is designed to provide external trace information for inclusion in log entries when Google Cloud Tracing is not being used directly via the Google.Cloud.Diagnostics library."],["The `IExternalTraceProvider` interface has been marked as obsolete in favor of using the `Google.Cloud.Diagnostics.Common.ITraceContext` interface."],["The `GetCurrentTraceContext(IServiceProvider)` method, part of `IExternalTraceProvider`, retrieves the `TraceContextForLogEntry` associated with a log entry, or null if no trace context is present."],["The `GetCurrentTraceContext(IServiceProvider)` method has a `serviceProvider` parameter, which must not be null, allowing the resolution of services, and returns a `TraceContextForLogEntry` if a trace context exists, or null if one does not."]]],[]]