Skip to content

v0.12.0

Latest
Compare
Choose a tag to compare
@asaaki asaaki released this 15 Feb 17:17
· 10 commits to main since this release
v0.12.0
7efd91e

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 to BoxedTracer 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.