Redis readme clarification (#1638)

This commit is contained in:
Cijo Thomas 2020-12-01 15:40:37 -08:00 committed by GitHub
parent c0e27a83fd
commit 479fb50f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -24,9 +24,13 @@ dotnet add package OpenTelemetry.Instrumentation.StackExchangeRedis
## Step 2: Enable StackExchange.Redis Instrumentation at application startup
StackExchange.Redis instrumentation must be enabled at application startup.
`AddRedisInstrumentation` method on `TracerProviderBuilder` must be called to
enable Redis instrumentation, passing the `IConnectionMultiplexer` instance used
to make Redis calls. Only those Redis calls made using the same instance of the
`IConnectionMultiplexer` will be instrumented.
The following example demonstrates adding StackExchange.Redis instrumentation
to a console application. This example also sets up the OpenTelemetry Console
The following example demonstrates adding StackExchange.Redis instrumentation to
a console application. This example also sets up the OpenTelemetry Console
exporter, which requires adding the package
[`OpenTelemetry.Exporter.Console`](../OpenTelemetry.Exporter.Console/README.md)
to the application.