Skip to content

Commit f35853c

Browse files
authored
Update MongoDb docs and tests (#2642)
As titled
1 parent f3ff459 commit f35853c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/reference/setup-mongo-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mapped_pages:
88

99
## Quick start [_quick_start_14]
1010

11-
Instrumentation for MongoDB works with the official MongoDb.Driver 2.4.4+ driver packages. A prerequisite for auto instrumentation is to configure the `MongoClient` with `MongoDbEventSubscriber`:
11+
Instrumentation for MongoDB works with the official MongoDb.Driver 3.0.0+ driver packages. A prerequisite for auto instrumentation is to configure the `MongoClient` with `MongoDbEventSubscriber`:
1212

1313
```csharp
1414
var settings = MongoClientSettings.FromConnectionString(mongoConnectionString);

docs/reference/supported-technologies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Automatic instrumentation is supported for the following data access technologie
6868
| Elasticsearch [1.6] | Elasticsearch.Net 7.6.0+ | [NuGet package](/reference/setup-elasticsearch.md) |
6969
| NEST 7.6.0+ |
7070
| MySQL [1.12] | See profiler documentation | [Profiler auto instrumentation](/reference/setup-auto-instrumentation.md) |
71-
| MongoDB [1.9] | MongoDB.Driver 2.19.0+ | [NuGet package](/reference/setup-mongo-db.md) |
71+
| MongoDB | MongoDB.Driver 3.0.0+ | [NuGet package](/reference/setup-mongo-db.md) |
7272
| Oracle [1.12] | See profiler documentation | [Profiler auto instrumentation](/reference/setup-auto-instrumentation.md) |
7373
| PostgreSQL [1.12] | See profiler documentation | [Profiler auto instrumentation](/reference/setup-auto-instrumentation.md) |
7474
| Redis [1.8] | StackExchange.Redis 2.0.495+ | [NuGet package](/reference/setup-stackexchange-redis.md) |

test/instrumentations/Elastic.Apm.MongoDb.Tests/Elastic.Apm.MongoDb.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55

66
<ItemGroup>
7-
<PackageReference Include="MongoDB.Driver"/>
7+
<PackageReference Include="MongoDB.Driver" VersionOverride="3.4.2"/>
88
<PackageReference Include="Testcontainers.MongoDb" />
99
</ItemGroup>
1010

test/instrumentations/Elastic.Apm.MongoDb.Tests/Fixture/MongoFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class MongoFixture<TConfiguration, TDocument> : IAsyncLifetime
1919
where TConfiguration : IMongoConfiguration<TDocument>, new()
2020
{
2121
private readonly IMessageSink _sink;
22-
private const string MongoDbImage = "mongo:4.4.5";
22+
private const string MongoDbImage = "mongo:8.0.12";
2323

2424
private readonly TConfiguration _configuration;
2525

0 commit comments

Comments
 (0)