pub struct GrpcioExporterBuilder { /* private fields */ }
Available on crate feature
grpc-sys
only.Expand description
Build a trace exporter that uses grpcio as grpc layer and opentelemetry protocol.
It allows users to
- setup credentials
- add additional headers
- config compression
- select whether to use TLS
- set the number of GRPC worker threads to poll queues
Implementations§
source§impl GrpcioExporterBuilder
impl GrpcioExporterBuilder
sourcepub fn with_credentials(self, credentials: Credentials) -> Self
pub fn with_credentials(self, credentials: Credentials) -> Self
Set the credentials to use when communicating with the collector.
sourcepub fn with_headers(self, headers: HashMap<String, String>) -> Self
pub fn with_headers(self, headers: HashMap<String, String>) -> Self
Set additional headers to send to the collector.
sourcepub fn with_compression(self, compression: Compression) -> Self
pub fn with_compression(self, compression: Compression) -> Self
Set the compression algorithm to use when communicating with the collector.
sourcepub fn with_completion_queue_count(self, count: usize) -> Self
pub fn with_completion_queue_count(self, count: usize) -> Self
Set the number of GRPC worker threads to poll queues.
Trait Implementations§
source§impl Debug for GrpcioExporterBuilder
impl Debug for GrpcioExporterBuilder
source§impl Default for GrpcioExporterBuilder
impl Default for GrpcioExporterBuilder
source§fn default() -> GrpcioExporterBuilder
fn default() -> GrpcioExporterBuilder
Returns the “default value” for a type. Read more
source§impl From<GrpcioExporterBuilder> for SpanExporterBuilder
Available on crate feature trace
only.
impl From<GrpcioExporterBuilder> for SpanExporterBuilder
Available on crate feature
trace
only.source§fn from(exporter: GrpcioExporterBuilder) -> Self
fn from(exporter: GrpcioExporterBuilder) -> Self
Converts to this type from the input type.
source§impl HasExportConfig for GrpcioExporterBuilder
impl HasExportConfig for GrpcioExporterBuilder
source§fn export_config(&mut self) -> &mut ExportConfig
fn export_config(&mut self) -> &mut ExportConfig
Return a mutable reference to the export config within the exporter builders.
Auto Trait Implementations§
impl RefUnwindSafe for GrpcioExporterBuilder
impl Send for GrpcioExporterBuilder
impl Sync for GrpcioExporterBuilder
impl Unpin for GrpcioExporterBuilder
impl UnwindSafe for GrpcioExporterBuilder
Blanket Implementations§
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§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