Commit Graph

52 Commits

Author SHA1 Message Date
Daniel Qian 3b93a9c398
Optimize ProfileTaskChannelService (#78)
related issue  https://github.com/apache/skywalking/issues/8221
1. Avoid ProfileTaskChannelService.addProfilingSnapshot throw IllegalStateException(Queue full)
2. Increase ProfileTaskChannelService.snapshotQueue default size from 50 to 4500
2021-12-02 15:14:34 +08:00
Jared Tan b169ef3cdd
Support set instance properties in json format (#67)
* set instance properties in json format: agent.instance_properties_json

* add docs.

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

* polish and add e2e.

* update

* Update test/e2e/case/expected/service-instance.yml

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>

* Update apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/util/InstanceJsonPropertiesUtil.java

Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>

* update

* update SW_INSTANCE_PROPERTIES_JSON

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
2021-11-07 18:51:34 +08:00
Daming fbdfc42b4d
add e2e test for kafka transporter (#42) 2021-10-18 09:46:16 +08:00
Daming 7d36faaf0f
Add Kafka LogReporter and make grpc log reporter sharing grpc channel with reporters (#20) 2021-09-23 10:50:34 +08:00
dashanji bb8f6d2e21
fix agent.config (#28) 2021-09-20 09:14:00 +08:00
Daming dd0d8afe88
Support mTLS for gRPC channel (#15) 2021-08-31 15:56:30 +08:00
吴晟 Wu Sheng 6950bb137f
Rename common modules. (#2) 2021-08-27 00:27:39 +08:00
吴晟 Wu Sheng db2bc93573
Separate agent docs to avoid long single page. (#7537) 2021-08-23 20:10:01 +08:00
Daming a2e011f9b0
Kafka extra producer configuration enhancement (#7526) 2021-08-23 17:16:19 +08:00
kezhenxu94 6bb4d35ce8
Add all agent config to `agent.conf` file for convenient containerization use cases (#7470)
* Add all agent config to `agent.conf` file for convenient containerization use cases

* Fix name and default value
2021-08-18 10:25:28 +08:00
tangxqa 3541c32530
Update agent.config (#7163) 2021-06-23 16:43:39 +08:00
Darcy f810246960
fix a bug that bad namespace spell in agent.config (#6829) 2021-04-25 19:54:59 +08:00
Darcy b4114ac043
enhancement agent kafka reporter plugin, add namespace concept (#6781) 2021-04-23 11:29:35 +08:00
Ax1an 5edcdeecde
Remove invalid mysql configuration in agent.config. (#6303) 2021-02-02 23:45:07 +08:00
Ax1an fd02bcd6f6
Support dynamic change agent.ignore_suffix on java agent. (#6272) 2021-01-28 21:40:34 +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 075cb981a9
Add `MOUNT` config in the agent core. (#5529) 2020-09-22 07:14:34 +08:00
Evan 29de696c42
exception-ignore-plugin (#5426) 2020-09-09 15:07:01 +08:00
Evan 0e132685e6
fix doc on recently pr (#5432) 2020-09-03 23:20:36 +08:00
Evan a6e45d04c9
spring annotation enhance (#5320) 2020-08-17 10:14:40 +08:00
Evan 68317dd910
Add agent plugins selector (#5293) 2020-08-14 15:06:30 +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
Daming f9257f5274
Provide kafka as collector/reporter (#4847) 2020-07-30 11:55:49 +08:00
gongdewei 1817386391
Support cache mode in the agent. (#4858) 2020-07-01 23:20:50 +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
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
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
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
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
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
wuguangkuo 60236a27d6 Add feature to control the maximum agent log files (#3475)
* Add feature to control the maximum history agent log files.
2019-09-19 14:12:17 +08:00
Stalary 3d00d83fc6 ADD: add operationName length threshold (#3357)
* ADD: add operationName length threshold

* MOD:move operationName threshold to Config, simplified code

* MOD:update agent set-up document, clean code

* MOD:add agent.operation_name_threshold conf prefix
2019-08-28 22:18:11 +08:00
Jared Tan 6d94411482 Add more configuration and explainations. (#3302)
* Add more configuration and explainations.
2019-08-22 21:20:17 +08:00
Purge yao cf7d7454e4 Add logging.file environment parameter support (#3146) 2019-07-23 13:47:11 +08:00
SataQiu e07172b84f update agent.config (#2664) 2019-05-14 16:12:59 +08:00
Jared.Tan b79030765b feat:Active System.env Config In Both Collector And agent.config. (#1957)
* feat:Active System.env Config In Both Collector And agent.config.
1、moving related codes into apm-util module.
2、update Setting-override.md about how to use.

* resolve docs.

* typo

* finish test case.

* Update README.md
2018-11-26 00:12:01 +08:00
吴晟 Wu Sheng c6ada8c98f
Support new v2 protocol and make concept consistently (#1937)
* Update new protocol

* Support new protocol at agent side.

* Fix test case.

* Make backend supports new trace protocol

* Fix tests.

* Make all new services available in gRPC.

* Fix bugs.

* Finish new document for v2 trace protocol.

* Fix wrong version requirement of zk

* Fix trace query bug.

* Find a client side dictionary bug.

* Fix register bugs.

* Fix break doc links.
2018-11-21 22:33:04 +08:00
吴晟 Wu Sheng 7cd805a822
Make setting and doc consistent with backend default settings. (#1860) 2018-11-01 18:04:22 +08:00
吴晟 Wu Sheng 8cd327d8bb
Revert #1790 reset feature and provide default alarm settings. (#1833)
* Revert reset feature.

* Set default dist alarm settings and make dist package setting files right.

* Support empty list.
2018-10-28 22:28:21 +08:00
刘新元 Liu XinYuan b11d479337 Add service and instance reset function (#1790)
* Manually trigger agent registration and write registration status to file

* Delete unused variables

* Code optimization, encapsulating some methods

* add clear DataCarrier function

* revert SkyWalkingAgent

* Optimize code and logic, including updating applicatin_id in unRegisterOperationNames

* Server end metadata loss notification

* Server end metadata loss notification

* fix file stream close and other problem

* revert to old

* fix some bug

Signed-off-by: Liu-XinYuan <879928098@qq.com>

* fix some bugs in agent reset

* add close inputStream and fileChannel and fix some bug

* fixed some bugs
2018-10-27 19:58:15 +08:00
Wu Sheng 1ec420b0fd Remove collector.servers and collector.direct_servers, and add collector.backend_service setting. cc @ascrutae 2018-08-15 22:08:30 +08:00
吴晟 Wu Sheng 7a733ce458
Provide advanced features document (#1014)
* Provide document for TLS

* Provide direct uplink doc.

* Add namespace document.

* Provide token auth doc.

* Provide setting override document.

* Fix two typo.

* Fix more typos.
2018-04-02 17:18:17 +08:00
吴晟 Wu Sheng d322f52843 Support token auth in gRPC upstream (#1000)
* Add client side token.

* Fix ci.

* Fix most codes of token auth at both sides.

* Add settings in config files.

* Make auth interceptor doesn't throw expcetion.

* Update AuthenticationSimpleChecker.java

* Update AuthenticationActivator.java

* Revert "Update AuthenticationActivator.java"

This reverts commit 0935f18fd6802ab84c12e0609c21ef753ff51be3.

* Merge branch 'feature/token-auth' of https://github.com/apache/incubator-skywalking into feature/token-auth

# Conflicts:
#	apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/main/java/org/apache/skywalking/apm/collector/agent/grpc/provider/AuthenticationSimpleChecker.java

* Fix Auhentication token works incorrect (#1001)

* Fix Auhentication token works incorrect

* Change way to build GRPC Channel

* Response an empty header when auth fails.
2018-03-31 20:06:48 +08:00
吴晟 Wu Sheng e13ff79326 Sync to fix release check (#982)
Fix IPMC checks for releasing.
2018-03-24 17:11:04 +08:00
吴晟 Wu Sheng f625f609b3
Support direct server setting in agent. (#975)
* Support direct server setting in agent.

* Fix format.

* Add direct_servers check (#981)
2018-03-23 16:07:21 +08:00
wusheng 21c58f07d5 Update some documents for 5.0.0-alpha release. 2018-03-03 22:36:15 +08:00
wu-sheng 6a4a18a721 Add documents about new config item. 2017-11-27 16:56:22 +08:00
wu-sheng 931effb648 Output all instrumented classes into physical files. 2017-11-27 16:32:51 +08:00
wusheng baf4000417 Fix port. 2017-11-21 21:48:58 +08:00
ascrutae 9a4d4a21b8 fix the naming service url and port is incorrect 2017-11-20 13:04:12 +08:00