Commit Graph

605 Commits

Author SHA1 Message Date
mrproliu 925c0d74c7
Provide server-side meter (#4972) 2020-07-25 21:17:32 +08:00
Stalary 1877d0fcf4
Add jvm_thread metrics (#5129) 2020-07-22 09:05:32 +08:00
Patrick Jiang(白泽) 62f76881de
Fix issue 4965 (#5109) 2020-07-17 17:36:02 +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
gongdewei 1817386391
Support cache mode in the agent. (#4858) 2020-07-01 23:20:50 +08:00
kezhenxu94 54a43c4cef
Update Python commit hash to v0.1.0 (#4988) 2020-06-30 07:23:43 +08:00
caoyixiong 31f42343f6
add brpc-java plugin (#4958) 2020-06-27 14:57:29 +08:00
Gao Hongtao e143ae62eb
Reduce the length of metric name (#4936) 2020-06-22 09:10:51 +08:00
dagmom 08897ce5f8
New feature provided : new plugin for influxdb-java client (#4846) 2020-06-21 22:35:45 +08:00
dagmom 8648f0d417
update the commit id in the main repo to update the tool in CI process. (#4956) 2020-06-21 21:08:33 +08:00
于玉桔 c778a0d6c2
Support Quasar fiber tracing (#4951) 2020-06-20 22:30:03 +08:00
zhang-wei 38759318bd
update Dockerfile.go (#4944) 2020-06-18 14:04:28 +08:00
吴晟 Wu Sheng cf80986e71
Update Dockerfile.nginx (#4930) 2020-06-16 10:25:55 +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
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
何延龙 305a6b3032
[PHP-E2E] Support v8 (#4862) 2020-06-05 18:02:44 +08:00
Daming 3f176bf50f
[hotfix]Fix UITemplate storage Influxdb implamented (#4849) 2020-06-02 16:05:21 +08:00
吴晟 Wu Sheng d094a0f7c0
Support UI template management. (#4843) 2020-06-01 23:06:14 +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
kezhenxu94 edd8305fa2
Check http protocol in Python agent as well (#4805) 2020-05-23 16:05:13 +08:00
lipenghui a12ecea449
Add more pulsar test versions. (#4814) 2020-05-22 22:33:44 +08:00
吴晟 Wu Sheng 39adda09f3
Make the default application.yml more friendly in the configuration s… (#4777)
* Make the default application.yml more friendly in the configuration section.

* Fix an issue in python e2e.
2020-05-12 16:55:31 +08:00
kezhenxu94 576bd7e286
Test: add E2E test for Python Agent (#4770) 2020-05-11 16:05:06 +08:00
mrproliu 816878897c
Support multiple ways to analyze segments in rest (#4745)
* support multiple segments analyze

* Support multiple ways to analyze segment data

* Change to support single or list of the segment data, add the document

* fix document and change the lua agent commit id

Co-authored-by: Mrproliu <mrproliu@lagou.com>
2020-05-08 22:54:36 +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
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
Daming e8be63465c
More strict PluginTests expected data verifier (#4713)
* More strict PluginTests expected data verifier

* remove unnecessary file

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-04-25 23:35:47 +08:00
Brandon Fergerson 776d508018
Vertx plugin test re-implementation (#4624)
* vertx web plugin re-impl attempt
2020-04-24 19:49:03 +08:00
Daming 44f1b4a4ff
[test/plugin] Enhance PluginTest (#4677)
1. Re-balance the workload of plugintests
2. Restore testcases of MySQL, remove on #4641
3. Support user to runs plugin-test on debug mode. It will not remove the log files and actualData.yaml
4. remove paramater 'parallel_run_size' and disable parallel test.
2020-04-22 20:43:17 +08:00
mrproliu 4e821415ea
Fix profile recheck error (#4690) 2020-04-22 19:25:56 +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
Daming 28530cd79d
Upgrade the InfluxDB storage-plugin to protocol V3 (#4641)
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-04-19 20:10:59 +08:00
kezhenxu94 21bb638d50
[Test] Remove all images after E2E tests and disable ES threshold (#4671) 2020-04-19 16:54:16 +08:00
kezhenxu94 c11ad038cc
Count the coverage in E2E tests and Plugin tests (#4651) 2020-04-15 23:09:05 +08:00
zhang-wei ccb65ff27f
Add `java` -> `go2sky` -> `java` e2e test case, and adapt v3 protocol (#4647)
* go2sky e2e

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-04-15 10:01:11 +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
mrproliu 1601cc107c
Support `java` -> `nginx` -> `java` e2e test, and v3 protocol (#4637) 2020-04-11 22:31:28 +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 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
何延龙 4eb3df4065
Fix E2E-PHP bugs (#4584) 2020-03-28 14:39:33 +08:00
何延龙 9c62e4f52d
Add 200000 microsecond sleep in E2E-PHP (#4582)
* fix #4539, add PHP to the query protocol

* Add PHP module support to e2e test

* Add PHP e2e test into the CI control file

* Remove networks aliases

* Add PHP module support to e2e test

* Add e2e.php.yaml

* Locked version

* Add 200000 microsecond sleep in E2E-PHP

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-03-28 09:13:38 +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
kezhenxu94 72f46f7499
Add missing `@Repeatable` to `@Tag` annotation (#4567)
* Add missing `@Repeatable` to `@Tag` annotation

* Remove some verified minor versions to speed up plugin tests
2020-03-25 09:58:16 +08:00
何延龙 954eede0ec
Add PHP module support to e2e test (#4547) 2020-03-23 23:16:28 +08:00
kezhenxu94 f51ba3a94d
[Chore] Fix license headers and rename E2E job name (#4551)
* Fix license headers and rename E2E job name

* Fix RAT plugin and enable both RAT and checkstyle plugin
2020-03-23 13:51:39 +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
mrproliu a9d34e3b61
Remove unnecessary parameter in the profile log query (#4549)
* Remove unnecessary parameter in the profile log query

* Replace gone images

Co-authored-by: Mrproliu <mrproliu@lagou.com>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-03-22 12:49:43 +08:00
cngdkxw 2e9f001633
Add spring cloud feign 2.x plugin (#4526) 2020-03-20 20:28:30 +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
kezhenxu94 69e3d80e24
Add selector property in application.yml (#4514)
### Motivation

 Ease the efforts of modifying configurations in automatic workflow and scripts, like Docker and helm chart.

 ### Modification

 Add a `selector` property into `application.yml` to enable switching configuration simply by environment variables or system properties, and filter the unselected options, leaving only selected one.

 ### Result

 - We can switch a configuration by environment variables or system property

 - Closes #4511
2020-03-15 23:28:14 +08:00
Gao Hongtao 78d14ebbd6
Enable OAP gRPC SSL transportation (#4470)
* Enable OAP gRPC SSL transportation

Porting to OpenSSL to enable SSL transportation. The server private
key is in the format of PCKS#8, certificates is x509 though.

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Add netty-tcnative-boringssl-static 2.0.26 licnese

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Update docs/en/setup/backend/grpc-ssl.md

Co-Authored-By: kezhenxu94 <kezhenxu94@apache.org>

* Update docs/en/setup/backend/grpc-ssl.md

Co-Authored-By: kezhenxu94 <kezhenxu94@apache.org>

* Add SSL to grpc remote client and sharing server

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Update documents

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Fix nits

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Fix test case

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Add e2e-ssl and remove other test cases temporarily

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Add TLS relevant files

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Decrease timeout

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Test config works

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* triger CI on oap-ssl branch

* Disable agent ca

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Switch to sharing server

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Add agent log to console

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Upload log files

* Change backend

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Revert "Change backend"

This reverts commit 7a085711e3653d3bf642aa84f73650e22595e383.

* Update backend

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Revert e2e

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Ignore TSL relevant files

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Polish codes

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Update certificates expires year to 2120

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-03-15 08:15:28 +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
Gao Hongtao fdb816c799
Update MiniKube for CI process (#4495)
* Update pre.sh

* add if func

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Reorder steps

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

* Upgrade minikube to 1.8.0

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-03-12 10:33:11 +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
Daming da44d28547
Introduce Agent-Test-Tool suite (#4458)
* Introduce Agent-Test-Tool suite

* rename term
2020-03-08 09:15:41 +08:00
吴晟 Wu Sheng 9b8a8be27e
Update pom.xml (#4452)
Update the latest release commit to the e2e for release verification.
2020-03-06 22:37:08 +08:00
Jared Tan aa21765628
support http api for upstream trace. (#4399)
* support http api.

* e2e

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2020-03-06 21:07:39 +08:00
mrproliu 0df2d0a5e9
Provide profile exporter tool (#4416) 2020-03-04 20:28:14 +08:00
Jared Tan 85cc9c36ac
fix agent auth e2e not activated. (#4428)
* fix e2e miss.
2020-02-29 22:20:43 +08:00
mrproliu fa0b3df369
provide multiple time ranges to query profile analyze (#4417)
* profide multi time range to query profile analyze

* use method to avoid direct reference field
2020-02-26 10:51:38 +08:00
mrproliu 2ea341b890
Add missed profiled segment query (#4413)
* add profiled segment query

* fix query field error
2020-02-25 10:12:16 +08:00
zhang-wei 2ac2d2555a
[test/plugin] immigrate h2 & struts scenario (#4395)
* immigrate test code

* enhance mysql case healthCheck

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-23 20:34:44 +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
mrproliu 0d4714564f
Merge branch 'master' into master 2020-02-19 18:18:31 +08:00
Daming 29da5738bc
Provide influxdb as a new storage plugin (#4239)
* provide influxdb as a new storage plugin

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-19 18:00:57 +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 74c1f7ef73 ehcache-2.x-scenario add EhcacheCloneInterceptor case 2020-02-18 13:07:16 +08:00
Daming ca6a5618c5
[test/plugin] remove the image on docker exit (#4374)
* remove image on docker exit

* polish
2020-02-17 17:10:37 +08:00
Trustin Lee 5fed153ee2
Add Armeria 0.98.0 to the supported version list (#4328)
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-02-15 12:27:03 +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
mrproliu fa526e5227
Provide profile analyze query (#4335)
* provide profile analyze query

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-11 10:11:08 +08:00
aderm 8c96fd49dd Update elasticsearch-7.x agent support version. (#4340)
* test/plugin/scenarios/elasticsearch-7.x-scenario/support-version.list

* update elasticsearch-7.x agent support version.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2020-02-10 19:10:38 +08:00
吴晟 Wu Sheng f29fc4bcb3
Set a shared submodule for e2e test project. (#4329) 2020-02-08 21:56:23 +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 7cf79b1127
Move lombok dependency into root dependency manager for easier version management (#4309)
* Add lombok dependency into root pom.xml

* Update all depending lombok pom.xml(s)

* Change lombok version into latest(1.18.10)

* Revert lombok dependency config of test projects

* Remove redundant lombok dependency of submodule

* Move Lombok into dependencies node for applying globally
2020-02-03 10:44:50 +08:00
kezhenxu94 408a777d9d
Make traces verification loosely (#4306)
### Motivation:

Make E2E tests more stable.

### Modifications:

Verify the traces loosely as other tests, and remove the `verify` method which verifies traces strictly, as we have preparation that also generates traces.

### Result:

E2E tests are more stable.
2020-02-02 14:11:47 +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
John Niang 0e105a49bf
Upgrade remainder java compiler versions to 1.8 (#4286)
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-29 14:19:22 +08:00
mrproliu 8e4c1e95d6 Merge e2e profile test project (#4268)
* merge e2e profile test project, Use `env` to distinguish different storage types

* remove maven child module

* change `env` -> `storage`

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-20 19:34:53 +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
kezhenxu94 8e5e35f096
Fix failed E2E MySQL case (#4246) 2020-01-16 16:34:27 +08:00
Jared Tan 1310719645
add token authentication between agent and oap receiver. (#4197)
* add token authentication between agent and oap receiver.

* revert ui.

* fix code style.

* update docs.

* Update docs/en/setup/backend/backend-token-auth.md

Co-Authored-By: kezhenxu94 <kezhenxu94@apache.org>

* fix hits.

* filter

* revert yml.

* update logical.

* fix codestyle check.

* fix ci and add e2e test case.

* revert mistake commit.

* fix ci

* remove duplicate maven dependency.

* revert pom

* revert unchanged.

* update javadocs.

* update logical.

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-12 23:08:39 +08:00
吴晟 Wu Sheng 9149de2a6e Support multiple linear values and merging p50/75/90/95/99 into percentile (#4214)
* Support new percentile func with new alarm and exporter for this new func.

* Fix e2e and OAL script

* Fix wrong column.

* Fix percentile bug and oal engine bug.

* Update query protocol and add percentile test case

* Support new query

* Adopt GraphQL requirement

* Fix wrong type cast.

* Fix query in H2 and ES.

* Fix docs and comments.

* Fix an e2e compile issue

* Fix javadoc issue and e2e test issue.

* Change CPM to Apdex in TTL test.

* Fix OAL for TTL e2e

* Add metrics query for service percentile.

* Fix OAL engine bug. Method deserialize is not working when more than two field types are IntKeyLongValueHashMap

* Support multiple IntKeyLongValueHashMap fields in remote. About serialize/deserialize methods.

* Fix graphql statement error in e2e.

* Fix serialize not working and add generated serialize/deserialize of percentile into test cases.

* Fix test case format

* Remove generated code test.

* Fix failed e2e test

* Use avg resp time to apdex in the TTL test.

* ADD multiple linear metrics check for endpoint in e2e cluster.

* Support `-` to represent no threshold and doc of alarm about this.

* Move break to right place.

* Fix wrong break(s)

* Fix break and add a test case for multiple values alarm.

* Fix format.

* Add more doc for this new feature and GraphQL query protocol.

Co-authored-by: Jared Tan <jian.tan@daocloud.io>
Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2020-01-12 22:10:50 +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
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
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
aderm 6be84cfa78 update elasticsearch-7.x agent support version. (#4171)
* update elasticsearch-7.x agent support version.

* update supported-list.md doc & plugins-test.yaml
2020-01-04 19:56:35 +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
zhang-wei 7902c6242f
fix unused import (#4163) 2020-01-02 21:16:27 +08:00
mrproliu d38a8eaaa7 Provide thread monitor create task feature (#4145)
* provide thread monitor task service to create

* provide thread monitor task GraphQL implements

* 1. change thread monitor field names
2. fix `getThreadMonitorTaskList` query time bucket error

* provide config stream processor

* update submodule `query-protocol`

* resolve e2e-mysql error

* remove useless storage interface method.

* rename `ThreadMonitorTask` to `ProfileTask`

* change e2e-profile to the top level

* fix profile test analyze error

* remove StringUtil#isBlank.

* 1. remove create profile task duration unit
2. remove GraphQL getTask list duration field
3. add `profileTaskQueryMaxSize` in `storage` -> `elasticsearch(7)` configuration, default get 200 profile task

* provide e2e different storage tests

* 1. fix rat check
2. remove DurationUtils.java#toSecond
3. remove ProfileTaskQueryEs7DAO

* fix e2e code format error

* provide es6 and es7 storage e2e tests

* change e2e profile es module artifactId

Co-authored-by: kezhenxu94 <kezhenxu94@163.com>
2019-12-31 20:49:45 +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
aderm f64f3c1433 [test/plugin] immigrate test activemq scenario. (#4151)
* [test/plugin] immigrate test activemq scenario.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-12-31 15:31:39 +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
kezhenxu94 ea9acc5c24
Add E2E test case to verify compatibility between 6.x agents and 7.x … (#4132) 2019-12-26 15:26:08 +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
于玉桔 1e9f929f97 [test/plugin] immigrate test zookeeper scenario. (#4106)
* zookeeper test

* update expected data file

* fix review code

* fixed

* bugfix

* update version

* fix bug

* fix

Co-authored-by: zhang-wei <pknfe@outlook.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-12-25 17:25:09 +08:00
于玉桔 7dc8065267 [test/plugin] immigrate test lettuce scenario. (#4113)
* lettuce test

* fix

* update version

*  a new one group

* revert

* update expect data

Co-authored-by: Weiyi Liu <liuweiyi@cmss.chinamobile.com>
Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-12-25 11:22:15 +08:00
zhang-wei ba192a9f13 [test/plugin] immigrate test servicecomb scenario (#4109)
* servicecomb scenario
2019-12-25 09:43:57 +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
Zhang Yonglun 6fce5ca790 [test/plugin] immigrate test shardingsphere 3.x scenario. (#4093)
* shardingsphere 3.x test

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* shardingsphere 3.x test refine

* Remove the local/exit span register mechanism

* for comments

* for comments
2019-12-21 11:59:33 +08:00
zhang-wei 4c99480f70 Add relation metrics verification in e2e test (#4080) 2019-12-19 13:26:27 +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 4ec2cb07ed [test/plugin] immigrate test cassandra scenario. (#4040)
* [test/plugin] immigrate test cassandra scenario.

* update support list doc.

* delete space error.

* disable jmx report.

* remove jmx dependence.

* Disable jmx report.

* Update support list doc.
2019-12-12 12:52:00 +08:00
kezhenxu94 eea5d027cc
Add Armeria Java agent plugin (#4024) 2019-12-11 15:57:45 +08:00
zhang-wei e139e16366 [test/plugin] immigrate jdk http scenario (#4035)
* jdk-http

* jdk-http-scenario

* action
2019-12-10 13:22:31 +08:00
zhang-wei 3741f4e386 [Feature] Service instance dependency (#3978)
* dispatcher

* getServiceInstanceTopology implementation

* CacheUpdateTimer

* fix compilation failure

* fix compilation failure

* fix esDao

* Update dao list

* dispatcher

* getServiceInstanceTopology implementation

* CacheUpdateTimer

* fix compilation failure

* fix compilation failure

* fix esDao

* Update dao list

* test e2e

* add official_analysis.oal & update getServiceInstanceTopology

* test instance topo for single service

* fix gql

* fix verifyServiceInstances

* verifyServiceInstanceTopo

* fix verifyServiceInstanceTopo

* fix ServiceInstanceInventory#name

* fix ServiceInstanceInventory#name

* e2e test

* fix action

* fix provider port

* fix Instance Node Type

* re run

* fix expected-data

* add e2e mysql

* set @Test timeout

* fix ci

* increase timeout

* re check

* test ttl es7

* test ttl

* fix action

* merge group

* test ttl es7

* replace official_analysis.oal

* replace official_analysis.oal

* comments

* add TODO

* add TODO

* fix filed name
2019-12-09 08:23:21 +08:00
aderm 0b4afc17b8 update es7.x plugin test support version. (#4011)
* update es7.x plugin test support version.

* update Supported-list.md and action config.
2019-12-06 10:53:34 +08:00
aderm 17da2e2eec [test/plugin] immigrate test oracle scenario. (#4006)
* [test/plugin] immigrate test oracle scenario.

* repair ojdbc14.jar download url.

* 1.update ojdbc14.jar site;2.Adjust task position.

* fix curl download problem by add -L.

* Merge run steps.
2019-12-05 22:47:14 +08:00
lipenghui 821c50d0e4 [test/plugin]immigrate pulsar scenario (#3997)
* Apache Pulsar Immigration.

* Add apache license header and move pulsar scenario to Feign_Canal
2019-12-04 12:08:25 +08:00
innerpeacez 3e22ff5ece Add OAP+Istio(mixer) to CI pipeline (#3904) 2019-12-03 17:44:26 +08:00
zhang-wei e67d7b85ef [test/e2e] Enhancement TopoMatcher (#3990)
* Enhancement TopoMatcher

* optimize parse

* Update test/e2e/e2e-base/src/main/java/org/apache/skywalking/e2e/assertor/VariableExpressParser.java

Co-Authored-By: kezhenxu94 <kezhenxu94@163.com>
2019-12-02 16:20:00 +08:00
Alan Lau 52de0c6dfa Immigrate test gson scenario. (#3989)
* Immigrate test gson scenario.

* Fix actions yaml & move gson test to other groups.

* Fix wrong format.

* Rename the group name.

* Add 2.8.6 version. && remove healthCheck.
2019-12-02 15:28:16 +08:00
zhang-wei 3cb622daed fix express parse for null (#3988) 2019-12-01 18:37:23 +08:00
Alan Lau c0c898cf6c Immigrate test mysql scenario. (#3948)
* Add mysql scenario
2019-11-30 21:22:50 +08:00
Gao Hongtao 6475ab3d1d Add apdex function to OAL (#3855)
* Add apdex function to OAL

* Add empty line

* Setup config watcher

* Add identifier type to function parameter

* Add config test

* Update score algorithm

* Replace responseCode with status

* Add comments about apdex score algorithm

* Add docs

* Add e2e test case

* Update test case

* Fix disptch class generating error

* Update value name of apdex metric

* Tuning threshold

* Fix single tolerated point bug
2019-11-29 12:54:33 +08:00
Alan Lau 128d8054bc Fix #3932. (#3933) 2019-11-26 12:19:27 +08:00
Alan Lau 8ad3bab42e [test/plugin] Immigrate tests okhttp scenario (#3905)
* Immigrate tests okhttp scenario

* Fix Header.

* Fix license Header.

* Modify code follow the reivew suggestions.

* Fix expected.xml

* Restore the missed config

* Update okhttp elapsed time.

* Update total time for Group1.

* Fix the missed operationNames.
2019-11-25 11:37:52 +08:00
Gao Hongtao fa2af52cce Extending OAP docker container (#3919)
* Add ext lib and ext config

* Add container checker
2019-11-23 00:42:11 +08:00
kezhenxu94 9b408e82d5 [Feature] Support ElasticSearch 7 as backend storage (#3870)
* [Feature] Officially support ElasticSearch 7 as backend storage

* Extract bootstrap module to be shared by multiple starters

* Add missing configuration file and distinguish different version in test

* Update known-oap-backend-dependencies-es7.txt

Update the dependency lib

* Fix missing adaptation to ElasticSearch 7

* Rename ElasticSearch 7 specific class with Es7 infix

* Fix miss-adapted ElasticSearch DAO API

* Add ES7 specific configuration and polish documentations

* Polish documentations

* Polish documentations
2019-11-21 09:26:23 +08:00
吴晟 Wu Sheng 3d2325a4a1
Set up GitHub Action to include istio+sw in CI process (#3902)
* Make istio/envoy ci test (#3697)

* for #3669

* Add Apache 2.0 header

* Fixed some irrational

* [WIP]Scripts which deploy Istio + OAP + ES to a standard k8s cluster (#3718)

* for #3669

* Add Apache 2.0 header

* Fixed some irrational

* create istio-deploy.sh

* modify notes

* istio version and namespace to parameterize

* Keep template files and tested successfully

* add sw istio adapter

* add a new key for isito adapter

* notes.txt

* add mixer template

* add sw deploy script

* bookinfo and cleanup scripts

* add timeout and set -e

* modify cleanup and request timeout of demo

* End blank line

* Add minikube to CI (#3836)

* Test

* Add github action files

* Add tunnel to provie loadbalancer

* upload logs

* Fixed some nits
2019-11-20 14:27:02 +08:00
zhang-wei 6d3b0e2aeb [test/plugin] Print systeminfo on failure (#3874)
* Print systeminfo on failure

* fix project name

* docker-compose add network

* docker-compose add network

* revert interval
2019-11-19 19:02:02 +08:00
aderm a2dce716db [test/plugin] immigrate test hystrix scenario. (#3887)
* [test/plugin] immigrate test hystrix scenario.

* change package name.

* add start script.
2019-11-19 16:27:31 +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
aderm 33d2962593 [test/plugin] add elasticsearch 7.x plugin test scenario. (#3868)
* [test/plugin] add elasticsearch 7.x plugin test scenario.

* refresh index, make can search.

* remove unused package.

* update supported framework document.

* fix service name repeat.
2019-11-17 11:23:11 +08:00
zhang-wei 554df44a0d fix docker build bug (#3869) 2019-11-16 20:28:17 +08:00
zhang-wei e8f67897d8 Make kafka-scenario stable (#3866) 2019-11-15 21:04:03 +08:00
viswaramamoorthy d0a1cdd506 Rabbitmq plugin test migration (#3788)
* Rabbitmq plugin e2e test migration

* 3753-code review fixes

* 3753-test-case-improvements

* Update pom.xml

Remove the repo addresses.

* Update Plugin-test.md
2019-11-15 16:02:51 +08:00
aderm 5f8ee254a4 [test/plugin] immigrate test feign scenario. (#3838)
* immigrate test feign scenario.

* add license.

* update use test skeleton.

* delete repeat spring-boot starter dependence.

* add support-list version.
2019-11-15 00:11:43 +08:00
Daming 41bb3b5c0a [hotfix] Make socketio-plugin test case stable (#3861)
* make socketio-plugin testcase stable
2019-11-14 22:28:25 +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
zhang-wei 48bcac2307 [test/plugin] immigrate jedis scenario (#3811)
* jedis scenario

* update doc
2019-11-09 15:34:13 +08:00
zhang-wei cbe03da066 [test/plugin] fix archetypes (#3808)
* fix archetypes

* fix log4j
2019-11-09 13:51:39 +08:00
Daming 23bc69cd48 Provide archetypes for plugin testcase (#3802)
* provide archetypes for testcase
2019-11-08 14:48:40 +08:00
zhang-wei 62060749f7 [test/plugin] merge undertow scenario (#3797)
* merge undertow scenario

* update elapsed time
2019-11-07 15:29:52 +08:00
sxzaihua 4c688701dc add SupplierWrapper to support java 1.8+ CompletableFuture.supplyAsync #3779 (#3783)
* add SupplierWrapper to support java 1.8+

Signed-off-by: shixiang <xiang.shi001@bkjk.com>

* add SupplierWrapper to support java 1.8+

Signed-off-by: shixiang <xiang.shi001@bkjk.com>

* Update SupplierWrapper.java

add new line

* add supplier

* add supplier test

* add test

* add test yaml

* Update Application-toolkit-trace-cross-thread.md

Add how to use SupplierWrapper in Java 1.8+
2019-11-06 19:32:16 +08:00
Daming 33df7c9b85 [test/plugin] Don't copy all optional plugins by default (#3781)
* Not support copy all optional plugins

* fix

* Update test/plugin/run.sh

to correct the mistakes of grammar

Co-Authored-By: kezhenxu94 <kezhenxu94@163.com>
2019-11-05 10:01:39 +08:00
于玉桔 cdb02d5696 redisson plugin support high version (#3780)
* redisson support high lv version

* bugfix

* add comment
2019-11-04 22:45:07 +08:00
于玉桔 c002a6b3bf [test/plugin] immigrate test redisson scenario. (#3775)
* add redisson testcase
2019-11-04 17:51:23 +08:00
Daming cae0df24ce [hotfix] Remove argument BUILID_ID from run.sh (#3774) 2019-11-04 14:34:58 +08:00
zhangwei e39ff8e452 customize-scenario (#3773) 2019-11-03 23:19:13 +08:00
于玉桔 9bed3c7c42 [test/plugin] immigrate test webflux scenario. (#3756)
* add webflux testcase
2019-10-31 16:37:09 +05:30
aderm 6da231d8c7 [test/plugin] immigrate test httpasyncclient scenario. (#3751)
* [test/plugin] immigrate httpasyncclient scenario
2019-10-31 14:19:05 +05:30
zhangwei 5bb35e3f7d validator enhancement (#3750) 2019-10-31 10:08:23 +05:30
zhangwei bcaa8be0aa toolkit-scenario (#3739) 2019-10-30 09:06:16 +05:30
mrproliu 7ebb3107bf fix deficient code, "/socket.io/" http segment declare (#3717)
* fix deficient code, "/socket.io/" http segment declare

* add agent test and fix expectedData.yaml file

* add listener on tomcat start, work for reduce socket io server start time
change "/socket.io/" operation "http.method", cause get or post will invoke both

* resolve style check error

* change socket io server and client start to health check servlet

* if startClientAndWaitConnect invoke on multi-thread, it will only check client ref, no check connect state, fix it.
2019-10-29 18:28:41 +08:00
panjuan f44b09483b Modify application.yml to set MySQL as storage provider (#3733)
*  Modify application.yml to set MySQL as storage provider

* use volume
2019-10-29 16:18:36 +08:00
aderm b3da85b526 1.update pg image to 10.5-alpine;2.update test support list. (#3727) 2019-10-28 20:23:19 +08:00
aderm 7f69a73d13 Add postgresql agent sql query param show (#3695)
* Add postgresql agent sql query param show
2019-10-28 08:43:57 +08:00
panjuan be3db6794b Add E2E test for MySQL storage. (#3648) 2019-10-27 23:29:06 +08:00
zhangwei 2e2616d0ef [test/plugin] spring async scenario optimize (#3723)
* optimize

* fix license header
2019-10-27 21:15:43 +08:00
zhangwei f471293cdc [test/plugin] immigrate undertow scenario (#3698) 2019-10-27 18:33:38 +08:00
Daming c81e8a04b5 [test/plugin] to check agent register status (#3716)
* check agent register status

* update

* remove healtch-check segment

* update

* fix some expectedData.yml

* remove netty-socketio-scenario from Jenkinsfile

* fix
2019-10-26 02:58:08 +08:00
scolia 80af166752 feat: add support of mongodb v3.7.x or higher (#3591)
* feat: add support of mongodb v3.7.x or higher

* feat: remove mapping, using EnhancedInstance to mark remotePeer

* feat: add support of v3.6.x

* fix: disable support will 3.6.x, which will throw ClassCircularityError exception

* style: clean code

* fix support of 3.8.x~3.11.1, update test case and doc

* update stage name

* rename class

* rename stage
2019-10-24 19:16:56 +03:00
mrproliu c640b512cd Provide agent plugin netty-socketio (#3640)
* add plugin netty-socketio https://github.com/mrniko/netty-socketio

* delete create exit span interceptor.

* delete create exit span interceptor testcase.

* delete create exit span interceptor testcase.

* add constructor test unit

* change bind on random port in test case

* reverse upstream master whitespace

* resolve build_id param

* delete health check segment test case

* add ContextManager.isActive check before use activeSpan invoke

* remove unnecessary code and blank line
2019-10-23 13:06:17 +03:00
scolia b56248b0af feat: add test case for mongodb-3.x-plugin (#3667)
* feat: add test case for mongodb-3.x-plugin

* fix: agent-test script error

* feat: change non-compliant code

* fix: remove not proper config

* docs: update docs

* Merge branch 'master' of https://github.com/apache/skywalking into mongodb-testcase

# Conflicts:
#	Jenkinsfile-Agent-Test-3
2019-10-22 22:19:40 +03:00
aderm 7273e63020 [test/plugin] immigrate elasticsearch-5.x scenario (#3686) 2019-10-22 21:09:05 +03:00
xiaoy00 26b1d4156a Supporting RequestRateLimiterGatewayFilterFactory (#3538) 2019-10-22 14:33:26 +03:00
Daming 9996fbb5e0 [test/plugin] docker prune at cleanup (#3679)
* docker prune at cleanup

* update

* no prune volumes

* prune volumes
2019-10-22 13:24:36 +03:00
zhangwei b81726792f [test/plugin] immigrate sofarpc scenario (#3674)
* sofarpc

* sofarpc scenario

* sofarpc scenario

* fix stage
2019-10-22 07:55:06 +03:00
Daming 6657e6ec17 [test/plugin] fast-fail and reliablity (#3666)
* fast-fail and reliablity

* add workload no. as a part of the build_id tag

* print system info
2019-10-21 22:21:05 +03:00
aderm ed6e75e702 Add postgre support-version.list (#3673) 2019-10-21 17:48:24 +03:00
aderm 6658cdf5d1 fix lack file: bin/startup.sh (#3665)
* add startup.sh file
2019-10-21 08:18:22 +03:00
aderm aa18eb695b [test/plugin] immigrate postgresql scenario (#3644)
* Modify plugin test run.sh script parameter error

* shell fun error, delete ()

* delete space line

* [test/plugin] immigrate postgresql scenario

* add licene

* format expectedData.yaml & update support-version.list

* change workload from 3 to 1

* add startup.sh

* update startup.sh

* Add verify health-check segment

* remove health-check segment

* update code. 1. context is not effective; 2.format code. 3.change log to slf4j;

* update expectedData.yaml & change log to log4j2

* Add stage case count

* add immigrate postgresql-9.4-scenario

* repair module name & package name

* repair all postgresql-9.4 to postgresql-above9.4.1207

* change module name to postgresql-above9.4.1207

* change stage name
2019-10-20 19:12:35 +03:00
zhangwei 77c10c681f [test/plugin] immigrate canal scenario (#3660)
* immigrate canal scenario

* add test cases report

* commit

* exclusion spring

* add canal stage

* del org.apache.logging.log4j dep

* del -Dskywalking.agent.service_name
2019-10-20 12:57:24 +03:00
kezhenxu94 50f398a6d2
[CI] Make E2E tests run in multiple JDK versions (#3657)
* [CI] Make E2E tests run in multiple JDK versions

* Polish

* Use new e2e-container version number

* Install socat in reboot case

* Fix reboot case

* Polish

* Reorganize jobs
2019-10-19 23:09:56 +08:00
于玉桔 4fdf9d08a0 gateway testcast update (#3652)
* gateway testcast update

* bugfix

* remove -u
2019-10-18 18:45:43 +03:00
zhangwei 56bfbd61ef [test/plugin] spring scenario update (#3654)
* spring scenario update

* fix withPlugins
2019-10-18 17:40:14 +03:00
zhangwei 19288d85e9 iimmigrate kafak scenario (#3653) 2019-10-18 16:08:08 +03:00
Daming ef91bcf45f [test/plugin] removes the dead codes (#3651)
* removes the dead codes

* sync
2019-10-18 13:24:21 +03:00
Daming 6a7867ef5f [test/plugin] support test cases work with specifying the optional plugins (#3649)
* support test cases work with specifying the optional plugins
2019-10-18 11:57:34 +03:00
Daming f1fa738658 make plugin test more stable on docker-compose (#3642) 2019-10-17 13:03:50 +03:00
Kdump c0be757f43 add graphql getServiceInstance instanceUUID field. (#3595)
* add graphql getServiceInstance instanceUUID field.

* add graphql getServiceInstance instanceUUID field.

* add graphql getServiceInstance instanceUUID field.

* sync query-protocol repo

* add instanceUUID field e2e

* add instanceUUID field e2e

* add instanceUUID field e2e

* add instanceUUID field e2e
2019-10-17 06:38:00 +03:00
于玉桔 61705958be gateway server config close refreshing (#3628) 2019-10-16 13:38:35 +03:00
Daming d572e03661 make SolrJ-testcases stable (#3627) 2019-10-16 11:43:50 +03:00
aderm 353c1ba2c6 Fix plugin test run.sh script parameter error (#3621)
* Modify plugin test run.sh script parameter error

* shell fun error, delete ()

* delete space line
2019-10-16 10:32:37 +03:00
zhangwei c2e261e482 [test/plugin] immigrate spring scenario (#3620)
* immigrate spring async scenario

* fix rat

* Fix async not in effect

* immigrate spring scenario

* immigrate spring scenario

* fix

* immigrate spring scenario

* rollback

* fix log4j2.xml
2019-10-16 08:53:20 +03:00
于玉桔 24cc91c9af [test/plugin] immigrate gateway scenario (#3603)
* gateway-testcase
2019-10-15 09:51:55 +03:00
Daming 2af4ea8cdb support plugin testcases run with optional/bootstap plugins (#3617) 2019-10-14 15:01:48 +03:00
Daming 72153230a1 [test/plugin]support plugin testcases run in docker-compose (#3612)
* support docker-compose

* sync

* support docker-compose

* force rm container

* solrj-7.x-scenario

* fix license header

* fix actualData.yml

* verify Jenkins run on distribution

* test Jenkinsfile v2

* test Jenkinsfile v3, God bless

* test V4, God Bless

* test v5

* rollback

* update opertaion of post
2019-10-14 10:47:02 +03:00
zhangwei 7e7ab42ea0 [test/plugin] immigrate spring async scenario (#3611)
* immigrate spring async scenario

* fix rat

* Fix async not in effect
2019-10-13 21:30:42 +08:00
kezhenxu94 ff0e67e595 [CI] Make e2e more friendly for local test (#3606)
And group the test cases according to their consuming time
2019-10-13 14:11:30 +08:00
zhangwei e2216c8e4f [test/plugin] immigrate dubbo scenario (#3590)
* immigrate dubbo
2019-10-12 13:51:50 +08:00
Daming 530804d0fd [test/plugin] support jvm-container (#3584)
* provides a jvm-container
2019-10-12 09:14:12 +08:00
mrproliu 58804174e1 Provide plugin for Ehcache 2.x (#3575)
* support ehcache 2.x
2019-10-10 22:39:37 +08:00
Daming 9b2672aa59 [test/plugin] rename the package of testcases (#3587)
* remove profiles and rename the package

* remove profiles
2019-10-10 14:23:36 +08:00
Daming 002a161f96 improves script (#3579) 2019-10-09 14:54:06 +08:00
Daming 0114391dd2 test/plugin autotest (#3528)
Provide the codebase of plugin tests. Make the plugin test in the CI loop.
2019-10-08 21:51:20 +08:00
吴晟 Wu Sheng 1046944d69 Fix variable name and log in e2e tests. (#3487) 2019-09-19 12:32:45 +08:00
kezhenxu94 721f86485c Add TTL E2E test (#3437)
* Add TTL E2E test

* Add to Jenkins stage and minor bugfix

* Upgrade e2e container version

* Polish and minor fix

* Polish
2019-09-09 22:06:57 -07:00
kezhenxu94 54614a0594 Support gateway without agent (#3308)
* Support Gateway without agent
2019-08-30 16:17:41 +08:00
kezhenxu94 3549d074b0 Increase test service latency to help it to be counted (#3211)
The current latency of the test service is too slow, causing it's not counted and
the query result is 0, this patch increases the latency intentionally by sleeping
1 second
2019-08-03 18:18:32 +08:00
kezhenxu94 49f50a24a4 Support upgrade backend w/o rebooting agents (#3170)
* Support upgrade backend w/o rebooting agents
2019-08-02 09:25:17 +08:00
kezhenxu94 758b085c4f Fix that e2e fails occasionally (#3125)
* Override ES settings in FAQ

* Resend traffic data when invalid

* Remove unsupported ES setting

* Use seperated buffer directory and remove unnecessary web app 2
2019-07-20 13:22:10 +08:00
kezhenxu94 673b0bbcff Fix bug conflicts when containers start simultaneously (#3092)
The e2e containers' names of single mode and cluster mode
would conflict when they start up simultaneously in Jenkins job.
2019-07-16 10:29:19 +08:00
kezhenxu94 37efd1f95a Add e2e cluster tests (#3016)
* Add e2e cluster tests
2019-07-14 23:25:41 +08:00
kezhenxu94 d1a521b705 Add end to end tests (#2935)
e2e test setup. cc @hanahmily @peng-yongsheng @IanCao @zhaoyuguang @JaredTan95 

# e2e test case
One single standalone Spring service, accessing H2 database. This service has been installed the agent. 
OAP runs in single mode with H2 storage too.

The e2e test will verify the results through GraphQL query
1. Traces exist.
2. Service/Service Instance/Endpoint exist and have expected metrics.
3. Topology exists and match expected.
2019-06-30 20:44:24 +08:00
wusheng 2401428ece remove useless testcase 2016-12-11 22:41:06 +08:00
ascrutae d7804bf443 移除test-api依赖 2016-12-03 19:52:50 +08:00
wusheng cdcb440281 relocate module ‘skywalking-test-api’ to under module ‘skywalking-sniffer’ 2016-11-12 20:23:58 +08:00
ascrutae b185f1e0b4 提交logging工程以及完成zookeeper实现的注册中心,删除对protocol工程的依赖 2016-11-11 14:05:32 +08:00
ascrutae b11c8a79a6 1.修改工程结构,2. 完成部分Storage功能 2016-10-31 16:35:13 +08:00
wusheng 99298c2532 增加新的版本号 2.0-2016,准备下一版本迭代 2016-08-18 11:37:59 +08:00
ascrutae 944160d258 修改包名和修复bug 2016-08-14 16:47:29 +08:00
ascrutae f50566dc6d 修复bug 2016-08-12 15:38:47 +08:00
ascrutae e8b4d26830 1. 提交Tomcat插件,支持7.x-8.x
2. 修复错误类名(InstanceMethodsAroundInterceptor)
2016-07-22 16:05:38 +08:00
ascrutae 64e1e4a0a8 1. 修复agent-test编译失败问题,
2. 修改HttpClient插件定义的类名写错的问题
2016-07-08 17:26:19 +08:00
ascrutae f4efee4ea5 完成所有插件测试 2016-07-08 07:11:18 +08:00
wusheng f286cbd781 1.大规模修改工程结构,sdk降级使用1.6编译,支持1.6以上版本
2.server端程序保持不变
2016-06-25 10:47:25 +08:00
wusheng 7bbe9ceb07 修改部分依赖,试图解决log4j2不兼容的问题。 2016-06-16 13:20:35 +08:00
ascrutae 84a7dc9cbb 移除无用代码
提交jdbc测试工程
2016-06-15 23:11:24 +08:00
ascrutae 09ae8ab5f3 1.增加不校验traceId的方法 2016-06-13 22:58:25 +08:00
ascrutae 1a6ec531ce 新增清理ContextPool的方法,方便测试 2016-06-13 22:17:06 +08:00
ascrutae 9464d94689 1. 完善文档 2016-06-13 18:45:11 +08:00
ascrutae 86f9cd407b 添加文档 2016-06-13 18:37:57 +08:00
ascrutae 11a4b38408 1.添加redis cluster测试类 2016-06-13 18:14:03 +08:00
ascrutae 739ae01718 1.修改参数顺序 2016-06-13 16:59:45 +08:00
ascrutae 3865edc2e2 1.修改传入参数 2016-06-12 14:00:51 +08:00
ascrutae 8f794dc769 异常细分,去除排重功能 2016-06-07 16:27:02 +08:00
wusheng 75b3e154e2 修复部分包名、类名,提高可读性 2016-06-07 09:45:07 +08:00
ascrutae 060afcb56b 1.完善测试API
2. 增加SDK的数据的测试
2016-06-06 23:49:17 +08:00
wusheng 7b741cc280 补充提交 2016-06-06 13:35:54 +08:00
wusheng 2bc3a466b7 修改pom部分描述 2016-06-06 11:53:04 +08:00
ascrutae ccc1c1a640 1.增加校验长度的方法
2. 修改包名
2016-06-06 11:23:12 +08:00
ascrutae f706bff794 1.消费线程为0的时候,不启动消费线程
2. 提交测试工程
2016-06-06 11:13:15 +08:00
wusheng c6aa2ac941 调整test工程结构。 2016-06-05 11:41:07 +08:00
ascrutae 59e2f69d35 1.添加redis测试工程
2. 移除log4j shade
2016-06-05 11:21:56 +08:00
ascrutae 4dd00b97fa 移除无用的工程 2016-06-05 00:05:38 +08:00
ascrutae 5e22ec4b89 修改pom文件 2016-06-04 22:01:37 +08:00
ascrutae 4b90ffbe36 修改pom文件 2016-06-04 21:59:05 +08:00
ascrutae 88377b6889 提交agent-test工程 2016-06-03 18:04:59 +08:00