Struct opendal::layers::TracingLayer
source · pub struct TracingLayer;
Expand description
TracingLayer will add tracing for OpenDAL.
Examples
use anyhow::Result;
use opendal::layers::TracingLayer;
use opendal::services;
use opendal::Operator;
let _ = Operator::from_env::<services::Fs>()
.expect("must init")
.layer(TracingLayer)
.finish();
Trait Implementations§
source§impl<A: Accessor> Layer<A> for TracingLayer
impl<A: Accessor> Layer<A> for TracingLayer
§type LayeredAccessor = TracingAccessor<A>
type LayeredAccessor = TracingAccessor<A>
The layered accessor that return by this layer.
source§fn layer(&self, inner: A) -> Self::LayeredAccessor
fn layer(&self, inner: A) -> Self::LayeredAccessor
Intercept the operations on the underlying storage.