Skip to content

Commit

Permalink
Use IConnectionMultiplexer instead of implementation (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam authored Oct 16, 2020
1 parent 8221893 commit dc78f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ internal class StackExchangeRedisCallsInstrumentation : IDisposable
/// <summary>
/// Initializes a new instance of the <see cref="StackExchangeRedisCallsInstrumentation"/> class.
/// </summary>
/// <param name="connection"><see cref="ConnectionMultiplexer"/> to instrument.</param>
/// <param name="connection"><see cref="IConnectionMultiplexer"/> to instrument.</param>
/// <param name="options">Configuration options for redis instrumentation.</param>
public StackExchangeRedisCallsInstrumentation(ConnectionMultiplexer connection, StackExchangeRedisCallsInstrumentationOptions options)
public StackExchangeRedisCallsInstrumentation(IConnectionMultiplexer connection, StackExchangeRedisCallsInstrumentationOptions options)
{
if (connection == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public static class TracerProviderBuilderExtensions
/// Enables the outgoing requests automatic data collection for Redis.
/// </summary>
/// <param name="builder"><see cref="TracerProviderBuilder"/> being configured.</param>
/// <param name="connection"><see cref="ConnectionMultiplexer"/> to instrument.</param>
/// <param name="connection"><see cref="IConnectionMultiplexer"/> to instrument.</param>
/// <param name="configureOptions">Redis configuration options.</param>
/// <returns>The instance of <see cref="TracerProviderBuilder"/> to chain the calls.</returns>
public static TracerProviderBuilder AddRedisInstrumentation(
this TracerProviderBuilder builder,
ConnectionMultiplexer connection,
IConnectionMultiplexer connection,
Action<StackExchangeRedisCallsInstrumentationOptions> configureOptions = null)
{
if (builder == null)
Expand Down

0 comments on commit dc78f29

Please sign in to comment.