github grpc-ecosystem/go-grpc-middleware v2.0.0

latest releases: providers/prometheus/v1.0.1, v2.1.0, providers/openmetrics/v2.0.1...
9 months ago

This is the first stable release of the new v2 release branch 🎉

Many of the interceptors have been rewritten from scratch and the project has been upgraded to use the Go Protobuf v2 API.

See the project README for details and migration guide. Thanks to all contributors who made this possible! 💪🏽

What's Changed

  • Initial change for v2. by @bwplotka in #276
  • Updated README with note that it's under development. by @bwplotka in #278
  • Fix typo in field extractor (splices -> slices) (#287) by @bvwells in #289
  • Moved imports to v2; Moved to Go 1.14.2 by @bwplotka in #290
  • Formatted code; Added goimports to Makefile, Renamed pb_testproto to testpb. by @bwplotka in #291
  • Fixed providers go modules, examples and consistency. by @bwplotka in #292
  • added example for AuthFuncOverride v2 branch by @tegk in #294
  • Added some description of the Makefile in the contributing.md by @yashrsharma44 in #298
  • v2: Add support for the zerolog logging provider by @irridia in #299
  • proto: fix gogoproto import by @johanbrandhorst in #302
  • Retry dial and connection errors for grpc stream. by @kartlee in #308
  • Moved to GH actions; Added lint; Added issue/PR templates. by @bwplotka in #296
  • inline localhost certificate into go file by @bmon in #318
  • Update streaming interceptor example by @G07cha in #322
  • Do not stop retrying based on earlier good message from the stream by @kartlee in #323
  • test certs - cherry-pick PR325 on v2 by @dmitris in #331
  • add all make target, reword instructions by @dmitris in #335
  • remove 1.12.x from build config for consistency with master by @dmitris in #337
  • [v2] Fix the special case for jaeger format traceid extraction by @nvx in #340
  • [v2] Fix ctxtags TagBasedRequestFieldExtractor extracting from fields in a oneof by @nvx in #339
  • Request Logging by @yashrsharma44 in #311
  • Bug fix for data race by @yashrsharma44 in #354
  • make ratelimit interface context aware by @xinxiao in #367
  • Add error param to the decider method of logging middleware by @yashrsharma44 in #372
  • [v2] Add skip interceptor by @XSAM in #364
  • Chain middleware by @drewwells in #385
  • Update travis ci badget to Github actions badge. by @drewwells in #384
  • Upgraded proto related deps: grpc and protobuf; removed gogo from core. by @bwplotka in #321
  • improve v2 rate-limiter by @MalloZup in #380
  • Moved to buf; Added buf lint; Fixed ping service to match standards; … by @bwplotka in #383
  • Add timer interface for OpenMetrics(Prometheus) Provider by @yashrsharma44 in #387
  • [Rate-limit provider]: Add token bucket implementation of rate-limiter by @MalloZup in #386
  • Add OpenMetrics(Prometheus) in the provider module by @yashrsharma44 in #379
  • v2: Client unary interceptor timeout on v2 branch by @instabledesign in #330
  • add onRetryCallback callback function by @shamil in #405
  • v2: validator support for protoc-gen-validate 0.6.0 by @danielhochman in #418
  • v2: Refactor metrics interceptor and fix tests by @ash2k in #413
  • Support customization of timestamp format (v2 branch) by @stanhu in #399
  • Fixed misleading comments in the interceptor file by @iamrajiv in #424
  • v2: Switch from github.com/go-kit/kit to github.com/go-kit/log interfaces by @liggitt in #427
  • v2: Add support for the phuslog logging provider by @ogimenezb in #425
  • v2:providers/zap: fix caller annotation by @jkawamoto in #432
  • Added Dependabot by @iamrajiv in #376
  • Added a Copyright check in the Makefile by @yashrsharma44 in #420
  • Cleanup v2 with some updates by @yashrsharma44 in #419
  • openmetrics: forward server context by @amenzhinsky in #434
  • recovery: change the default behavior by @amenzhinsky in #439
  • Add all-validator support by @leventeliu in #443
  • Remove backoffutils and added the files to retry package by @yashrsharma44 in #390
  • v2:interceptors/logging: allow to separate request response payload logging by @michaljemala in #442
  • Removed tags; Simplified interceptor code; Added logging fields editability. by @bwplotka in #394
  • InterceptorTestSuite client connection optimize by @HUSTtoKTH in #455
  • Remove opentracing from go.mod by @jpkrohling in #477
  • Replace two old Go versions with two new ones by @jpkrohling in #478
  • Move util/metautils to root-level package metadata, fixes #392 by @rahulkhairwar in #474
  • Remove data race from zerolog provider by @ecordell in #487
  • Update provider/kit by @metalmatze in #490
  • Refactor tracing interceptor by @XSAM in #450
  • Add opentracing provider by @XSAM in #492
  • update phuslog to fix typo by @ogimenezb in #499
  • Added logr as logging Library provider by @mcdoker18 in #510
  • ✨ new feat: selector middleware by @aimuz in #511
  • Add 1.18.x and 1.19.x unit tests by @aimuz in #513
  • change the doc.go to the latest format by @aimuz in #512
  • fix provider examples by @forsaken628 in #529
  • docs: add logging.InjectFields usage description by @aimuz in #541
  • Bump golang.org/x/net from 0.0.0-20201021035429-f5854403a974 to 0.7.0 by @dependabot in #537
  • v2: All for v2: Exemplars, Cleanup, Docs, Lint, Proto upgrades and more by @bwplotka in #543
  • [interceptors/validator] feat: add error logging in validator by @rohanraj7316 in #544
  • fix auto-generated docs by @peczenyj in #548
  • fix vulnerability GO-2022-0603 by @peczenyj in #549
  • add support to trace on grpc_logrus.DefaultMessageProducer by @peczenyj in #547
  • Simplified logging middleware; Fields are now "any" type; Moved logging providers to examples only. by @bwplotka in #552
  • Removed deciders; Cleaned up validators. by @bwplotka in #554
  • Adjustments to README and consistency of callback options. by @bwplotka in #555
  • Merge v2 into main (with -X theirs) by @bwplotka in #556
  • Bump golang.org/x/net from 0.5.0 to 0.7.0 in /providers/prometheus by @dependabot in #561
  • Fix overwritten logger in zerolog example by @longshine in #574
  • Changed for for mapping fields, different var for logger in zap example by @MichalFikejs in #581
  • cleanup: no cap definition required by @aimuz in #582
  • providers/prometheus: Add WithHistogramOpts for native histograms by @metalmatze in #584
  • fix: Refactor logger initialization in example_test.go by @aimuz in #580
  • Minor code cleanups by @ash2k in #586
  • fix prometheus interceptors not converting context errors to gRPC codes by @vtermanis in #571
  • Update README.md by @bwplotka in #600
  • Update PULL_REQUEST_TEMPLATE.md by @bwplotka in #601
  • Add Client rate limit interceptors 520 by @rahulkhairwar in #599
  • Use default go errors package instead of github.com/pkg/errors by @rifkyazizf in #608
  • fix bug : should drain channel of timer after stop by @ikenchina in #612
  • feat: add interceptor for bufbuild/protovalidate by @gvencadze in #614
  • Enhancement: Introduce Option Interface for Future Interceptor Customization by @elliotmjackson in #615

New Contributors

Full Changelog: v1.4.0...v2.0.0

Don't miss a new go-grpc-middleware release

NewReleases is sending notifications on new releases.