@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [ Go module
7
7
versioning] ( https://go.dev/doc/modules/version-numbers ) .
8
8
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 )
10
10
11
11
### Added
12
12
@@ -20,27 +20,35 @@ versioning](https://go.dev/doc/modules/version-numbers).
20
20
21
21
### Security
22
22
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
24
24
25
25
### Added
26
26
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.
30
27
- All metrics now have a ` service_name ` label, which can either be compiled in ` Init ` call, or
31
28
filled at runtime from environment variables (in order of precedence):
32
29
+ ` AUTOMETRICS_SERVICE_NAME `
33
30
+ ` OTEL_SERVICE_NAME `
34
-
31
+
35
32
### Changed
36
33
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.
39
34
- Function calls metric has been renamed from ` function_calls_count_total ` to ` function_calls_total `
40
35
- Function calls duration histogram has been renamed from ` function_calls_duration `
41
36
to ` function_calls_duration_seconds `
42
37
- Function caller label has been split from ` caller ` to ` caller_function ` and ` caller_label `
43
38
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
+
44
52
### Fixed
45
53
46
54
- Code generation now works when ` autometrics ` is imported with the ` _ ` alias
0 commit comments