pub type ClientBuilder = ClientBuilder<Factory, Credentials>;Expand description
A builder for the Spanner client.
Aliased Type§
pub struct ClientBuilder { /* private fields */ }Trait Implementations§
Source§impl SpannerBuilderExt for ClientBuilder
impl SpannerBuilderExt for ClientBuilder
Source§fn with_channel_pool(self, pool_config: impl Into<ChannelPoolConfig>) -> Self
fn with_channel_pool(self, pool_config: impl Into<ChannelPoolConfig>) -> Self
Configures the gRPC channel pool for the Spanner client. Read more
Source§fn with_instance_type(self, instance_type: InstanceType) -> Self
fn with_instance_type(self, instance_type: InstanceType) -> Self
Source§fn with_omni_tls(self, tls_config: TlsConfig) -> Self
fn with_omni_tls(self, tls_config: TlsConfig) -> Self
Configures custom TLS or mutual TLS (mTLS) settings for Spanner Omni. Read more
Source§fn with_meter_provider(
self,
provider: Arc<dyn MeterProvider + Send + Sync>,
) -> Self
fn with_meter_provider( self, provider: Arc<dyn MeterProvider + Send + Sync>, ) -> Self
Available on crate feature
unstable-metrics only.Configures a custom OpenTelemetry
MeterProvider for recording Client metrics. Read moreSource§fn with_export_builtin_metrics_to_custom_provider(self, export: bool) -> Self
fn with_export_builtin_metrics_to_custom_provider(self, export: bool) -> Self
Available on crate feature
unstable-metrics only.Configures whether built-in request and attempt latency metrics should be
exported to the custom
MeterProvider configured via
with_meter_provider. Read moreSource§fn with_export_builtin_metrics_to_cloud_monitoring(self, export: bool) -> Self
fn with_export_builtin_metrics_to_cloud_monitoring(self, export: bool) -> Self
Available on crate feature
builtin-metrics only.Configures whether built-in request and attempt latency metrics should be
exported to Google Cloud Monitoring. Read more