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