question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Re-introduce App Insights request detail logging

See original GitHub issue

When logging, the App Insights logger would look for an HttpRequest attached to the current logging scope. This request was attached by the Functions host. We’d use that to log more interesting request details like StatusCode, UserAgent, etc. In v2, this has changed as there’s no guarantee that the Response has been written by the time the function execution has completed. That was leading to some tough scenarios.

In order to get tests running again, I’ve removed this behavior so we can take another look at how we scope the requests and the function invocations to see if we can get this to work more nicely.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:19 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
brettsamcommented, Apr 15, 2019

This was committed with #4214 and is being released with https://github.com/Azure/azure-functions-host/releases/tag/v2.0.12408

2reactions
MHHenriksencommented, Feb 14, 2019

https://github.com/Azure/azure-webjobs-sdk/pull/2073 seems to be take two of fixing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application Insights logging with .NET - Azure Monitor
In this article, you learn how to capture logs with Application Insights in .NET apps by using the Microsoft.Extensions.Logging.
Read more >
Azure Application Insights Tutorial | Amazing telemetry service
Creating logging and performance tracking solution for your applications can be challenging, especially in multi-service cloud environment.
Read more >
Explore .NET trace logs in Application Insights
Send diagnostic tracing logs for your ASP.NET/ASP.NET Core application from ILogger, NLog, log4Net, or System.Diagnostics.Trace to Azure ...
Read more >
Azure Application Insights. Introduce and Practice - LAI TOCA
First you need create Application Insight resource for Azure portal under your subscription and get the instrumentation key. More detail ...
Read more >
Monitor application via Application Insights and send alert
I always use Application Insights to monitor my Web applications. ... I can unify the alert for both Application Insights and Log Analytics....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found