protected void initTopLevelState ( APMSpan topSpan , TraceRecorder recorder , ContextSampler sampler ) { nodeBuilder = new NodeBuilder ( ) ; traceContext = new TraceContext ( topSpan , nodeBuilder , recorder , sampler ) ; }
This method initialises the node builder and trace context for a top level trace fragment .