pub struct ConsoleTransport;Expand description
Logs each event as pretty JSON via tracing. For development/tests.
Trait Implementations§
Source§impl Debug for ConsoleTransport
impl Debug for ConsoleTransport
Source§impl Default for ConsoleTransport
impl Default for ConsoleTransport
Source§fn default() -> ConsoleTransport
fn default() -> ConsoleTransport
Returns the “default value” for a type. Read more
Source§impl Transport for ConsoleTransport
impl Transport for ConsoleTransport
Source§fn emit<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 RunEvent,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ConsoleTransport: 'async_trait,
fn emit<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 RunEvent,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ConsoleTransport: 'async_trait,
Delivers a single OpenLineage event to the backend. Read more
Source§fn emit_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [RunEvent],
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn emit_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [RunEvent],
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Source§fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Flushes any internally-buffered events, blocking until they are delivered
(or fail). Called by
OpenLineageClient::shutdown
after the drain queue empties. The default is a no-op — override it only
for transports that buffer beyond a single emit call. Read moreAuto Trait Implementations§
impl Freeze for ConsoleTransport
impl RefUnwindSafe for ConsoleTransport
impl Send for ConsoleTransport
impl Sync for ConsoleTransport
impl Unpin for ConsoleTransport
impl UnsafeUnpin for ConsoleTransport
impl UnwindSafe for ConsoleTransport
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more