Commit Graph

4997 Commits

Author SHA1 Message Date
吴晟 Wu Sheng bb4ce945cf
Add change log for 6.3.0 release. (#3209)
* Add changelog for 6.3.0 release.

* Update CHANGES.md

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

* Update CHANGES.md
2019-08-03 18:46:14 +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
Andy Ai 532f430369 Fixed java agent cannot trace gRPC stream service (#3145)
* Fixed java agent cannot trace gRPC stream service
2019-08-03 17:38:39 +08:00
li.can 6e837153f2 Add jdk http plugin (#3171)
* add http

* update plugin

* Add StaticMethodsAroundInterceptor to be injected.

* move to options plugin

* move folder

* update pom

* support https

* add witness class

* Make JDK9-11 available for bootstrap instrumentation

* Remove temp folder of old bootstrap instrumentation requirement.

* remove witness ,work for jdk6,7,8,9,10,11

* Make JDK 12 works.

* move jdk-http-plugin to bootstrap-plugins folder

* add httpsclient

* update README.md
2019-08-03 10:26:20 +08:00
吴晟 Wu Sheng ff0ffb99ca
Add agent version in gRPC connection establish stage (#3205) 2019-08-02 17:07:32 +08:00
kezhenxu94 4db007ee79 Fix wrong time unit (#3203) 2019-08-02 13:53:02 +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
吴晟 Wu Sheng 2b274f3cc0
Make JDK 12 works. (#3197) 2019-07-31 23:24:53 +08:00
吴晟 Wu Sheng b091c0ae48
Make bootstrap instrumentation available in JDK9 - 11 (#3194)
* Make JDK9-11 available for bootstrap instrumentation

* Remove temp folder of old bootstrap instrumentation requirement.
2019-07-31 15:30:11 +08:00
makingtime 7b53d853e1 correct 3rd default alarm rule description (#3192)
* correct 3rd default alarm rule description

* unit change: 1000ms -> 1s
2019-07-31 07:50:11 +08:00
Steve Hu 0a057585b1 add a README.md to clarify the purpose of the docker file (#3191) 2019-07-29 23:09:46 +08:00
Alan Lau e92d01cae3 Add etcd config doc. (#3189) 2019-07-29 17:36:07 +08:00
Jared Tan 5d3312cccc Update Java-Plugin-Development-Guide.md (#3188) 2019-07-29 16:34:30 +08:00
于玉桔 26c6767c36 fix-3155 (#3186) 2019-07-29 14:43:49 +08:00
kezhenxu94 e8f94d55c3 Fix bug: NetworkAddressInventory uses wrong builder to convert data (#3183) 2019-07-29 14:07:37 +08:00
kezhenxu94 7958ba9aff Fix bug: state not updated when GRPC auto reconnect to the same server (#3181) 2019-07-29 12:57:07 +08:00
吴晟 Wu Sheng d66f775fe5
Remove javassist from agent dependency (#3176)
* Remove javassist dependency

*   Finish the PR.

* Change doc title level.

* Remove the duplicated codes.
2019-07-28 23:33:48 +08:00
Alan Lau 76d91635ee Support etcd configuration. (#2973)
* Support etcd configuration.
2019-07-27 22:02:40 +08:00
li.can 860fb0843c Add StaticMethodsAroundInterceptor to be injected. (#3174) 2019-07-27 15:52:49 +08:00
吴晟 Wu Sheng 8ef3cb7159
wrong refactor. (#3169) 2019-07-26 15:23:26 +08:00
彭勇升 pengys 16b8236506 1. All the inventories add last_update_time attribute, delete the mapping_last_update_time attribute in service inventory. (#3168)
2. Fixed the service inventory and net address inventory update bugs.
2019-07-26 14:02:27 +08:00
吴晟 Wu Sheng c76fb4053e
Set up the bootstrap instrumentation plugin framework (#3152)
* POC: Intercept successfully.

* Refactor codes

* Build the new core

* Setup the new core.

* Push the javassist version to 3.23.2-GA, as it is the last version supports JDK 1.6 compile, according to https://github.com/jboss-javassist/javassist/blob/rel_3_23_2_ga/pom.xml#L149-L160

* Finish the all codes.

* Document updated for bootstrap instrumentation.

* Add a notice to document.

* Remove unexpected file.

* Set javassist version right. Add judge in core interceptors

* Fixe no log bridge implementation
2019-07-25 22:00:07 +08:00
kezhenxu94 c11b9f102f Revert parallelism in CI IT build (#3164)
* Don't build JavaDoc since we don't host JavaDoc pages

* Update Jenkinsfile

* Revert back to where it's single-threaded job
2019-07-25 21:22:46 +08:00
彭勇升 pengys f658d9eb4d Simplify the PxxMetrics and ThermodynamicMetrics to improve performance (#3162)
* Feature of database session

* Make it configurable.

* Change the metrics process flow.
before: metrics entrance -> aggregate worker -> remote worker -> trans worker -> minute, hour, day, month persistence worker -> storage
after: metrics entrance -> aggregate worker -> remote worker -> minute persistence worker ->  trans worker -> hour, day, month persistence worker -> storage

* IntKeyLongValueHashMap instead of IntKeyLongValueArray.

* Make the OAP server can't startup.

* Finish

* Rename the method and fixed some test case issues.

* Rename field.

* no message
2019-07-25 19:08:36 +08:00
彭勇升 pengys 0cf998022d If transform throw exception, the stream observer won't call the onCompleted method, then the stream observer will wait it finish until the timeout. (#3163) 2019-07-25 08:54:14 +08:00
彭勇升 pengys 8605f4ccc0
Change the metrics process flow. (#3157)
* Feature of database session

* Make it configurable.

* Change the metrics process flow.
before: metrics entrance -> aggregate worker -> remote worker -> trans worker -> minute, hour, day, month persistence worker -> storage
after: metrics entrance -> aggregate worker -> remote worker -> minute persistence worker ->  trans worker -> hour, day, month persistence worker -> storage
2019-07-24 18:18:20 +08:00
Gao Hongtao 924f25fec4
Self observability of OAP backend (#3140)
* First commit

* Fix e2e test and some nits

* Documenting so11y and setting default values of it in dev env
2019-07-24 16:08:56 +08:00
彭勇升 pengys 8d234a91e5 Feature of database session in OAP server. (#3147)
* Feature of database session

* Make it configurable.

* Make the OAP server can't startup.
2019-07-24 13:43:19 +08:00
Xin,Zhang bf504ab733 Update demo environment (#3149)
* Update demo environment

* Update Jenkinsfile
2019-07-24 10:31:36 +08:00
Purge yao cf7d7454e4 Add logging.file environment parameter support (#3146) 2019-07-23 13:47:11 +08:00
li.can 137b142aab Support servlet 2.5 for Jetty,Tomcat,SpringMvc (#3120)
* servlet 2.5

* method exist

* update MethodUtil

* Update MethodUtil.java

Add a comment to the new core util method. @candyleer I am concerning this method will be used widely even unnecessary.
2019-07-22 15:21:59 +08:00
qxo f4ca4c8a6e fixed for #3135:createEntrySpan should get SamplingService only if it required ( carrier is valid) (#3137) 2019-07-21 23:10:03 +08:00
吴晟 Wu Sheng f83dc64602
Fix a wrong comment. (#3134) 2019-07-21 18:38:19 +08:00
彭勇升 pengys 8306ad4531 Reduce the number of threads to improve performance. (#3133)
* Refactor Persistence worker.

* 1. Provide InsertRequest and UpdateRequest interface for prepare persistence.
2. Implement the ids query for H2 metrics DAO.

* Refactor worker framework

* Use queue to receive asynchronous batch request.

* Rename the Datacarrier thread name.

* Fixed some mistake.

* New mistake.
2019-07-21 15:51:24 +08:00
吴晟 Wu Sheng ab9bc9226b Fix H2 metrics read bug, can't read expected existing metrics. (#3132)
Make agent mock works as usual.
2019-07-21 15:07:35 +08:00
彭勇升 pengys 594994ffae 1. Provide InsertRequest and UpdateRequest interface for prepare persistence. (#3131)
2. Implement the ids query for H2 metrics DAO.
2019-07-21 13:56:12 +08:00
kezhenxu94 3fd1f072f1 Speed up ci/e2e builds (#3130)
* Make use of multi-thread builds of maven

* Bump up maven version to get rid of parallel build bug

* Apply the same to E2E tests

* Apply the same to JavaDoc task

* Revert E2E settings

* Add maven tuning opts

* Increase maven fork process memory
2019-07-21 10:08:39 +08:00
彭勇升 pengys 6de3e55280 Too many EndOfBatchContext instance created. (#3129) 2019-07-21 00:26:17 +08:00
吴晟 Wu Sheng d256fc348e OAP internal RemoteService protocol change and code refactor (#3128)
* Remove the worker id, and add worker name for remote handler only.

* Remote metrics and inventory classes mapping too.

* Refactor codes.
2019-07-20 23:47:17 +08:00
彭勇升 pengys 6338de392f Improve OAP server performance. (#3127)
* Improve OAP server performance.
2019-07-20 22:59:52 +08:00
于玉桔 b1dea4c540 Provide a configuration to control the length of the peer field (#3105)
* Fix 3096
2019-07-20 16:50:28 +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
qxo 1a36c38b29 ignore .factorypath for vscode temp file (#3123) 2019-07-20 01:00:54 +08:00
彭勇升 pengys 8d70533921 Fixed buffer lost. (#3118) 2019-07-19 22:07:53 +08:00
彭勇升 pengys ed507b78ef
Dirty-Read in concurrency (#3117)
* Fixed the problem of dirty reading of the storage implementation of elasticsearch.

* Fixed a mistake.
2019-07-19 14:22:01 +08:00
吴晟 Wu Sheng d2f52f28b4
Make #finish more stable in async APIs (#3115)
* Make finish more stable in async APIs
2019-07-18 23:08:46 +08:00
吴晟 Wu Sheng 5b039e9747 All NEW OAL Runtime Engine (#3109)
* Change OAL generator tool to runtime.

Step 1. change project structure. API links and maven pom.

* Part of metrics class generation

* Metrcis class generated.

* Set up the basic structure of new OAL engine.

* Finish metrics generation.

* Support dispatcher generation.

* Format codes.

* Generate dispatcher all methods.

* Implement disable in hardcode.

* Clear up

* Fix compile startup.

* Update license and document of new OAL engine.

* Fix rat.

* Disable class output in default

* Copy from @kezhenxu94 's test PR, https://github.com/apache/skywalking/pull/3110

* Wait for the mount command to finish
2019-07-18 19:47:23 +08:00
qxo c7916d9f27 improve ContextManager.stopSpan performance: call ThreadLocal only once (#3068)
* improve ContextManager.stopSpan and awaitFinishAsync performance: call ThreadLocal only once
For the [JMH benchmark test](https://gitlab.com/qxo1/Common-JMH-benchmark/-/jobs/251025992) :
On gitlab CI(java 8): call ThreadLocal once vs twice fast over 10%
My T480 java 8 : fast over 40%; java 11: fast over 50%;

[The JMH benchmark code ](https://github.com/qxo/Common-JMH-benchmark/blob/master/src/main/java/test/ThreadLocalGetXTimeBenchmark.java)

* Update apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java

Co-Authored-By: kezhenxu94 <kezhenxu94@163.com>

* Update apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java

Co-Authored-By: kezhenxu94 <kezhenxu94@163.com>

* Update apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java

Co-Authored-By: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2019-07-18 00:17:04 +08:00
彭勇升 pengys d4c7006525
Config item name is wrong. (#3101) 2019-07-17 17:24:00 +08:00
zhangwei ed99079d20 Fix service cluster plugin bug (#3074)
* fix 3069
2019-07-17 14:40:45 +08:00