Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Releases: randlabs/go-metrics

Release v1.3.5

09 Jan 00:00
53396cb

Choose a tag to compare

  • Updated dependencies.

Release v1.3.4

21 Nov 00:17
c80e551

Choose a tag to compare

  • Updated dependencies.

Release v1.3.3

26 Sep 01:53
20dbc1f

Choose a tag to compare

  • Updated dependencies.

Release v1.3.2

02 Aug 15:18
e2f8918

Choose a tag to compare

  • Updated dependencies.
  • Minor improvements.

Release v1.3.1

12 May 18:34
d020db6

Choose a tag to compare

  • Increased metrics endpoint write timeout.
  • Updated dependencies.

Release v1.3.0

14 Nov 12:20
fa7ac4f

Choose a tag to compare

  • Updated dependencies.
  • The library now required Go v1.19+.
  • Added listener error callback to notify the app if the listening loop exits with an error.
  • Added handler for HEAD request on /health endpoint.
  • Also added a proper content-type to the /health endpoint which detects a JSON or plain text.

Release v1.2.0

18 Aug 13:10
395c1cd

Choose a tag to compare

IMPORTANT: This is a breaking change.

  • Health check callback now must return a string instead of an object and the value will be send directly as the output.

Reason for this change

Previously, the user had to return an object or struct, and ensure it contained a copy of the internal application state, usually protected by a mutex to avoid concurrent reading and writing.

If slices, maps or pointers were present, a deep copy was required in order to avoid accessing shared data out of the mutex.

Now, to avoid confusion, the callback must, for e.g., encode a struct as a JSON string and return it.

Release v1.1.2

17 Aug 13:33
896c6c5

Choose a tag to compare

  • Updated dependencies. Mainly go-webserver.

Release v1.1.1

22 Jun 16:55
3b88fd0

Choose a tag to compare

  • Updated dependencies.

Release v1.1.0

29 May 02:04
4fcb885

Choose a tag to compare

IMPORTANT NOTE: This release contains some breaking changes.

  1. CreateMetricsWebServer was renamed to CreateMetricsController and returns a Controller object instead of MetricsWebServer.
  2. Stop was renamed to Destroy.
  3. New fields added to Options struct.
  • Added support for an external web server.
  • Improved support for middlewares and endpoint protection.