pub struct Otlp { /* private fields */ }
Expand description
An emit::Emitter
that sends diagnostic events via the OpenTelemetry Protocol (OTLP).
Use crate::new
to start an OtlpBuilder
for configuring an Otlp
instance.
See the crate root documentation for more details.
Implementations§
Source§impl Otlp
impl Otlp
Sourcepub fn builder() -> OtlpBuilder
pub fn builder() -> OtlpBuilder
Start a builder for configuring an Otlp
instance.
The OtlpBuilder
can be completed by calling OtlpBuilder::spawn
.
Sourcepub fn metric_source(&self) -> OtlpMetrics
pub fn metric_source(&self) -> OtlpMetrics
Get an emit::metric::Source
for instrumentation produced by an Otlp
instance.
These metrics can be used to monitor the running health of your diagnostic pipeline.
Trait Implementations§
Source§impl Emitter for Otlp
impl Emitter for Otlp
Auto Trait Implementations§
impl Freeze for Otlp
impl !RefUnwindSafe for Otlp
impl Send for Otlp
impl Sync for Otlp
impl Unpin for Otlp
impl !UnwindSafe for Otlp
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