pub struct GcpCloudTraceExporterBuilder {
pub google_project_id: String,
pub trace_config: Option<Config>,
}
Fields§
§google_project_id: String
§trace_config: Option<Config>
Implementations§
source§impl GcpCloudTraceExporterBuilder
impl GcpCloudTraceExporterBuilder
pub fn new(google_project_id: String) -> Self
pub fn google_project_id(&mut self, value: String) -> &mut Self
pub fn with_google_project_id(self, value: String) -> Self
pub fn trace_config(&mut self, value: Config) -> &mut Self
pub fn reset_trace_config(&mut self) -> &mut Self
pub fn mopt_trace_config(&mut self, value: Option<Config>) -> &mut Self
pub fn with_trace_config(self, value: Config) -> Self
pub fn without_trace_config(self) -> Self
pub fn opt_trace_config(self, value: Option<Config>) -> Self
source§impl GcpCloudTraceExporterBuilder
impl GcpCloudTraceExporterBuilder
pub async fn for_default_project_id() -> TraceExportResult<Self>
pub async fn install(self) -> Result<Tracer, TraceError>
pub async fn install_simple(self) -> Result<Tracer, TraceError>
pub async fn install_batch<R: Runtime + RuntimeChannel>( self, runtime: R ) -> Result<Tracer, TraceError>
Trait Implementations§
source§impl Debug for GcpCloudTraceExporterBuilder
impl Debug for GcpCloudTraceExporterBuilder
source§impl From<GcpCloudTraceExporterBuilderInit> for GcpCloudTraceExporterBuilder
impl From<GcpCloudTraceExporterBuilderInit> for GcpCloudTraceExporterBuilder
source§fn from(value: GcpCloudTraceExporterBuilderInit) -> Self
fn from(value: GcpCloudTraceExporterBuilderInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GcpCloudTraceExporterBuilder
impl Send for GcpCloudTraceExporterBuilder
impl Sync for GcpCloudTraceExporterBuilder
impl Unpin for GcpCloudTraceExporterBuilder
impl !UnwindSafe for GcpCloudTraceExporterBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request