Create custom transaction for jmeter transactions

Trying to use elastic APM to track requests executed from jmeter load testing tool. Added trace method for http sampler by adding sampler.HTTPHC4Impl#sample. Works fine. Issue is elastic apm creating transaction with name HTTPHC4impl which is same for all transactions. Is it possible to use tracing API to create custom transaction with test transaction name and add HTTPHC4impl as child within it. Tried with jsr223 preprocessor to create custom transaction, But it created separate transaction which doesnt include http sampler. Like other APM tools, is there any way we can integrate jmeter transactions and have single trace for transaction initiated from jmeter. Thanks