[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 designed to provide external trace information for log entries when Google Trace is not available.\u003c/p\u003e\n"],["\u003cp\u003eThis interface should be implemented when traces are generated externally and sent to Google Cloud Tracing outside of the \u003ccode\u003eGoogle.Cloud.Diagnostics\u003c/code\u003e library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method, which takes an \u003ccode\u003eIServiceProvider\u003c/code\u003e as a parameter, is the only method available on the \u003ccode\u003eIExternalTraceProvider\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetCurrentTraceContext\u003c/code\u003e method returns a \u003ccode\u003eTraceContextForLogEntry\u003c/code\u003e that can be linked to a log entry, or null if there is no current trace context available.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 5.2.0, but this documentation pertains to version 4.4.0, indicating it's an older version of the interface.\u003c/p\u003e\n"]]],[],null,[]]