From 652b544d7f2364cb1001a131880677f64eda719a Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Fri, 17 Nov 2023 11:06:28 +0100 Subject: [PATCH] Release 0.9.0 --- .../default.md} | 0 .github/PULL_REQUEST_TEMPLATE/release.md | 10 ++++++++ CHANGELOG.md | 23 +++++++++++++++---- internal/build/build.go | 2 +- 4 files changed, 29 insertions(+), 6 deletions(-) rename .github/{pull_request_template.md => PULL_REQUEST_TEMPLATE/default.md} (100%) create mode 100644 .github/PULL_REQUEST_TEMPLATE/release.md diff --git a/.github/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/default.md similarity index 100% rename from .github/pull_request_template.md rename to .github/PULL_REQUEST_TEMPLATE/default.md diff --git a/.github/PULL_REQUEST_TEMPLATE/release.md b/.github/PULL_REQUEST_TEMPLATE/release.md new file mode 100644 index 0000000..4fbe3d1 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/release.md @@ -0,0 +1,10 @@ +# Release + +- [ ] The `CHANGELOG` is updated with a new section and the correct links +- [ ] The `Version` value in `internal/build` package is updated + +Once this PR is merged, the commit must have a matching tag in the repository, +and a corresponding release must be created in Github. If no other PR is merged +after this one, it is possible to do both steps in one go by creating the release +from Github UI. Otherwise, put the tag on the correct commit first, and do +the release "from an existing tag". diff --git a/CHANGELOG.md b/CHANGELOG.md index 61a10c6..ab5e8c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Go module versioning](https://go.dev/doc/modules/version-numbers). -## [Unreleased](https://github.com/autometrics-dev/autometrics-go/compare/v0.8.2...main) +## [Unreleased](https://github.com/autometrics-dev/autometrics-go/compare/v0.9.0...main) + +### Added + +### Changed + +### Deprecated + +### Removed + +### Fixed + +### Security + +## [0.9.0](https://github.com/autometrics-dev/autometrics-go/releases/tag/v0.9.0) 2023-11-17 The main goal of this release is to reach compatibility with 1.0.0 version of Autometrics specification. @@ -18,6 +32,9 @@ specification. set in the `BuildInformation` structure when calling `autometrics.Init`, or by setting environment variables `AUTOMETRICS_REPOSITORY_URL` and `AUTOMETRICS_REPOSITORY_PROVIDER`, respectively. +- [All] `autometrics` now adds the version of the specification it follows in the `build_info` + metric. `autometrics.version` label will point the version of autometrics specification the + associated metrics will follow. ### Changed @@ -39,10 +56,6 @@ specification. and how users want autometrics to log events. Passing `nil` for the argument value will use a "No Op" logger that does not do anything. -### Deprecated - -### Removed - ### Fixed - [Generator] Fix a few generator crashes when instrumented functions have specific argument types. diff --git a/internal/build/build.go b/internal/build/build.go index 6170b83..8187de4 100644 --- a/internal/build/build.go +++ b/internal/build/build.go @@ -1,7 +1,7 @@ package build // import "github.com/autometrics-dev/autometrics-go/internal/build" // Version is the version string of the build, when made available through ldflags. -var Version = "development" +var Version = "0.9.0" // User is the user who triggered this build, when made available through ldflags. var User = "n/a"