Skip to content

Releases: labstack/echo-contrib

v0.17.1

19 Apr 15:43
908dda6
Compare
Choose a tag to compare

What's Changed

Security

Enhancements

Full Changelog: v0.17.0...v0.17.1

v0.17.0

14 Apr 16:21
1d6fb61
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.16.0...v0.17.0

v0.16.0 - small changes

21 Mar 08:04
e3d5d99
Compare
Choose a tag to compare

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

22 May 12:57
c764849
Compare
Choose a tag to compare

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: jaegertracing should clean multipartform files at the end of its scop…

01 Mar 21:27
Compare
Choose a tag to compare
  • Jaegertracing should clean multipartform files at the end of its scop (#90)
  • Prometheus: Adding Host Label to all metrics (#89)

Upgrade deps

20 Feb 08:52
Compare
Choose a tag to compare

Upgrade deps due to the latest golang.org/x/net vulnerability

v0.13.1: Body NewRequest

04 Jan 14:58
Compare
Choose a tag to compare

Jaeger: NewTracedRequest adds body to new request #71

v0.13.0

28 Jul 05:20
Compare
Choose a tag to compare
  • Prometheus: Add proper buckets for request/response sizes (#73)
  • Jaeger: Added possibility to customize span operationName (#77)
  • update dependecies and github CI flow (#78)

v0.12.0

26 Jan 06:40
Compare
Choose a tag to compare
  • casbin: add EnforceHandler to allow custom callback to handle enforcing #66
  • session: improve error message when _session_store is missing from context #67
  • jaegertracing: Improvements for jaegertracing #62
  • upgrade dependencies #68

minor fixes, updated deps

01 Jun 20:55
Compare
Choose a tag to compare
  • Extend jaeger results #47
  • Updating go version, issue template and build pipeline #51
  • Prometheus add host relabel #53
  • replace golint as it is deprecated, clean/update git actions #55
  • Prometheus middleware should not call c.Error() as it causes double error logging #56