pub enum ExporterConfig {
Stdout,
Otlp {
endpoint: String,
},
Discard,
}Expand description
Which backend to export spans to.
Variants§
Stdout
Print JSON-encoded spans to stdout. Suitable for development.
Otlp
POST OTLP JSON to {endpoint}/v1/traces.
Compatible with Jaeger ≥ 1.35, Grafana Tempo, OpenTelemetry Collector.
Typical endpoint: "http://localhost:4318".
Discard
No-op — spans are discarded. Useful in tests to silence output.
Trait Implementations§
Source§impl Clone for ExporterConfig
impl Clone for ExporterConfig
Source§fn clone(&self) -> ExporterConfig
fn clone(&self) -> ExporterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExporterConfig
impl RefUnwindSafe for ExporterConfig
impl Send for ExporterConfig
impl Sync for ExporterConfig
impl Unpin for ExporterConfig
impl UnsafeUnpin for ExporterConfig
impl UnwindSafe for ExporterConfig
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