You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your question related to a specific version? If so, please specify:
No
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
We are going to use OpenTelemetry 1.4.0 in our function, but OpenTelemetry has a dependency to System.Diagnostics.DiagnosticSource and it will throw a exception when trigger functions:
FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=7.0.0.0
However we can add FunctionsPreservedDependencies element to .csproj file to fix this error:
Will System.Diagnostics.DiagnosticSource.dll in FunctionsPreservedDependencies affect function behaviors?
We are basically wondering what would be the impact for preserving our own dependency version for dlls also used by the function host and if it’s ok to preserve the System.Diagnostics.DiagnosticSource. We are on dedicated plan and we don’t use AppInsight – all of our instrumentations are Geneva based.
The text was updated successfully, but these errors were encountered:
@SuyliuMS that specific dependency is unified as types defined there flow from the host and the Function (there's type exchange between the two contexts), with the most important one being Activity.
You have the ability to load your own version using the configuration above, but that would be scoped to your Function only. This is useful in a set of scenarios (and why the configuration exists), but will cause problems if you're relying on the instances of those types flowing from the host.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
If you are not the original author (SuyliuMS) and believe this issue is not stale, please comment with /bot not-stale and I will not close it.
Is your question related to a specific version? If so, please specify:
No
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
We are going to use OpenTelemetry 1.4.0 in our function, but OpenTelemetry has a dependency to System.Diagnostics.DiagnosticSource and it will throw a exception when trigger functions:
FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=7.0.0.0
However we can add FunctionsPreservedDependencies element to .csproj file to fix this error:
Will System.Diagnostics.DiagnosticSource.dll in FunctionsPreservedDependencies affect function behaviors?
We are basically wondering what would be the impact for preserving our own dependency version for dlls also used by the function host and if it’s ok to preserve the System.Diagnostics.DiagnosticSource. We are on dedicated plan and we don’t use AppInsight – all of our instrumentations are Geneva based.
The text was updated successfully, but these errors were encountered: