<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip" -->

---
title: Instrumenting Axum projects | daily.dev
description: A practical guide to setting up structured logging and error handling in Axum web projects using the tracing, color_eyre, and thiserror crates. Covers...
canonical: https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Instrumenting Axum projects | daily.dev
og:description: A practical guide to setting up structured logging and error handling in Axum web projects using the tracing, color_eyre, and thiserror crates. Covers...
og:url: https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip
og:image: https://api.daily.dev/og/posts/FVh2JWlip.png
og:image:alt: Instrumenting Axum projects
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Instrumenting Axum projects

**[Determinate Systems](https://daily.dev/sources/determinate-systems)** · 7 min read · 0 upvotes · 0 comments

## Summary

A practical guide to setting up structured logging and error handling in Axum web projects using the tracing, color_eyre, and thiserror crates. Covers configuring a CLI with clap for verbosity/log-format options, composing tracing subscriber layers with EnvFilter, wrapping eyre::Report for use as Axum responses, decorating routes with #[tracing::instrument], and using TraceLayer with custom span functions. Includes examples of filtering logs by crate, URL, or span field, and notes a path toward OpenTelemetry integration as projects mature.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://determinate.systems/blog/instrumenting-axum>

## Similar posts on daily.dev

- [Axum Support in RustRover 2026.2: Build Web Backends Faster](https://daily.dev/posts/axum-support-in-rustrover-2026-2-build-web-backends-faster-u26dy7lsd) · JetBrains · 9 upvotes · 0 comments
- [Nice CLI Crash Reports in Rust](https://daily.dev/posts/nice-cli-crash-reports-in-rust-refjbwkvz) · Pascal’s scribbles · 1 upvotes · 0 comments
- [Build a Rust AI Agent Gateway with Tokio and Axum](https://daily.dev/posts/build-a-rust-ai-agent-gateway-with-tokio-and-axum-4xfsvkj3f) · SitePoint · 2 upvotes · 0 comments
- [Open-Source and Self-Hosted APM Tools for Rails - FastRuby.io](https://daily.dev/posts/open-source-and-self-hosted-apm-tools-for-rails---fastruby-io-vqskctwaw) · RUBYLAND · 0 upvotes · 0 comments
- [Lies, damned lies, and Rust in the TechEmpower Web Framework Benchmarks](https://daily.dev/posts/lies-damned-lies-and-rust-in-the-techempower-web-framework-benchmarks-ilvvsyqxm) · Sylvain Kerkour · 3 upvotes · 2 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#observability](https://daily.dev/tags/observability)

[View this post on daily.dev](https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Instrumenting Axum projects","url":"https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip"},"datePublished":"2026-07-26T07:48:27.391Z","dateModified":"2026-07-26T07:52:26.917Z","description":"A practical guide to setting up structured logging and error handling in Axum web projects using the tracing, color_eyre, and thiserror crates. Covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bc805963363f8aa01e2ce5c31fda2dd2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bc805963363f8aa01e2ce5c31fda2dd2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Determinate Systems","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Determinate Systems","logo":"https://media.daily.dev/image/upload/s--E2qrkc9w--/c_limit,w_256/f_auto,q_auto/v1785052094/logos/determinate-systems?_a=BAMAMicg0","url":"https://daily.dev/sources/determinate-systems"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/instrumenting-axum-projects-fvh2jwlip","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust,observability","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Determinate Systems","item":"https://daily.dev/sources/determinate-systems"},{"@type":"ListItem","position":3,"name":"Instrumenting Axum projects"}]}
```

