use of org.apache.cassandra.tracing.TraceState in project cassandra by apache.
the class InboundMessageHandler method dispatch.
/**
* Submit a {@link ProcessMessage} task to the appropriate {@link Stage} for the {@link Verb}.
*/
private void dispatch(ProcessMessage task) {
Header header = task.header();
TraceState state = Tracing.instance.initializeFromMessage(header);
if (state != null)
state.trace("{} message received from {}", header.verb, header.from);
callbacks.onDispatched(task.size(), header);
header.verb.stage.execute(ExecutorLocals.create(state), task);
}
Aggregations