Package datadog.trace.bootstrap
Class BootstrapInitializationTelemetry
java.lang.Object
datadog.trace.bootstrap.BootstrapInitializationTelemetry
- Direct Known Subclasses:
BootstrapInitializationTelemetry.JsonBased,BootstrapInitializationTelemetry.NoOp
Thread safe telemetry class used to relay information about tracer activation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic interfaceDeclare telemetry asObjectto avoid issue with double class loading from different classloaders.static final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromForwarderPath(String forwarderPath) Constructs a JSON-based instrumentation telemetry that forwards through a helper executable - indicated by forwarderPathabstract voidfinish()abstract voidinitMetaInfo(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 onceabstract voidReturns a singleton no op instance of initialization telemetryabstract voidIndicates that an abort condition occurred during the bootstrapping process Abort conditions are assumed to leave the bootstrapping process incomplete.abstract voidabstract voidIndicates 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 voidIndicates an exception that occurred during the bootstrapping process that left initialization incomplete.
-
Constructor Details
-
BootstrapInitializationTelemetry
public BootstrapInitializationTelemetry()
-
-
Method Details
-
noOpInstance
Returns a singleton no op instance of initialization telemetry -
createFromForwarderPath
Constructs a JSON-based instrumentation telemetry that forwards through a helper executable - indicated by forwarderPath- Parameters:
forwarderPath- - a String - path to forwarding executable
-
initMetaInfo
Adds meta information about the process to the initialization telemetry Does NOT support overriding an attr, each attr should be once and only once -
onAbort
Indicates that an abort condition occurred during the bootstrapping process Abort conditions are assumed to leave the bootstrapping process incomplete.markIncomplete() -
onError
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.If this exception stops the core bootstrapping of the tracer, then
markIncomplete()should also be called. -
onError
-
onFatalError
Indicates an exception that occurred during the bootstrapping process that left initialization incomplete. Equivalent to callingonError(Throwable)andmarkIncomplete() -
markIncomplete
public abstract void markIncomplete() -
finish
public abstract void finish()
-