Skip to content

πŸ”– release 0.8.0

Choose a tag to compare

@yezz123 yezz123 released this 06 Oct 00:55
· 1288 commits to main since this release
eefba52

πŸ”– Release 0.8.0

Implementation in FastAPI applications

That's Work by adding a Middleware to your FastAPI application, working on collecting Prometheus metrics for each request, and then to handle that we need a function get_metrics to work on handling exposing the Prometheus metrics into the /metrics endpoint.

from fastapi import FastAPI
from authx.middleware import MetricsMiddleware, get_metrics

app = FastAPI()
app.add_middleware(MetricsMiddleware)
app.add_route("/metrics", get_metrics)

What's Changed

  • πŸ‘· chore(dev): Support middleware for Prometheus metrics by @yezz123 in #262

Full Changelog: 0.7.0...0.8.0