See: Description
| Interface | Description |
|---|---|
| ExtendedTracer |
This interface defines additional methods that inspectIT tracer provides for usage.
|
| Reporter |
Reporter serves as class handling finished spans.
|
| Timer |
Timer interface for measuring.
|
| Class | Description |
|---|---|
| TracerProvider |
The tracer provider allows getting of the
ExtendedTracer instance. |
Tracer can be obtained by calling one of the get methods in the
TracerProvider. If the inspectIT agent is running with the application where
TracerProvider is used, the get methods will always returned correctly
initialized ExtendedTracer. If the inspectIT is not running, then the caller can control
if the returned tracer is noop tracer or null.
It's up to user to decide to code against the io.opentracing interfaces or use directly
ExtendedTracer which provides some additional control.
Typical usage:
Tracer tracer = TracerProvider.get();
Span span = tracer.buildSpan().withTag("key", "value").start();
...
span.finish();