OutThereLabs/actix-web-opentelemetry
Fork: 32 Star: 76 (更新于 2024-10-27 10:16:57)
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-05 08:48:52 lapce/lapce
2024-11-04 19:47:57 dashpay/platform
2024-11-01 02:26:55 mediar-ai/screenpipe
2024-10-30 06:09:45 electric-capital/crypto-ecosystems
2024-10-29 10:21:58 rustdesk/rustdesk
2024-10-27 15:42:03 jtroo/kanata