Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gson plugin #462

Merged
merged 1 commit into from
May 25, 2015
Merged

Add Gson plugin #462

merged 1 commit into from
May 25, 2015

Conversation

yous
Copy link
Contributor

@yous yous commented May 24, 2015

See https://code.google.com/p/google-gson/.

It records start time and end time of the calls of fromJson and toJson. If an user passes a String to fromJson, or doesn't pass a Appendable or JsonWriter to toJson, then this plugin records the length of JSON as an attribute. See plugins/gson/src/main/java/com/navercorp/pinpoint/plugin/gson/interceptor/GsonMethodInterceptor.java.

It currently uses 7000 as the code of ServiceType, 9000 as the code of AnnotationKey. If you want to use other codes, please let me know. Also if you think some additional Javadoc comments are needed, please mention the methods or classes.

lioolli added a commit that referenced this pull request May 25, 2015
@lioolli lioolli merged commit 7399bb4 into pinpoint-apm:master May 25, 2015
@yous yous deleted the gson-plugin branch May 25, 2015 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants