Skip to content
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

Does AzureFunctions_FunctionName replaces operation_Name in App Insights logs? #1540

Closed
MauriRojas opened this issue May 12, 2023 · 2 comments

Comments

@MauriRojas
Copy link

My team recently started using Microsoft.Azure.Functions.Worker.ApplicationInsights NuGet version 1.0.0-preview4 (we were using Microsoft.ApplicationInsights.WorkerService version 2.21.0) and we noticed that the Application Insights logs don't have operation_Name dimension but they have a AzureFunctions_FunctionName custom dimension.

Is the intention to replace operation_Name with AzureFunctions_FunctionName? If it isn't, is there a way to have operation_Name back in the logs?

@jviau
Copy link
Contributor

jviau commented May 22, 2023

We are starting to work to align our telemetry better with industry standards, which would include operation_Name being set for you when using App Insights. The proposal is here: Azure/azure-functions-host#9273

However, you can add your own ITelemetryProcessor or ITelemetryInitializer to set it for now - you can read AzureFunctions_FunctionName and set operation_Name. Or set it to whatever works best for you.

@MauriRojas
Copy link
Author

Thank you for your answer.
We updated our code to set operation_Name from AzureFunctions_FunctionName as you suggested.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants