This interface defines virtual methods for each of the user-facing overload sets in TraceServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TraceServiceClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe latest version available is 2.37.0-rc, which represents the most current release of the \u003ccode\u003eTraceServiceConnection\u003c/code\u003e for the Google Cloud Trace service.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to the documentation for multiple versions of the \u003ccode\u003eTraceServiceConnection\u003c/code\u003e, ranging from version 2.11.0 up to the most recent 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTraceServiceConnection\u003c/code\u003e defines the virtual methods used by \u003ccode\u003eTraceServiceClient\u003c/code\u003e, allowing users to customize behavior for testing purposes using tools like Google Mock.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceServiceConnection\u003c/code\u003e object can be instanciated using \u003ccode\u003eMakeTraceServiceConnection()\u003c/code\u003e and mocked using \u003ccode\u003etrace_v2_mocks::MockTraceServiceConnection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes virtual methods such as \u003ccode\u003eoptions()\u003c/code\u003e, \u003ccode\u003eBatchWriteSpans()\u003c/code\u003e, and \u003ccode\u003eCreateSpan()\u003c/code\u003e, which handle the underlying function calls to interact with the Trace service.\u003c/p\u003e\n"]]],[],null,[]]