13个版本 (重大变更)

0.9.0 2024年7月15日
0.7.0 2024年4月12日
0.6.0 2024年2月26日
0.5.3 2023年12月13日
0.1.0 2023年3月27日

#198HTTP服务器

Download history • Rust 包仓库 905/week @ 2024-05-01 • Rust 包仓库 446/week @ 2024-05-08 • Rust 包仓库 853/week @ 2024-05-15 • Rust 包仓库 439/week @ 2024-05-22 • Rust 包仓库 763/week @ 2024-05-29 • Rust 包仓库 691/week @ 2024-06-05 • Rust 包仓库 916/week @ 2024-06-12 • Rust 包仓库 573/week @ 2024-06-19 • Rust 包仓库 249/week @ 2024-06-26 • Rust 包仓库 400/week @ 2024-07-03 • Rust 包仓库 538/week @ 2024-07-10 • Rust 包仓库 415/week @ 2024-07-17 • Rust 包仓库 534/week @ 2024-07-24 • Rust 包仓库 403/week @ 2024-07-31 • Rust 包仓库 373/week @ 2024-08-07 • Rust 包仓库 264/week @ 2024-08-14 • Rust 包仓库

每月 1,633 次下载

MIT/Apache

35KB
642 代码行

Trillium Opentelemetry!

此crate提供符合HTTP语义约定跟踪语义约定的opentelemetry指标。

使用方法

use trillium_opentelemetry::global::{instrument, instrument_handler};
use trillium_router::router;

#[tokio::main]
async fn main() {
    // configure a global meter provider and tracer provider here
    // see examples/with_global.rs for a functional example

    trillium_tokio::run_async((
        instrument().with_route(|conn| conn.route().map(|r| r.to_string().into())),
        instrument_handler(router().get("/some/:path", instrument_handler("ok")),
    ))
    .await;
}




法律

根据以下任一许可协议授权:

由您选择。

除非您明确声明,否则根据Apache-2.0许可协议定义,您有意提交的任何贡献均应按照上述方式双重许可,而不附加任何额外条款或条件。

依赖关系

~8MB
~194K SLoC