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
First of all, I love your commitment to OpenTelemetry and that your lib is finally open.
Recently, I was developing an ASP.NET app with Npgsql as the EntityFramework provider.
But seconds after I have pulled the AutoInstrumentations nuget, I have found out that my databases were not working as intended.
Migrations were failing all over the place and couldn't even start the application.
Anyway, after 4 coffees and 2 mental-brakedowns I have found out that AutoInstrumentations is depending on Npgsql.OpenTelemetry 7.0.0-rc.1.
With using Npgsql.EntityFramework 6.0.7 - that depending on Npgsql 6.0.7 - , it got a bit tangled up and caused EF not to communicate with the DB.
I know both (AutoInstrumentations and Npgsql) is just prerelease, but it would be wonderful if I didn't have to upgrade other used dependencies to preview versions as well.
I have no clue what is the evident difference in Npgsql versions but removing the AutoInstrumentations dependency and installing Npgsql.OpenTelemetry 6.0.7 solved the problems for me.
Versions
.NET runtime & version (eg .NET Core, .NET Framework): .NET6.0
Yep, that seems like it's probably the appropriate fix, at least until .NET 7 is fully released.
I have no clue what is the evident difference in Npgsql versions but removing the AutoInstrumentations dependency and installing Npgsql.OpenTelemetry 6.0.7 solved the problems for me.
I don't know either, but I will say that having worked on .NET as well, EF has always been a little special, and more-or-less intrinsically tied to the runtime rather than just being some package (or set of packages) you can pull in freely like most .NET packages. This is just some carelessness on my part here in pulling it in without validating which major version family we should be using.
Hello All!
First of all, I love your commitment to OpenTelemetry and that your lib is finally open.
Recently, I was developing an ASP.NET app with Npgsql as the EntityFramework provider.
But seconds after I have pulled the AutoInstrumentations nuget, I have found out that my databases were not working as intended.
Migrations were failing all over the place and couldn't even start the application.
Anyway, after 4 coffees and 2 mental-brakedowns I have found out that AutoInstrumentations is depending on Npgsql.OpenTelemetry 7.0.0-rc.1.
With using Npgsql.EntityFramework 6.0.7 - that depending on Npgsql 6.0.7 - , it got a bit tangled up and caused EF not to communicate with the DB.
I know both (AutoInstrumentations and Npgsql) is just prerelease, but it would be wonderful if I didn't have to upgrade other used dependencies to preview versions as well.
I have no clue what is the evident difference in Npgsql versions but removing the AutoInstrumentations dependency and installing Npgsql.OpenTelemetry 6.0.7 solved the problems for me.
Versions
Steps to reproduce
Additional context
Following that dotnet ef command will fail due to a
MethodAccessException
caused innpgsql.npgsqlconnection.get_settings()
The text was updated successfully, but these errors were encountered: