v0.17.0
New and Improved weaver version
Before v0.17.0, weaver version
was both complicated and a bit broken:
$ weaver version
weaver (devel)
target: linux/amd64
commit: ?
deployer API: 0.13.0
codegen API: 0.11.0
In v0.17.0, weaver version
is simpler and works again:
$ weaver version
weaver v0.17.0 linux/amd64
See #421 for details.
Local Metrics and Faster Metrics
Service Weaver automatically creates and maintains metrics for component method calls. For example, serviceweaver_method_count
counts the number of method calls, and serviceweaver_method_latency_micros
measures the latency of method calls. Before v0.17.0, these metrics were maintained for remote method calls but not local calls. In v0.17.0, these metrics are maintained for all method calls, local and remote (#429). We also optimized metrics to make method calls even faster (#440).
Better Mismatched Version Errors
Before v0.17.0, when you ran into versioning issues, you would see an error like this:
You used 'weaver generate' codegen version 0.17.0, but you built your
code with an incompatible weaver module version. Try upgrading 'weaver
generate' and re-running it.
Now, you see a much more helpful error message that looks like this:
ERROR: You generated this file with 'weaver generate' v0.17.0. The generated code is incompatible
with the version of the github.com/ServiceWeaver/weaver module that you're using. The weaver
module version can be found in your go.mod file or by running the following command.
go list -m github.com/ServiceWeaver/weaver
We recommend updating the weaver module and the 'weaver generate' command by
running the following.
go get github.com/ServiceWeaver/weaver@latest
go install github.com/ServiceWeaver/weaver/cmd/weaver@latest
Then, re-run 'weaver generate' and re-build your code. If the problem persists,
please file an issue at https://github.com/ServiceWeaver/weaver/issues.
See #431 and #432 for details.
weaver.AutoMarshal
in Router Keys
Router keys are now allowed to contain weaver.AutoMarhsal
. See #415 for details.
Bug Fixes
- Move "DO NOT EDIT" line before package clause. by @mwhittaker in #412
- Fixed main-only bug in multi deployer. by @mwhittaker in #422
New Contributors
- @zailic made their first contribution in #415
- @miroswan made their first contribution in #416
- @tiennv1997 made their first contribution in #424
Full Changelog: v0.16.1...v0.17.0