Skip to content

Commit cc0a18d

Browse files
committed
Update README
1 parent 462af3a commit cc0a18d

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Maven Central](https://img.shields.io/maven-central/v/com.stackify/stackify-java-apm-annot.svg)](http://mvnrepository.com/artifact/com.stackify/stackify-java-apm-annot)
44
[![Build Status](https://travis-ci.org/stackify/stackify-java-apm-annot.png)](https://travis-ci.org/stackify/stackify-java-apm-annot)
5-
#[![Coverage Status](https://coveralls.io/repos/stackify/stackify-java-apm-annot/badge.png?branch=master)](https://coveralls.io/r/stackify/stackify-java-apm-annot?branch=master)
65

76
@Trace Annotation for Stackify Java APM+
87

@@ -22,16 +21,36 @@ Add it as a maven dependency:
2221
<groupId>com.stackify</groupId>
2322
<artifactId>stackify-java-apm-annot</artifactId>
2423
<version>INSERT_LATEST_MAVEN_CENTRAL_VERSION</version>
25-
<scope>runtime</scope>
2624
</dependency>
2725
```
2826

2927
## Usage
3028

31-
TODO
29+
Add custom instrumentation to classes using the @Trace annotation. The annotation needs to be added to the class and the method to be instrumented. This is an alternative to adding a custom configuration file (stackify-apm.json) to your application.
3230

3331
```
34-
TODO
32+
import com.stackify.apm.Trace;
33+
34+
@Trace
35+
public class ClassToBeInstrumented
36+
{
37+
@Trace
38+
public void methodToBeInstrumented()
39+
{
40+
...
41+
}
42+
43+
@Trace
44+
public void anotherMethodToBeInstrumented()
45+
{
46+
...
47+
}
48+
49+
public void notInstrumented()
50+
{
51+
...
52+
}
53+
}
3554
```
3655

3756
## License

0 commit comments

Comments
 (0)