diff --git a/src/io/scheduler.rs b/src/io/scheduler.rs index 7ca624d4..25f81d74 100644 --- a/src/io/scheduler.rs +++ b/src/io/scheduler.rs @@ -205,7 +205,12 @@ impl ThreadLocalState { } TileFetchResult::Tile { data, coords } => { info!("parsing tile {} with {}bytes", &coords, data.len()); - let tile = parse_tile_bytes(data).expect("failed to load tile"); + + let tile = { + let _span_ = + tracing::span!(tracing::Level::TRACE, "parse_tile_bytes").entered(); + parse_tile_bytes(data).expect("failed to load tile") + }; for to_load in &tile_request.layers { if let Some(layer) = tile diff --git a/src/tessellation/layer.rs b/src/tessellation/layer.rs index 73e72035..9ab11fab 100644 --- a/src/tessellation/layer.rs +++ b/src/tessellation/layer.rs @@ -18,6 +18,7 @@ use crate::render::ShaderVertex; use crate::tessellation::{Tessellated, VertexConstructor, DEFAULT_TOLERANCE}; impl + MaxIndex + Pod> Tessellated for Layer { + #[tracing::instrument(skip_all)] fn tessellate(&self) -> Result<(VertexBuffers, Vec), Error> { let mut buffer: VertexBuffers = VertexBuffers::new(); let mut feature_indices: Vec = Vec::new();