[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-05-30 UTC."],[[["\u003cp\u003eThis document provides details on the \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface, which is used to include external trace information in log entries when Google Cloud Tracing is not directly used.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface is now obsolete, and users should instead inject a \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.ITraceContext\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes a \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method that takes an \u003ccode\u003eIServiceProvider\u003c/code\u003e and returns a \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e object, or null if no trace context is available.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides links to the different versions of the \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e class, with the latest version being 5.2.0.\u003c/p\u003e\n"]]],[],null,[]]