Class TraceServiceConnection (2.12.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
Type Description
Options

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

Parameter
Name Description
request google::devtools::cloudtrace::v2::BatchWriteSpansRequest const &
Returns
Type Description
Status

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

Parameter
Name Description
request google::devtools::cloudtrace::v2::Span const &
Returns
Type Description
StatusOr< google::devtools::cloudtrace::v2::Span >