How to get request_id within the azure ml score.py run function ?

Suresh Shankar 0 Reputation points
2023-02-10T05:20:03.94+00:00

I am trying to find the request id in the run function within the score.py. I however see the request id in the deployment logs tab as show in the screen shot (line 1665, 1670, 1680 etc). It is auto-magically logging the request id to the IO stream, i would like to log this to our logging mechanism any pointers to how or where to find this attribute would be extremely help.User's image

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,108 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.