-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Consider upgrading DiagnosticSource dependency to 5.0 #33683
Comments
/cc @lmolkova |
This would also help with testing the ActivitySource path. Otherwise test projects need to explicitly add a 5.0.0 dependency. |
It would also allow us to do this: Azure/azure-sdk#3319 |
I would hope there there would at least be deprecation warning before dropping support for Azure Functions v1! .NET Framework support for v4 only went GA very recently and it takes time to port. |
thanks for digging up the old issues, @m-redding! I think #8739 is really relevant , AFAIK PowerShell 6 is no longer supported and PowerShell 7 should have the right version of DiagnosticSource: PS> [System.AppDomain]::CurrentDomain.GetAssemblies().where({$_.FullName -match "DiagnosticSource"}) | Select FullName FullNameSystem.Diagnostics.DiagnosticSource, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 Perhaps, we can test if doing something simple in powershell with azure SDK works (if we update DS to 5.0.0) @fowl2 I believe we won't stop supporting Functions v1 with this, but would stop supporting distributed tracing in newish Azure SDK on Functions v1 with such a change. |
Ended up upgrading to 6.0.1 - PR #37418 has additional context/reasoning for this decision |
@lmolkova @m-redding could you confirm this won't break Azure Functions v1 (see #33683 (comment)) / if it is, it's clear in the release notes. Thanks! |
Hi @fowl2! I had some discussions with the Functions team, and we don't believe this will break Functions V1 compatibility. The upgraded System.Diagnostics.DiagnosticSource package is compatible with .NET Framework 4.8. There's a chance you may get a warning from the compiler depending on how your project is configured, but the tracing code will continue to work as it did before. |
We are currently using 4.6.0 for compatibility with V2 functions. At this point, almost all customers are on V3. In V3, the function host uses 5.0.0, so we should be able to safely upgrade from a functions perspective at least. There may also be a dependency consideration for PowerShell integration with our libraries, but would need to investigate the details there.
The text was updated successfully, but these errors were encountered: