-
Notifications
You must be signed in to change notification settings - Fork 773
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
OpenTelemetry support on Azure Function App v3 (.Net Core 3.1) #1602
Comments
Azure functions has restrictions on running backgroundhostedservices, so you cannot use this package in Functions. You can manually use opentelemetry
(Functions has built-in integration with AzureApplicationInsights, and I am not sure how to setup something else) |
Please try the above snippet and see if it works. I'll ask around for Azure Functions limitations. |
Thanks Cijo, I guess that should be an architecture limitation thinking in a serverless deployment, I found a related issue with hosted services on Azure Functions: Azure/azure-functions-host#5447 (comment), I already performed the suggested change, the error is gone but sadly no information is exposed in jaeger. I will appreciate any workaround on this before decide to move to Azure Application Insights, I really like Open Telemetry and would like to implement distributed tracing on some containerized functions I have. Thank you, |
Could you share more on this - are you create activities using ActivitySource yourself, and they are not shown in Jaeger? |
Hi @cijothomas I have decided to move to Application Insights at least just for Functions/Durable Functions, I will continue working with Open Telemetry and hope to see soon more .net core samples with this kind of projects. Thank you, |
#1803 closing as duplicate |
Question
Describe your environment.
Azure Function App v3 using .Net Core 3.1 working in Visual Studio 2019.
Describe any aspect of your environment relevant to the question.
This is my current project configuration:
What are you trying to achieve?
I'm trying to initialize the distributed telemetry OpenTelemetry component in the Azure Function startup.cs.
Project.csproj:
Startup.cs:
I'm getting the following error:
What did you expect to see?
I ran this same pieces of code in other application: ASP.NET Core WebApp (not Azure Function) and is running successfully, I'm able to visualize the tracing in Jaeger, but I can't run it successfully in the Azure Function App project.
Additional Context
Add any other context about the problem here. If you followed an existing
documentation, please share the link to it.
I'm using this example as reference: https://github.com/open-telemetry/opentelemetry-dotnet/tree/master/examples/AspNetCore
Thank you,
RC
The text was updated successfully, but these errors were encountered: