-
- All Implemented Interfaces:
-
com.datadog.trace.api.profiling.Profiling,com.datadog.trace.bootstrap.instrumentation.api.ProfilingContextIntegration
public final class ProfilingContextIntegration.NoOp implements ProfilingContextIntegration
-
-
Field Summary
Fields Modifier and Type Field Description public final static ProfilingContextIntegrationINSTANCE
-
Method Summary
Modifier and Type Method Description ProfilingContextAttributecreateContextAttribute(String attribute)Creates a decorator for the attribute, which can be used to set and clear contexts slightlymore efficiently than with string attributes. ProfilingScopenewScope()Stateful API which restores the previous context when closed. voidonAttach()Invoked when a trace first propagates to a thread voidonDetach()Invoked when a thread exits Stringname()-
Methods inherited from class com.datadog.trace.bootstrap.instrumentation.api.ProfilingContextIntegration
encode, encodeOperationName, encodeResourceName, newScopeState, onStart -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
createContextAttribute
ProfilingContextAttribute createContextAttribute(String attribute)
Creates a decorator for the attribute, which can be used to set and clear contexts slightlymore efficiently than with string attributes.
- Parameters:
attribute- the name of the attribute
-
newScope
ProfilingScope newScope()
Stateful API which restores the previous context when closed. This requires more memory so hashigher overhead than the stateless API.
-
onAttach
void onAttach()
Invoked when a trace first propagates to a thread
-
onDetach
void onDetach()
Invoked when a thread exits
-
-
-
-