What is my Lambda doing between startup and first line? : <p>I have some Lambda functions written in C# running in the .NET Core 2.1 runtime in AWS. The cold start time on them is very large (>8s with 256MB, >4s with 512).</p>

<p>However, I'm not sure if it is just cold start time or something else; I have other lambdas that are written in dotnet and they seem to have shorter startup times. </p>

<p>An X-Ray trace shows a big gap between "Initilization" being completed and anything happening. I start an X-Ray subsegment on the first line of my handler (seen in the trace as "Configure").</p>

<p>Is there something I'm missing?</p>

<p><a href="https://i.stack.imgur.com/bDeDq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bDeDq.png" alt="AWS X-Ray trace"></a></p>
