Skip to content

Commit cb36d75

Browse files
authored
chore: release 0.7 (#66)
1 parent 0a62cf8 commit cb36d75

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

CHANGELOG.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Go module
77
versioning](https://go.dev/doc/modules/version-numbers).
88

9-
## [Unreleased](https://github.com/autometrics-dev/autometrics-go/compare/v0.6.1...main)
9+
## [Unreleased](https://github.com/autometrics-dev/autometrics-go/compare/v0.7.0...main)
1010

1111
### Added
1212

@@ -20,27 +20,35 @@ versioning](https://go.dev/doc/modules/version-numbers).
2020

2121
### Security
2222

23-
## [0.6.1](https://github.com/autometrics-dev/autometrics-go/releases/tag/v0.6.1) 2023-07-24
23+
## [0.7.0](https://github.com/autometrics-dev/autometrics-go/releases/tag/v0.7.0) 2023-09-04
2424

2525
### Added
2626

27-
- The Go generator now removes all the old defer statements in function bodies before re-adding
28-
only the necessary ones. This means calling `go generate` on a file that has no annotation
29-
at all effectively cleans up the whole file from autometrics.
3027
- All metrics now have a `service_name` label, which can either be compiled in `Init` call, or
3128
filled at runtime from environment variables (in order of precedence):
3229
+ `AUTOMETRICS_SERVICE_NAME`
3330
+ `OTEL_SERVICE_NAME`
34-
31+
3532
### Changed
3633

37-
- Instead of returning an error when the go generator does not find the autometrics import
38-
in a file, it will add the needed import itself in the file.
3934
- Function calls metric has been renamed from `function_calls_count_total` to `function_calls_total`
4035
- Function calls duration histogram has been renamed from `function_calls_duration`
4136
to `function_calls_duration_seconds`
4237
- Function caller label has been split from `caller` to `caller_function` and `caller_label`
4338

39+
## [0.6.1](https://github.com/autometrics-dev/autometrics-go/releases/tag/v0.6.1) 2023-07-24
40+
41+
### Added
42+
43+
- The Go generator now removes all the old defer statements in function bodies before re-adding
44+
only the necessary ones. This means calling `go generate` on a file that has no annotation
45+
at all effectively cleans up the whole file from autometrics.
46+
47+
### Changed
48+
49+
- Instead of returning an error when the go generator does not find the autometrics import
50+
in a file, it will add the needed import itself in the file.
51+
4452
### Fixed
4553

4654
- Code generation now works when `autometrics` is imported with the `_` alias

go.work

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ go 1.20
33
use (
44
.
55
./examples/web
6+
./examples/otel
67
)

0 commit comments

Comments
 (0)