public abstract class BootstrapInitializationTelemetry extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BootstrapInitializationTelemetry.ForwarderJsonSender |
static class |
BootstrapInitializationTelemetry.JsonBased |
static interface |
BootstrapInitializationTelemetry.JsonSender |
static class |
BootstrapInitializationTelemetry.NoOp |
| Constructor and Description |
|---|
BootstrapInitializationTelemetry() |
| Modifier and Type | Method and Description |
|---|---|
static BootstrapInitializationTelemetry |
createFromForwarderPath(String forwarderPath)
Constructs a JSON-based instrumentation telemetry that forwards through a helper executable -
indicated by forwarderPath
|
abstract void |
finish() |
abstract void |
initMetaInfo(String attr,
String value)
Adds meta information about the process to the initialization telemetry Does NOT support
overriding an attr, each attr should be once and only once
|
abstract void |
markIncomplete() |
static BootstrapInitializationTelemetry |
noOpInstance()
Returns a singleton no op instance of initialization telemetry
|
abstract void |
onAbort(String reasonCode)
Indicates that an abort condition occurred during the bootstrapping process Abort conditions
are assumed to leave the bootstrapping process incomplete.
|
abstract void |
onError(String reasonCode) |
abstract void |
onError(Throwable t)
Indicates that an exception occurred during the bootstrapping process By default the exception
is assumed to NOT have fully stopped the initialization of the tracer.
|
abstract void |
onFatalError(Throwable t)
Indicates an exception that occurred during the bootstrapping process that left initialization
incomplete.
|
public static BootstrapInitializationTelemetry noOpInstance()
public static BootstrapInitializationTelemetry createFromForwarderPath(String forwarderPath)
forwarderPath - - a String - path to forwarding executablepublic abstract void initMetaInfo(String attr, String value)
public abstract void onAbort(String reasonCode)
markIncomplete()public abstract void onError(Throwable t)
If this exception stops the core bootstrapping of the tracer, then markIncomplete()
should also be called.
public abstract void onFatalError(Throwable t)
onError(Throwable) and markIncomplete()public abstract void onError(String reasonCode)
public abstract void markIncomplete()
public abstract void finish()