Skip to content

Commit

Permalink
added path and asset request tracing at debug level (#217)
Browse files Browse the repository at this point in the history
Co-authored-by: ngrujic <[email protected]>
  • Loading branch information
Nikola-3 and ngrujic authored Nov 18, 2024
1 parent e6d31a6 commit d265b55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/atlaspack/src/requests/asset_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub struct AssetRequestOutput {

#[async_trait]
impl Request for AssetRequest {
#[tracing::instrument(level = "trace", skip_all)]
async fn run(
&self,
request_context: RunRequestContext,
Expand Down Expand Up @@ -130,6 +131,7 @@ impl Request for AssetRequest {
}
}

#[tracing::instrument(level = "trace", skip_all)]
async fn run_pipelines(
transform_context: TransformContext,
input: Asset,
Expand Down
1 change: 1 addition & 0 deletions crates/atlaspack/src/requests/path_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub enum PathRequestOutput {
// TODO tracing, dev deps
#[async_trait]
impl Request for PathRequest {
#[tracing::instrument(level = "trace", skip_all)]
async fn run(
&self,
request_context: RunRequestContext,
Expand Down

0 comments on commit d265b55

Please sign in to comment.