diff --git a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisCallsInstrumentation.cs b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisCallsInstrumentation.cs index bb1ff28b121..d9005143cc5 100644 --- a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisCallsInstrumentation.cs +++ b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/StackExchangeRedisCallsInstrumentation.cs @@ -48,9 +48,9 @@ internal class StackExchangeRedisCallsInstrumentation : IDisposable /// /// Initializes a new instance of the class. /// - /// to instrument. + /// to instrument. /// Configuration options for redis instrumentation. - public StackExchangeRedisCallsInstrumentation(ConnectionMultiplexer connection, StackExchangeRedisCallsInstrumentationOptions options) + public StackExchangeRedisCallsInstrumentation(IConnectionMultiplexer connection, StackExchangeRedisCallsInstrumentationOptions options) { if (connection == null) { diff --git a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/TracerProviderBuilderExtensions.cs b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/TracerProviderBuilderExtensions.cs index 0f4844e4253..c72dccd2d7b 100644 --- a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/TracerProviderBuilderExtensions.cs +++ b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/TracerProviderBuilderExtensions.cs @@ -29,12 +29,12 @@ public static class TracerProviderBuilderExtensions /// Enables the outgoing requests automatic data collection for Redis. /// /// being configured. - /// to instrument. + /// to instrument. /// Redis configuration options. /// The instance of to chain the calls. public static TracerProviderBuilder AddRedisInstrumentation( this TracerProviderBuilder builder, - ConnectionMultiplexer connection, + IConnectionMultiplexer connection, Action configureOptions = null) { if (builder == null)