When a custom transaction ends, does the prior/parent transaction continue?

We have created a custom transaction on part of our code. When the custom transaction ends, does the prior transaction continue operating?

Elasticsearch has no notion of "transaction".

Maybe I have the wrong channel. Code something like this:

Transaction transaction = ElasticApm.startTransaction();
where the type passed is "custom"

Ah I see, Elastic APM lets you track transactions indeed, that's Elastic Observability - Discuss the Elastic Stack.