Redis readme clarification (#1638)
This commit is contained in:
parent
c0e27a83fd
commit
479fb50f77
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue