Releases: labstack/echo-contrib
Releases · labstack/echo-contrib
v0.17.2
v0.17.1
What's Changed
Security
- Update golang.org/x/net dependency because of GO-2024-2687 by @aldas in #115
Enhancements
Full Changelog: v0.17.0...v0.17.1
v0.17.0
What's Changed
- Jaeger Middleware: Missing Span Context in Proxied Request Header by @jamesstocktonj1 in #110
New Contributors
- @jamesstocktonj1 made their first contribution in #110
Full Changelog: v0.16.0...v0.17.0
v0.16.0 - small changes
Functionality:
- Prometheus: disable echoprometheus compression by default #97
- Prometheus: Conditionally set url label for 404 responses #111
Other:
- Fix docs: Set correct go import path for echoprometheus package #96
- Add SDPX licence identifier to source files #95
- feat: improve test readability and include README.md #107
- Upgrade dependencies #113
NB: this version needs Go 1.21+ if you want to use Prometheus mw
New Prometheus middleware
Introduced new Prometheus middleware (#94 ). This is cleaner API to replace older (now deprecated) Prometheus middleware. See README.md for migration guide.
Short example:
package main
import (
"errors"
"github.com/labstack/echo-contrib/echoprometheus"
"github.com/labstack/echo/v4"
"log"
"net/http"
)
func main() {
e := echo.New()
e.Use(echoprometheus.NewMiddleware("myapp")) // Add metrics middleware
e.GET("/metrics", echoprometheus.NewHandler()) // Add handler for metrics scrapers
if err := e.Start(":8080"); err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Fatal(err)
}
}
v0.14.1
Upgrade deps
Upgrade deps due to the latest golang.org/x/net vulnerability
v0.13.1: Body NewRequest
Jaeger: NewTracedRequest
adds body to new request #71