Skip to content

v0.8.2 - On/Offboarding DX

Compare
Choose a tag to compare
@gagbo gagbo released this 20 Oct 10:15
· 9 commits to main since this release
239584e

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