Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

emit

> DevOps
Open source

Developer-first diagnostics for Rust applications

188 stars0 likes0 views
WebsiteGitHub

About

Developer-first diagnostics for Rust applications

emit

Developer-first diagnostics for Rust applications

emit is a stable, complete, and capable framework for adding structured diagnostics to your Rust applications with a simple, powerful data model and an expressive syntax inspired by Message Templates. emit's guiding design principle is low ceremony, low cognitive-load.

This readme covers just enough to give you an idea of what emit is. For a proper treatment, see:

  • the guide.
  • a set of task-oriented examples.
  • the API docs.

Getting started

Add emit to your Cargo.toml:

toml
[dependencies.emit]
version = "2.23.0"
# Optional
features = ["serde"]

# Optional
[dependencies.emit_term]
version = "2.23.0"

# Optional
[dependencies.serde]
version = "1"
features = ["derive"]

Initialize emit in your main.rs and start peppering diagnostics throughout your application:

…

emit has a capable syntax for writing events that's different from the standard format! trait. You can read more about it in the guide.

Tracing

emit can produce trace data that's compatible with OpenTelemetry and standard tracing tools, like Zipkin.

The above screenshot was generated by this example application.

See the guide for details.

Metrics

emit can produce metric data that's compatible with OpenTelemetry and standard metric tools, like Prometheus.

The above screenshot was generated by this example application.

See the guide for details.

Quick debugging

emit has a dbg! macro like the standard library's which you can use for quick-and-dirty debugging:

rust
#[derive(Debug)]
pub struct User {
    id: u32,
    name: &'a str,
}

emit::dbg!(&User { id: 1, name: "Rust" });

See the guide for details.

Stability

emit has a complete and stable API that's suitable for production environments.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustloggingmetricsobservabilityrust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理