title: CorrelationId in Azure functions v2
body: <p>I want to have a correlationId to be able to follow a request on Application insights and other places. I have installed the <a href="https://www.nuget.org/packages/CorrelationId/" rel="nofollow noreferrer">correlationId nuget package</a> on my MVC part of the solution. How do I follow the same Id on my Azure functions?</p>
  
  <p>As an example let's say user calls an API and that API will have a correlationId: xxxx-1 then as a part of the request, it writes to service bus that will be picked up by an Azure function:</p>
  
  <pre><code>[FunctionName("func1")]
  public async Task Run([ServiceBusTrigger("topic","subscription", Connection = "ServiceBusConnectionString")] Message message)
  {
   log.LogInformation("This is log");
  }
  </code></pre>
  
  <p>How do I apply the correlationId in the function's context?</p>