Commit Graph

1376 Commits

Author SHA1 Message Date
Zhenxu Ke 5d47d4d29f
Remove state / isError and collect exception stacktrace in error logs (#6275) 2021-01-30 08:18:52 +08:00
zhang-wei 01d1eff6c7
Enhancement log-recerive e2e test (#6248) 2021-01-29 00:07:16 +08:00
Ax1an fd02bcd6f6
Support dynamic change agent.ignore_suffix on java agent. (#6272) 2021-01-28 21:40:34 +08:00
Jared Tan 0884c876fa
Support dynamic change agent.trace.ignore_path on java agent within CDS. (#6266) 2021-01-28 12:09:59 +08:00
吴晟 Wu Sheng 7b1c63de11
Remove optional log plugin (#6259) 2021-01-26 23:23:14 +08:00
zifeihan 52c438b9c3
Fix that the dynamic configuration is deleted on the server side but does not take effect on the agent. (#6255)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2021-01-25 23:24:33 +08:00
Leon Yang 100823cb6e
Support DNS period resolving mechanism (#6240) 2021-01-22 13:14:21 +08:00
zifeihan db61015245
Support dynamic change SAMPLE_N_PER_3_SECS on java agent (#6232) 2021-01-21 15:41:14 +08:00
elk-g a8e66244cd
Fix apm-toolkit-logging-common dependency (#6229) 2021-01-20 08:32:34 +08:00
elk-g eb4b121530
Collect Log with java agent (#6127) (#6194) 2021-01-19 08:17:29 +08:00
ralphgj ea8a4963a2
fix recording url tag with wrong port (#6214) 2021-01-18 19:49:33 +08:00
Evan 020a995301
change spanId toolkit api type (#6216) 2021-01-16 15:40:48 +08:00
Evan b0cc91382c
export the segmentId and spanId in toolkit (#6213) 2021-01-16 09:04:01 +08:00
zhang-wei 15452025c6
Log collecting and query implementation (#6120) 2021-01-14 09:49:11 +08:00
YczYanchengzhe 9dcad4a0b4
Fix thread leakage caused by es client connection creation (#6187) 2021-01-13 15:45:52 +08:00
zifeihan 4877a22ab2
Fix Java.lang.ClassFormatError: Duplicate interface name "org/apache/skywalking/apm/agent/core/plugin/interceptor/enhance/EnhancedInstance" (#6173) 2021-01-12 07:47:06 +08:00
Frank Liu e9622033e3
Dubbo link tracing- show "group" attribute value in OperationName (#6159) 2021-01-09 07:27:34 +08:00
libinglong e0a4c44036
new feature add witness method (#6103)
https://lists.apache.org/thread.html/r4f67a7ed880a493e4e82bd2e9a0c26a6e43c37bbfcdaebe7b1a340dc%40%3Cdev.skywalking.apache.org%3E
2021-01-08 09:01:35 +08:00
Ax1an 4acbca0053
Fix bug that rocketmq-plugin set the wrong tag. (#6144)
* Fix bug that rocketmq-plugin set the wrong tag.

* Update CHANGES.md

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2021-01-08 00:27:10 +08:00
Jared Tan c989bb286c
make sampling still works when the trace ignores plug-in activation (#6146) 2021-01-07 21:33:01 +08:00
zifeihan 1307b0b5fa
Fix mssql-plugin occur ClassCastException when call the method of return generate key (#6133) 2021-01-07 07:54:38 +08:00
Neal Huang e739ca2290
Support building gRPC TLS channel but CA file is not required (#6060) 2020-12-24 07:58:00 +08:00
吴晟 Wu Sheng e6265ba5be
Fix DataCarrier's `org.apache.skywalking.apm.commons.datacarrier.buffer.Buffer` implementation isn't activated in `IF_POSSIBLE` mode. (#6048) 2020-12-22 07:54:15 +08:00
ZS-Oliver 542691011c
Fix thrift trace broken and wrong arg collected. (#5989) 2020-12-21 21:50:52 +08:00
wankai123 bf639d3ec6
Fix some mistakes in the comments (#6038) 2020-12-21 16:16:09 +08:00
zifeihan de3ccecd22
Trace method(clearScrollAsync) for elasticsearch-6.x-plugin and polishing elasticsearch-6.x-scenario. (#6031)
* Polish elasticsearch-6.x-scenario.
2020-12-19 20:58:07 +08:00
CommissarXia 5e9582eea9
Add interceptors of method(analyze, searchScroll, clearScroll, searchTemplate and deleteByQuery) for elasticsearch-6.x-plugin. (#5962) 2020-12-19 09:11:26 +08:00
raybi-asus 1297d2e1d2
Add null-conditional operators on these 3 files (#6007)
* add null conditional operators on these 3 files . To aviod some agent exception of Oracle jdbc.

* Add a line in Java Agent section of CHANGES.md file

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-12-17 12:56:51 +08:00
haoyann 84af1d2383
Fix the unexpected RunningContext recreation in the Tomcat plugin. (#6001) 2020-12-13 21:28:36 +08:00
zifeihan a57c158c77
Fix logger-plugin module directory structure problem(Maven cannot trigger junit testing). (#5987) 2020-12-11 15:58:06 +08:00
vcjmhg 0996151973
Support collecting logs of log4j, log4j2, and logback in the tracing context (#5914) 2020-12-10 13:53:30 +08:00
hailin0 fbf49b2cc6
Change the operation name of quartz-scheduler plugin (#5934) 2020-12-08 10:04:14 +08:00
zifeihan c24dbd6ec1
Fix jdk-http and okhttp-3.x plugin did not overwrite the old trace header. (#5958)
* Fix jdk-http and okhttp-3.x did not overwrite the old trace header.

* Update CHANGES.md.
2020-12-06 21:14:12 +08:00
吴晟 Wu Sheng af19c72a7e
8.3.0 tagged, open for 8.3.0 iteration. (#5920)
* [maven-release-plugin] prepare release v8.3.0

* [maven-release-plugin] prepare for next development iteration
2020-11-29 11:01:20 +08:00
zifeihan 408bd3db5c
Fix okhttp-3.x and async-http-client-2.x did not overwrite the old trace header. (#5917)
* Fix okhttp-3.x and async-http-client-2.x did not overwrite the old trace header.
2020-11-27 22:31:39 +08:00
zifeihan 6e0a244482
Add the plugin for Apache CXF 3.x (#5887) 2020-11-26 17:18:55 +08:00
Lu Jiajing d9623ec487
Spring-Kafka 1.x support (#5879)
* support spring-kafka 1.3.x and add test

* add spring-kafka-1.3.x-scenario to github workflow

* change kafka-plugin FAQ

* add supported versions

* update CHANGES.md
2020-11-24 19:32:37 +08:00
zifeihan d6c9926e9e
Add the plugin for microsoft mssql-jdbc (#5856) 2020-11-18 15:48:18 +08:00
huliang 832582427a
Fix the default ignore mechanism isn't accurate enough bug (#5839)
Co-authored-by: huliang <hl@yumeitech.com.cn>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-11-16 10:23:05 +08:00
zifeihan 7220643cbf
Add the plugin for mssql-jtds 1.x plugin. (#5842)
* Add the plugin for mssql-jtds 1.x plugin.
2020-11-16 08:30:25 +08:00
King bc7afa6347
add support for dbcp 2.x plugin (#5550) 2020-11-08 09:41:56 +08:00
zifeihan c3c56acf0c
Avoided to interrupt the process of the application in the `SWExecutionHookWrapper` wrapper class. (#5803)
* Avoided to interrupt the process of the application in the `SWExecutionHookWrapper` wrapper class.

* Polishing.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-11-06 15:18:14 +08:00
simonlei 901e8d8423
Fix issue #5795 (#5797)
* Fix issue #5795 

Fix the issue: nutz plugin throw NPE at afterMethod, cause traceid keep unchange for the thread

* fix the style and modify the CHANGES.md

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: simonlei <simonlei@tencent.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-11-06 07:54:58 +08:00
Kcat c32caab6e0
Add async-http-client plugin (#5690) 2020-11-06 00:33:47 +08:00
吴晟 Wu Sheng 4238992baf
Polish the context and optimize the tag analyze (#5767)
* Polish the context and optimize the tag analyze

* Fix bug of new context codes.
2020-11-02 14:29:14 +08:00
Evan 603187b7a8
Apply tags from Correlation Context key/values to Spans (#5685)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-11-01 20:51:21 +08:00
吴晟 Wu Sheng a2dd0e13d5
Polish the context related codes. (#5764) 2020-11-01 13:56:24 +08:00
Evan 08781b41a8
add transmission latency for MQ case (#5666)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-11-01 11:01:04 +08:00
xbkaishui 9668672205
add http client parameter collector (#5756)
* add http client parameter collector
* Update CHANGES.md

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-31 23:49:15 +08:00
hsoftxl 2aeefceca0
Make okhttp3 ,feign http9.x plugin to support Java 14 (#5745) 2020-10-29 10:52:13 +08:00
zifeihan 78ccf71328
Fix the exception that is thrown without `TServiceClientReceiveInstrumentation`. (#5734) 2020-10-27 16:01:33 +08:00
hn b5e7d17e4c
Fix incomplete JavaDoc (#5733) 2020-10-27 13:54:39 +08:00
kezhenxu94 f92a7bf897
Start next iteration 8.3.0 (#5719)
* [maven-release-plugin] prepare release v8.2.0

* [maven-release-plugin] prepare for next development iteration
2020-10-24 19:30:29 +08:00
zifeihan f5e38b88e3
Add agent config `PROPERTIES_REPORT_PERIOD_FACTOR `, Avoid the instanceTraffic record properties is null. (#5688) 2020-10-20 12:02:27 +08:00
ggndnn 45e02ec106
Fix inconsistent logic in PrefixMatch (#5681)
Co-authored-by: ggnn <ggnn@ggnndeMacBook-Pro.local>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-10-17 12:46:10 +08:00
zifeihan 06bec02869
Fix application start duration log "Failed to load class org.slf4j.impl.StaticLoggerBinder." (#5678)
* Fix application start duration log "Failed to load class "org.slf4j.impl.StaticLoggerBinder"." when use kafka reporter. because kafka reporter use slf4j-api, but no implementor for slf4j.

* Polishing.

* Adapter slf4j Logger of agent used to skywalking agent Logger.

* Make the comments more accurate.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-17 09:44:42 +08:00
Daming 98968122e9
Provide Thrift Plugin (#5644) 2020-10-16 16:09:47 +08:00
zifeihan 627358ee9e
Fix duplicate ExitSpan, Maybe this will cause some error message not recorded. because "feign load balance" mechanism will retry execute. (#5667) 2020-10-15 21:55:20 +08:00
qinqiangqiang f2e83bad30
resttemplate plugin concurrency scenario data mistake problem fix (#5658)
* resttemplate plugin concurrency scenario data mistake problem
2020-10-15 12:09:04 +08:00
Daming 7881c57023
Introduct DataCarrier to avoid service blocked (#5660) 2020-10-14 08:12:22 +08:00
Humbertzhang bde07d7ecd
Fix typo in ProfileTask.java (#5647)
* fix typo in ProfileTask
2020-10-10 22:24:48 +08:00
Kdump 5fa2ae4903
fix RESOURCE_LEAK (#5616) 2020-10-07 18:47:25 +08:00
Kdump a5f4052965
fix INEFFICIENT_KEYSET_ITERATOR (#5612)
* fix INEFFICIENT_KEYSET_ITERATOR
2020-10-06 21:44:23 +08:00
xbkaishui c9b6a78ca9
Limit Sql body size (#5626) 2020-10-04 23:22:32 +08:00
Daming 47d5a7680b
chore: fix UnnecessaryParentheses (#5624) 2020-10-02 22:03:00 +08:00
Xin,Zhang d02ee0af3e
Replace != with equals (#5617)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-02 15:57:11 +08:00
zhang-wei a36f22f828
add comment (#5620)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-02 09:52:00 +08:00
Kdump d30ca1ab58
fix TypeParameterUnusedInFormals (#5613)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-02 07:41:17 +08:00
Daming 6eda8346bb
remove dead code (#5611) 2020-10-02 00:11:02 +08:00
kezhenxu94 a45f615b6d
Use explicit charset instead of default charset (#5601)
Implicit use of the platform default charset, which can result in differing behaviour between JVM executions or incorrect behavior if the encoding of the data source doesn't match expectations.

Co-authored-by: zhang-wei <pknfe@outlook.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-01 21:27:31 +08:00
zhang-wei 736dc3d3ec
Remove some unused variables (#5598) 2020-10-01 14:51:07 +08:00
Xin,Zhang 772f1d2e82
Replace Class.newInstance() with getDeclaredConstructor().newInstance() (#5600)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-01 12:56:28 +08:00
Xin,Zhang 7c69ea889e
Fix JdkObsolete issue (#5599)
* Fix JdkObsolete issue

* Fix code style

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-10-01 11:09:51 +08:00
Kdump 3bc94cbb68
fix Calling getClass() on an enum may return a subclass of the enum type (#5594)
ref: https://errorprone.info/bugpattern/GetClassOnEnum
2020-09-30 22:51:05 +08:00
吴晟 Wu Sheng bc64c6a127
Make the extension header really extendable (#5590) 2020-09-30 07:33:23 +08:00
吴晟 Wu Sheng 103cf00672
Support JDK 11 compiling and upgrade dependencies (#5579)
* Upgrade dependencies and make the JDK11 compiling passed.

* Update license and fix license check file.

* Add CI for JDK11 compiling.

* Update doc.
2020-09-29 10:34:21 +08:00
vcjmhg 806666b4cc
add webflux webclient plugin (#5493) 2020-09-27 22:38:07 +08:00
吴晟 Wu Sheng b560bae3f8
Polish comments of the meter at the agent side. (#5565)
* Polish comments of the meter at the agent side.

* Fix code style.
2020-09-27 07:31:33 +08:00
mrproliu a68be426a0
Provide metrics APIs for agent plugin (#5523) 2020-09-26 21:30:37 +08:00
zifeihan 84d49c4412
Add kafka config for how long does kafka query server topic will trigger timeout (#5554) 2020-09-25 13:03:51 +08:00
harvies 1ff25ac4f4
Support mongo driver 4.x version. (#5512) 2020-09-22 17:09:24 +08:00
harvies c3edd3dad0
Better witness class for mongo3.8.x (#5524)
* modify witness class

* modify witness class & add test case

* replace DB_STATEMENT to DB_BIND_VARIABLES & remove executeMethod prefix

* fix ci

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-09-22 09:50:44 +08:00
吴晟 Wu Sheng 075cb981a9
Add `MOUNT` config in the agent core. (#5529) 2020-09-22 07:14:34 +08:00
hailin0 e200ef1045
Add support for xxl-job (#5519) 2020-09-20 10:04:32 +08:00
Lu Jiajing c65bcf1142
Check bootstrapServers type before casting for kafka-clients >= 2.1 (#5510) 2020-09-18 15:18:54 +08:00
吴晟 Wu Sheng 54ee2e61ad
Fix typo and add comments. (#5495)
* Fix typo and add comments.

* Fix comment.
2020-09-16 11:27:38 +08:00
Evan 29de696c42
exception-ignore-plugin (#5426) 2020-09-09 15:07:01 +08:00
Xin,Zhang 1b5dd9b3f3
Move spring webflux into optional plugin (#5445)
* Move spring webflux into optional plugin

* Fix compile check

* Fix check style

* Adjust code

* add docs

* Update docs/en/setup/service-agent/java-agent/README.md

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-09-09 09:53:07 +08:00
Brandon Fergerson f8c887e241
Include request method type in rest mapping annotations (#5085) 2020-09-05 23:14:40 +08:00
Evan 0e132685e6
fix doc on recently pr (#5432) 2020-09-03 23:20:36 +08:00
hailin0 ca957699dc
Add support for quartz-scheduler (#5413) 2020-08-30 23:48:26 +08:00
xbkaishui ae6b4add50
#5311 Fix ActiveMQ NullPointerException (#5412) 2020-08-30 12:09:57 +08:00
Lu Jiajing 9442a51c11
JsonLogger implementation (#5356) (#5357) 2020-08-29 23:17:29 +08:00
吴晟 Wu Sheng ca5e576c04
Fix sampling and Kafka reporter conflicting. (#5408)
* Fix sampling and Kafka reporter conflicting.

* Remove legacy codes.

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-08-28 23:47:03 +08:00
hailin0 afc0aef567
Add logic-endpoint and testcase for elasticjob-2.x plugin (#5395) 2020-08-28 14:27:07 +08:00
novayoung f89ed0c315
Optimize: truncate parameterString (#5396) 2020-08-28 12:46:41 +08:00
Xin,Zhang 77d94b4d2a
Fix issue that spring mvc plugin doesn't works when running on reactive api (#5360) 2020-08-26 13:22:39 +08:00
hailin0 1b54b61a88
Add support for spring @Scheduled (#5339) 2020-08-23 17:13:49 +08:00
Lu Jiajing 5bfac1b50f
Remove style-check exception for logger (#5363) 2020-08-21 18:26:25 +08:00
xbkaishui 79c1c0cc76
Support http header tag (#5348) 2020-08-20 10:43:28 +08:00
于玉桔 494d2a5b65
Elastic job plugin use wrong span type (#5347) 2020-08-19 21:21:09 +08:00
吴晟 Wu Sheng b173cde5db
Upgrade the byte-buddy to 1.10.14 with asm (#5338) 2020-08-17 21:27:57 +08:00
Evan a6e45d04c9
spring annotation enhance (#5320) 2020-08-17 10:14:40 +08:00
吴晟 Wu Sheng f731c25856
Miss topic in the KafkaServiceManagementServiceClient (#5326)
Co-authored-by: Daming <zteny@foxmail.com>
2020-08-16 07:05:40 +08:00
Evan 68317dd910
Add agent plugins selector (#5293) 2020-08-14 15:06:30 +08:00
于玉桔 ab5555fe27
Support @KafkaPollAndInvoke annotation to replace @Trace when just using the Kafka scenario agent plugin (#5304) 2020-08-13 21:18:04 +08:00
xbkaishui a7e77832a9
disable kafka property in agent.config (#5305)
* disable kafka plugin

* enable docker file of kafka for e2e test
2020-08-13 11:09:58 +08:00
于玉桔 e37fc2e439
Support spring-kafka (#5254) 2020-08-10 19:13:19 +08:00
whfjam fdd242edb0
Update HttpClientExecuteInterceptor.java (#5283)
use the  method httpMethod.setRequestHeader to set the new skywalking headers,so that it can override the exits headers if there is any

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-08-10 13:41:31 +08:00
于玉桔 69297b9ec6
Support Apache ShardingSphere-Elasticjob (#5153) 2020-08-10 10:48:23 +08:00
qxo b1305ba07a
fix:fix NullPointerException for replaceParam when message is null (#5280) 2020-08-10 00:17:21 +08:00
yangy 9b6a4ed28c
Fix kafka plugin sometimes trace doesn't show span layer (#5264) 2020-08-08 14:39:54 +08:00
zshit dd6f439df1
support collecting feign params (#5235) 2020-08-06 13:09:31 +08:00
于玉桔 7a20c260bb
Add HBase hbase-client plugin (#5225) 2020-08-05 17:55:20 +08:00
于玉桔 4149ac59fe
The Dubbo plugin can collect more information by custom (#5209) 2020-08-04 23:26:56 +08:00
yangy 118e334e7c
Fix ParsePathUtil#parameterEquals method ArrayIndexOutOfBoundsException error and some typo (#5216) 2020-08-01 16:16:57 +08:00
吴晟 Wu Sheng 2f2840cbf5
Begin 8.2.0 iteration. (#5211)
* [maven-release-plugin] prepare release v8.1.0

* [maven-release-plugin] prepare for next development iteration
2020-07-31 20:15:27 +08:00
Daming f9257f5274
Provide kafka as collector/reporter (#4847) 2020-07-30 11:55:49 +08:00
Xin,Zhang 5cf1d122cc
Fix webflux sharing span across multiple threads (#5177) 2020-07-27 12:44:17 +08:00
李文广 3a00d84766
spring-annotation plugin add component (#5160) 2020-07-25 23:14:46 +08:00
libinglong 1215a52d09
Concurrent accessing allJars causes the plugin to fail to load (#5158)
Another thread could get the list which is still in the initialization stage, due to first element added. So we need a local variable to avoid this. Also, notice this happens only in concurrency class loader env.
2020-07-23 21:51:30 +08:00
Stalary 1877d0fcf4
Add jvm_thread metrics (#5129) 2020-07-22 09:05:32 +08:00
吴晟 Wu Sheng 20b1b51798
Separate config initialization in the plugin out of core level Config. (#5136) 2020-07-21 20:51:56 +08:00
Patrick Jiang(白泽) 62f76881de
Fix issue 4965 (#5109) 2020-07-17 17:36:02 +08:00
dagmom 8b46e5c5b0
Fix issue #3713 - Cannot get the TID (#5031) 2020-07-17 10:23:01 +08:00
Brandon Fergerson e356da4b0e
#4907 - Duplicate Spring MVC endpoint fix (#5084) 2020-07-15 13:52:46 +08:00
zoumingzm 9f5e719cfa
Fix @Tag returnedObject bug #5036 (#5045) 2020-07-10 11:07:08 +08:00
Brandon Fergerson c8fc457e82
Better Vert.x endpoint names (#5064) 2020-07-09 23:32:43 +08:00
kezhenxu94 32202e053a
BugFix: x-le tag format in GraphQL plugin (#5054) 2020-07-08 12:59:55 +08:00
caoyixiong 80a534b1bb
support Graphql Logic endpoint (#5030) 2020-07-05 23:37:09 +08:00
dengliming 39f2cd3a5f
Optimize the code to prevent mongo statements from being too long (#5017) 2020-07-03 08:07:10 +08:00
gongdewei 1817386391
Support cache mode in the agent. (#4858) 2020-07-01 23:20:50 +08:00
caoyixiong 31f42343f6
add brpc-java plugin (#4958) 2020-06-27 14:57:29 +08:00
mrproliu cc9ea271a7
Provide agent-side meter api (#4816) 2020-06-22 14:07:34 +08:00
dagmom 08897ce5f8
New feature provided : new plugin for influxdb-java client (#4846) 2020-06-21 22:35:45 +08:00
于玉桔 c778a0d6c2
Support Quasar fiber tracing (#4951) 2020-06-20 22:30:03 +08:00
yangy b1b144480d
fix issue 4879 (#4954) 2020-06-20 21:21:22 +08:00
xiaoyu 164124fc22
provider shardingSphere 4.0.0 4.0.1 plugin. (#4927) 2020-06-15 17:03:17 +08:00
xiaoyu a24efcf5e9
ShardingSphere plugins conflict among themselves. (#4921)
* Fix shardingSphere plugin test fail if have some same ENHANCE_CLASS define.

* support 4.1.0 and 4.1.1

* support 4.1.0 and 4.1.1
2020-06-14 18:48:07 +08:00
吴晟 Wu Sheng 5de0d2c6f6
Set version to 8.1.0 for next iteration. (#4916)
* [maven-release-plugin] prepare release v8.0.0

* [maven-release-plugin] prepare for next development iteration

* Remove all shardingsphere cases.
2020-06-12 23:44:42 +08:00
Xin,Zhang 7b99019c49
Refactory spring gateway plugin (#4878) 2020-06-12 00:25:41 +08:00
denis e2b04b58b1
fix Kafka consumer subscribe topics from pattern (#4873) 2020-06-11 17:55:04 +08:00
xiaoyu 9a9401fdb6
provide shardingSphere(4.0.0,4.0.1, 4.1.0 ,4.1.1) plugin. (#4894) 2020-06-11 14:49:04 +08:00
吴晟 Wu Sheng df83490ae6
UI is ready for 8.0.0 release. (#4896) 2020-06-10 20:35:46 +08:00
zifeihan f513c39d56
Enhance hystrix plugin,see https://github.com/apache/skywalking/issues/4850 (#4857) 2020-06-07 20:13:39 +08:00
Brandon Fergerson 705f97f27a
Increased Vert.x support (#4840) 2020-06-01 21:00:16 +08:00
zifeihan e8e9153d74
fix ClassCastException in KafkaProducerInterceptor (#4826) 2020-05-31 08:12:02 +08:00
Brandon Fergerson 594fb15b53
Increased support for Vertx (#4827) 2020-05-26 22:02:34 +08:00
Jared Tan 42d79bf08d
Fix too many mang ipv4 records reported by the agent when deployed in container. (#4817) 2020-05-25 16:15:10 +08:00
ynfeng 49ed47889b
fix #4765 (#4766) 2020-05-09 20:38:13 +08:00
Efe Kaptan d19ba41678
Mariadb JDBC plugin (#4740)
* Add Mariadb JDBC plugin and provide tests

* Refactor component name

* Reformat plugin description and remove healthcheck span from the test

Co-authored-by: Efe Kaptan <Efe.Kaptan@webtrekk.com>
Co-authored-by: zhang-wei <pknfe@outlook.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-05-07 20:54:30 +08:00
zifeihan c33f583806
fix to get 'peer' in SingleServerConfig (#4737)
* fix to get 'peer' in SingleServerConfig, this method to throw exception in 'org.apache.skywalking.apm.agent.core.context.TracingContext#createExitSpan' because 'peer' is null. in sw 6 version, this also one of  problem to throw  'NoSuchElementException'  in 'org.apache.skywalking.apm.agent.core.context.ContextManager#capture'

* Polishing

Co-authored-by: gui.cao <gui.cao@zhangmen.com>
Co-authored-by: hanfei <zifeihan@foxmail.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-05-03 18:19:55 +08:00
Brandon Fergerson 4fc57a6663
Increase Vert.x Compatability (#4736)
* vertx web plugin re-impl attempt

* added license

* update test for new plugin structure

* got rid of registryItems

* remove unnecessary dependencies

* re-impl eventbus scenario

* more precise naming

* fix expected data

* removed unsupported versions and removed vertx caching (avoids permission error)

* rewrote to remove copied code

* Update plugins-test.3.yaml

* fixes issue of .vertx files remaining on v3.0.0

* only present in v3.0.0

* consistency

* add more supported versions

* track status code

* spelling fix

* track status code

* more correct naming

* reverts 213f5a69 (status code isn't sent at this point)

* made HttpServerResponseImplEndInstrumentation more strict based on version
added status code tracking
fixes issue not finishing async spans

* works 3.0.0,3.7.0

* increase compatibility

* 3.9.0 default

* versioned witness classes (advice from wu-sheng)

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: zhang-wei <pknfe@outlook.com>
2020-05-01 17:06:46 +08:00
Jared Tan d51c788113
support user to customize an endpoint (#4716)
* support user to customize an endpoint with toolkit.

* fix code style.

* add md.

* Update docs/en/setup/service-agent/java-agent/Application-toolkit-trace.md

Co-Authored-By: 吴晟 Wu Sheng <wu.sheng@foxmail.com>

* add test case.

* fix expecteddata.tml.

* fix data.

* fix expecteddata.tml.

* remove operationId in expectedData.yaml.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-04-29 19:39:52 +08:00
yoje b6cc9a59d8
Fix npe in afterMethod/handleMethodException of kafka/finagle plugins (#4712)
* Fix npe in afterMethod/handleMethodException of kafka/finagle plugins
2020-04-25 22:27:45 +08:00
J-Cod3r 2b41aea639
log4j2 support AsyncAppender print tid (#4670)
* log4j2 support AsyncAppender print tid
2020-04-25 17:35:22 +08:00
qiyang 4acf0ebc95
fix: IgnoredTraceContext continue (#4709) (#4710)
Co-authored-by: 亓杨 <qiyang@enmonster.com>
2020-04-25 09:17:44 +08:00
mrproliu 4e821415ea
Fix profile recheck error (#4690) 2020-04-22 19:25:56 +08:00
Jared Tan e28e2f48b4
ignored trace. (#4691) 2020-04-22 17:06:36 +08:00
mrproliu 7d1fdd3ea8
Support v3 extension header (#4666)
* support v3 extension header

Co-authored-by: Mrproliu <mrproliu@lagou.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-04-21 17:09:02 +08:00
kezhenxu94 8e6a527f78
Add Java versions 9~14 to E2E tests (#4674) 2020-04-21 13:45:32 +08:00
mrproliu 171620bfa8
Add Nginx correlation e2e test (#4646) 2020-04-14 09:32:54 +08:00
kezhenxu94 00e8f2d886
Fix bug that the agent heart beats too frequently (#4640)
* Fix bug that the agent heart beats too frequently

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-04-12 20:48:44 +08:00
吴晟 Wu Sheng 6fe2041b47
Make 8.0.0 Core available. New protocol and register removed. (#4599)
Here are the list of changes we made in this pull request. Top 3 are the principle changes, others are following these principles.
1. New agent and mesh report protocol. 
2. New agent header protocol. 
3. Service register, instance register and network address register have been removed permanently.
4. Service traffic, instance traffic and network alias metrics are added to replace the service, instance and network address inventory.
5. Register process has been removed.
6. Metrics stream process supports insert only mode, especially for traffic entities.
7. Metrics stream process supports no-downsampling mode for traffic entities and network alias.
8. Remove all register mechanism and cache in the java agent.
9. Remove MONTH step in GraphQL query.
10. Update UI to remove MONTH step query, the max query range is 60 days now.
11. Simplify the TTL to metrics and record. And the unit has been formatted in Day unit. No specific TTL for ElasticSearch storage.
12. Buffer mechanism of trace receiver and mesh receiver has been removed due to no register.
13. New service id, instance id and endpoint id rules, including service relation, instance relation and endpoint relation id rules.
14. Java agent support `keep tracing` mode, meaning, agent generating tracing context even the backend is unconnected/unavailable.
15. Plugin test tool up to date, in order to support new protocol.
16. Plugin tests expected data files updated.
17. E2E tests updated.
18. Telemetry of Grafana config has been merged into one.
19. Documentation updates.
20. [TBD] InfluxDB storage implementation is not available, need @dmsolr to fix later, in order to reduce the master change block by this PR.
2020-04-10 11:03:24 +08:00
吴晟 Wu Sheng fa9a44b750
Version number changed including a little documentation. (#4597) 2020-03-31 12:57:20 +08:00
吴晟 Wu Sheng 54fb6e7285
Set the endpoint name length to 150, to keep safe and avoid over-length. (#4595)
* Set the endpoint name length to 150, to keep safe and avoid over-length.

* Set endpointNameMaxLength in the application.yml

* Fix a mischange.

* Correct the endpoint name length control logic

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-03-31 09:04:10 +08:00
吴晟 Wu Sheng 4474907fef
[Inventory Design Change] Remove endpoint register and endpoint inventory (#4570)
* Finish step one, source and entity changed.

* Step 2, finish the basic and core DAO changes.

* Step 3. Change all source codes of backend, and make project compiling successfully.

* Make startup successful and persistence works.

* Fix dead codes in the MySQLTableInstaller.

* Fix mischange.

* Fix MySQL storage bootstrap error.

* Rollback dependency change.

* Simply enable tailing logs from container no mater it's in CI or not

* Fix segment table issue.

* Fix MySQL Instanller.

* Support Influxdb implementation of new endpoint traffic.

* Set and modify timeout to 90mins

* Remove unnecessary entity in the EndpointTraffic.

* Fix wrong entity builder and make name more clear.

* Fix 2 equal methods bug.

* Fix InfluxDB identifier(name) conflict issue.

* Fix endpoint topology query, endpoint id should be changed as a string.

* Fix a missing change.

* Fix a wrong commit.

* Column name can't be changed, due to it affect the hybrid metadb(h2/mysql) query, change it explicitly with double quotation marks.

* Fix formats.

* Remove endpoint/operation register from the agent. and change the plugin tests(without local tests). operationId relation codes have been removed from agent too.

* Try to fix the hytrix case.

* Fix 3 cases.

* Try to fix cases.

* Fix 2.

* Fix one.

* Fix the serviceId type mis-change.

* Fix int query

* Fix hystrix case.

* Fix a case.

* Fix EndpointCallRelationDispatcher set the source/dest endpoint without id encoding.

* Update documentation and add 2 test cases.

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-03-28 22:51:41 +08:00
yi.liang 1bc4082821
fix elasticsearch-5.x-plugin when use es6.x TransportClient error (#4517)
* up ui

* up ui

* fix elasticsearch-5.x-plugin on es6.x TransportClient error, Found class org.elasticsearch.common.transport.TransportAddress, but interface was expected
up elasticsearch-6.x-plugin support TransportClient

* fix elasticsearch-5.x-plugin on es6.x TransportClient error, Found class org.elasticsearch.common.transport.TransportAddress, but interface was expected
up elasticsearch-6.x-plugin support TransportClient

* fix elasticsearch-5.x-plugin on es6.x TransportClient error, Found class org.elasticsearch.common.transport.TransportAddress, but interface was expected
up elasticsearch-6.x-plugin support TransportClient

* const string witnesses
add some unit test
recommended to change ; to ,

* const string witnesses
add some unit test
recommended to change ; to ,

* up ES6.X test-plugin

* up es6.x test-plugin

* up es6.x test-plugin

* up es6.x test-plugin

* add DeleteIndexRequest

* up es6.x test-plugin

* remove TransportCaseController.java

* fix TransportActionNodeProxyExecuteMethodsInterceptorTest

Co-authored-by: yi.liang <yi.liang@zhangmen.cn>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: 梁懿 <liangyi@xforceplus.com>
Co-authored-by: aderm <394102339@qq.com>
2020-03-27 13:50:27 +08:00
mrproliu 569baf3236
Correlation protocol implement (#4555)
Co-authored-by: Mrproliu <mrproliu@lagou.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-03-26 09:02:14 +08:00
mrproliu ace781ff49
Provide HTTP parameter in the profiling contet (#4546)
* Provide active HTTP parameter collection automatically in the profiling context

* Fix style check

* fix style error

* Add profile status, storage it into TracingContext. simplify to get profiling method

* Change the profile status field name in TracingContext

* Replace gone images

* resolve issues

* resole description issues

Co-authored-by: Mrproliu <mrproliu@lagou.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-03-22 17:19:57 +08:00
cngdkxw 2e9f001633
Add spring cloud feign 2.x plugin (#4526) 2020-03-20 20:28:30 +08:00
yoje 5251cc7239
fix finagle: process NoopSpan (#4544)
fix KafkaProducer CallbackInterceptor npe

Co-authored-by: huangyongjie <huangyongjie@tigerbrokers>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-20 11:31:52 +08:00
kezhenxu94 967ed8f774
Make `CommandService` daemon to avoid blocking target application shutting down gracefully (#4541) 2020-03-19 13:53:54 +08:00
吴晟 Wu Sheng 61f98c81f0
Move the main branch to 7.1.0 iteration. (#4537)
* [maven-release-plugin] prepare release v7.0.0

* [maven-release-plugin] prepare for next development iteration
2020-03-19 10:38:41 +08:00
mrproliu c8187ccd41
Fix profile trace not match when change the entry operationId/Name (#4528)
* Fix profile trace not match when change the entry operationId/Name

* Update TracingContext.java

Co-authored-by: Mrproliu <mrproliu@lagou.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-17 12:39:58 +08:00
kezhenxu94 dcd66ee6e9
Rewrite the E2E test framework and tests (#4510)
Motivation:

According the feedback from the community, the e2e tests are hard for
them to understand and get them started, so this pull request aims to
rewrite the e2e tests with some improvements:

- debuggable locally, now you can run every individual case directly
inside the IDE, just like running a plain unit test.

- same functionalities of multiple counterparts share the same codes,
cases like different storages and cluster coordinators share the same
codes, easy to add more similar cases.

- the "end" now extends to the Doccker images, meaning that some bugs
like #4483 and #4471 can be more easily and early to be discovered.

- codes style and license headers are checked

Modifications:

- adopt jupeter (a.k.a junit 5), testcontainers as the new test
framework, all containers are orchestrated by docker-compose.yml,
well-known technology that developers should be familiar with.

- rewrite all test cases and verify them.

- reorganize the workflows in GitHub Actions.

Result:

- new e2e test should be easy to add.

- closes https://github.com/apache/skywalking/issues/4472
2020-03-16 23:45:14 +08:00
cngdkxw d5efc97c80
RestTemplate async plugin ClassCastException (#4507)
* ClassCastException

* resttemplate 4.x scenario

* add support versions & fix expectedData format-

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-13 23:13:51 +08:00
muyun12 80911d088c
fix the error of Struts2 plugin: java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus() (#4503)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-13 17:01:06 +08:00
吴晟 Wu Sheng 6723f349c1
Fix NoSuchElement exception for lazy injection. (#4488) 2020-03-11 16:50:34 +08:00
yoje ced5cb2828
Add finagle plugin (#4441)
* Add finagle plugin (#4433)

* fix failed checks for pr(#4441)
* Add licenses for some files
* Update Supported doc
* Add finagle to test component-libraries.yml

* Add finagle automatic tests into CI

* Add comments

* update comments

* Remove CompatibilityChecker

* Move query-protocol submodule to the right version

* Remove `enhancedInstance.setSkyWalkingDynamicField` in `ClientTracingFilterInterceptor`.

* Update expectedData.yaml of finagle tests

* Use lazy ContextCarrier injection.

* Add comments for `ContextCarrierHelper`

* Fix ContextHolderFactory to avoid context pollution

Co-authored-by: huangyongjie <huangyongjie@tigerbrokers>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-11 13:04:58 +08:00
吴晟 Wu Sheng 74b0af9d85
[Agent Core] Support lazy ContextCarrier injection and lazy peer id setting (#4462)
* Support lazy ContextCarrier injection and lazy peer id setting for exit span

* Close the set component id for exit and local spans

* Follow the review.

* Remove `void inject(AbstractSpan exitSpan, ContextCarrier carrier)` from AbstractTracerContext
2020-03-08 18:34:53 +08:00
aderm 67b7f22a40
1.add es agent resthighlevelclient of ClusterClientInstrumentation.2.… (#4386)
* 1.add es agent resthighlevelclient of ClusterClientInstrumentation.2.fix agent test removeOnExit parse error.

* Update configuration.yml

* revert removeOnExit param.

Co-authored-by: Daming <zteny@foxmail.com>
2020-02-21 14:00:19 +08:00
lsyf 102c90dc59 Fix ehcache: format 2020-02-19 17:23:33 +08:00
lsyf b2ad63430b Fix ehcache: performance issue 2020-02-19 12:10:00 +08:00
lsyf e57176d05e Fix ehcache:  add interceptor for Cache's private constructor and setName method 2020-02-18 22:33:33 +08:00
lsyf 54c1cd5cb0 Fix ehcache:  missing interceptor of private constructor called by clone method 2020-02-17 23:31:28 +08:00
kezhenxu94 ae33ac81c8
Adjust Armeria plugin to adapt 0.98.0 (#4362)
Motivation:

Support Armeria 0.98.0 in its plugin.

Modifications:

Add an intercept point that is refactored in Armeria 0.98.

Result:

Now Armeria plugin supports 0.98.0, and 0.98.1
2020-02-15 11:45:38 +08:00
吴晟 Wu Sheng ae442e364f
More comments for important classes (#4361) 2020-02-14 17:03:50 +08:00
cui-liqiang c761f30e3b
Some code style and refactor (#4355)
* extract duplicated method

* change while loop to if since once rs.next() return false, it will never return true for the following calls

* simplify if() return true; return false pattern

* fix compilation

Signed-off-by: liqiang.clq <liqiang.clq@alibaba-inc.com>
2020-02-13 10:34:32 +08:00
lxliuxuankb e5366c0921
Tag annotation supports returned expression (#4327)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-02-12 14:03:02 +08:00
kezhenxu94 5b255ba3e3
Set up more strict code styles and fix existing issues (#4337)
Motivation:

Review code styles with some bots automatically.

Modifications:

Set up ReviewDog in GitHub Action to review code style.

Add more check rules to checkstyle plugin.

Result:

Obvious code styles can be reviewed and commented automatically.
2020-02-11 17:10:49 +08:00
吴晟 Wu Sheng f29fc4bcb3
Set a shared submodule for e2e test project. (#4329) 2020-02-08 21:56:23 +08:00
kezhenxu94 f676aece1f
Remove unused codes, close leaked I/O stream (#4325)
### Motivation:

Clean up unused codes and migrate to JDK8.

### Modifications:

- Remove unused codes.

- Close unclosed I/O stream.

- Remove meaningless comments.

### Result:

- No unnecessary codes concerns.

- No resources leak.
2020-02-08 09:21:24 +08:00
mrproliu e44bc36281
provide profiled segment list query (#4322)
* provide profiled segment query

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: AirTrioa <44222967+AirTrioa@users.noreply.github.com>
2020-02-06 21:02:08 +08:00
John Niang 41c63672c0
Refactor ConfigInitializer and improve map type config (#4321)
* Refactor ConfigInitializer

* Rename some variable names and add some java docs

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-06 17:09:38 +08:00
AirTrioa 69d238e613
[BUG]Fix the bug of port identification failure when connecting Oracle with Sid mode (JDBC: Oracle: thin: @ < host >: < port > / < Sid >) (#4320)
* [BUG]Fix the bug of port identification failure when connecting Oracle with Sid mode (JDBC: Oracle: thin: @ < host >: < port > / < Sid >)

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-05 20:30:03 +08:00
kezhenxu94 fa1e60f411
Reduce footprint when tagging spans via prototype pattern (#4318)
### Motivation:

Reduce footprint when tagging spans with the deprecated API: `AbstractSpan#tag(String, String)`.

### Modifications:

- Adopt [prototype pattern](https://en.wikipedia.org/wiki/Prototype_pattern) to create `Tag`, prevent from creating too many `StringTag` instances and `GC`ed.
- Replace `AbstractSpan#tag(String, String)` with `AbstractSpan#tag(AbstractTag, String)`.

### Result:

- Footprint is reduced.
2020-02-05 11:32:51 +08:00
吴晟 Wu Sheng 2e617611d4
Upgrade the bytebuddy for J9VM (#4317) 2020-02-05 00:10:04 +08:00
kezhenxu94 bf38e43d3a
Clean up legacy v1 header logic, use built-in Base64 since JDK8 (#4307)
### Motivation:

Codes clean up

### Modifications:

- Remove v1 header, follow up #4244

- Use built-in Base64 class (since JDK8)

### Result:

- No more legacy v1 headers

- No unnecessary codes concerns by using built-in ability
2020-02-02 17:45:04 +08:00
kezhenxu94 360eae22a6
Performance tuning, replace AtomicInteger with AtomicIntegerFieldUpdater (#4305)
Motivation:

Reduce unnecessary memory allocation in frequently used class.

Modifications:

Replace the `AtomicInteger` with `AtomicIntegerFieldUpdater`

Result:

We can save 4 bytes (for the reference to `AtomicInteger` itself) for each `TracingContext`, which saves credible memory in a high-concurrent agent service.
2020-02-02 00:00:14 +08:00
jialong 5c6914fc9e
Make MVC plugin support inherited annotations from interface (#4278) 2020-02-01 16:18:22 +08:00
Kanro 97950807fa
Enhance gRPC plugin (#4177)
* Enhance gRPC plugin

Co-authored-by: Kanro <higan@live.cn>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
Co-authored-by: GuoDuanLZ <739537111@qq.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-01-30 20:12:48 +08:00
Daming 9005d1e82c
Provide AVRO plugin (#4276)
* Provide Avro plugin
* provide testcase for avro-plugin

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-30 17:49:43 +08:00
mrproliu 90f3c4de55 Sniffer processing profile task and report status and snapshot (#4220)
* sniffer processing profile task and report status and snapshot

* resolve testServiceDependencies test case error, use same register with `TraceSegmentServiceClient`

* resolve names

* change profile to single one thread run.

* 1. change to the ArrayList, because known the max size
2. rename issue resolved

* add profiling status enum

* change sniffer use full name issue

* 1. remove `prepareProfiling` method, build profiling status when construct `TracingContext`
2. add `TracingThreadListenerManager`, notify when tracing main thread finish
3. change ProfileThread start when process new profile task

* remove unnecessary getter

* add test assert error message

* adding `AgentServiceRule`

* revert original assert

* remove unnecessary getter

* resolve issues

* reduce findService invoke

* resolve style error

* recheck profiling when change first span operatin name

* resolve issues
1. remove `ContextManager#profilingRecheck`, only check on `TracingContext`
2. rename comments
3. resolve volatile array setting

* remove article link

* add `ProfileTask#maxSamplingCount` check

* resolve conflict (Downstream -> Commands)

* 1. change profilingSegmentSlots init on construct
2. if is profiling, recheck dont need to stop
3. total profiling count increment on first dump

* remove unused return val

* remove some `@param` and `@return`

* add profile task check result data bean

* change profiler slot to `AtomicReferenceArray`

* resolved java doc error

* fix doc error, remove meaningless descriptions

* resolve missed profile receiver on oap starter

* resolve method invoke error

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-18 18:38:03 +08:00
kezhenxu94 019af3e345
Drop support of protocol v1 (sw3) (#4244)
* Drop support of protocol v1 (sw3)

* Remove versioning logic further

* Remove more version5-only classes

* Commit missing files

* Update submodule and address review comment

* Fix failed tests
2020-01-17 20:33:52 +08:00
Kanro dcb71cdeee Optimize trace ignore plugin (#4209)
* Optimize trace ignore plugin

* Add license for FastPathMatcher

* Boot again after setting config in test

* Fix check style

* Fix typos

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-12 09:49:28 +08:00
kezhenxu94 1ed179c0bd
Stop profiling task when backend doesn't support it (#4213) 2020-01-10 19:51:42 +08:00
mrproliu 4cf0600f35 Provide profile task downstream to sniffer (#4172)
* Provide profile task downstream to sniffer

* fix agent unit testcase issue

* add profile switch config on sniffer

* fix es error

* 1. add @DefaultImplementor on the sniffer profile task service
2. change ProfileTaskExecutionService#PROFILE_TASK_READY_SCHEDULE to final and remove volatile
2. fix style error

* change timeFromStartMills use `<` to compare

* 1. add `maxSamplingCount` to profile task
2. make profile task limit to the common package

* 1. change `agent.active_profile` to `profile.active` and make true on default
2. add `maxSamplingCount` in profile task
3. use `createTime` to check has new command list
4. add task re-check before process profile task

* 1. add `profile-receiver` document
2. change `ProfileTaskExecutionService` use single schedule thread pool
3. cache dont need fetch data when no data, use auto-fresh mechanism only

* remove navigate time judge, fix comment wrong meaning
2020-01-09 09:35:39 +08:00
tzy1316106836 c6b169544e Fix plugin bug when DUBBO retries (#4187) 2020-01-07 21:35:50 +08:00
dengliming 1881a040d4 Support plugin for mongodb v3.6.x (#4173)
* feat: add support plugin of mongodb v3.6.x

* update support-version.list

* update Supported-list.md

* update Supported-list.md

* Add witness class for v3.6

* update plugins-test.yaml

Co-authored-by: zhang-wei <pknfe@outlook.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: Weiyi Liu <liuweiyi@cmss.chinamobile.com>
2020-01-07 14:25:19 +08:00
Weiyi Liu b1b1615926 Close inputstream. (#4184)
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-01-07 10:01:25 +08:00
shine 8e9a1121cd modify sample_n_per_3_secs notes (#4185)
Negative or zero means off, by default
2020-01-06 21:00:31 +08:00
Kanro 4e03d5e6d7 Add kotlin coroutine plugin (#4165)
* Kotlin coroutine plugin write in Java

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-01-04 22:51:59 +08:00
kezhenxu94 99100ed635
Split the `collect_http_params` as per plugins for better performance (#4170)
* Split the `collect_http_params` as per plugins for better performance

* Add missing change
2020-01-03 21:44:25 +08:00
kezhenxu94 f52f7f466a
Support collecting http parameters (#4162)
Plugins of Tomcat, Spring MVC, Armeria are supported for now
2020-01-03 07:51:26 +08:00
吴晟 Wu Sheng 6c20f4a41b
Add service type from register and support browser as service type (#4157)
* Add service type from register and support browser as service type

* Add service type at agent side.

* Fix format.

* Fix a test.

* Fix formats.

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-01 18:01:41 +08:00
kezhenxu94 9862fe023f
Log harmless exception in DEBUG level (#4156)
* Log harmless exception in DEBUG level

* Log harmless exception in DEBUG level

* Minor refactor to avoid default method
2020-01-01 09:13:55 +08:00
Zhang Yonglun c5827f889a [Agent] Provide plugin for ShardingSphere 4.0.0-RC3 (#4140)
* shardingsphere 4.x RC3 test

* shardingsphere 4.x RC3 test

* shardingsphere 4.x RC3 test

* shardingsphere 4.x RC3 plugin

* shardingsphere 4.x RC3 plugin

* shardingsphere 4.x RC3 plugin

* shardingsphere 4.x RC3 plugin temp for a test

* shardingsphere 4.x RC3 plugin revert temp changes

* shardingsphere 4.x RC3 plugin change package name

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-12-31 17:52:29 +08:00
kezhenxu94 51e74ca4c4
[Feature] Add tag annotation to allow tagging span with annotation (#4152)
* [Feature] Add tag annotation to allow tagging span with annotation

* Use repeatable annotation syntax and add docs and example codes

* Fix failed unit test
2019-12-31 12:11:06 +08:00
Gao Hongtao 4211eff558 Fix os maven plugin issues for Eclipse m2e (#4144)
* Fix mave-os plugin issues for Eclipse m2e

* Add os-msven-plugin.version property
2019-12-29 13:49:27 +08:00
Andy Ai 4aac3293ca [test/plugin] immigrate test play framework scenario (#4128)
* Add play-scenario

* Set play plugin as default

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: Weiyi Liu <liuweiyi@cmss.chinamobile.com>
2019-12-26 22:42:56 +08:00
Zhang Yonglun ab39cecb17 shardingsphere 4.x RC1 RC2 test (#4118) 2019-12-26 08:31:10 +08:00
kezhenxu94 30cbe38df7 Move Armeria plugin to default plugin list (#4130)
* Move Armeria plugin to default plugin list

* Move Armeria plugin to default plugin list

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-12-26 00:45:48 +08:00
吴晟 Wu Sheng 25a677b9c7
Move Webflux plugin into default list. (#4129)
* Move Webflux plugin into default list.

* Fix a typo.
2019-12-25 22:08:14 +08:00
吴晟 Wu Sheng 3dde94ff66
Move lettuce into default plugin (#4127)
* Move lettuce into default plugin

* Fix maven pom
2019-12-25 18:53:49 +08:00
吴晟 Wu Sheng b570996006
Update JDK compiling level to 8, and remove zip dist. (#4119)
* Update JDK compiling level to 8, and remove zip dist.

* Exclude annotation and shade API.

* Fix more exclusion.

* 1. Update grava and gson 2. Fix compile issue. 3. Keep protoc and maven plugin in old version. Some incompatible of 3rd party grpc proto.

* Fix dependency conflicts, license and notice issue, and dependency check script issue

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2019-12-25 15:55:24 +08:00
kezhenxu94 bf6491f449
[Feature] Provide Java Agent for Apache HttpClient 3.x (#4111)
* Add Java Agent for Apache HttpClient 3.x

* Update Supported-list.md

* Update pom.xml
2019-12-24 23:20:44 +08:00
adamni135 9dcd3c74de write file unwait (#4099) 2019-12-24 18:41:45 +08:00
吴晟 Wu Sheng d7f7799c80
Set the main branch to 7.0.0-SNAPSHOT (#4115)
* [maven-release-plugin] prepare release v6.6.0

* [maven-release-plugin] prepare for next development iteration
2019-12-24 16:37:13 +08:00
cyejing bc77fda5c1 Enhance webflux plugin, related to Spring Gateway plugin too. (#3945)
* webflux-reactive

* add support version comment, modify gateway

* add test case, modify name

* add docs

* remove healthCheck
2019-12-17 08:58:57 +08:00
kezhenxu94 3f48790c36 [Feature] Add Java agent plugin for Jdk Threading classes (#4067)
* Add Java agent plugin for Jdk Threading

* Fix expected data according to changes in master

* Update agent.config

* Fix failed plugin test
2019-12-17 00:12:14 +08:00
吴晟 Wu Sheng 4e50132817
Remove the local/exit span register mechanism in Java agent scenario (#4059)
* Remove the local span and exit span register mechanism in Java agent scenario.

* Fix config, plugin, and document, as exit span is not required register anymore.

* Try to fix the test case expected data due to no register for exit span.

* Fix toolkit case.

* Remove exit span from plugin test framework document.

* Update protocol, FAQ, and CHANGELOG documents to highlight this change.

* Fix NPE when no entry span in the whole segment. Set endpoint to null in segment entity.

* Fix the snapshot and add inexistence operation name id.

* Fix several async cases.

* Fix undertow test case.

* Fix wrong error log name.

* Keep name consistent with 6.x concepts.

* Try to fix 3 async scenarios.

* Fix okhttp case.

* Fix Spring Async case.

* Fix another NPE

* Fix NPE when first span has no endpoint id when it is local or exit span.

* Still fill first operation name when no endpoint id.
2019-12-15 19:15:47 +08:00
aderm 0513dd8d45 fix es agent remote peers error when multi host. (#4065) 2019-12-15 10:29:00 +08:00
kezhenxu94 4c6a323e4d Fix NullPointerException in Spring interceptor (#4063) 2019-12-14 19:41:58 +08:00
kezhenxu94 eea5d027cc
Add Armeria Java agent plugin (#4024) 2019-12-11 15:57:45 +08:00
cyejing 31a6407feb Support set operation name in async mode span (#4015) 2019-12-11 14:20:31 +08:00
louis 6963acd613 Fix bug dubbo-2.7-conflict-patch plugin class path error (#4003) 2019-12-04 20:36:07 +08:00
seifeHu 0020b03f2f Document error for agent config file 's config description (#3943)
* Update README.md

logging.dir 's Description is an Error .Default value is not System.out. It is a dir.
2019-11-27 21:37:50 +08:00
于玉桔 aa4ecb41e9 fix project deadlock when starting application in issue 3784 (#3894) 2019-11-19 22:44:20 +08:00
pop0505 7e889d3471 fix: spring annotation inheritance problem #3847 (#3886) 2019-11-19 13:59:21 +08:00
于玉桔 6ffd92792d Support spring-tx in optional plugin (#3857)
* plugin code

* NPE FIX
2019-11-19 10:05:01 +08:00
zhang-wei 89923d6a93 [test/plugin] immigrate grpc scenario (#3840)
* grpc scenario

* update support-version.list
2019-11-17 17:29:42 +08:00
qiyang 58149a74f9 Intercept feign URL without parameters (#3854)
* Intercept feign RequestTemplate resolve args method ,get the url without parameters

* fix ci warnings

* optimize import

* fix: miss  path in feign target url like "http://localhost:8080/feign-scenario"
     fix feign-scenario test use pathVariable

* Add testcase to DefaultHttpClientInterceptorTest

* Clean ThreadLocal

* User one ThreadLocal replace two. User try/final  remove ThreadLocal .

* Code Optimize
2019-11-17 12:59:10 +08:00
viswaramamoorthy 77019ba665 Rabbitmq instrument consumer class correctly to get duration reported accurately (#3761) 2019-11-16 23:43:48 +08:00
wujun8 424ec7efcf ignore kryo ".reflectasm." class (#3845)
When using kryo, Byte-buddy occurs exception when match type.

> java.lang.IllegalStateException: Cannot resolve type description for com.esotericsoftware.reflectasm.PublicConstructorAccess
2019-11-13 19:32:53 +08:00
aderm e11d20715d Add elasticsearch 6.x plugin & elasticsearch 6.x test scenario (#3803)
* Add elasticsearch 6.x plugin & elasticsearch 6.x test scenario
2019-11-13 13:55:28 +08:00
吴晟 Wu Sheng 3fbaec42dc
Move to 6.6.0 SNAPSHOT (#3839)
* [maven-release-plugin] prepare release v6.5.0

* [maven-release-plugin] prepare for next development iteration
2019-11-12 22:33:39 +08:00
zhang-wei 841a9d395b [agent/plugin] Move FILTER_LENGTH_LIMIT to config.plugin.mongodb (#3820)
* move FILTER_LENGTH_LIMIT

* fix checkstyle
2019-11-10 15:04:00 +08:00
zhang-wei 555de82500 fix config variable usage bug (#3815) 2019-11-09 22:58:46 +08:00
cyejing b63f8bca8b fix opentracing with tag error is failed (#3795) 2019-11-06 21:23:26 +08:00