File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed
src/main/java/com/stackify/apm Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change 2121import 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 })
You can’t perform that action at this time.
0 commit comments