I use Google Firebase Cloud Function.
Just to be clear, I'm ok with cold start and I don't want to reduce the start time.
I want to get a timestamp corresponding to when the request is received before the function start.
The final goal is to estimate duration.
Our server save a record in the database with a timestamp then we call an external service.
This external API will call a webhook on our server to update states.
We want to measure the duration between the saved record and the webhook call.
It works most of the times, but when cloud function hit cold start, it would affect the stats.
I looked for variable with this information in documentation but not found anything.
I checked headers from the external service for a timestamp but there is nothing there too.