From 36890c57744cd9201f5669fd8fa043c418e858a2 Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Mon, 26 Jun 2023 21:27:18 -0700 Subject: [PATCH] Remove outdated comment from MongoDB (#2707) --- docs/design.md | 2 +- .../{MongoDb => MongoDB}/MongoClientIntegration.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) rename src/OpenTelemetry.AutoInstrumentation/Instrumentations/{MongoDb => MongoDB}/MongoClientIntegration.cs (97%) diff --git a/docs/design.md b/docs/design.md index aec52d7a2..b1ce3d646 100644 --- a/docs/design.md +++ b/docs/design.md @@ -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. diff --git a/src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDb/MongoClientIntegration.cs b/src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDB/MongoClientIntegration.cs similarity index 97% rename from src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDb/MongoClientIntegration.cs rename to src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDB/MongoClientIntegration.cs index 3e8c1d49c..6182d78c4 100644 --- a/src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDb/MongoClientIntegration.cs +++ b/src/OpenTelemetry.AutoInstrumentation/Instrumentations/MongoDB/MongoClientIntegration.cs @@ -49,9 +49,6 @@ public static class MongoClientIntegration internal static CallTargetState OnMethodBegin(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