Update to Microsoft.Azure.Functions.Worker.Core version 1.18 breaks Open Telemetry Tracing for .net8 isolated function #2543
Labels
potential-bug
Items opened using the bug report template, not yet triaged and confirmed as a bug
Description
We are using the standard OpenTelemetry instrumentation (using the code below) to add tracing to our Azure functions and send these to an Otel collector. This works fine for Worker.Core versions <= 1.17 but updating to any package that has a dependency on Worker.Core >= 1.18 means that we no longer see traces appearing.
Worker.Core 1.17
Worker.Core 1.18
Steps to reproduce
Create a new .NET8 Isolated HTTP Trigger azure function (make sure it's using Microsoft.Azure.Functions.Worker.Core version <=1.17 i.e. Microsoft.Azure.Functions.Worker meta package version <=1.21)
Add the opentelemetry packages
Add opentelemetry in the program.cs using code similar to below
Add an Activity to the function1.cs
If you run and make a get call to the function you will see console output of a trace span.
Upgrading the Microsoft.Azure.Functions.Worker to version 1.22 and re-running you will not see any console output from telemetry
The text was updated successfully, but these errors were encountered: