Class TraceServiceConnection (2.19.0)

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.

To create a concrete instance, see MakeTraceServiceConnection().

For mocking, see trace_v2_mocks::MockTraceServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual BatchWriteSpans(google::devtools::cloudtrace::v2::BatchWriteSpansRequest const &)

Parameter
NameDescription
request google::devtools::cloudtrace::v2::BatchWriteSpansRequest const &
Returns
TypeDescription
Status

virtual CreateSpan(google::devtools::cloudtrace::v2::Span const &)

Parameter
NameDescription
request google::devtools::cloudtrace::v2::Span const &
Returns
TypeDescription
StatusOr< google::devtools::cloudtrace::v2::Span >