Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Qian ff5de395a0
Enhance `returnedObj` expression to support Array, List and Map (#84)
* Enhance `returnedObj` expression to support Array, List and Map for apm-customize-enhance-plugin and `@Tag`

* update doc & add UnitTest for @Tag annotation

* update e2e test accordingly
2021-12-15 15:00:22 +08:00
Daniel Qian bc90371daa
Add returnedObj expression support for apm-customize-enhance-plugin (#83)
* issue #8292, add returnedObj expression support for apm-customize-enhance-plugin

* update apm-customize-enhance-plugin use plugin V2 API
2021-12-14 22:34:25 +08:00
liqiangz 56bebb8baf
Remove the close_before_method and close_after_method parameters of custom-enhance-plugin to avoid memory leaks (#6632)
* Remove the close_before_method and close_after_method parameters of custom-enhance-plugin to avoid memory leaks

* refine

Co-authored-by: 吴晟 Wu Sheng <wu.sheng@foxmail.com>
2021-03-29 10:50:27 +08:00
Kdump a5f4052965
fix INEFFICIENT_KEYSET_ITERATOR (#5612)
* fix INEFFICIENT_KEYSET_ITERATOR
2020-10-06 21:44:23 +08:00
Evan 29de696c42
exception-ignore-plugin (#5426) 2020-09-09 15:07:01 +08:00
Lu Jiajing 5bfac1b50f
Remove style-check exception for logger (#5363) 2020-08-21 18:26:25 +08:00
吴晟 Wu Sheng 20b1b51798
Separate config initialization in the plugin out of core level Config. (#5136) 2020-07-21 20:51:56 +08:00
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
kezhenxu94 fa1e60f411
Reduce footprint when tagging spans via prototype pattern (#4318)
### Motivation:

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

### Modifications:

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

### Result:

- Footprint is reduced.
2020-02-05 11:32:51 +08:00
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
吴晟 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 4db1773d3e Fix wrong logger names (#3075)
* Fix wrong logger name

* Fix more wrong logger names in agent side
2019-07-15 00:35:15 +08:00
于玉桔 d996d7bf4a fix (#3057) 2019-07-12 19:52:03 +09:00
于玉桔 8c3b951785 Customize Enhance code of plugin (#2300)
* Submit custom enhancement kernel code for the first time.

* Submit the code again.

* Optimize ClassUtil code.

* Submit custom enhancement plugin code for the first time.

* To fix CI issue.

* To fix CI header Tmp issue

* To fix CI Tmp header issue

* Customize plugin code submission

* Add md file.

* Fix some bug.

* Fix ci issue

* Fix md desc

* Fix unapproved license

* Fix bug

* Fix collection bug.

* Fix java8 pair ref issue

* Fix CI issue.

* Add more detail for expression.

* Fix review issue

* Fix review issue 2

* Fix review code issue 2

* Fix md issue

* Fix bug and op desc md.

* Update customize-enhance-trace.md

* Update customize-enhance-trace.md

* FIx code review issue.
2019-03-13 07:07:45 +08:00