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 webpage provides documentation for the `TraceServiceConnection` object, which is used with `TraceServiceClient` for the Google Cloud Trace service, spanning multiple versions from 2.11.0 to 2.37.0-rc (latest)."],["`TraceServiceConnection` defines virtual methods that correspond to each of the user-facing overload sets in `TraceServiceClient`, facilitating custom behavior injection, particularly for testing purposes."],["The page outlines the methods `BatchWriteSpans` and `CreateSpan`, detailing the required parameters and return types for each, with BatchWriteSpans expecting a `BatchWriteSpansRequest` and CreateSpan expecting a `Span`."],["The webpage also outlines where users can create concrete instances and mock instances by using `MakeTraceServiceConnection()` or `trace_v2_mocks::MockTraceServiceConnection`, respectively."]]],[]]