-
Notifications
You must be signed in to change notification settings - Fork 451
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
Host Error with OpenTelemetry.Extensions.Hosting #7007
Comments
Hi @kolanos , I was able to reproduce the issue. " builder.Services.AddOpenTelemetryTracing( )" throws the exception. The error should be because Azure Functions doesn't allow to register any IHostedService as a part of your Startup operation. Explained in #5447 (comment) Error: Line: builder.Services.AddOpenTelemetryTracing((serviceProvider, tracerBuilder) ----Startup file I could get rid of the error and thus gaining a successful deployment by commenting out "[assembly: FunctionsStartup(typeof(FunctionApp1.Startup))]" from the startup file |
Moving this to sprint 97, but we might be able to spend some time investigating in sprint 96. |
Similar change here: #6729 |
When running
func start --csharp
when usingOpenTelemetry.Extensions.Hosting
in a function-app it gives the following error:See here for an example function app using
OpenTelemetry.Extensions.Hosting
.cc @fabiocav
The text was updated successfully, but these errors were encountered: