[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\u003eThis documentation outlines the \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface, which is used to include external trace information in a log entry when Google Trace is not available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface is marked as obsolete, with the recommendation to use \u003ccode\u003eGoogle.Cloud.Diagnostics.Common.ITraceContext\u003c/code\u003e instead.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e, retrieves a \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e that can be linked to a log entry or returns null if no trace context is present.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method requires an \u003ccode\u003eIServiceProvider\u003c/code\u003e to resolve services and must not be null, which is used to get the trace context.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e returned by \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e contains the relevant trace data that will be associated to a log entry.\u003c/p\u003e\n"]]],[],null,[]]