Skip to content

Commit b339434

Browse files
committed
Fix instrumentation XML and remove usings.
1 parent 6d4a27d commit b339434

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MongoDb26/Instrumentation.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SPDX-License-Identifier: Apache-2.0
3939
</tracerFactory>
4040

4141
<tracerFactory name="AsyncCursorWrapper">
42-
<match assemblyName="MongoDB.Driver.Core" className="MongoDB.Driver.Core.Operations.AsyncCursor`1" maxVersion="2.999.0">
42+
<match assemblyName="MongoDB.Driver.Core" className="MongoDB.Driver.Core.Operations.AsyncCursor`1" maxVersion="3.0.0">
4343
<exactMethodMatcher methodName="GetNextBatch"/>
4444
<exactMethodMatcher methodName="GetNextBatchAsync"/>
4545
</match>
@@ -51,7 +51,7 @@ SPDX-License-Identifier: Apache-2.0
5151
</tracerFactory>
5252

5353
<tracerFactory name="MongoDatabaseWrapper">
54-
<match assemblyName="MongoDB.Driver" className="MongoDB.Driver.MongoDatabaseImpl" maxVersion="2.999.0">
54+
<match assemblyName="MongoDB.Driver" className="MongoDB.Driver.MongoDatabaseImpl" maxVersion="3.0.0">
5555
<exactMethodMatcher methodName="Aggregate"/>
5656
<exactMethodMatcher methodName="AggregateToCollection"/>
5757
<exactMethodMatcher methodName="CreateCollection"/>

src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MongoDb26/MongoDbHelper.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
using System;
55
using System.Collections;
66
using System.Collections.Concurrent;
7-
using System.ComponentModel.Design;
87
using System.Net;
98
using NewRelic.Agent.Extensions.Helpers;
109
using NewRelic.Agent.Extensions.Parsing;
11-
using NewRelic.Agent.Extensions.Providers.Wrapper;
1210
using NewRelic.Agent.Extensions.Parsing.ConnectionString;
1311
using NewRelic.Reflection;
14-
using System.Reflection;
1512

1613
namespace NewRelic.Providers.Wrapper.MongoDb26
1714
{

0 commit comments

Comments
 (0)