[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-04-07 UTC."],[[["The `IExternalTraceProvider` interface is used to provide external trace information for inclusion in log entries when Google Cloud Tracing is not used directly."],["This interface is now obsolete, and developers should instead use `Google.Cloud.Diagnostics.Common.ITraceContext`."],["The `GetCurrentTraceContext` method returns the `TraceContextForLogEntry` to associate with a log entry, or null if no trace context exists."],["The `GetCurrentTraceContext` method requires an `IServiceProvider` to resolve services, and it must not be null."],["The `TraceContextForLogEntry` returned from `GetCurrentTraceContext` will either be an instance of `TraceContextForLogEntry` or null depending on the current trace."]]],[]]