@ThreadSafe public final class OcAgentTraceExporter extends Object
Example of usage:
public static void main(String[] args) {
OcAgentTraceExporter.createAndRegister();
... // Do work.
}
| Modifier and Type | Method and Description |
|---|---|
static void |
createAndRegister()
Creates a
OcAgentTraceExporterHandler with default configurations and registers it to
the OpenCensus library. |
static void |
createAndRegister(OcAgentTraceExporterConfiguration configuration)
Creates a
OcAgentTraceExporterHandler with the given configurations and registers it to
the OpenCensus library. |
static void |
unregister()
Unregisters the OC-Agent exporter from the OpenCensus library.
|
public static void createAndRegister()
OcAgentTraceExporterHandler with default configurations and registers it to
the OpenCensus library.public static void createAndRegister(OcAgentTraceExporterConfiguration configuration)
OcAgentTraceExporterHandler with the given configurations and registers it to
the OpenCensus library.configuration - the OcAgentTraceExporterConfiguration.public static void unregister()