@Dave Willard Thanks for reaching out. The process of enabling tracing has been now changed due to security reasons, previously we were adding OCP-APIM-Trace = true.
Please refer the setps in the below document to enable tracing for an api https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector#enable-tracing-for-an-api.
https://learn.microsoft.com/en-us/rest/api/apimanagement/gateway/list-trace?view=rest-apimanagement-2023-09-01-preview&tabs=HTTP#code-try-0 this rest api will return the trace similar to the trace you can see by tracing a call in the portal's test console.
To see the trace in azure portal click on Trace button you will get a warning but still you will be able to see the trace as shown below
do let me know incase of further queries, I would be happy to assist you.
Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.