1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-12 02:28:05 +02:00
Commit Graph

1926 Commits

Author SHA1 Message Date
包子
5087366d2f
deps: upgrade kratos version to v2.8.3 (#3494) 2024-12-19 17:32:11 +08:00
lftk
f75bdc15ed
fix(registry): add timeout validation (#3492)
* fix(registry): add timeout validation

* fix(registry): add timeout validation

* fix(registry): add timeout validation
2024-12-18 18:20:03 +08:00
DCjanus
f8b97f675b
feat(log): add Logger() method for Helper (#3443)
* feat(log): add Logger() method for Helper

* chore(log): add test case for Helper.Logger()
2024-11-05 15:24:21 +08:00
dagehuifei
3ecb1d62dc
fix k8s headless service miss namespace (#3407)
* feat: add namespace for initialize the registry

* feat: add namespace for initialize the registry

* feat: add namespace for initialize the registry

* feat: add namespace for initialize the registry
2024-11-04 11:02:38 +08:00
dependabot[bot]
79886e4ef0
build(deps): bump golang.org/x/net in /contrib/opensergo (#3434)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.30.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-04 11:00:05 +08:00
dependabot[bot]
fe60a6b3b0
build(deps): bump actions/setup-go from 5.0.2 to 5.1.0 (#3450)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.0.2...v5.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-04 10:58:50 +08:00
guangxuewu
f3c4b23a08
fix: Return inner Logger from GetLogger for log.WithContext reuse (#3455)
* feat: Return inner Logger from GetLogger for log.WithContext reuse
fix: Ensure thread safety by eliminating lock copy in GetLogger

* feat: Add TestContextWithGlobalLog, WithContext from GlobalLog, print kv from context

* fix: lint

---------

Co-authored-by: guangxue.wu <guangxue.wu@yunzhanghu.com>
2024-10-31 18:02:07 +08:00
Nathan Baulch
bb85d7eda4
fix: various typos (#3454) 2024-10-31 10:00:25 +08:00
包子
861493a205
deps: upgrade kratos version to v2.8.2 (#3452) 2024-10-30 10:37:38 +08:00
dependabot[bot]
850877209e
build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3387)
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sync/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 21:41:44 +08:00
gangan liu
6883242a90
fix: unit test Recycle watch resolver tick goroutine (#3449)
*fix: TestRegistry_Watch Keep the original

*chore: update ci consul ver to 1.13.9

*chore: update ci consul ver to 1.20.0

*chore: update ci consul ver to hashicorp/consul:1.20
2024-10-28 21:40:31 +08:00
Monet Lee
225532d214
feat: create build Group in changelog generate. (#3448) 2024-10-28 11:00:50 +08:00
包子
4e9dac08f1
fix: resolve the issue of metrics and logging code default to zero (#3447)
* fix: resolve the issue of metrics and logging code default to zero

* fix lint
2024-10-23 20:49:08 +08:00
包子
8b8dc4b0f8
deps: upgrade kratos version to v2.8.1 (#3436) 2024-10-14 20:46:17 +08:00
Monet Lee
7cd86eb077
fix: fix errors reported by Lint CI. (#3435)
* fix: fix errors reported by Lint CI.

* fix error reported by golangLintCI

* update field name to server. aviod copyloopvar check.

* fix lint problem.
2024-10-11 22:00:22 +08:00
Name
5b5c253d83
fix: add timeout configuration in grpc dial function (#3365)
Co-authored-by: huangzw <huangzw@2345.com>
2024-10-08 11:31:59 +08:00
Ccheers
af0df5531a
feat(middleware/metrics): make DefaultSecondsHistogram simply (#3385)
support middleware histograms, only need to call DefaultSecondsHistogram without registering DefaultSecondsHistogramView
2024-10-08 11:30:37 +08:00
gangan liu
3395079668
fix: when entering idle mode, the old resolve-related resources have not been completely processed, and an exception occurs when exiting idle mode immediately. (#3402)
fix(test): fix gotest DATA RACE

fix(test): gotest errchecked

chore(gotest): gofmt

chore(gotest): consul address
2024-10-08 11:29:25 +08:00
jessetang
186ab88a62
chore: upgrade golangci-lint version to v1.60.3 and fix lint (#3414)
* chore: upgrade golangci-lint version to v1.60.3

* fix lint
2024-10-08 11:28:00 +08:00
Abhishek koserwal
e1f5dc42b1
feat: adding stream interceptor for logging middleware (#3359) 2024-09-18 09:59:45 +08:00
jessetang
908e6256a9
chore: remove non-existent test methods (#2770) 2024-09-09 11:11:08 +08:00
gangan liu
6963a8a438
feat(contrib/log/zap): If disable this level of logging entirely, avoid additional overhead (#3357) 2024-09-02 16:55:48 +08:00
Abhishek koserwal
da73565603
faet: add buf config for protoc-gen-go-errors (#3403) 2024-08-29 09:56:36 +08:00
Name
57b961cba0
chore: replace the DisableDebugLog method, which is marked as Deprecated, with the PrintDebugLog method in the discovery test (#3364)
Co-authored-by: huangzw <huangzw@2345.com>
2024-08-19 10:56:34 +08:00
Name
2f94905f28
perf: optimize the http.ContentType method (#3363)
Co-authored-by: huangzw <huangzw@2345.com>
2024-08-19 10:55:17 +08:00
Ccheers
d50609d4a0
fix(registry/polaris): fix concurrent map iteration and map write #3361 (#3386)
* fix(registry/polaris): fix concurrent map iteration and map write #3361

* fix(test): support go 1.20.x

* fix(test): fix test mock concurrent read

* fix: fix Metadata use rmd & remove dup space
2024-08-19 10:53:58 +08:00
ThereWeGo
642790484c
feat(resolver/discovery): expose create watcher timeout error (#3392) 2024-08-19 10:53:07 +08:00
Efe Büyük
084c8b4167
fix: fixed typo (#3395) 2024-08-15 17:03:34 +08:00
dependabot[bot]
d6fca5e3e9
build(deps): bump github/codeql-action from 2 to 3 (#3119)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:30:16 +08:00
dependabot[bot]
6e752cc050
build(deps): bump google.golang.org/protobuf in /cmd/protoc-gen-go-http (#3237)
Bumps google.golang.org/protobuf from 1.28.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Windfarer <windfarer@gmail.com>
2024-07-25 10:29:44 +08:00
dependabot[bot]
3b2ff19e59
build(deps): bump golang.org/x/net in /contrib/errortracker/sentry (#3288)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Windfarer <windfarer@gmail.com>
2024-07-25 10:28:53 +08:00
dependabot[bot]
0cc7ed74b1
build(deps): bump golang.org/x/net in /contrib/registry/etcd (#3289)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:28:38 +08:00
dependabot[bot]
24a3f5aa65
build(deps): bump golang.org/x/net in /contrib/config/kubernetes (#3291)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:27:41 +08:00
dependabot[bot]
4044326839
build(deps): bump golang.org/x/net in /contrib/registry/kubernetes (#3290)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:27:21 +08:00
dependabot[bot]
4a11cb9b66
build(deps): bump golang.org/x/net in /contrib/log/aliyun (#3292)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:27:02 +08:00
dependabot[bot]
c1fc15225e
build(deps): bump golang.org/x/net in /contrib/registry/polaris (#3294)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-25 10:26:39 +08:00
dependabot[bot]
bd7a91a8eb
build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 (#3362)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.0.1...v5.0.2)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Weizhen Wang <wangweizhen@pingcap.com>
2024-07-25 10:26:16 +08:00
chaos
c550cdafb8
fix: filter redundant endpoints invalid (#3373) 2024-07-25 10:23:27 +08:00
包子
9260862c93
deps: upgrade kratos version to v2.8.0 (#3378) 2024-07-22 19:57:54 +08:00
yonwoo9
5bb067a38d
chroe: chore update (#3367) 2024-07-22 19:37:54 +08:00
dependabot[bot]
7eb39d0c39
build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 (#3295)
* build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* go mod tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Windfarer <windfarer@gmail.com>
2024-07-19 10:00:56 +08:00
dependabot[bot]
73c9b5aec1
build(deps): bump golang.org/x/net in /contrib/registry/servicecomb (#3285)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-19 09:55:38 +08:00
dependabot[bot]
7da1bd5fae
build(deps): bump golang.org/x/net in /contrib/config/etcd (#3293)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cluas <Cluas@live.cn>
2024-07-19 09:54:44 +08:00
Tony Chen
3198e0b83b
adds Set-Cookie method to the HTTP transport. (#3353) 2024-06-27 18:40:09 +08:00
Abhishek koserwal
46362d1a36
feat: parsing config input and convert to match the type (#3306) 2024-06-15 13:28:15 +08:00
dependabot[bot]
eb07954ab6
build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#3315)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:01:11 +08:00
dependabot[bot]
86e8be988c
build(deps): bump golangci/golangci-lint-action from 5 to 6 (#3340)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:00:41 +08:00
Xingwang Liu
4aa4f7c7ca
The issue that the response header is not assigned a value is fixed (#3327) 2024-06-11 14:18:59 +08:00
dependabot[bot]
ba5a651b82
build(deps): bump golangci/golangci-lint-action from 4 to 5 (#3305)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-06 10:16:38 +08:00
jessetang
c0a7935bb1
faat(encoding/form): allow change the default form encoder and decoder tag name (#3328) 2024-06-01 16:07:17 +08:00