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

[Azure Monitor Application Insights] - Support for Application Insights auto-instrumentation agent #60

Closed
benoitsautierecellenza opened this issue Jun 11, 2024 · 4 comments

Comments

@benoitsautierecellenza
Copy link

As a PowerShell developer, I write most of my Azure functions in PowerShell and rely on the Application Insights auto-instrumentation agent. while migrating my application to Azure Functions on Containers Apps, I discovered that solution does not support this useful feature

Is there a plan to support auto-instrumentation agent or do I have to instrument my code using Application Insights SDKs?

Best option would be to have native support for Application Insights auto-instrumentation agent

Alternate solution would be to develop / implement another way to collect traces from my Azure functions

Thank you.

@raorugan
Copy link
Collaborator

hi @benoitsautierecellenza can you please share the steps you implemented to configure auto-instrumentation agent in functions on ACA?

@benoitsautierecellenza
Copy link
Author

Hi,

In fact, this is not an issue with Azure Container Apps but support for OpenTelemetry in Azure Function for PowerShell :
https://learn.microsoft.com/en-us/azure/azure-functions/opentelemetry-howto?tabs=app-insights&pivots=programming-language-powershell

image

My Azure function is configured with an environment variable referencing my Application Insights instrumentation key

I was expecting the same behavior as Azure Function (just provide the instrumentation Key / Connection string) but it's not as simple with OpenTelemetry. I will have a look at the rest of this article.

best regards.

@benoitsautierecellenza
Copy link
Author

Hi,

confirmed, my implementation of Application Insights is not in fault. The same container with same environment variables is fully functionnal on Azure Function consumption plan and Azure Function with Docker container. So this issue is not related to Azure Funtion on Azure Container Apps.

@raorugan
Copy link
Collaborator

Thanks for confirming on this @benoitsautierecellenza ! We are tracking OTEL support in func on ACA as well - #62. Will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants