Skip to content

Commit 65ac153

Browse files
committed
Trace JavaDoc
1 parent 90ce356 commit 65ac153

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

src/main/java/com/stackify/apm/Trace.java

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,42 @@
2121
import java.lang.annotation.Target;
2222

2323
/**
24-
* Trace
25-
* @author eric
24+
* Trace Annotation for Stackify Java APM+
25+
*
26+
* <p>
27+
* Add custom instrumentation to classes using the @Trace annotation. The annotation
28+
* needs to be added to the class and the method to be instrumented. This is an
29+
* alternative to adding a custom configuration file (stackify-apm.json) to your
30+
* application.
31+
*
32+
* <pre>
33+
* <code>
34+
* import com.stackify.apm.Trace;
35+
*
36+
* {@literal @}Trace
37+
* public class ClassToBeInstrumented
38+
* {
39+
* {@literal @}Trace
40+
* public void methodToBeInstrumented()
41+
* {
42+
* ...
43+
* }
44+
*
45+
* {@literal @}Trace
46+
* public void anotherMethodToBeInstrumented()
47+
* {
48+
* ...
49+
* }
50+
*
51+
* public void notInstrumented()
52+
* {
53+
* ...
54+
* }
55+
* }
56+
* </code>
57+
* </pre>
58+
*
59+
* @author Eric Martin
2660
*/
2761
@Retention(value = RetentionPolicy.RUNTIME)
2862
@Target(value = {ElementType.TYPE, ElementType.METHOD})

0 commit comments

Comments
 (0)