Releases: autometrics-dev/autometrics-go
v1.1.0 — Bug fix
Version 1.0.0 — Init API rewrite
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
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 makecaller
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
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
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
v0.8.0 - OTLP and Push gateway support
What's Changed
Full Changelog: v0.7.0...v0.8.0
0.7.0 - Autometrics spec compliance release
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
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
- @keturiosakys made their first contribution in #59
Full Changelog: v0.6.0...v0.6.1
0.6.0 - Middleware and import rationalization
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!