public final class LogTreePopulator extends Object
ComponentsLogger.getExtraAnnotations(TreeProps)
and transforming them so they can be logged.Modifier and Type | Method and Description |
---|---|
static String |
getAnnotationBundleFromLogger(Component component,
ComponentsLogger logger)
Turn the extracted tree props from a
ComponentsLogger and turn them into a single
colon-separated string that |
static PerfEvent |
populatePerfEventFromLogger(ComponentContext c,
ComponentsLogger logger,
PerfEvent perfEvent)
Annotate a log event with the log tag set in the context, and extract the treeprops from a
given
ComponentContext and convert them into perf event annotations using a ComponentsLogger implementation. |
@CheckReturnValue public static PerfEvent populatePerfEventFromLogger(ComponentContext c, ComponentsLogger logger, PerfEvent perfEvent)
ComponentContext
and convert them into perf event annotations using a ComponentsLogger
implementation.null
if the resulting event isn't deemed worthy
of reporting.public static String getAnnotationBundleFromLogger(Component component, ComponentsLogger logger)
ComponentsLogger
and turn them into a single
colon-separated string thatcomponent
- Component to extract tree props from.logger
- populatePerfEventFromLogger(ComponentContext, ComponentsLogger, PerfEvent)