Skip to content

Commit c436f22

Browse files
authored
ODATA-18: Add metadata to track Atlas usage (#1371)
1 parent fc7df86 commit c436f22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/MongoDB.Driver.Core/Core/Connections/ClientDocumentHelper.cs

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ internal static BsonDocument CreateDriverDocument(string driverVersion)
9494
driverName = $"{driverName}|legacy";
9595
}
9696

97+
if (TryGetType("MongoDB.AspNetCore.OData.MongoEnableQueryAttribute, MongoDB.AspNetCore.OData", out _))
98+
{
99+
driverName = $"{driverName}|odata";
100+
}
101+
97102
if (TryGetType("MongoDB.EntityFrameworkCore.Query.MongoQueryContext, MongoDB.EntityFrameworkCore", out var queryContextType))
98103
{
99104
var efVersion = GetAssemblyVersion(queryContextType.Assembly);

0 commit comments

Comments
 (0)