Skip to Main Content
Beginning Serverless Architectures with Microsoft Azure
book

Beginning Serverless Architectures with Microsoft Azure

by Daniel Bass
July 2018
Beginner to intermediate content levelBeginner to intermediate
100 pages
2h 11m
English
Packt Publishing
Content preview from Beginning Serverless Architectures with Microsoft Azure

Integrating Azure Application Insights

In this section, we'll add logging to your Azure Functions using Azure Application Insights. We'll need to receive vital information about what our software is doing, so that we can triage issues. And to ensure that it happens correctly, we'll need the Azure Functions created earlier. Let's begin by implementing the following steps:

  1. Create an Application Insights instance by going on to the portal and creating one from the marketplace. Use the .NET app setting. Note down the instrumentation key from the overview panel; you'll need it later.
  2. Install a NuGet package, Microsoft.ApplicationInsights.
  3. Add the line of code in the screenshot (the private static string with the application insights key in it) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Serverless Architectures with Microsoft Azure

Advanced Serverless Architectures with Microsoft Azure

Daniel Bass

Publisher Resources

ISBN: 9781789537048Supplemental Content