pub struct ZipkinExporterBuilder { /* private fields */ }
Expand description
Builder for ZipkinExporter
struct.
Implementations§
Source§impl ZipkinExporterBuilder
impl ZipkinExporterBuilder
Sourcepub fn build(self) -> Result<ZipkinExporter, ExporterBuildError>
pub fn build(self) -> Result<ZipkinExporter, ExporterBuildError>
Creates a new ZipkinExporter from this configuration.
Returns error if the endpoint is not valid or if no http client is provided.
Sourcepub fn with_http_client<T: HttpClient + 'static>(self, client: T) -> Self
pub fn with_http_client<T: HttpClient + 'static>(self, client: T) -> Self
Assign client implementation
When using this method, the export timeout will depend on the provided
client implementation and may not respect the timeout set via the
environment variable OTEL_EXPORTER_ZIPKIN_TIMEOUT
.
Sourcepub fn with_service_address(self, addr: SocketAddr) -> Self
pub fn with_service_address(self, addr: SocketAddr) -> Self
Assign the service address.
Sourcepub fn with_collector_endpoint<T: Into<String>>(self, endpoint: T) -> Self
pub fn with_collector_endpoint<T: Into<String>>(self, endpoint: T) -> Self
Assign the Zipkin collector endpoint
Note: Programmatically setting this will override any value
set via the environment variable OTEL_EXPORTER_ZIPKIN_ENDPOINT
.
Trait Implementations§
Source§impl Debug for ZipkinExporterBuilder
impl Debug for ZipkinExporterBuilder
Auto Trait Implementations§
impl Freeze for ZipkinExporterBuilder
impl !RefUnwindSafe for ZipkinExporterBuilder
impl Send for ZipkinExporterBuilder
impl Sync for ZipkinExporterBuilder
impl Unpin for ZipkinExporterBuilder
impl !UnwindSafe for ZipkinExporterBuilder
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