Skip to content

Releases: autometrics-dev/autometrics-go

v1.1.0 — Bug fix

25 Jan 12:33
c8417f1
Compare
Choose a tag to compare

What's Changed

  • Fix bad copy-paste mistake by @gagbo in #86

Full Changelog: v1.0.0...v1.1.0

Version 1.0.0 — Init API rewrite

01 Dec 12:41
853e2f3
Compare
Choose a tag to compare

Autometrics Go 1.0.0

This milestone release is focused on bringing a more stable API to Init function call, making it more resilient to future changes that would require new configuration options.

What's Changed

  • fix: Fix typo in am instrumtent command by @k-yang in #82
  • Use WithFoo() arguments to autometrics.Init instead of long function signature by @gagbo in #83

New Contributors

Full Changelog: v0.9.0...v1.0.0

v0.9.0 - Autometrics 1.0 spec, logging

17 Nov 10:25
6ffa46c
Compare
Choose a tag to compare

0.9.0

The main goal of the release is to follow the 1.0 specification of Autometrics. There are 2 other big changes:

  • autometrics defer statement is split in 2, so that the context created by autometrics can be passed and reused in the instrumented function (doing so will make caller information more useful, and ensure more links in the call graphs)
  • autometrics takes an optional logger to log errors that might happen while dealing with the monitoring backend, so the signature of autometrics.Init changed

What's Changed

  • Fix quickstart instruction by @gagbo in #75
  • Implement repository fields and support for filtered caller tracking by @gagbo in #79
  • Add Logging interface to Autometrics by @gagbo in #80

Full Changelog: https://github.com/autometrics-dev/autometrics-go/blob/main/CHANGELOG.md

v0.8.2 - On/Offboarding DX

20 Oct 10:15
239584e
Compare
Choose a tag to compare

Autometrics 0.8.2

This minor release adds commands to help instrument in one go a library. With GNU sed installed (gsed on MacOS, sed on most Linux) you can:

find . \
  -type d -name vendor -prune -or \
  -type f -name '*.go' \
  -print0 | xargs -0 gsed -i -e '/package/{a\//go:generate autometrics --inst-all --no-doc' -e ':a;n;ba}' && \
go generate ./...

to instrument all your functions that are not in /vendor directory

What's Changed

  • Add --inst-all and --rm-all options to generator by @gagbo in #73

Full Changelog: https://github.com/autometrics-dev/autometrics-go/blob/main/CHANGELOG.md
Full Compare: v0.8.1...v0.8.2

0.8.1 - Better module naming and other bugfixes

13 Oct 10:10
Compare
Choose a tag to compare

What's Changed

  • Use the full, cleaned up module name by @gagbo in #69
  • Fix some panics when running the generator on annotated code (#70) by @gagbo in #69
  • Ensure doc comments are rendered well by godoc when function had no prior godoc by @gagbo in #69

Full Changelog: v0.8.0...v0.8.1

v0.8.0 - OTLP and Push gateway support

19 Sep 13:54
7a45333
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.8.0

0.7.0 - Autometrics spec compliance release

05 Sep 08:16
cb36d75
Compare
Choose a tag to compare

This release contains incremental Autometrics compliance changes to the new autometrics specification.

This is viewed as a breaking change because it changes the output metrics, and might therefore break existing Prometheus configurations and alerting rules built around the library.

Check the Changelog as always for more information

What's Changed

Full Changelog: v0.6.1...v0.7.0

0.6.1 - Bugfix

24 Jul 13:32
dea8bbf
Compare
Choose a tag to compare

Version 0.6.1

The main highlight of that version is the fix of a regression regarding latency data collection, and added compatibility with IDEs that modify code aggressively to comply with Go compiler's aggressiveness.

What's Changed

  • Add autometrics imports when calling go generate if necessary by @gagbo in #57
  • Add Prometheus instructions and AM reference to Readme by @keturiosakys in #59
  • doc: follow common readme guidelines by @gagbo in #58
  • chore: Release 0.6.1 by @gagbo in #64

New Contributors

Full Changelog: v0.6.0...v0.6.1

0.6.0 - Middleware and import rationalization

06 Jun 08:24
6c3f7a6
Compare
Choose a tag to compare

Version 0.6.0

Check the Changelog for more information.

The most important point to not miss, is the change of imports for autometrics. It follows a more idiomatic path to reduce the possibilities of typos and confusion:

import (
-	autometrics "github.com/autometrics-dev/autometrics-go/pkg/autometrics/prometheus"
+	"github.com/autometrics-dev/autometrics-go/prometheus/autometrics"
)

You can (and should) use a global search and replace in the project to change the imports if you were already using this!

0.5.0

17 May 14:39
6f369e2
Compare
Choose a tag to compare

Version 0.5.0

Now that the project adopted a changelog, the best way to see the changes is to check directly the CHANGELOG

The main purpose of this release is to have a version usable by the Autometrics VSCode extension, while working on bigger changes around tracing and statefulness.