Go Http Metrics Versions Save

Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library

v0.12.0

1 month ago

0.12.0 - 2024-04-19

Changed

  • Gin middleware now records the path using the regex from FullPath() instead of the real URL, avoiding cardinality explosion.
  • Dependency updates.
  • Use Go 1.22.

v0.11.0

7 months ago

0.11.0 - 2023-10-20

Changed

  • Update dependencies to latest versions.

Added

  • Support Iris library.

v0.10.0

2 years ago

0.10.0 - 2021-11-16

Added

  • Support Fasthttp library.
  • Support gorestful v3

Changed

  • Drop support gorestful v2

v0.9.0

3 years ago

0.9.0 - 2020-10-03

Added

  • New helper method to get an std HTTP handler provider (std.HandlerProvider) (used by various frameworks like Gorilla).
  • Support Chi library.
  • Support Alice library.
  • Support Gorilla library.

v0.8.0

3 years ago

0.8.0 - 2020-06-04

Added

  • New middleware helper for the Goji framework.

v0.7.0

3 years ago

0.7.0 - 2020-06-02

Breaking change: The library has been refactored to be more flexible when adding new framework/libraries.

Added

  • New middleware helper for the Echo framework.

Changed

  • Refactored internally how the Middleware works and gets the data to make it easier to extend and more reliable.
    • Added Reporter interface as the service responsible of getting the data to be measured.
    • All different framwork helpers now implement with the new Reporter way.
  • Fixed Gin returning duplicated data (#31).
  • (Breaking) Standard handler now is on middleware/std instead of middleware.

Removed

  • Middleware interface in favor of a struct.

v0.6.1

4 years ago

0.6.1 - 2020-02-07

Changed

  • Internal response writer interceptor implements http.Hijacker and http.Flusher interface.

v0.6.0

4 years ago

0.6.0 - 2019-12-11

Breaking changes

  • The Recorder methods now receive properties in a single argument, this will make less breaking changes and better API (there where too many arguments for a function).

Added

  • Added new service property to identify the service.

Changed

  • The Recorder methods now receive properties in a single argument, this will make less breaking changes and better API (there where too many arguments for a function)

v0.5.0

4 years ago

0.5.0 - 2019-12-12

Added

  • Gin compatible middleware.

v0.4.0

5 years ago

Breaking changes

  • The Recorder methods now receive a context argument.

Added

  • OpenCensus recorder implementation.