Commit Graph

549 Commits

Author SHA1 Message Date
Jason Joo df683b8716
Regroup packages related to logging into a separate module and polish document (#1355) 2020-03-23 18:02:15 +08:00
tao.zhang 1eee2c80b4
Introduce logging extension: slf4j (#1344) 2020-03-23 14:30:49 +08:00
WongTheo 8f0cb2d24a
dashboard: Fix NoNodeException problem of FlowRuleZookeeperProvider example (#1352) 2020-03-22 17:58:18 +08:00
Eric Zhao 87f95adc2e Fix timezone problem of sentinel-block.log
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-19 14:54:40 +08:00
Eric Zhao eed77cafc2
Polish placeholders in logging content to slf4j convention (#1342)
* Polish placeholders in logging content to "{}"

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-17 11:11:54 +08:00
Eric Zhao e4769293dc
Move CommandCenterLog to sentinel-transport-common and polish related code (#1341)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 22:30:29 +08:00
Eric Zhao 624d19d4ce
Polish logging SPI related code and add general JUL adapter for Logger SPI (#1338)
* Move the legacy JUL methods from LogBase to BaseJulLogger.
* Add a JavaLoggingAdapter as the general JUL adapter for the Logger SPI, which makes it convenient to use (as the default logger).
* Add LoggerSpiProvider to resolve Logger SPI.
* Polish the logback demo.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 10:00:46 +08:00
Eric Zhao 22df09b427 Polish code of transport command centers and heartbeat senders
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 20:13:21 +08:00
Eric Zhao 0536fb6846 Polish code and demo of Sentinel Zuul 2.x adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 19:06:23 +08:00
tao.zhang 5b9865db1c Add gateway adapter for Zuul 2.x (#1138)
- also add demo for Zuul 2.x adapter
2020-03-13 22:37:33 +08:00
Jason Joo 05e3caf618
Fix the parsing issue in large post request for sentinel-transport-simple-http (#1255) 2020-03-13 11:15:45 +08:00
cdfive 2c2f60cf58
Add "web-context-unify" config in Spring WebMVC adapter to support "chain" relation flow strategy (#1328) 2020-03-10 23:02:07 +08:00
Olof 51331879af
doc: Update JDK requirement of the dashboard in README.md (#1316)
* Following discussions in https://github.com/alibaba/Sentinel/issues/1315
2020-03-09 14:01:51 +08:00
jy2156121 09970cd380
dashboard: Support setting value pattern for client IP and host in gateway flow rule dialog (#1325) 2020-03-09 13:54:10 +08:00
Lin.Liang 80d5c8b484
Enhance reliability and performance of InMemoryMetricsRepository (#1319)
* Fix InMemoryMetricsRepository can't keep the last five minutes metrics data problem and Improve read-write performance
* Use TimeUtil.currentTimeMillis() replace System.currentTimeMillis() for better performance
2020-03-07 14:02:15 +08:00
tianhao 6e0d116751 calculate process cpu usage to support application running in container environment 2020-03-06 17:15:22 +08:00
Lin.Liang 72bfe870cb
Improve the logs when the heartbeat response indicates failure (#1303) 2020-03-04 23:38:53 +08:00
Eric Zhao d07d17b4ca Polish code and document of sentinel-sofa-rpc-adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-03 17:08:08 +08:00
cdfive 18acb1d154
Add Sentinel SOFARPC adapter module (#1307) 2020-03-02 18:13:54 +08:00
Jason Joo cd1d9be0ea
refactor: Migrate the console server's specifying logic into sentinel-transport-common (#926) 2020-02-24 22:45:59 +08:00
于玉桔 2bdeccf723
Fix Dubbo 2.7.5 compatibility problem of sentinel-apache-dubbo-adapter (#1296) 2020-02-21 23:47:15 +08:00
xue8 5f203aa79f
Flexible loggers' support through SPI mechanism with name `com.alibaba.csp.sentinel.log.Logger` (#1265)
* There are two types of logger for command center and common modules specified by  annotation of `LogTarget`
* Add implementing examples in `sentinel-demo/sentinel-demo-log-logback`
* All implementations should support placeholder '{}'
2020-02-21 11:24:00 +08:00
cdfive c1ff9135ee
Fix NPE in Tracer when context size exceeds the limit (#1293) 2020-02-21 09:21:30 +08:00
mantuliu f3b1b126c8
Improve singleton logic in SendMetricCommandHandler (#1294) 2020-02-19 19:38:24 +08:00
Jason Joo c5071550fa dashboard: Improve the compatibility on the Content-Type header of POST request (#1260)
* Better compatibility of the dashboard to legacy and new sentinel-transport-simple-http (on Content-Type header), related to #1207
2020-01-19 19:24:17 +08:00
echooymxq b136848873 Adjust the order of slots in HotParamSlotChainBuilder (#1246) 2020-01-15 10:42:58 +08:00
xue8 70b66046a9 demo: Avoid hard-coded file separator in sentinel-demo-dynamic-file-rule module (#1247) 2020-01-13 11:08:03 +08:00
echooymxq 9cc52706f5 Polish code in Dubbo adapter and use Dubbo common constants (#1245) 2020-01-13 09:39:06 +08:00
Eric Zhao fe23d5c11f test: Improve test cases in sentinel-apache-dubbo-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:54:19 +08:00
Eric Zhao 87142ce512 Bump version to 1.7.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:19:07 +08:00
Eric Zhao 9c909e3631 Bump version to 1.7.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-24 20:05:23 +08:00
Eric Zhao e9d730cc39 test: Fix unstable test cases in MetricExitCallbackTest
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-24 19:54:46 +08:00
Eric Zhao f6badb0622 Improve logs in HttpEventTask of sentinel-transport-simple-http module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-23 19:11:28 +08:00
Mr.Z 47100e64ba Improve async invocation support in sentinel-apache-dubbo-adapter (#1124)
* Improve async support for Dubbo 2.7.2 and above (not compatible with 2.7.0 and 2.7.1 due to the bad compatibility design of Dubbo Filter)
2019-12-23 17:45:48 +08:00
Eric Zhao a5d6773cbc dashboard: Improve error handling in FlowController and update sample WebConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-23 17:34:25 +08:00
fangwentong 0e110c68ea Fix the logic of getting maxSuccessQps in StatisticNode (#1196) 2019-12-20 13:57:53 +08:00
zhenxianyimeng 50f3080add Fix content-type parsing bug in transport module and support UTF-8 encoding in SentinelApiClient (#1207)
* Fix content-type parsing bug in `sentinel-transport-simple-http` module
* Change the charset of UrlEncodedFormEntity to UTF-8 in SentinelApiClient of the dashboard to support non-ASCII characters
2019-12-19 20:50:20 +08:00
Eric Zhao a63c1841ee Support setting config file path via system env and improve error handling in SentinelConfigLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-18 19:00:52 +08:00
Liao, Hong-Jie 00dbb5ca3e doc: Add blog post to awesome-sentinel.md (#1195) 2019-12-11 14:49:16 +08:00
Eric Zhao 9d02e84674 Improve logic for configuring the heartbeat API path in TransportConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-10 10:54:41 +08:00
nick.tan 9beb655b42 Support configuration for the heartbeat API path in transport module (#515) 2019-12-10 10:25:00 +08:00
Eric Zhao 49861f4ad5 dashboard: Improve authentication and authorization filter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-02 17:04:06 +08:00
Roshi e8a01e2e17 dashboard: Improve the ACL checking mechanism (#1042)
* Add `@AuthAction` annotation support
2019-12-02 15:57:07 +08:00
Eric Zhao 20ad3c8f79 Improve code and demo for sentinel-spring-webmvc-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-27 17:46:59 +08:00
kaizi2009 b14534fb35 Add Sentinel Spring Web MVC adapter module (#1104)
- Add sentinel-spring-webmvc-adapter module and demo
2019-11-27 14:47:04 +08:00
Eric Zhao c70565167f
refactor: Get the max allowed RT directly from SentinelConfig.statisticMaxRt() (#1173)
- to avoid the dependency chain: Constants -> SentinelConfig

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-21 17:03:10 +08:00
于玉桔 24f8d75601 Fix the incorrect logic of handling the end separator of the log directory in LogBase (#1172) 2019-11-21 13:37:50 +08:00
Eric Zhao 72a58f7ea7 Add Consumer functional interface in sentinel-core utils
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-20 13:55:26 +08:00
agensi c03de043af dashboard: fix "notZero" param typo of "clusterNode" command in SentinelApiClient (#1155) 2019-11-13 18:53:07 +08:00
Eric Zhao 9705f54611 Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 11:08:14 +08:00