-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging and diagnostics experience improvements #619
Comments
Any timeline available for this? |
Is this still an open issue even with the release of Azure Functions 4.0? |
Any idea if this is available now (function 4.0)? |
Just to confirm - at the moment, Dependencies in AppInsights are not working in Isolated Process functions? Because that's what I am seeing. The only dependencies that get logged are when I have an Output Binding. But a dependency like an Http call inside the function logic is not being logged in AppInsights. Is it actually not tracking them, or is it a similar to this Log Category issue? The documentation could do with updating as I've been round in circles trying to figure out if I have misconfigured the host log levels. |
We are currently working around this by adding the insights worker service to get dependencies and implementing custom middleware (IFunctionsWorkerMiddleware) to get distributed tracing.
We also set ResponseCode appropriately. You can also remove duplicate request entries in host.json:
In order to get cosmos dependencies, we had to change connection mode to Gateway as per: Also not getting sql command text despite enabling legacy headers mentioned in 882. |
hi @hagagps and thanks for your post, anyway i have some issues getting this to work. Based on the post here 822#issuecomment iadded the ApplicationInsightsTelemetryWorkerService and enabled the legacy correlationHeaders, with this i see the dependencies in appinsights but still miss the correlation, so i tried to follow your approach here.
can you explain this in more detail howyou achieved the dependency correlation to work properly? thanks for any help. |
``> > [pull operationId and parentOperationId from 'traceparent' header]
We have ceased moving to NET6 Isolated for most of our applications with the many issues that are still open, especially around insights. For the application that was updated, we implemented the custom middleware shown above (StartOperation) to manually trace and pulled the traceparent header as follows:
The header should automatically be included when called from another azure application. |
Did install the latest preview https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.ApplicationInsights/1.0.0-preview2 and most things are working as expected. The only issue that we're still seeing is that the logging categories are not honoured (all of our own traces, or from EF Core, or from HttpClient have |
It would be really awesome if you could consider how telemetry works without ApplicationInsights by making OpenTelemetry a first class citizen like AWS Lambda have with ADOT lambda layer. I'm more than happy for you to reach out to discuss what that could look like. |
Linking this issue to #1182 to surface up issues. The Functions team should note that this is not just about "experience improvement"; it's also about getting the Azure bill under control. This issue should shift from "nice to have" to a "must have". |
The host OTel work will also cover improving the telemetry experience in workers. |
Creating this issue to track the work to improve logging and diagnostics in the worker. The work will address issues like:
We'll continue to update this with details and link to additional issues as we make progress here.
The text was updated successfully, but these errors were encountered: