pub struct OpenTelemetryReporter { /* private fields */ }
Expand description
OpenTelemetry reporter for fastrace
.
OpenTelemetryReporter
exports trace records to remote agents that implements the
OpenTelemetry protocol, such as Jaeger, Zipkin, etc.
Implementations§
Source§impl OpenTelemetryReporter
impl OpenTelemetryReporter
pub fn new( exporter: impl SpanExporter + 'static, span_kind: SpanKind, resource: Cow<'static, Resource>, instrumentation_scope: InstrumentationScope, ) -> Self
Trait Implementations§
Source§impl Reporter for OpenTelemetryReporter
impl Reporter for OpenTelemetryReporter
Source§fn report(&mut self, spans: Vec<SpanRecord>)
fn report(&mut self, spans: Vec<SpanRecord>)
Reports a batch of spans to a remote service.
Auto Trait Implementations§
impl Freeze for OpenTelemetryReporter
impl !RefUnwindSafe for OpenTelemetryReporter
impl Send for OpenTelemetryReporter
impl Sync for OpenTelemetryReporter
impl Unpin for OpenTelemetryReporter
impl !UnwindSafe for OpenTelemetryReporter
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