Skip to content

ConfigureFunctionsApplicationInsights fails on upgrade of Microsoft.ApplicationInsights.WorkerService #3318

@ErikAndreas

Description

@ErikAndreas

Description

Following the guide at https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=ihostapplicationbuilder%2Ccode%2Cwindows#configure-startup for Application Insights and upgrading package Microsoft.ApplicationInsights.WorkerService to v3.0 the line
builder.Services.ConfigureFunctionsApplicationInsights();
will fail:
System.TypeLoadException: 'Could not load type 'Microsoft.ApplicationInsights.Extensibility.ITelemetryInitializer' from assembly 'Microsoft.ApplicationInsights, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.'

Steps to reproduce

  • function app with app insights configured as per link in description
  • update mentioned package to 3.0
  • run app

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage (Functions)potential-bugItems opened using the bug report template, not yet triaged and confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions