[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"]],[["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\u003eVersion 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface has been marked as obsolete in favor of using the \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.ITraceContext\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext(IServiceProvider)\u003c/code\u003e method, part of \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e, retrieves the \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e associated with a log entry, or null if no trace context is present.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext(IServiceProvider)\u003c/code\u003e method has a \u003ccode\u003eserviceProvider\u003c/code\u003e parameter, which must not be null, allowing the resolution of services, and returns a \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e if a trace context exists, or null if one does not.\u003c/p\u003e\n"]]],[],null,[]]