[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\u003eThe \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface is used to provide external trace information for inclusion in log entries when Google Cloud Tracing is not used directly.\u003c/p\u003e\n"],["\u003cp\u003eThis interface is now obsolete, and developers should instead use \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.ITraceContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method returns the \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e to associate with a log entry, or null if no trace context exists.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method requires an \u003ccode\u003eIServiceProvider\u003c/code\u003e to resolve services, and it must not be null.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e returned from \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e will either be an instance of \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e or null depending on the current trace.\u003c/p\u003e\n"]]],[],null,[]]