OpenTelemetry integration for Tide
Notes
- It only implements very basic request tracing on the middleware layer. If you need spans for your executed code, you need to add them yourself.
- The majority of the implementation is based on https://github.com/OutThereLabs/actix-web-opentelemetry.
- It does not provide metrics, so it cannot be used for Prometheus metrics. Yet. Maybe I'll add it in the future. Or you want to contribute the extension. ;-)
- You probably do not want to use it in production. 🤷
How to use
# Run jaeger in background
# Run server example with tracing middleware
# Make a request or two ...
# Open browser and view the traces
Code example
Cargo.toml
[]
= { = "1.6", = ["attributes"]}
= "0.7"
= "0.6"
= "0.3"
= "0.13"
= "0.13"
server.rs
use ;
use OpenTelemetryTracingMiddleware;
use Request;
async
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.