Skip to content

Version 0.4.0 build information in metrics

Compare
Choose a tag to compare
@gagbo gagbo released this 09 May 06:57
· 33 commits to main since this release
7550614

Features

Build information support

This version adds tracking of the build information in metrics, see https://fiberplane.com/blog/autometrics-rs-0-4-spot-commits-that-introduce-errors-or-slow-down-your-application for more information

Breaking changes

Long flags consistency

All long flags now take  2 - in front of them, notably in the //go:generate arguments

- //go:generate autometrics -otel -custom-latency
+ //go:generate autometrics --otel --custom-latency

Initialization call

The initialization of autometrics now takes a BuildInfo argument that is meant to be filled with the relevant build information. See the examples in the repository for more information.

- autometrics.Init(nil, autometrics.DefBuckets)
+ autometrics.Init(nil, autometrics.DefBuckets, autometrics.BuildInfo{})