Skip to content

Commit 93d6e2c

Browse files
authored
fix(zipkin): add with_collector_endpoint into config builder (#155)
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent 7195f62 commit 93d6e2c

File tree

1 file changed

+6
-0
lines changed
  • opentelemetry-zipkin/src

1 file changed

+6
-0
lines changed

opentelemetry-zipkin/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ impl ExporterConfigBuilder {
143143
self.service_endpoint = Some(endpoint);
144144
self
145145
}
146+
147+
/// Assign the collector endpoint for `ConfigBuilder`
148+
pub fn with_collector_endpoint(&mut self, endpoint: String) -> &mut Self {
149+
self.collector_endpoint = Some(endpoint);
150+
self
151+
}
146152
}
147153

148154
impl Exporter {

0 commit comments

Comments
 (0)