I would just write a standalone http server with mTLS set up and serve the profiling functions from there.
You are not forced to use the server mux provided by the package.
Karhoo Europe (UK) Ltd. a company registered in England and Wales, company number 10623359, registered address: 2 Eastbourne Terrace, London, England, W2 6LG
This communication is intended solely for the person(s) or organisation to whom it is addressed and may be privileged and confidential. If you are not the intended recipient, any review, disclosure, use, copy, alteration or transmission of this email and/or any file transmitted with it, is prohibited and may be unlawful. If you have received this email in error, we apologise for any inconvenience and request you please notify us as soon as possible and delete it and any attached files from your system.