Class TraceUtil (2.18.5)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass TraceUtilHelper class for tracing utility. It is used for instrumenting HttpDatastoreRpc with OpenCensus APIs.
TraceUtil instances are created by the TraceUtil#getInstance() method.
Inherited Members
Static Methods
getInstance()
publicstaticTraceUtilgetInstance()Return TraceUtil Object.
| Returns | |
|---|---|
| Type | Description |
TraceUtil |
An instance of TraceUtil |
Methods
getTracer()
publicTracergetTracer()Return the global Tracer.
| Returns | |
|---|---|
| Type | Description |
io.opencensus.trace.Tracer |
The global Tracer. |
startSpan(String spanName)
protectedSpanstartSpan(StringspanName)Starts a new span.
| Parameter | |
|---|---|
| Name | Description |
spanName |
String The name of the returned Span. |
| Returns | |
|---|---|
| Type | Description |
io.opencensus.trace.Span |
The newly created Span. |