From dc78f296ae915bb84ca20616a2c507ae4dba3621 Mon Sep 17 00:00:00 2001 From: Jan Trejbal Date: Fri, 16 Oct 2020 17:49:38 +0200 Subject: [PATCH] Use IConnectionMultiplexer instead of implementation (#1353) --- .../StackExchangeRedisCallsInstrumentation.cs | 4 ++-- .../TracerProviderBuilderExtensions.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)