Package datadog.trace.api.profiling
Interface ProfilingContext
- All Known Subinterfaces:
ProfilingScope
public interface ProfilingContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclearContextValue(ProfilingContextAttribute attribute) Clears a context value.default voidclearContextValue(String attribute) Clears a context value.default voidsetContextValue(ProfilingContextAttribute attribute, String value) Sets a context value to be appended to profiling data.default voidsetContextValue(String attribute, String value) Sets a context value to be appended to profiling data
-
Method Details
-
setContextValue
Sets a context value to be appended to profiling data- Parameters:
attribute- the attribute (must have been registered at startup)value- the value
-
setContextValue
Sets a context value to be appended to profiling data. This overload requires an attribute to have been obtained by callingcreateContextAttributefirst, but is more efficient.- Parameters:
attribute- the attribute (must have been registered at startup)value- the value
-
clearContextValue
Clears a context value.- Parameters:
attribute- the attribute (must have been registered at startup)
-
clearContextValue
Clears a context value. This overload requires an attribute to have been obtained by callingcreateContextAttributefirst, but is more efficient.- Parameters:
attribute- the attribute (must have been registered at startup)
-