Changed
-
Update dependencies and fix breaking changes
opentelemetry = "0.17" opentelemetry-prometheus = { version = "0.10", optional = true } opentelemetry-semantic-conventions = "0.9" prometheus = { version = "0.13", optional = true }
Due to lifetime and thread-safety issues (non-Send across await point),
a switch toBoxedTracer
was necessary. Since most examples and implementation do that,
this crate gets in line with the others now. -
Ensure that docs are generated for both middlewares (
#[cfg(any(…, doc))]
)
Added
-
More default methods to set up the middlewares (via
opentelemetry_tide::TideExt
):.with_default_metrics_middleware()
.with_default_tracing_middleware()
.with_default_middlewares()
This should avoid the need to pass in a tracer for common scenarios.