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-03-14 UTC."],[[["The latest version available is 2.37.0-rc, with version 2.21.0 being the focal version detailed in the content."],["This page provides documentation for the `TraceServiceConnection` object, which is used in conjunction with the `TraceServiceClient` for the Google Cloud Trace service."],["`TraceServiceConnection` defines virtual methods that mirror user-facing overload sets in `TraceServiceClient`, facilitating custom behavior injection in tests using Google Mock objects."],["The documentation details functions such as `options()`, `BatchWriteSpans()`, and `CreateSpan()`, including parameter and return types for each."],["It also references methods to create a concrete instance using [`MakeTraceServiceConnection()`](/cpp/docs/reference/trace/2.21.0/namespacegoogle_1_1cloud_1_1trace__v2) and use a mock version [`trace_v2_mocks::MockTraceServiceConnection`](/cpp/docs/reference/trace/2.21.0/classgoogle_1_1cloud_1_1trace__v2__mocks_1_1MockTraceServiceConnection)."]]],[]]