This commit is contained in:
Guillaume Polaert 2017-05-24 15:13:15 +02:00
parent 856a61ee4a
commit c5008719e1
1 changed files with 10 additions and 10 deletions

View File

@ -115,15 +115,15 @@ You can start as shown below, here is an example how to use both of them to inst
```java
class InstrumentedClass {
@Trace
void methodAnnoted() {
// The annotation will do the same thing as the manual instrumentation below
//Do some thing here ...
Thread.sleep(1_000);
}
void methodSDK() {
@Trace
void methodAnnoted() {
// The annotation will do the same thing as the manual instrumentation below
//Do some thing here ...
Thread.sleep(1_000);
}
void methodSDK() {
// Retrieve the tracer using the resolver provided
// Make sure you have :
// 1. added the agent to the jvm (-javaagent;/path/to/agent.jar)
@ -137,7 +137,7 @@ class InstrumentedClass {
// Close the span, the trace will automatically reported to the writer configured
span.close();
}
}
}
```