Remove outdated comment from MongoDB (#2707)

This commit is contained in:
Paulo Janotti 2023-06-26 21:27:18 -07:00 committed by GitHub
parent cf5eae198d
commit 36890c5774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -96,7 +96,7 @@ the proper attribute annotation so that the native CLR Profiler implementation
can inject them at runtime. Some examples include:
- [Logger](../src/OpenTelemetry.AutoInstrumentation/Instrumentations/Logger/)
- [MongoDb](../src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDb/)
- [MongoDB](../src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDB/)
Both kinds of instrumentation are enabled only when the targeted modules are loaded
into the targeted application.

View File

@ -49,9 +49,6 @@ public static class MongoClientIntegration
internal static CallTargetState OnMethodBegin<TTarget, TMongoClientSettings>(TTarget instance, TMongoClientSettings settings)
where TMongoClientSettings : notnull
{
// Additional deps doesn't support .NET FX
// TODO: Find another way how to ship & load "MongoDB.Driver.Core.Extensions.DiagnosticSources"
var setListenerDelegate = _setActivityListener ??= GetClusterConfiguratorExpression().Compile();
var clusterConfiguratorProperty = settings