Atatus .NET APM traces Redis commands issued through the StackExchange.Redis client by registering a profiling session on the connection multiplexer, creating a span for each command inside an active transaction.
Package installation
Add the Atatus StackExchange.Redis instrumentation package to the application.
copy
dotnet add package Atatus.StackExchange.Redis --version 3.2.2
Register Atatus on the connection multiplexer
Redis instrumentation is enabled by registering Atatus on the IConnectionMultiplexer once, after the connection is created. Unlike the diagnostics-subscriber integrations, this step is always required — even when using Atatus.NetCoreAll — because the profiler must be attached to your own connection.
using Atatus.StackExchange.Redis;
using StackExchange.Redis;
var connection = ConnectionMultiplexer.Connect("localhost");
connection.UseAtatus();
What Atatus captures ?
- A span for each Redis command executed through the StackExchange.Redis client, including the command type.
+1-415-800-4104