Commit Graph

53 Commits

Author SHA1 Message Date
xiaqi1210 922a5001fa
Fix the issue of createSpan failure caused by invalid request URL in HttpClient 4.x/5.x plugin (#603) 2023-09-13 08:17:20 +08:00
kezhenxu94 62266673ff
Add plugin for Spring 6, set development baseline to JDK 17, remove Powermock entirely (#444) 2023-01-31 19:29:32 +08:00
kezhenxu94 d75cdf51e1
Save http status code regardless of it's status (#258) 2022-07-12 14:53:14 +08:00
wallezhang 4b66f1e0a7
fix: Fix MultiScopesAnalysisListener#setPublicAttrs log warn frequently (#7271)
* fix: Fix MultiScopesAnalysisListener#setPublicAttrs log warn frequently. #6562

1. Rename current STATUS_CODE to HTTP_RESPONSE_STATUS_CODE, real tag key should be http.status_code.
2. Add a new string tag RPC_RESPONSE_STATUS_CODE to hold all string type value tag. The key is `rpc.status_code`.
3. At the backend, keep responseCode for HTTP_RESPONSE_STATUS_CODE tag, but add @Deprecated. Also, add httpResponseStatusCode(a duplicate of responseCode) and rpcStatusCode(for RPC_RESPONSE_STATUS_CODE) fields for OAL.

* Modify `Tags.STATUS_CODE` field name to `Tags.HTTP_RESPONSE_STATUS_CODE` and type from `StringTag` to `IntegerTag`, add `Tags.RPC_RESPONSE_STATUS_CODE` field to hold rpc response code value.

* Add `rpcStatusCode` for `rpc.status_code` tag in the OAL objects. The `responseCode` field is marked as deprecated and replaced by `httpResponseStatusCode` field. 

* Tag `status_code` is still supported in the backend for forward compatbility. Will be removed one year later.

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2021-08-14 20:17:46 +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
Evan 29de696c42
exception-ignore-plugin (#5426) 2020-09-09 15:07:01 +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
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 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 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
SataQiu 19d9c56f27 Clean up unnecessary times(1) for test verify (#2619)
* clean up unnecessary times(1) for test verify

* format code

* fix checkstyle
2019-05-07 21:56:23 +08:00
dongbin 4657ce7f0c Fixed an error that took a non-protocol uri string as a java.net.URL … (#2231)
* Fixed an error that took a non-protocol uri string as a java.net.URL construct parameter.

* Fixed an error that took a non-protocol uri string as a java.net.URL construct parameter.

* Fixed checkstyle error.
2019-02-01 23:28:21 +08:00
Xin,Zhang 1bc5de7af9 Support overwrite tag (#2021)
* Support overwrite tag

* Fix test case
2018-12-09 14:59:15 +08:00
Xin,Zhang 42028e60ae Fix operation name is empty issue (#1525) 2018-08-06 16:23:38 +08:00
吴晟 Wu Sheng 6b99abffff [Agent] Apache http client plugin bug (#1448) (#1452)
* #1447

Fixed the after method interceptor for the apache http client NPE error when the response is null cause by the doExecute method throw a exception.
2018-07-13 13:48:37 +08:00
lican 1bbd5e1c28 fix http_client plugin (#1218) 2018-05-14 08:28:12 +08:00
吴晟 Wu Sheng e13ff79326 Sync to fix release check (#982)
Fix IPMC checks for releasing.
2018-03-24 17:11:04 +08:00
Xin,Zhang af16ece593 [Agent] fix trace can't finished when the StatusLine isn't set (#945) 2018-03-15 16:11:44 +08:00
ascrutae 0d6233dd54 [Agent] fix that javadoc import unused class cause classloader issue 2018-02-27 11:29:18 +08:00
wu-sheng 1d6ca31b62 Commit many java doc fixes. 2018-02-26 12:01:24 +08:00
ascrutae a108e8feeb [Agent] fix import incorrector class in httpclient plugin 2018-01-04 22:47:09 +08:00
ascrutae 10d55860db [Agent] fix the remote port is incorrect 2017-12-31 10:48:02 +08:00
ascrutae a62076f082 fix all interceptor class in plugin is incorrect 2017-12-12 14:16:45 +08:00
吴晟 Wu Sheng 032ade6e3c
Merge pull request #656 from ascrutae/feature/plugin-def-incorrect
fix the instrumentation class in plugin define file is incorrect
2017-12-11 16:05:10 +08:00
ascrutae b5a7c8fbf0 fix the instrumentation class in plugin define file is incorrect 2017-12-11 16:00:15 +08:00
wusheng 15328202b8 Revove duplicate license headers. 2017-12-11 15:04:26 +08:00
wusheng 05b818e709 Update package name to org.apache.skywalking 2017-12-10 16:32:39 +08:00
wusheng 23133f7d97 Update copyright to Apache Foundation. 2017-12-09 23:38:32 +08:00
peng-yongsheng 52f1420670 Add copyright head in all java files and copyright head check style 2017-10-10 22:27:57 +08:00
wusheng cc2163b7c2 Fix compile issues. 2017-09-19 23:36:29 +08:00
wusheng e0d50533c4 New context carrier. 2017-09-18 23:12:42 +08:00
wusheng 992032cf6a Refactor the interceptor method parameter list for SpringMVC plugin. 2017-08-10 17:54:08 +08:00
ascrutae fdde4b7aea fix issue that httpclient plugin don’t work 2017-07-21 09:59:20 +08:00
wusheng 103469256f Support plugin match by annotation, can’t by interface yet. #281 2017-07-12 22:41:56 +08:00
ascrutae 4c1963cb45 support plugin testcase 2017-07-09 17:46:43 +08:00
ascrutae 7ccaa419e1 support new api for each plugin 2017-07-04 22:11:26 +08:00
ascrutae b9bdf28d27 support tomcat dubbo and httpclient plugins 2017-07-03 11:46:37 +08:00
wusheng 8c9c3e65b8 Finish some grpc client codes. 2017-06-29 22:57:18 +08:00
wusheng 5203081561 Support #206 #241 #253 2017-06-28 22:32:02 +08:00
wusheng 1fd449cddc Finish the refactor of agent-core. 2017-06-28 09:05:39 +08:00
wusheng 48b2164f33 Finish almost all codes about TracingContext and three new type spans. 2017-06-27 11:48:54 +08:00
wusheng 947fed4865 Begin to refactor for performance. 2017-06-26 23:43:18 +08:00
wusheng 983dd8eac1 Provide AbstractSpan interface for the context. 2017-06-14 22:59:48 +08:00
wusheng f0e626ff2c 1. Remove the “apm-trace” module, isolate the trace structure between agent and collector for considering performance.
2. Change the head name.
3. Provide potienal mechanism for ignore trace with certain suffix.
2017-06-10 22:46:16 +08:00
wusheng 14f9154b21 Fix some test cases. 2017-06-09 21:52:11 +08:00
wusheng ae9bc45ccf Fix compile issues. 2017-06-09 20:50:25 +08:00
wusheng aaee8617f1 Revert "Prepare for improving sampling performance."
This reverts commit 19f2a561c9.
2017-06-04 20:10:48 +08:00
wusheng 19f2a561c9 Prepare for improving sampling performance. 2017-06-04 19:37:59 +08:00
Xin,Zhang 4a560433be Add mechanism to disable any or all plugins (#191)
* Add mechanism to disable any or all plugins, Relate: #186
2017-05-09 23:29:21 +08:00
wusheng d77601b793 Rename the "apm-api" module to "apm-agent-core”. Relate #181 2017-04-29 07:11:04 +08:00