-
Notifications
You must be signed in to change notification settings - Fork 526
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
MongoDB.Driver v3 breaks Aspire.MongoDB.Driver integration #6380
Comments
Exception you get when using the
|
Contributes to dotnet#6380
Version 3.0.0 brings breaking changes that are incompatible with the Aspire integration library. Contributes to dotnet#6380
Is the plan to take #6381 for 9.0 GA? I'd think we should right? |
Yes, that was my plan. So people don't use the Aspire library with the 3.0.0 version of MongoDB.Driver. |
Version 3.0.0 brings breaking changes that are incompatible with the Aspire integration library. Contributes to #6380
Why? I would understand if below 3.0.0 would not be possible with Aspire 9.0, but not this. So, I need to choose between Aspire or MongoDB 3.0.0? @JamesKovacs, MongoDB should provide a MongoDB.Driver.Core package with type forwarding to ease migration to MongoDb.Driver 3.0.0. As it is, it will break a lot of libraries and applications and delay (or prevent) the adoption of MongoDb.Driver 3.0.0. And out-of-the-box OpenTelemetry support. |
Because it doesn't work. See the above exception. |
Is there a plan to tackle that in the near future? Because of this aspire is locking our project to upgrade MongoDB Driver and MongoDB EF Provider in effect. Right now we are not using the aspire package for mongo, but as you can imagine - having telemetry would be great :) |
Yes, I plan on having this updated in .NET Aspire 9.1 early-ish next year. There are ripple effects I'm working on, for example: Xabaril/AspNetCore.Diagnostics.HealthChecks#2324. But expect this to be fixed in the next minor version. |
Awesome, thanks |
I haven't tried it, but MongoDB.Driver.Core.Extensions.DiagnosticSources 2.0.0 no longer depends on MongoDB.Driver.Core. You might be able to force MongoDB.Driver to 3.0.0 or upper and force MongoDB.Driver.Core.Extensions.DiagnosticSources to 2.0.0 and get away with it. Try it out! |
MongoDB.Driver shipped a version `3.0.0` that has binary breaking changes such that we can't build a single library that can load in both v2.x and v3.x. To continue supporting new versions of MongoDB.Driver, we need to add a new component Aspire.MongoDB.Driver.v3 that will work with the new version of MongoDB.Driver. See dotnet#3956 for the strategy to deal with these breaking changes. Fix dotnet#6380
MongoDB.Driver shipped a version `3.0.0` that has binary breaking changes such that we can't build a single library that can load in both v2.x and v3.x. To continue supporting new versions of MongoDB.Driver, we need to add a new component Aspire.MongoDB.Driver.v3 that will work with the new version of MongoDB.Driver. See dotnet#3956 for the strategy to deal with these breaking changes. Fix dotnet#6380
https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.0.0
We should follow the same approach as outlined in RabbitMQ.Client v7 breaks Aspire.RabbitMQ.Client component (dotnet/aspire#3956)
cc @sebastienros @radical @joperezr @DamianEdwards
The text was updated successfully, but these errors were encountered: