百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

emit

> DevOps
开源

针对 Rust 应用程序的开发者优先诊断

188 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

针对 Rust 应用程序的开发者优先诊断

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustloggingmetricsobservabilityrust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

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