Generating a trace sampling