How to use public API

The public API use in official website is only show some api's method , but I don't know how to contact with my project.

Based on your previous topics, I assume you are using the Java agent?

Which information do you feel is missing from the documentation: https://www.elastic.co/guide/en/apm/agent/java/current/public-api.html

Best,
Felix

I don't know weather new a class in my project?

I’m sorry but I don’t understand what you mean.

Thanks! I mean I should create a class use public api in my java project?

You can use the public API from within your existing classes.

Ok,thanks.I will try it.