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 ```java
class InstrumentedClass { class InstrumentedClass {
@Trace @Trace
void methodAnnoted() { void methodAnnoted() {
// The annotation will do the same thing as the manual instrumentation below // The annotation will do the same thing as the manual instrumentation below
//Do some thing here ... //Do some thing here ...
Thread.sleep(1_000); Thread.sleep(1_000);
} }
void methodSDK() { void methodSDK() {
// Retrieve the tracer using the resolver provided // Retrieve the tracer using the resolver provided
// Make sure you have : // Make sure you have :
// 1. added the agent to the jvm (-javaagent;/path/to/agent.jar) // 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 // Close the span, the trace will automatically reported to the writer configured
span.close(); span.close();
} }
} }
``` ```