OutThereLabs/actix-web-opentelemetry
Fork: 33 Star: 77 (更新于 2024-11-18 17:34:15)
license: MIT
Language: Rust .
OpenTelemetry integration for Actix Web
最后发布版本: v0.18.0 ( 2024-05-30 09:51:11)
Actix Web OpenTelemetry
OpenTelemetry integration for Actix Web.
Exporter configuration
actix-web
uses tokio
as the underlying executor, so exporters should be
configured to be non-blocking:
[dependencies]
# if exporting to jaeger, use the `tokio` feature.
opentelemetry-jaeger = { version = "..", features = ["rt-tokio-current-thread"] }
# if exporting to zipkin, use the `tokio` based `reqwest-client` feature.
opentelemetry-zipkin = { version = "..", features = ["reqwest-client"], default-features = false }
# ... ensure the same same for any other exporters
Execute client and server example
# Run jaeger in background
$ docker run -d -p6831:6831/udp -p6832:6832/udp -p16686:16686 jaegertracing/all-in-one:latest
# Run server example with tracing middleware
$ cargo run --example server
# (In other tab) Run client example with request tracing
$ cargo run --example client --features awc
# View spans (see the image below)
$ firefox http://localhost:16686/
Features
-
awc
-- enable support for tracing theawc
http client. -
metrics
-- enable support for opentelemetry metrics (only traces are enabled by default) -
metrics-prometheus
-- enable support for prometheus metrics (requiresmetrics
feature) -
sync-middleware
-- enable tracing on actix-web middlewares that do synchronous work before returning a future. Adds a small amount of overhead to every request.
最近版本更新:(数据更新于 2024-10-10 22:59:40)
2024-05-30 09:51:11 v0.18.0
2024-03-12 03:06:24 v0.17.0
2023-11-08 06:51:00 v0.16.0
2023-08-02 13:13:45 v0.15.0
2023-07-30 07:26:07 v0.14.0
2022-09-20 02:18:27 v0.13.0
2022-08-04 07:15:46 v0.13.0-alpha.1
2022-03-01 08:11:52 v0.12.0
2021-12-31 01:09:25 v0.11.0-beta.7
2021-12-04 09:08:16 v0.11.0-beta.6
主题(topics):
actix-web, jaeger, opentelemetry
OutThereLabs/actix-web-opentelemetry同语言 Rust最近更新仓库
2024-11-20 07:29:29 lanyeeee/jmcomic-downloader
2024-11-19 23:39:15 gleam-lang/gleam
2024-11-19 08:50:55 lapce/lapce
2024-11-11 22:51:00 tauri-apps/tauri
2024-11-11 07:55:30 dani-garcia/vaultwarden
2024-11-09 16:42:37 rustdesk/rustdesk