Commit Graph

681 Commits

Author SHA1 Message Date
huazhongming 730695a7a2
[3.2]Use spotless to format the code (#13320)
* Use spotless to format the code

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

* Support develop with JDK 21

Signed-off-by: crazyhzm <crazyhzm@gmail.com>

---------

Signed-off-by: crazyhzm <crazyhzm@gmail.com>
2023-11-07 15:40:13 +08:00
songxiaosheng 575c3392ec
Service metrics (#13033)
*  support service metric level

*  support service metric level

*  support service metric level

*  support service metric level

*  add ServiceMetricsTest

*  add ServiceMetricsTest

*  add ServiceMetricsTest

*  servicelevel config init opt

*  servicelevel config init opt

*  servicelevel config init opt

*  servicelevel config init opt

*  servicelevel config init opt

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-09-19 10:22:58 +08:00
Albumen Kevin ade91c9b69
Fix unit test cases (#13076) 2023-09-19 10:19:23 +08:00
Albumen Kevin 8d9817f8af
Publish directory refresh event after connectivity check (#12988) 2023-08-31 19:30:36 +08:00
TomlongTK c12a57eb3c
enhance application discovery toString (#12953) 2023-08-29 16:14:52 +08:00
Albumen Kevin f5cc40c56a
Fix static directory metrics label (#12951)
* Fix static directory metrics label

* Fix import
2023-08-23 15:39:52 +08:00
wxbty 0add70e3f5
Support multi registries metrics key (#12582)
* init

* fix

* fix

* fix

* fix

* add licence

* fix testcase

* fix testcase

* lowcase

* remove unuse

* opt notify&directory

* fix post&finish

* revert name

* move registerMetadataAndInstance

* move metrics from

* remove some unuse

* remove unuse

* fix style

* fix style

* remove unuse

* remove unuse

* fix default&& move post

* add multi registry lables for subscribe

* fix

* fix url

* fix url

* Fix uts

* add registry key for directory

* Compatible with empty registry keys

* remove unus

* Support registry type

* Fix attachment

* Code enhancement

* Fix registry key

* Fix service discovery notify

* fix

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-07-31 13:44:46 +08:00
PiteXChen e93c5cf777
RequestEvent optimization (#12655)
* RequestEvent optimization

* RequestEvent optimization

* RequestEvent optimization(#12655)

* RequestEvent optimization(#12655)

* fix conflict

* code optimize

* code optimize

* optimize

---------

Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-07-30 09:44:52 +08:00
Albumen Kevin ff60c870ed
Skip warn if provider app and consumer app are the same (#12729) 2023-07-15 10:15:38 +08:00
Albumen Kevin d2eb2ba3d7
Performance opt (#12680) 2023-07-11 14:42:33 +08:00
Albumen Kevin 7264850fd4
Fix service context early restore (#12643) 2023-07-03 10:26:08 +08:00
why技术 33f688e404
Update AdaptiveLoadBalance.java (#12636)
fix getTimeout bug
2023-07-02 16:00:47 +08:00
xixingya 94e7244eb0
fix the consumer remoteApplication is null (#12635)
* fix the consumer remoteApplication is null

* fix the consumer remoteApplication is null

* fix the consumer remoteApplication is null

* fix the consumer remoteApplication is null
2023-07-02 09:35:28 +08:00
Albumen Kevin c05127e360
Pretty invokers toString format (#12618) 2023-06-29 19:34:37 +08:00
Albumen Kevin ea35f7ed5c Revert "refactor: migrate tracing core from boot-start to dubbo deployer (#12453)"
This reverts commit a613cae2
2023-06-20 10:02:30 +08:00
Albumen Kevin f81c3f3a44
Cache interfaceClass in advance to prevent IndexOutOfBoundsException (#12567) 2023-06-19 18:56:01 +08:00
wxbty 913e66e965
Supplementary dirctory metrics data push (#12539)
* Supplementary dirctory metrics data push

* puplish after publish
2023-06-19 17:37:37 +08:00
Albumen Kevin a4e9c9efa4
Fix local invoke consumer url override (#12553) 2023-06-19 09:34:29 +08:00
Albumen Kevin 3160602072
Rename getModelEnvironment to modelEnvironment (#12551) 2023-06-19 09:34:06 +08:00
conghuhu a613cae2f3
refactor: migrate tracing core from boot-start to dubbo deployer (#12453)
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-06-17 19:54:12 +08:00
Albumen Kevin e07e5e294b
Fix get method name from invocation (#12519)
* Fix get method name from invocation

* fix compile
2023-06-13 20:25:25 +08:00
Ken Liu dd94c1561a
fix router match condition (#12491)
* fix router match condition

* fix ut compilation

* add null check
2023-06-12 20:48:03 +08:00
Ken Liu 3fa518505f
Add log for remote configuration. (#12294)
* add log for remote configuration.

* Give dynamic routing rule notification 'info'  log level.

* remove unused imports

* revert warn log change

* fix import

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-06-12 20:30:42 +08:00
Albumen Kevin f95111029b
Fix injvm invoker check (#12479)
* Fix injvm invoker check

* Fix injvm invoker check

* Fix injvm invoker check
2023-06-08 16:20:51 +08:00
Albumen Kevin c8ef10e8a5
Check if return AsyncRpcResult in Filter (#12467)
* Check if return AsyncRpcResult in Filter

* Fix compatible
2023-06-06 19:39:50 +08:00
Albumen Kevin 1b5ff0fc9b
Fix invoker recovery (#12445) 2023-06-01 18:46:17 +08:00
Phoenix Backendon c76e97dc61
Fix issue #12334.provide broadcast rules to adapt the calling mode. (#12347)
* Fix issue #12334.provide broadcast rules to adapt the calling mode.

* add isDebugEnabled
2023-05-19 15:31:54 +08:00
wxbty b7fc2b9a6a
Metrics opt (#12288)
* opt metrics

* update testcase because of datastruct-map modify to AutoInteger(0)

* fix ci

* fix ci

* add comment

* fix static m

* fix testcase

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-05-17 17:19:51 +08:00
wxbty acd4212f59
refactor metrics defaultCollector&&agg (#12206)
* remove unused generic

* use request event

* fix test

* add licence

* bugfix

* code opt

* code opt

* code opt

* code opt

* code opt

* code opt

* fix ci

* fix

* revert

* opt

* opt

* bugfix

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-05-02 21:56:54 +08:00
PiteXChen 1138b97492
fix: Adjusting cluster invoker checks (#12139)
* Adjustment check(#12138)

* Unit test optimization

* Code optimization
2023-04-25 11:49:16 +08:00
wxbty b81c141486
Refactor Metrics Key&Collector (#12083)
* tmp

* tmp

* tmp

* composite

* add licence

* remove

* style

* style

* tmp

* Refactor Metrics Key&Collector

* fix ci

* fix ci

* fix ci

* fix ci

* fix

* remove unuse

* code opt, remove unuse && magic num

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: songxiaosheng <songxiaosheng@elastic.link>
2023-04-14 13:20:19 +08:00
Albumen Kevin 7facd5be19
Fix memory leak when hashed wheel time re-put (#12022) 2023-04-11 19:00:02 +08:00
KamTo Hung f05662a66d
optimize JsonUtils (#12057) 2023-04-11 11:24:55 +08:00
wxbty 3c518e9443
Refactor metrics data Composite (#12036)
* tmp

* tmp

* tmp

* composite

* add licence

* remove

* style

* style

* use anoymous composite

* use anoymous composite

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: earthchen <earthchen1996@gmail.com>
2023-04-11 09:26:41 +08:00
wxbty bbb151b0dc
Registry Dirctory Metrics should interface level (#12012)
* dirctory service level

* fix mock npe

* fix ci

* refresh count

* refresh count

* refresh when notify

* remove unuse

* set key for dirctory metrics

* test remove clear

* revert

* fix ci

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-04-10 07:21:08 +08:00
songxiaosheng 2324db0805
🐛Compatible with old and new versions of micrometer (#11922)
* 🐛Compatible with old and new versions of micrometer

* 🐛Compatible with old and new versions of micrometer

* 🐛Compatible with old and new versions of micrometer

* 🔧 support micrometer low version

* 🔧 support micrometer low version

* 🔀 merge observabilit code

* ✏️ request metrics type to counter

* 🐛Compatible with old and new versions of micrometer

* 🐛Compatible with old and new versions of micrometer

*  fix metrics sample test

*  add metrics description

---------

Co-authored-by: Albumen Kevin <jhq0812@gmail.com>
2023-04-07 21:19:02 +08:00
wxbty c5938d4873
Metrics Event/Listener refactor (#11982)
* Refactor Listener

* remove unuse

* add licence

* add default event available

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-04-04 09:48:04 +08:00
MieAh aeb2bec1d7
Opt ScopeClusterInvoker docs and uts (#11971)
* Add detailed docs and reconstruct code order.

* Optimize comments and exception information

* Improve unit testing to achieve 100% coverage.
2023-03-31 15:48:35 +08:00
conghuhu 8fc267ba9b
feat: add tracing config (#11959)
* feat: add TracingConfig

* fix: fix conflict

* fix: fix enum nested error

* fix: fix unit test
2023-03-30 10:23:23 +08:00
Albumen Kevin 8c10572967
Bump snakeyaml from 1.32 to 2.0 (#11950)
* Bump snakeyaml from 1.32 to 2.0

* Update pom.xml
2023-03-29 13:58:45 +08:00
conghuhu 17f4b33368
fix: fix ObservationSenderFilter and MetricsClusterFilter spi config (#11952) 2023-03-29 10:13:52 +08:00
wxbty 1435c23e92
Simplify event publishing (#11863) 2023-03-28 16:11:14 +08:00
eye-gu b967d3c1f8
binary search weights Fixes 11776 (#11886)
Co-authored-by: eye <eye.gu@aloudata.com>
2023-03-28 15:34:45 +08:00
conghuhu 16c031a68c
chore: some tracing-related optimizations (#11924)
* chore: some tracing-related optimizations

* fix: fix conflict

* fix: fix observability-starter miss dubbo-common
2023-03-28 14:10:41 +08:00
songxiaosheng 4a3172b80a
Fix/dependency cycle (#11919)
* change dependencies

* add license

* Ut change

* Ut remove unused code

* cluster dependency

* formatName method be delete

---------

Co-authored-by: jojocodeX <571943037@qq.com>
2023-03-27 09:46:32 +08:00
MieAh 46aff44c2f
Support choose local invoke in runtime instead of startup (#11531) 2023-03-21 17:01:33 +08:00
wxbty 2f4944e853
Interface level registry metrics (#11786)
* fix

* remove unuse

* add serviceKey subscribe

* fix method refact

* remove unuse

* remove unuse

* fix npe

* fix npe

* fix npe

* add event validate

* fix testcase

---------

Co-authored-by: x-shadow-man <1494445739@qq.com>
2023-03-17 13:46:04 +08:00
Mengyang Tang d061b29b39
Some code optimization (#11825)
* Code optimization

* Code optimization: modifier optimization, condition simplification, etc.

* Fix CI error

* Fix CI error
2023-03-16 09:43:57 +08:00
Albumen Kevin 87eb3fdda8 Fix metrics publisher NPE 2023-03-11 16:05:41 +08:00
SeasonPan 27420cf68a
[fix]Override the method of Object.clone(), but not implements Cloneable (#11761) 2023-03-10 15:18:41 +08:00